/* e337da90b058ea07058856e96de407a5 */
(function(a,b){function e(c,f,k){if(k===b&&c.nodeType===1){k="data-"+f.replace(ta,"$1-$2").toLowerCase();k=c.getAttribute(k);if(typeof k==="string"){try{k=k==="true"?true:k==="false"?false:k==="null"?null:!g.isNaN(k)?parseFloat(k):la.test(k)?g.parseJSON(k):k}catch(m){}g.data(c,f,k)}else k=b}return k}function d(c){for(var f in c)if(f!=="toJSON")return false;return true}function h(c,f,k){var m=f+"defer",o=f+"queue",r=f+"mark",B=g.data(c,m,b,true);if(B&&(k==="queue"||!g.data(c,o,b,true))&&(k==="mark"||
!g.data(c,r,b,true)))setTimeout(function(){if(!g.data(c,o,b,true)&&!g.data(c,r,b,true)){g.removeData(c,m,true);B.resolve()}},0)}function j(){return false}function l(){return true}function p(c,f,k){var m=g.extend({},k[0]);m.type=c;m.originalEvent={};m.liveFired=b;g.event.handle.call(f,m);m.isDefaultPrevented()&&k[0].preventDefault()}function w(c){var f,k,m,o,r,B,H,J,N,Y,ka,ma=[];o=[];r=g._data(this,"events");if(!(c.liveFired===this||!r||!r.live||c.target.disabled||c.button&&c.type==="click")){if(c.namespace)ka=
new RegExp("(^|\\.)"+c.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");c.liveFired=this;var na=r.live.slice(0);for(H=0;H<na.length;H++){r=na[H];r.origType.replace(Xa,"")===c.type?o.push(r.selector):na.splice(H--,1)}o=g(c.target).closest(o,c.currentTarget);J=0;for(N=o.length;J<N;J++){Y=o[J];for(H=0;H<na.length;H++){r=na[H];if(Y.selector===r.selector&&(!ka||ka.test(r.namespace))&&!Y.elem.disabled){B=Y.elem;m=null;if(r.preType==="mouseenter"||r.preType==="mouseleave"){c.type=r.preType;if((m=g(c.relatedTarget).closest(r.selector)[0])&&
g.contains(B,m))m=B}if(!m||m!==B)ma.push({elem:B,handleObj:r,level:Y.level})}}}J=0;for(N=ma.length;J<N;J++){o=ma[J];if(k&&o.level>k)break;c.currentTarget=o.elem;c.data=o.handleObj.data;c.handleObj=o.handleObj;ka=o.handleObj.origHandler.apply(o.elem,arguments);if(ka===false||c.isPropagationStopped()){k=o.level;if(ka===false)f=false;if(c.isImmediatePropagationStopped())break}}return f}}function z(c,f){return(c&&c!=="*"?c+".":"")+f.replace(Cb,"`").replace(Db,"&")}function G(c){return!c||!c.parentNode||
c.parentNode.nodeType===11}function K(c,f,k){f=f||0;if(g.isFunction(f))return g.grep(c,function(o,r){return!!f.call(o,r,o)===k});else if(f.nodeType)return g.grep(c,function(o){return o===f===k});else if(typeof f==="string"){var m=g.grep(c,function(o){return o.nodeType===1});if(Eb.test(f))return g.filter(f,m,!k);else f=g.filter(f,m)}return g.grep(c,function(o){return g.inArray(o,f)>=0===k})}function A(c){return g.nodeName(c,"table")?c.getElementsByTagName("tbody")[0]||c.appendChild(c.ownerDocument.createElement("tbody")):
c}function s(c,f){if(!(f.nodeType!==1||!g.hasData(c))){var k=g.expando,m=g.data(c),o=g.data(f,m);if(m=m[k]){c=m.events;o=o[k]=g.extend({},m);if(c){delete o.handle;o.events={};for(var r in c){k=0;for(m=c[r].length;k<m;k++)g.event.add(f,r+(c[r][k].namespace?".":"")+c[r][k].namespace,c[r][k],c[r][k].data)}}}}}function C(c,f){var k;if(f.nodeType===1){f.clearAttributes&&f.clearAttributes();f.mergeAttributes&&f.mergeAttributes(c);k=f.nodeName.toLowerCase();if(k==="object")f.outerHTML=c.outerHTML;else if(k===
"input"&&(c.type==="checkbox"||c.type==="radio")){if(c.checked)f.defaultChecked=f.checked=c.checked;if(f.value!==c.value)f.value=c.value}else if(k==="option")f.selected=c.defaultSelected;else if(k==="input"||k==="textarea")f.defaultValue=c.defaultValue;f.removeAttribute(g.expando)}}function I(c){return"getElementsByTagName"in c?c.getElementsByTagName("*"):"querySelectorAll"in c?c.querySelectorAll("*"):[]}function S(c){if(c.type==="checkbox"||c.type==="radio")c.defaultChecked=c.checked}function y(c){if(g.nodeName(c,
"input"))S(c);else"getElementsByTagName"in c&&g.grep(c.getElementsByTagName("input"),S)}function M(c,f){f.src?g.ajax({url:f.src,async:false,dataType:"script"}):g.globalEval((f.text||f.textContent||f.innerHTML||"").replace(Fb,"/*$0*/"));f.parentNode&&f.parentNode.removeChild(f)}function v(c,f,k){var m=f==="width"?c.offsetWidth:c.offsetHeight,o=f==="width"?Gb:Hb;if(m>0){k!=="border"&&g.each(o,function(){k||(m-=parseFloat(g.css(c,"padding"+this))||0);if(k==="margin")m+=parseFloat(g.css(c,k+this))||0;
else m-=parseFloat(g.css(c,"border"+this+"Width"))||0});return m+"px"}m=Pa(c,f,f);if(m<0||m==null)m=c.style[f]||0;m=parseFloat(m)||0;k&&g.each(o,function(){m+=parseFloat(g.css(c,"padding"+this))||0;if(k!=="padding")m+=parseFloat(g.css(c,"border"+this+"Width"))||0;if(k==="margin")m+=parseFloat(g.css(c,k+this))||0});return m+"px"}function q(c){return function(f,k){if(typeof f!=="string"){k=f;f="*"}if(g.isFunction(k)){f=f.toLowerCase().split(fb);for(var m=0,o=f.length,r,B;m<o;m++){r=f[m];if(B=/^\+/.test(r))r=
r.substr(1)||"*";r=c[r]=c[r]||[];r[B?"unshift":"push"](k)}}}}function O(c,f,k,m,o,r){o=o||f.dataTypes[0];r=r||{};r[o]=true;o=c[o];for(var B=0,H=o?o.length:0,J=c===Ya,N;B<H&&(J||!N);B++){N=o[B](f,k,m);if(typeof N==="string")if(!J||r[N])N=b;else{f.dataTypes.unshift(N);N=O(c,f,k,m,N,r)}}if((J||!N)&&!r["*"])N=O(c,f,k,m,"*",r);return N}function T(c,f){var k,m,o=g.ajaxSettings.flatOptions||{};for(k in f)if(f[k]!==b)(o[k]?c:m||(m={}))[k]=f[k];m&&g.extend(true,c,m)}function ca(c,f,k,m){if(g.isArray(f))g.each(f,
function(r,B){k||Ib.test(c)?m(c,B):ca(c+"["+(typeof B==="object"||g.isArray(B)?r:"")+"]",B,k,m)});else if(!k&&f!=null&&typeof f==="object")for(var o in f)ca(c+"["+o+"]",f[o],k,m);else m(c,f)}function X(c,f,k){var m=c.contents,o=c.dataTypes,r=c.responseFields,B,H,J,N;for(H in r)if(H in k)f[r[H]]=k[H];for(;o[0]==="*";){o.shift();if(B===b)B=c.mimeType||f.getResponseHeader("content-type")}if(B)for(H in m)if(m[H]&&m[H].test(B)){o.unshift(H);break}if(o[0]in k)J=o[0];else{for(H in k){if(!o[0]||c.converters[H+
" "+o[0]]){J=H;break}N||(N=H)}J=J||N}if(J){J!==o[0]&&o.unshift(J);return k[J]}}function ia(c,f){if(c.dataFilter)f=c.dataFilter(f,c.dataType);var k=c.dataTypes,m={},o,r,B=k.length,H,J=k[0],N,Y,ka,ma,na;for(o=1;o<B;o++){if(o===1)for(r in c.converters)if(typeof r==="string")m[r.toLowerCase()]=c.converters[r];N=J;J=k[o];if(J==="*")J=N;else if(N!=="*"&&N!==J){Y=N+" "+J;ka=m[Y]||m["* "+J];if(!ka){na=b;for(ma in m){H=ma.split(" ");if(H[0]===N||H[0]==="*")if(na=m[H[1]+" "+J]){ma=m[ma];if(ma===true)ka=na;
else if(na===true)ka=ma;break}}}ka||na||g.error("No conversion from "+Y.replace(" "," to "));if(ka!==true)f=ka?ka(f):na(ma(f))}}return f}function oa(){try{return new a.XMLHttpRequest}catch(c){}}function x(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}function E(){setTimeout(L,0);return Ta=g.now()}function L(){Ta=b}function R(c,f){var k={};g.each(gb.concat.apply([],gb.slice(0,f)),function(){k[this]=c});return k}function aa(c){if(!Za[c]){var f=W.body,k=g("<"+c+">").appendTo(f),m=
k.css("display");k.remove();if(m==="none"||m===""){if(!Ia){Ia=W.createElement("iframe");Ia.frameBorder=Ia.width=Ia.height=0}f.appendChild(Ia);if(!Qa||!Ia.createElement){Qa=(Ia.contentWindow||Ia.contentDocument).document;Qa.write((W.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");Qa.close()}k=Qa.createElement(c);Qa.body.appendChild(k);m=g.css(k,"display");f.removeChild(Ia)}Za[c]=m}return Za[c]}function ga(c){return g.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}
var W=a.document,za=a.navigator,ha=a.location,g=function(){function c(){if(!f.isReady){try{W.documentElement.doScroll("left")}catch(F){setTimeout(c,1);return}f.ready()}}var f=function(F,$){return new f.fn.init(F,$,o)},k=a.jQuery,m=a.$,o,r=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,B=/\S/,H=/^\s+/,J=/\s+$/,N=/\d/,Y=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ka=/^[\],:{}\s]*$/,ma=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,na=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ua=/(?:^|:|,)(?:\s*\[)+/g,
Ka=/(webkit)[ \/]([\w.]+)/,ya=/(opera)(?:.*version)?[ \/]([\w.]+)/,Fa=/(msie) ([\w.]+)/,Ha=/(mozilla)(?:.*? rv:([\w.]+))?/,u=/-([a-z]|[0-9])/ig,D=/^-ms-/,Q=function(F,$){return($+"").toUpperCase()},P=za.userAgent,U,Z,da=Object.prototype.toString,ba=Object.prototype.hasOwnProperty,qa=Array.prototype.push,Aa=Array.prototype.slice,xa=String.prototype.trim,Da=Array.prototype.indexOf,ra={};f.fn=f.prototype={constructor:f,init:function(F,$,fa){var ja;if(!F)return this;if(F.nodeType){this.context=this[0]=
F;this.length=1;return this}if(F==="body"&&!$&&W.body){this.context=W;this[0]=W.body;this.selector=F;this.length=1;return this}if(typeof F==="string")if((ja=F.charAt(0)==="<"&&F.charAt(F.length-1)===">"&&F.length>=3?[null,F,null]:r.exec(F))&&(ja[1]||!$))if(ja[1]){fa=($=$ instanceof f?$[0]:$)?$.ownerDocument||$:W;if(F=Y.exec(F))if(f.isPlainObject($)){F=[W.createElement(F[1])];f.fn.attr.call(F,$,true)}else F=[fa.createElement(F[1])];else{F=f.buildFragment([ja[1]],[fa]);F=(F.cacheable?f.clone(F.fragment):
F.fragment).childNodes}return f.merge(this,F)}else{if(($=W.getElementById(ja[2]))&&$.parentNode){if($.id!==ja[2])return fa.find(F);this.length=1;this[0]=$}this.context=W;this.selector=F;return this}else return!$||$.jquery?($||fa).find(F):this.constructor($).find(F);else if(f.isFunction(F))return fa.ready(F);if(F.selector!==b){this.selector=F.selector;this.context=F.context}return f.makeArray(F,this)},selector:"",jquery:"1.6.3",length:0,size:function(){return this.length},toArray:function(){return Aa.call(this,
0)},get:function(F){return F==null?this.toArray():F<0?this[this.length+F]:this[F]},pushStack:function(F,$,fa){var ja=this.constructor();f.isArray(F)?qa.apply(ja,F):f.merge(ja,F);ja.prevObject=this;ja.context=this.context;if($==="find")ja.selector=this.selector+(this.selector?" ":"")+fa;else if($)ja.selector=this.selector+"."+$+"("+fa+")";return ja},each:function(F,$){return f.each(this,F,$)},ready:function(F){f.bindReady();U.done(F);return this},eq:function(F){return F===-1?this.slice(F):this.slice(F,
+F+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Aa.apply(this,arguments),"slice",Aa.call(arguments).join(","))},map:function(F){return this.pushStack(f.map(this,function($,fa){return F.call($,fa,$)}))},end:function(){return this.prevObject||this.constructor(null)},push:qa,sort:[].sort,splice:[].splice};f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var F,$,fa,ja,wa,sa=arguments[0]||{},Ba=1,Ca=arguments.length,$a=false;
if(typeof sa==="boolean"){$a=sa;sa=arguments[1]||{};Ba=2}if(typeof sa!=="object"&&!f.isFunction(sa))sa={};if(Ca===Ba){sa=this;--Ba}for(;Ba<Ca;Ba++)if((F=arguments[Ba])!=null)for($ in F){fa=sa[$];ja=F[$];if(sa!==ja)if($a&&ja&&(f.isPlainObject(ja)||(wa=f.isArray(ja)))){if(wa){wa=false;fa=fa&&f.isArray(fa)?fa:[]}else fa=fa&&f.isPlainObject(fa)?fa:{};sa[$]=f.extend($a,fa,ja)}else if(ja!==b)sa[$]=ja}return sa};f.extend({noConflict:function(F){if(a.$===f)a.$=m;if(F&&a.jQuery===f)a.jQuery=k;return f},isReady:false,
readyWait:1,holdReady:function(F){if(F)f.readyWait++;else f.ready(true)},ready:function(F){if(F===true&&!--f.readyWait||F!==true&&!f.isReady){if(!W.body)return setTimeout(f.ready,1);f.isReady=true;if(!(F!==true&&--f.readyWait>0)){U.resolveWith(W,[f]);f.fn.trigger&&f(W).trigger("ready").unbind("ready")}}},bindReady:function(){if(!U){U=f._Deferred();if(W.readyState==="complete")return setTimeout(f.ready,1);if(W.addEventListener){W.addEventListener("DOMContentLoaded",Z,false);a.addEventListener("load",
f.ready,false)}else if(W.attachEvent){W.attachEvent("onreadystatechange",Z);a.attachEvent("onload",f.ready);var F=false;try{F=a.frameElement==null}catch($){}W.documentElement.doScroll&&F&&c()}}},isFunction:function(F){return f.type(F)==="function"},isArray:Array.isArray||function(F){return f.type(F)==="array"},isWindow:function(F){return F&&typeof F==="object"&&"setInterval"in F},isNaN:function(F){return F==null||!N.test(F)||isNaN(F)},type:function(F){return F==null?String(F):ra[da.call(F)]||"object"},
isPlainObject:function(F){if(!F||f.type(F)!=="object"||F.nodeType||f.isWindow(F))return false;try{if(F.constructor&&!ba.call(F,"constructor")&&!ba.call(F.constructor.prototype,"isPrototypeOf"))return false}catch($){return false}var fa;for(fa in F);return fa===b||ba.call(F,fa)},isEmptyObject:function(F){for(var $ in F)return false;return true},error:function(F){throw F;},parseJSON:function(F){if(typeof F!=="string"||!F)return null;F=f.trim(F);if(a.JSON&&a.JSON.parse)return a.JSON.parse(F);if(ka.test(F.replace(ma,
"@").replace(na,"]").replace(ua,"")))return(new Function("return "+F))();f.error("Invalid JSON: "+F)},parseXML:function(F){var $,fa;try{if(a.DOMParser){fa=new DOMParser;$=fa.parseFromString(F,"text/xml")}else{$=new ActiveXObject("Microsoft.XMLDOM");$.async="false";$.loadXML(F)}}catch(ja){$=b}if(!$||!$.documentElement||$.getElementsByTagName("parsererror").length)f.error("Invalid XML: "+F);return $},noop:function(){},globalEval:function(F){if(F&&B.test(F))(a.execScript||function($){a.eval.call(a,$)})(F)},
camelCase:function(F){return F.replace(D,"ms-").replace(u,Q)},nodeName:function(F,$){return F.nodeName&&F.nodeName.toUpperCase()===$.toUpperCase()},each:function(F,$,fa){var ja,wa=0,sa=F.length,Ba=sa===b||f.isFunction(F);if(fa)if(Ba)for(ja in F){if($.apply(F[ja],fa)===false)break}else for(;wa<sa;){if($.apply(F[wa++],fa)===false)break}else if(Ba)for(ja in F){if($.call(F[ja],ja,F[ja])===false)break}else for(;wa<sa;)if($.call(F[wa],wa,F[wa++])===false)break;return F},trim:xa?function(F){return F==null?
"":xa.call(F)}:function(F){return F==null?"":F.toString().replace(H,"").replace(J,"")},makeArray:function(F,$){$=$||[];if(F!=null){var fa=f.type(F);F.length==null||fa==="string"||fa==="function"||fa==="regexp"||f.isWindow(F)?qa.call($,F):f.merge($,F)}return $},inArray:function(F,$){if(!$)return-1;if(Da)return Da.call($,F);for(var fa=0,ja=$.length;fa<ja;fa++)if($[fa]===F)return fa;return-1},merge:function(F,$){var fa=F.length,ja=0;if(typeof $.length==="number")for(var wa=$.length;ja<wa;ja++)F[fa++]=
$[ja];else for(;$[ja]!==b;)F[fa++]=$[ja++];F.length=fa;return F},grep:function(F,$,fa){var ja=[],wa;fa=!!fa;for(var sa=0,Ba=F.length;sa<Ba;sa++){wa=!!$(F[sa],sa);fa!==wa&&ja.push(F[sa])}return ja},map:function(F,$,fa){var ja,wa,sa=[],Ba=0,Ca=F.length;if(F instanceof f||Ca!==b&&typeof Ca==="number"&&(Ca>0&&F[0]&&F[Ca-1]||Ca===0||f.isArray(F)))for(;Ba<Ca;Ba++){ja=$(F[Ba],Ba,fa);if(ja!=null)sa[sa.length]=ja}else for(wa in F){ja=$(F[wa],wa,fa);if(ja!=null)sa[sa.length]=ja}return sa.concat.apply([],sa)},
guid:1,proxy:function(F,$){if(typeof $==="string"){var fa=F[$];$=F;F=fa}if(!f.isFunction(F))return b;var ja=Aa.call(arguments,2);fa=function(){return F.apply($,ja.concat(Aa.call(arguments)))};fa.guid=F.guid=F.guid||fa.guid||f.guid++;return fa},access:function(F,$,fa,ja,wa,sa){var Ba=F.length;if(typeof $==="object"){for(var Ca in $)f.access(F,Ca,$[Ca],ja,wa,fa);return F}if(fa!==b){ja=!sa&&ja&&f.isFunction(fa);for(Ca=0;Ca<Ba;Ca++)wa(F[Ca],$,ja?fa.call(F[Ca],Ca,wa(F[Ca],$)):fa,sa);return F}return Ba?
wa(F[0],$):b},now:function(){return(new Date).getTime()},uaMatch:function(F){F=F.toLowerCase();F=Ka.exec(F)||ya.exec(F)||Fa.exec(F)||F.indexOf("compatible")<0&&Ha.exec(F)||[];return{browser:F[1]||"",version:F[2]||"0"}},sub:function(){function F(fa,ja){return new F.fn.init(fa,ja)}f.extend(true,F,this);F.superclass=this;F.fn=F.prototype=this();F.fn.constructor=F;F.sub=this.sub;F.fn.init=function(fa,ja){if(ja&&ja instanceof f&&!(ja instanceof F))ja=F(ja);return f.fn.init.call(this,fa,ja,$)};F.fn.init.prototype=
F.fn;var $=F(W);return F},browser:{}});f.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(F,$){ra["[object "+$+"]"]=$.toLowerCase()});P=f.uaMatch(P);if(P.browser){f.browser[P.browser]=true;f.browser.version=P.version}if(f.browser.webkit)f.browser.safari=true;if(B.test("\u00a0")){H=/^[\s\xA0]+/;J=/[\s\xA0]+$/}o=f(W);if(W.addEventListener)Z=function(){W.removeEventListener("DOMContentLoaded",Z,false);f.ready()};else if(W.attachEvent)Z=function(){if(W.readyState==="complete"){W.detachEvent("onreadystatechange",
Z);f.ready()}};return f}(),V="done fail isResolved isRejected promise then always pipe".split(" "),ea=[].slice;g.extend({_Deferred:function(){var c=[],f,k,m,o={done:function(){if(!m){var r=arguments,B,H,J,N,Y;if(f){Y=f;f=0}B=0;for(H=r.length;B<H;B++){J=r[B];N=g.type(J);if(N==="array")o.done.apply(o,J);else N==="function"&&c.push(J)}Y&&o.resolveWith(Y[0],Y[1])}return this},resolveWith:function(r,B){if(!m&&!f&&!k){B=B||[];k=1;try{for(;c[0];)c.shift().apply(r,B)}finally{f=[r,B];k=0}}return this},resolve:function(){o.resolveWith(this,
arguments);return this},isResolved:function(){return!!(k||f)},cancel:function(){m=1;c=[];return this}};return o},Deferred:function(c){var f=g._Deferred(),k=g._Deferred(),m;g.extend(f,{then:function(o,r){f.done(o).fail(r);return this},always:function(){return f.done.apply(f,arguments).fail.apply(this,arguments)},fail:k.done,rejectWith:k.resolveWith,reject:k.resolve,isRejected:k.isResolved,pipe:function(o,r){return g.Deferred(function(B){g.each({done:[o,"resolve"],fail:[r,"reject"]},function(H,J){var N=
J[0],Y=J[1],ka;g.isFunction(N)?f[H](function(){(ka=N.apply(this,arguments))&&g.isFunction(ka.promise)?ka.promise().then(B.resolve,B.reject):B[Y+"With"](this===f?B:this,[ka])}):f[H](B[Y])})}).promise()},promise:function(o){if(o==null){if(m)return m;m=o={}}for(var r=V.length;r--;)o[V[r]]=f[V[r]];return o}});f.done(k.cancel).fail(f.cancel);delete f.cancel;c&&c.call(f,f);return f},when:function(c){function f(H){return function(J){k[H]=arguments.length>1?ea.call(arguments,0):J;--r||B.resolveWith(B,ea.call(k,
0))}}var k=arguments,m=0,o=k.length,r=o,B=o<=1&&c&&g.isFunction(c.promise)?c:g.Deferred();if(o>1){for(;m<o;m++)if(k[m]&&g.isFunction(k[m].promise))k[m].promise().then(f(m),B.reject);else--r;r||B.resolveWith(B,k)}else if(B!==c)B.resolveWith(B,o?[c]:[]);return B.promise()}});g.support=function(){var c=W.createElement("div"),f=W.documentElement,k,m,o,r,B,H;c.setAttribute("className","t");c.innerHTML="   <link><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type=checkbox>";
k=c.getElementsByTagName("*");m=c.getElementsByTagName("a")[0];if(!k||!k.length||!m)return{};o=W.createElement("select");r=o.appendChild(W.createElement("option"));k=c.getElementsByTagName("input")[0];B={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(m.getAttribute("style")),hrefNormalized:m.getAttribute("href")==="/a",opacity:/^0.55$/.test(m.style.opacity),cssFloat:!!m.style.cssFloat,
checkOn:k.value==="on",optSelected:r.selected,getSetAttribute:c.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};k.checked=true;B.noCloneChecked=k.cloneNode(true).checked;o.disabled=true;B.optDisabled=!r.disabled;try{delete c.test}catch(J){B.deleteExpando=false}if(!c.addEventListener&&c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function(){B.noCloneEvent=
false});c.cloneNode(true).fireEvent("onclick")}k=W.createElement("input");k.value="t";k.setAttribute("type","radio");B.radioValue=k.value==="t";k.setAttribute("checked","checked");c.appendChild(k);m=W.createDocumentFragment();m.appendChild(c.firstChild);B.checkClone=m.cloneNode(true).cloneNode(true).lastChild.checked;c.innerHTML="";c.style.width=c.style.paddingLeft="1px";o=W.getElementsByTagName("body")[0];m=W.createElement(o?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,
background:"none"};o&&g.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(H in r)m.style[H]=r[H];m.appendChild(c);f=o||f;f.insertBefore(m,f.firstChild);B.appendChecked=k.checked;B.boxModel=c.offsetWidth===2;if("zoom"in c.style){c.style.display="inline";c.style.zoom=1;B.inlineBlockNeedsLayout=c.offsetWidth===2;c.style.display="";c.innerHTML="<div style='width:4px;'></div>";B.shrinkWrapBlocks=c.offsetWidth!==2}c.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
o=c.getElementsByTagName("td");k=o[0].offsetHeight===0;o[0].style.display="";o[1].style.display="none";B.reliableHiddenOffsets=k&&o[0].offsetHeight===0;c.innerHTML="";if(W.defaultView&&W.defaultView.getComputedStyle){k=W.createElement("div");k.style.width="0";k.style.marginRight="0";c.appendChild(k);B.reliableMarginRight=(parseInt((W.defaultView.getComputedStyle(k,null)||{marginRight:0}).marginRight,10)||0)===0}m.innerHTML="";f.removeChild(m);if(c.attachEvent)for(H in{submit:1,change:1,focusin:1}){f=
"on"+H;k=f in c;if(!k){c.setAttribute(f,"return;");k=typeof c[f]==="function"}B[H+"Bubbles"]=k}m=m=o=r=o=k=c=k=null;return B}();g.boxModel=g.support.boxModel;var la=/^(?:\{.*\}|\[.*\])$/,ta=/([a-z])([A-Z])/g;g.extend({cache:{},uuid:0,expando:"jQuery"+(g.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(c){c=c.nodeType?g.cache[c[g.expando]]:c[g.expando];return!!c&&!d(c)},data:function(c,f,k,m){if(g.acceptData(c)){var o=
g.expando,r=typeof f==="string",B=c.nodeType,H=B?g.cache:c,J=B?c[g.expando]:c[g.expando]&&g.expando;if(!((!J||m&&J&&H[J]&&!H[J][o])&&r&&k===b)){if(!J)if(B)c[g.expando]=J=++g.uuid;else J=g.expando;if(!H[J]){H[J]={};if(!B)H[J].toJSON=g.noop}if(typeof f==="object"||typeof f==="function")if(m)H[J][o]=g.extend(H[J][o],f);else H[J]=g.extend(H[J],f);c=H[J];if(m){c[o]||(c[o]={});c=c[o]}if(k!==b)c[g.camelCase(f)]=k;if(f==="events"&&!c[f])return c[o]&&c[o].events;if(r){k=c[f];if(k==null)k=c[g.camelCase(f)]}else k=
c;return k}}},removeData:function(c,f,k){if(g.acceptData(c)){var m,o=g.expando,r=c.nodeType,B=r?g.cache:c,H=r?c[g.expando]:g.expando;if(B[H]){if(f)if(m=k?B[H][o]:B[H]){m[f]||(f=g.camelCase(f));delete m[f];if(!d(m))return}if(k){delete B[H][o];if(!d(B[H]))return}f=B[H][o];if(g.support.deleteExpando||!B.setInterval)delete B[H];else B[H]=null;if(f){B[H]={};if(!r)B[H].toJSON=g.noop;B[H][o]=f}else if(r)if(g.support.deleteExpando)delete c[g.expando];else if(c.removeAttribute)c.removeAttribute(g.expando);
else c[g.expando]=null}}},_data:function(c,f,k){return g.data(c,f,k,true)},acceptData:function(c){if(c.nodeName){var f=g.noData[c.nodeName.toLowerCase()];if(f)return!(f===true||c.getAttribute("classid")!==f)}return true}});g.fn.extend({data:function(c,f){var k=null;if(typeof c==="undefined"){if(this.length){k=g.data(this[0]);if(this[0].nodeType===1)for(var m=this[0].attributes,o,r=0,B=m.length;r<B;r++){o=m[r].name;if(o.indexOf("data-")===0){o=g.camelCase(o.substring(5));e(this[0],o,k[o])}}}return k}else if(typeof c===
"object")return this.each(function(){g.data(this,c)});var H=c.split(".");H[1]=H[1]?"."+H[1]:"";if(f===b){k=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(k===b&&this.length){k=g.data(this[0],c);k=e(this[0],c,k)}return k===b&&H[1]?this.data(H[0]):k}else return this.each(function(){var J=g(this),N=[H[0],f];J.triggerHandler("setData"+H[1]+"!",N);g.data(this,c,f);J.triggerHandler("changeData"+H[1]+"!",N)})},removeData:function(c){return this.each(function(){g.removeData(this,c)})}});g.extend({_mark:function(c,
f){if(c){f=(f||"fx")+"mark";g.data(c,f,(g.data(c,f,b,true)||0)+1,true)}},_unmark:function(c,f,k){if(c!==true){k=f;f=c;c=false}if(f){k=k||"fx";var m=k+"mark";if(c=c?0:(g.data(f,m,b,true)||1)-1)g.data(f,m,c,true);else{g.removeData(f,m,true);h(f,k,"mark")}}},queue:function(c,f,k){if(c){f=(f||"fx")+"queue";var m=g.data(c,f,b,true);if(k)if(!m||g.isArray(k))m=g.data(c,f,g.makeArray(k),true);else m.push(k);return m||[]}},dequeue:function(c,f){f=f||"fx";var k=g.queue(c,f),m=k.shift();if(m==="inprogress")m=
k.shift();if(m){f==="fx"&&k.unshift("inprogress");m.call(c,function(){g.dequeue(c,f)})}if(!k.length){g.removeData(c,f+"queue",true);h(c,f,"queue")}}});g.fn.extend({queue:function(c,f){if(typeof c!=="string"){f=c;c="fx"}if(f===b)return g.queue(this[0],c);return this.each(function(){var k=g.queue(this,c,f);c==="fx"&&k[0]!=="inprogress"&&g.dequeue(this,c)})},dequeue:function(c){return this.each(function(){g.dequeue(this,c)})},delay:function(c,f){c=g.fx?g.fx.speeds[c]||c:c;f=f||"fx";return this.queue(f,
function(){var k=this;setTimeout(function(){g.dequeue(k,f)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,f){function k(){--r||m.resolveWith(o,[o])}if(typeof c!=="string"){f=c;c=b}c=c||"fx";var m=g.Deferred(),o=this;f=o.length;var r=1,B=c+"defer",H=c+"queue";c=c+"mark";for(var J;f--;)if(J=g.data(o[f],B,b,true)||(g.data(o[f],H,b,true)||g.data(o[f],c,b,true))&&g.data(o[f],B,g._Deferred(),true)){r++;J.done(k)}k();return m.promise()}});var va=/[\n\t\r]/g,pa=/\s+/,Ea=/\r/g,
Ja=/^(?:button|input)$/i,hb=/^(?:button|input|object|select|textarea)$/i,La=/^a(?:rea)?$/i,ib=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Ma,jb;g.fn.extend({attr:function(c,f){return g.access(this,c,f,true,g.attr)},removeAttr:function(c){return this.each(function(){g.removeAttr(this,c)})},prop:function(c,f){return g.access(this,c,f,true,g.prop)},removeProp:function(c){c=g.propFix[c]||c;return this.each(function(){try{this[c]=
b;delete this[c]}catch(f){}})},addClass:function(c){var f,k,m,o,r,B,H;if(g.isFunction(c))return this.each(function(J){g(this).addClass(c.call(this,J,this.className))});if(c&&typeof c==="string"){f=c.split(pa);k=0;for(m=this.length;k<m;k++){o=this[k];if(o.nodeType===1)if(!o.className&&f.length===1)o.className=c;else{r=" "+o.className+" ";B=0;for(H=f.length;B<H;B++)~r.indexOf(" "+f[B]+" ")||(r+=f[B]+" ");o.className=g.trim(r)}}}return this},removeClass:function(c){var f,k,m,o,r,B,H;if(g.isFunction(c))return this.each(function(J){g(this).removeClass(c.call(this,
J,this.className))});if(c&&typeof c==="string"||c===b){f=(c||"").split(pa);k=0;for(m=this.length;k<m;k++){o=this[k];if(o.nodeType===1&&o.className)if(c){r=(" "+o.className+" ").replace(va," ");B=0;for(H=f.length;B<H;B++)r=r.replace(" "+f[B]+" "," ");o.className=g.trim(r)}else o.className=""}}return this},toggleClass:function(c,f){var k=typeof c,m=typeof f==="boolean";if(g.isFunction(c))return this.each(function(o){g(this).toggleClass(c.call(this,o,this.className,f),f)});return this.each(function(){if(k===
"string")for(var o,r=0,B=g(this),H=f,J=c.split(pa);o=J[r++];){H=m?H:!B.hasClass(o);B[H?"addClass":"removeClass"](o)}else if(k==="undefined"||k==="boolean"){this.className&&g._data(this,"__className__",this.className);this.className=this.className||c===false?"":g._data(this,"__className__")||""}})},hasClass:function(c){c=" "+c+" ";for(var f=0,k=this.length;f<k;f++)if(this[f].nodeType===1&&(" "+this[f].className+" ").replace(va," ").indexOf(c)>-1)return true;return false},val:function(c){var f,k,m=
this[0];if(!arguments.length){if(m){if((f=g.valHooks[m.nodeName.toLowerCase()]||g.valHooks[m.type])&&"get"in f&&(k=f.get(m,"value"))!==b)return k;k=m.value;return typeof k==="string"?k.replace(Ea,""):k==null?"":k}return b}var o=g.isFunction(c);return this.each(function(r){var B=g(this);if(this.nodeType===1){r=o?c.call(this,r,B.val()):c;if(r==null)r="";else if(typeof r==="number")r+="";else if(g.isArray(r))r=g.map(r,function(H){return H==null?"":H+""});f=g.valHooks[this.nodeName.toLowerCase()]||g.valHooks[this.type];
if(!f||!("set"in f)||f.set(this,r,"value")===b)this.value=r}})}});g.extend({valHooks:{option:{get:function(c){var f=c.attributes.value;return!f||f.specified?c.value:c.text}},select:{get:function(c){var f,k=c.selectedIndex,m=[],o=c.options;c=c.type==="select-one";if(k<0)return null;for(var r=c?k:0,B=c?k+1:o.length;r<B;r++){f=o[r];if(f.selected&&(g.support.optDisabled?!f.disabled:f.getAttribute("disabled")===null)&&(!f.parentNode.disabled||!g.nodeName(f.parentNode,"optgroup"))){f=g(f).val();if(c)return f;
m.push(f)}}if(c&&!m.length&&o.length)return g(o[k]).val();return m},set:function(c,f){var k=g.makeArray(f);g(c).find("option").each(function(){this.selected=g.inArray(g(this).val(),k)>=0});if(!k.length)c.selectedIndex=-1;return k}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(c,f,k,m){var o=c.nodeType;if(!c||o===3||o===8||o===2)return b;if(m&&f in g.attrFn)return g(c)[f](k);if(!("getAttribute"in c))return g.prop(c,
f,k);var r,B;if(m=o!==1||!g.isXMLDoc(c)){f=g.attrFix[f]||f;B=g.attrHooks[f];if(!B)if(ib.test(f))B=jb;else if(Ma)B=Ma}if(k!==b)if(k===null){g.removeAttr(c,f);return b}else if(B&&"set"in B&&m&&(r=B.set(c,k,f))!==b)return r;else{c.setAttribute(f,""+k);return k}else if(B&&"get"in B&&m&&(r=B.get(c,f))!==null)return r;else{r=c.getAttribute(f);return r===null?b:r}},removeAttr:function(c,f){var k;if(c.nodeType===1){f=g.attrFix[f]||f;g.attr(c,f,"");c.removeAttribute(f);if(ib.test(f)&&(k=g.propFix[f]||f)in
c)c[k]=false}},attrHooks:{type:{set:function(c,f){if(Ja.test(c.nodeName)&&c.parentNode)g.error("type property can't be changed");else if(!g.support.radioValue&&f==="radio"&&g.nodeName(c,"input")){var k=c.value;c.setAttribute("type",f);if(k)c.value=k;return f}}},value:{get:function(c,f){if(Ma&&g.nodeName(c,"button"))return Ma.get(c,f);return f in c?c.value:null},set:function(c,f,k){if(Ma&&g.nodeName(c,"button"))return Ma.set(c,f,k);c.value=f}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor",
"class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(c,f,k){var m=c.nodeType;if(!c||m===3||m===8||m===2)return b;var o,r;if(m!==1||!g.isXMLDoc(c)){f=g.propFix[f]||f;r=g.propHooks[f]}return k!==b?r&&"set"in r&&(o=r.set(c,k,f))!==b?o:(c[f]=k):r&&"get"in r&&(o=r.get(c,f))!==null?o:c[f]},propHooks:{tabIndex:{get:function(c){var f=c.getAttributeNode("tabindex");
return f&&f.specified?parseInt(f.value,10):hb.test(c.nodeName)||La.test(c.nodeName)&&c.href?0:b}}}});g.attrHooks.tabIndex=g.propHooks.tabIndex;jb={get:function(c,f){var k;return g.prop(c,f)===true||(k=c.getAttributeNode(f))&&k.nodeValue!==false?f.toLowerCase():b},set:function(c,f,k){if(f===false)g.removeAttr(c,k);else{f=g.propFix[k]||k;if(f in c)c[f]=true;c.setAttribute(k,k.toLowerCase())}return k}};if(!g.support.getSetAttribute){Ma=g.valHooks.button={get:function(c,f){return(c=c.getAttributeNode(f))&&
c.nodeValue!==""?c.nodeValue:b},set:function(c,f,k){var m=c.getAttributeNode(k);if(!m){m=W.createAttribute(k);c.setAttributeNode(m)}return m.nodeValue=f+""}};g.each(["width","height"],function(c,f){g.attrHooks[f]=g.extend(g.attrHooks[f],{set:function(k,m){if(m===""){k.setAttribute(f,"auto");return m}}})})}g.support.hrefNormalized||g.each(["href","src","width","height"],function(c,f){g.attrHooks[f]=g.extend(g.attrHooks[f],{get:function(k){k=k.getAttribute(f,2);return k===null?b:k}})});if(!g.support.style)g.attrHooks.style=
{get:function(c){return c.style.cssText.toLowerCase()||b},set:function(c,f){return c.style.cssText=""+f}};if(!g.support.optSelected)g.propHooks.selected=g.extend(g.propHooks.selected,{get:function(){return null}});g.support.checkOn||g.each(["radio","checkbox"],function(){g.valHooks[this]={get:function(c){return c.getAttribute("value")===null?"on":c.value}}});g.each(["radio","checkbox"],function(){g.valHooks[this]=g.extend(g.valHooks[this],{set:function(c,f){if(g.isArray(f))return c.checked=g.inArray(g(c).val(),
f)>=0}})});var Xa=/\.(.*)$/,ab=/^(?:textarea|input|select)$/i,Cb=/\./g,Db=/ /g,Jb=/[^\w\s.|`]/g,Kb=function(c){return c.replace(Jb,"\\$&")};g.event={add:function(c,f,k,m){if(!(c.nodeType===3||c.nodeType===8)){if(k===false)k=j;else if(!k)return;var o,r;if(k.handler){o=k;k=o.handler}if(!k.guid)k.guid=g.guid++;if(r=g._data(c)){var B=r.events,H=r.handle;if(!B)r.events=B={};if(!H)r.handle=H=function(na){return typeof g!=="undefined"&&(!na||g.event.triggered!==na.type)?g.event.handle.apply(H.elem,arguments):
b};H.elem=c;f=f.split(" ");for(var J,N=0,Y;J=f[N++];){r=o?g.extend({},o):{handler:k,data:m};if(J.indexOf(".")>-1){Y=J.split(".");J=Y.shift();r.namespace=Y.slice(0).sort().join(".")}else{Y=[];r.namespace=""}r.type=J;if(!r.guid)r.guid=k.guid;var ka=B[J],ma=g.event.special[J]||{};if(!ka){ka=B[J]=[];if(!ma.setup||ma.setup.call(c,m,Y,H)===false)if(c.addEventListener)c.addEventListener(J,H,false);else c.attachEvent&&c.attachEvent("on"+J,H)}if(ma.add){ma.add.call(c,r);if(!r.handler.guid)r.handler.guid=k.guid}ka.push(r);
g.event.global[J]=true}c=null}}},global:{},remove:function(c,f,k,m){if(!(c.nodeType===3||c.nodeType===8)){if(k===false)k=j;var o,r,B=0,H,J,N,Y,ka,ma,na=g.hasData(c)&&g._data(c),ua=na&&na.events;if(na&&ua){if(f&&f.type){k=f.handler;f=f.type}if(!f||typeof f==="string"&&f.charAt(0)==="."){f=f||"";for(o in ua)g.event.remove(c,o+f)}else{for(f=f.split(" ");o=f[B++];){Y=o;H=o.indexOf(".")<0;J=[];if(!H){J=o.split(".");o=J.shift();N=new RegExp("(^|\\.)"+g.map(J.slice(0).sort(),Kb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(ka=
ua[o])if(k){Y=g.event.special[o]||{};for(r=m||0;r<ka.length;r++){ma=ka[r];if(k.guid===ma.guid){if(H||N.test(ma.namespace)){m==null&&ka.splice(r--,1);Y.remove&&Y.remove.call(c,ma)}if(m!=null)break}}if(ka.length===0||m!=null&&ka.length===1){if(!Y.teardown||Y.teardown.call(c,J)===false)g.removeEvent(c,o,na.handle);delete ua[o]}}else for(r=0;r<ka.length;r++){ma=ka[r];if(H||N.test(ma.namespace)){g.event.remove(c,Y,ma.handler,r);ka.splice(r--,1)}}}if(g.isEmptyObject(ua)){if(f=na.handle)f.elem=null;delete na.events;
delete na.handle;g.isEmptyObject(na)&&g.removeData(c,b,true)}}}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(c,f,k,m){var o=c.type||c,r=[],B;if(o.indexOf("!")>=0){o=o.slice(0,-1);B=true}if(o.indexOf(".")>=0){r=o.split(".");o=r.shift();r.sort()}if(!((!k||g.event.customEvent[o])&&!g.event.global[o])){c=typeof c==="object"?c[g.expando]?c:new g.Event(o,c):new g.Event(o);c.type=o;c.exclusive=B;c.namespace=r.join(".");c.namespace_re=new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.)?")+
"(\\.|$)");if(m||!k){c.preventDefault();c.stopPropagation()}if(k){if(!(k.nodeType===3||k.nodeType===8)){c.result=b;c.target=k;f=f!=null?g.makeArray(f):[];f.unshift(c);r=k;m=o.indexOf(":")<0?"on"+o:"";do{B=g._data(r,"handle");c.currentTarget=r;B&&B.apply(r,f);if(m&&g.acceptData(r)&&r[m]&&r[m].apply(r,f)===false){c.result=false;c.preventDefault()}r=r.parentNode||r.ownerDocument||r===c.target.ownerDocument&&a}while(r&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var H;r=g.event.special[o]||
{};if((!r._default||r._default.call(k.ownerDocument,c)===false)&&!(o==="click"&&g.nodeName(k,"a"))&&g.acceptData(k)){try{if(m&&k[o]){if(H=k[m])k[m]=null;g.event.triggered=o;k[o]()}}catch(J){}if(H)k[m]=H;g.event.triggered=b}}return c.result}}else g.each(g.cache,function(){var N=this[g.expando];N&&N.events&&N.events[o]&&g.event.trigger(c,f,N.handle.elem)})}},handle:function(c){c=g.event.fix(c||a.event);var f=((g._data(this,"events")||{})[c.type]||[]).slice(0),k=!c.exclusive&&!c.namespace,m=Array.prototype.slice.call(arguments,
0);m[0]=c;c.currentTarget=this;for(var o=0,r=f.length;o<r;o++){var B=f[o];if(k||c.namespace_re.test(B.namespace)){c.handler=B.handler;c.data=B.data;c.handleObj=B;B=B.handler.apply(this,m);if(B!==b){c.result=B;if(B===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 pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(c){if(c[g.expando])return c;var f=c;c=g.Event(f);for(var k=this.props.length,m;k;){m=this.props[--k];c[m]=f[m]}if(!c.target)c.target=c.srcElement||W;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){k=c.target.ownerDocument||W;f=k.documentElement;k=k.body;c.pageX=c.clientX+(f&&f.scrollLeft||k&&k.scrollLeft||0)-(f&&f.clientLeft||k&&k.clientLeft||
0);c.pageY=c.clientY+(f&&f.scrollTop||k&&k.scrollTop||0)-(f&&f.clientTop||k&&k.clientTop||0)}if(c.which==null&&(c.charCode!=null||c.keyCode!=null))c.which=c.charCode!=null?c.charCode:c.keyCode;if(!c.metaKey&&c.ctrlKey)c.metaKey=c.ctrlKey;if(!c.which&&c.button!==b)c.which=c.button&1?1:c.button&2?3:c.button&4?2:0;return c},guid:1E8,proxy:g.proxy,special:{ready:{setup:g.bindReady,teardown:g.noop},live:{add:function(c){g.event.add(this,z(c.origType,c.selector),g.extend({},c,{handler:w,guid:c.handler.guid}))},
remove:function(c){g.event.remove(this,z(c.origType,c.selector),c)}},beforeunload:{setup:function(c,f,k){if(g.isWindow(this))this.onbeforeunload=k},teardown:function(c,f){if(this.onbeforeunload===f)this.onbeforeunload=null}}}};g.removeEvent=W.removeEventListener?function(c,f,k){c.removeEventListener&&c.removeEventListener(f,k,false)}:function(c,f,k){c.detachEvent&&c.detachEvent("on"+f,k)};g.Event=function(c,f){if(!this.preventDefault)return new g.Event(c,f);if(c&&c.type){this.originalEvent=c;this.type=
c.type;this.isDefaultPrevented=c.defaultPrevented||c.returnValue===false||c.getPreventDefault&&c.getPreventDefault()?l:j}else this.type=c;f&&g.extend(this,f);this.timeStamp=g.now();this[g.expando]=true};g.Event.prototype={preventDefault:function(){this.isDefaultPrevented=l;var c=this.originalEvent;if(c)if(c.preventDefault)c.preventDefault();else c.returnValue=false},stopPropagation:function(){this.isPropagationStopped=l;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=
true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l;this.stopPropagation()},isDefaultPrevented:j,isPropagationStopped:j,isImmediatePropagationStopped:j};var kb=function(c){var f=c.relatedTarget,k=false,m=c.type;c.type=c.data;if(f!==this){if(f)k=g.contains(this,f);if(!k){g.event.handle.apply(this,arguments);c.type=m}}},lb=function(c){c.type=c.data;g.event.handle.apply(this,arguments)};g.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,f){g.event.special[c]=
{setup:function(k){g.event.add(this,f,k&&k.selector?lb:kb,c)},teardown:function(k){g.event.remove(this,f,k&&k.selector?lb:kb)}}});if(!g.support.submitBubbles)g.event.special.submit={setup:function(){if(g.nodeName(this,"form"))return false;else{g.event.add(this,"click.specialSubmit",function(c){var f=c.target,k=g.nodeName(f,"input")?f.type:"";if((k==="submit"||k==="image")&&g(f).closest("form").length)p("submit",this,arguments)});g.event.add(this,"keypress.specialSubmit",function(c){var f=c.target,
k=g.nodeName(f,"input")?f.type:"";if((k==="text"||k==="password")&&g(f).closest("form").length&&c.keyCode===13)p("submit",this,arguments)})}},teardown:function(){g.event.remove(this,".specialSubmit")}};if(!g.support.changeBubbles){var Sa,mb=function(c){var f=g.nodeName(c,"input")?c.type:"",k=c.value;if(f==="radio"||f==="checkbox")k=c.checked;else if(f==="select-multiple")k=c.selectedIndex>-1?g.map(c.options,function(m){return m.selected}).join("-"):"";else if(g.nodeName(c,"select"))k=c.selectedIndex;
return k},Ua=function(c,f){var k=c.target,m,o;if(!(!ab.test(k.nodeName)||k.readOnly)){m=g._data(k,"_change_data");o=mb(k);if(c.type!=="focusout"||k.type!=="radio")g._data(k,"_change_data",o);if(!(m===b||o===m))if(m!=null||o){c.type="change";c.liveFired=b;g.event.trigger(c,f,k)}}};g.event.special.change={filters:{focusout:Ua,beforedeactivate:Ua,click:function(c){var f=c.target,k=g.nodeName(f,"input")?f.type:"";if(k==="radio"||k==="checkbox"||g.nodeName(f,"select"))Ua.call(this,c)},keydown:function(c){var f=
c.target,k=g.nodeName(f,"input")?f.type:"";if(c.keyCode===13&&!g.nodeName(f,"textarea")||c.keyCode===32&&(k==="checkbox"||k==="radio")||k==="select-multiple")Ua.call(this,c)},beforeactivate:function(c){c=c.target;g._data(c,"_change_data",mb(c))}},setup:function(){if(this.type==="file")return false;for(var c in Sa)g.event.add(this,c+".specialChange",Sa[c]);return ab.test(this.nodeName)},teardown:function(){g.event.remove(this,".specialChange");return ab.test(this.nodeName)}};Sa=g.event.special.change.filters;
Sa.focus=Sa.beforeactivate}g.support.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},function(c,f){function k(o){var r=g.event.fix(o);r.type=f;r.originalEvent={};g.event.trigger(r,null,r.target);r.isDefaultPrevented()&&o.preventDefault()}var m=0;g.event.special[f]={setup:function(){m++===0&&W.addEventListener(c,k,true)},teardown:function(){--m===0&&W.removeEventListener(c,k,true)}}});g.each(["bind","one"],function(c,f){g.fn[f]=function(k,m,o){var r;if(typeof k==="object"){for(var B in k)this[f](B,
m,k[B],o);return this}if(arguments.length===2||m===false){o=m;m=b}if(f==="one"){r=function(J){g(this).unbind(J,r);return o.apply(this,arguments)};r.guid=o.guid||g.guid++}else r=o;if(k==="unload"&&f!=="one")this.one(k,m,o);else{B=0;for(var H=this.length;B<H;B++)g.event.add(this[B],k,r,m)}return this}});g.fn.extend({unbind:function(c,f){if(typeof c==="object"&&!c.preventDefault)for(var k in c)this.unbind(k,c[k]);else{k=0;for(var m=this.length;k<m;k++)g.event.remove(this[k],c,f)}return this},delegate:function(c,
f,k,m){return this.live(f,k,m,c)},undelegate:function(c,f,k){return arguments.length===0?this.unbind("live"):this.die(f,null,k,c)},trigger:function(c,f){return this.each(function(){g.event.trigger(c,f,this)})},triggerHandler:function(c,f){if(this[0])return g.event.trigger(c,f,this[0],true)},toggle:function(c){var f=arguments,k=c.guid||g.guid++,m=0,o=function(r){var B=(g.data(this,"lastToggle"+c.guid)||0)%m;g.data(this,"lastToggle"+c.guid,B+1);r.preventDefault();return f[B].apply(this,arguments)||
false};for(o.guid=k;m<f.length;)f[m++].guid=k;return this.click(o)},hover:function(c,f){return this.mouseenter(c).mouseleave(f||c)}});var bb={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};g.each(["live","die"],function(c,f){g.fn[f]=function(k,m,o,r){var B=0,H,J,N=r||this.selector,Y=r?this:g(this.context);if(typeof k==="object"&&!k.preventDefault){for(H in k)Y[f](H,m,k[H],N);return this}if(f==="die"&&!k&&r&&r.charAt(0)==="."){Y.unbind(r);return this}if(m===false||g.isFunction(m)){o=
m||j;m=b}for(k=(k||"").split(" ");(r=k[B++])!=null;){H=Xa.exec(r);J="";if(H){J=H[0];r=r.replace(Xa,"")}if(r==="hover")k.push("mouseenter"+J,"mouseleave"+J);else{H=r;if(bb[r]){k.push(bb[r]+J);r+=J}else r=(bb[r]||r)+J;if(f==="live"){J=0;for(var ka=Y.length;J<ka;J++)g.event.add(Y[J],"live."+z(r,N),{data:m,selector:N,handler:o,origType:r,origHandler:o,preType:H})}else Y.unbind("live."+z(r,N),o)}}return this}});g.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,f){g.fn[f]=function(k,m){if(m==null){m=k;k=null}return arguments.length>0?this.bind(f,k,m):this.trigger(f)};if(g.attrFn)g.attrFn[f]=true});(function(){function c(u,D,Q,P,U,Z){U=0;for(var da=P.length;U<da;U++){var ba=P[U];if(ba){var qa=false;for(ba=ba[u];ba;){if(ba.sizcache===Q){qa=P[ba.sizset];break}if(ba.nodeType===1&&!Z){ba.sizcache=Q;ba.sizset=U}if(ba.nodeName.toLowerCase()===D){qa=ba;break}ba=ba[u]}P[U]=qa}}}function f(u,D,Q,P,U,Z){U=0;for(var da=P.length;U<da;U++){var ba=P[U];if(ba){var qa=
false;for(ba=ba[u];ba;){if(ba.sizcache===Q){qa=P[ba.sizset];break}if(ba.nodeType===1){if(!Z){ba.sizcache=Q;ba.sizset=U}if(typeof D!=="string"){if(ba===D){qa=true;break}}else if(N.filter(D,[ba]).length>0){qa=ba;break}}ba=ba[u]}P[U]=qa}}}var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,o=Object.prototype.toString,r=false,B=true,H=/\\/g,J=/\W/;[0,0].sort(function(){B=false;return 0});var N=function(u,D,Q,P){Q=
Q||[];var U=D=D||W;if(D.nodeType!==1&&D.nodeType!==9)return[];if(!u||typeof u!=="string")return Q;var Z,da,ba,qa,Aa,xa=true,Da=N.isXML(D),ra=[],F=u;do{k.exec("");if(Z=k.exec(F)){F=Z[3];ra.push(Z[1]);if(Z[2]){qa=Z[3];break}}}while(Z);if(ra.length>1&&ka.exec(u))if(ra.length===2&&Y.relative[ra[0]])da=Ha(ra[0]+ra[1],D);else for(da=Y.relative[ra[0]]?[D]:N(ra.shift(),D);ra.length;){u=ra.shift();if(Y.relative[u])u+=ra.shift();da=Ha(u,da)}else{if(!P&&ra.length>1&&D.nodeType===9&&!Da&&Y.match.ID.test(ra[0])&&
!Y.match.ID.test(ra[ra.length-1])){Z=N.find(ra.shift(),D,Da);D=Z.expr?N.filter(Z.expr,Z.set)[0]:Z.set[0]}if(D){Z=P?{expr:ra.pop(),set:ua(P)}:N.find(ra.pop(),ra.length===1&&(ra[0]==="~"||ra[0]==="+")&&D.parentNode?D.parentNode:D,Da);da=Z.expr?N.filter(Z.expr,Z.set):Z.set;if(ra.length>0)ba=ua(da);else xa=false;for(;ra.length;){Z=Aa=ra.pop();if(Y.relative[Aa])Z=ra.pop();else Aa="";if(Z==null)Z=D;Y.relative[Aa](ba,Z,Da)}}else ba=[]}ba||(ba=da);ba||N.error(Aa||u);if(o.call(ba)==="[object Array]")if(xa)if(D&&
D.nodeType===1)for(u=0;ba[u]!=null;u++){if(ba[u]&&(ba[u]===true||ba[u].nodeType===1&&N.contains(D,ba[u])))Q.push(da[u])}else for(u=0;ba[u]!=null;u++)ba[u]&&ba[u].nodeType===1&&Q.push(da[u]);else Q.push.apply(Q,ba);else ua(ba,Q);if(qa){N(qa,U,Q,P);N.uniqueSort(Q)}return Q};N.uniqueSort=function(u){if(ya){r=B;u.sort(ya);if(r)for(var D=1;D<u.length;D++)u[D]===u[D-1]&&u.splice(D--,1)}return u};N.matches=function(u,D){return N(u,null,null,D)};N.matchesSelector=function(u,D){return N(D,null,null,[u]).length>
0};N.find=function(u,D,Q){var P;if(!u)return[];for(var U=0,Z=Y.order.length;U<Z;U++){var da,ba=Y.order[U];if(da=Y.leftMatch[ba].exec(u)){var qa=da[1];da.splice(1,1);if(qa.substr(qa.length-1)!=="\\"){da[1]=(da[1]||"").replace(H,"");P=Y.find[ba](da,D,Q);if(P!=null){u=u.replace(Y.match[ba],"");break}}}}P||(P=typeof D.getElementsByTagName!=="undefined"?D.getElementsByTagName("*"):[]);return{set:P,expr:u}};N.filter=function(u,D,Q,P){for(var U,Z,da=u,ba=[],qa=D,Aa=D&&D[0]&&N.isXML(D[0]);u&&D.length;){for(var xa in Y.filter)if((U=
Y.leftMatch[xa].exec(u))!=null&&U[2]){var Da,ra,F=Y.filter[xa];ra=U[1];Z=false;U.splice(1,1);if(ra.substr(ra.length-1)!=="\\"){if(qa===ba)ba=[];if(Y.preFilter[xa])if(U=Y.preFilter[xa](U,qa,Q,ba,P,Aa)){if(U===true)continue}else Z=Da=true;if(U)for(var $=0;(ra=qa[$])!=null;$++)if(ra){Da=F(ra,U,$,qa);var fa=P^!!Da;if(Q&&Da!=null)if(fa)Z=true;else qa[$]=false;else if(fa){ba.push(ra);Z=true}}if(Da!==b){Q||(qa=ba);u=u.replace(Y.match[xa],"");if(!Z)return[];break}}}if(u===da)if(Z==null)N.error(u);else break;
da=u}return qa};N.error=function(u){throw"Syntax error, unrecognized expression: "+u;};var Y=N.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(u){return u.getAttribute("href")},type:function(u){return u.getAttribute("type")}},relative:{"+":function(u,D){var Q=typeof D==="string",P=Q&&!J.test(D);Q=Q&&!P;if(P)D=D.toLowerCase();P=0;for(var U=u.length,Z;P<U;P++)if(Z=u[P]){for(;(Z=Z.previousSibling)&&Z.nodeType!==
1;);u[P]=Q||Z&&Z.nodeName.toLowerCase()===D?Z||false:Z===D}Q&&N.filter(D,u,true)},">":function(u,D){var Q,P=typeof D==="string",U=0,Z=u.length;if(P&&!J.test(D))for(D=D.toLowerCase();U<Z;U++){if(Q=u[U]){Q=Q.parentNode;u[U]=Q.nodeName.toLowerCase()===D?Q:false}}else{for(;U<Z;U++)if(Q=u[U])u[U]=P?Q.parentNode:Q.parentNode===D;P&&N.filter(D,u,true)}},"":function(u,D,Q){var P,U=m++,Z=f;if(typeof D==="string"&&!J.test(D)){P=D=D.toLowerCase();Z=c}Z("parentNode",D,U,u,P,Q)},"~":function(u,D,Q){var P,U=m++,
Z=f;if(typeof D==="string"&&!J.test(D)){P=D=D.toLowerCase();Z=c}Z("previousSibling",D,U,u,P,Q)}},find:{ID:function(u,D,Q){if(typeof D.getElementById!=="undefined"&&!Q)return(u=D.getElementById(u[1]))&&u.parentNode?[u]:[]},NAME:function(u,D){if(typeof D.getElementsByName!=="undefined"){var Q=[];D=D.getElementsByName(u[1]);for(var P=0,U=D.length;P<U;P++)D[P].getAttribute("name")===u[1]&&Q.push(D[P]);return Q.length===0?null:Q}},TAG:function(u,D){if(typeof D.getElementsByTagName!=="undefined")return D.getElementsByTagName(u[1])}},
preFilter:{CLASS:function(u,D,Q,P,U,Z){u=" "+u[1].replace(H,"")+" ";if(Z)return u;Z=0;for(var da;(da=D[Z])!=null;Z++)if(da)if(U^(da.className&&(" "+da.className+" ").replace(/[\t\n\r]/g," ").indexOf(u)>=0))Q||P.push(da);else if(Q)D[Z]=false;return false},ID:function(u){return u[1].replace(H,"")},TAG:function(u){return u[1].replace(H,"").toLowerCase()},CHILD:function(u){if(u[1]==="nth"){u[2]||N.error(u[0]);u[2]=u[2].replace(/^\+|\s*/g,"");var D=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(u[2]==="even"&&"2n"||
u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=D[1]+(D[2]||1)-0;u[3]=D[3]-0}else u[2]&&N.error(u[0]);u[0]=m++;return u},ATTR:function(u,D,Q,P,U,Z){D=u[1]=u[1].replace(H,"");if(!Z&&Y.attrMap[D])u[1]=Y.attrMap[D];u[4]=(u[4]||u[5]||"").replace(H,"");if(u[2]==="~=")u[4]=" "+u[4]+" ";return u},PSEUDO:function(u,D,Q,P,U){if(u[1]==="not")if((k.exec(u[3])||"").length>1||/^\w/.test(u[3]))u[3]=N(u[3],null,null,D);else{u=N.filter(u[3],D,Q,true^U);Q||P.push.apply(P,u);return false}else if(Y.match.POS.test(u[0])||
Y.match.CHILD.test(u[0]))return true;return u},POS:function(u){u.unshift(true);return u}},filters:{enabled:function(u){return u.disabled===false&&u.type!=="hidden"},disabled:function(u){return u.disabled===true},checked:function(u){return u.checked===true},selected:function(u){return u.selected===true},parent:function(u){return!!u.firstChild},empty:function(u){return!u.firstChild},has:function(u,D,Q){return!!N(Q[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){var D=
u.getAttribute("type"),Q=u.type;return u.nodeName.toLowerCase()==="input"&&"text"===Q&&(D===Q||D===null)},radio:function(u){return u.nodeName.toLowerCase()==="input"&&"radio"===u.type},checkbox:function(u){return u.nodeName.toLowerCase()==="input"&&"checkbox"===u.type},file:function(u){return u.nodeName.toLowerCase()==="input"&&"file"===u.type},password:function(u){return u.nodeName.toLowerCase()==="input"&&"password"===u.type},submit:function(u){var D=u.nodeName.toLowerCase();return(D==="input"||
D==="button")&&"submit"===u.type},image:function(u){return u.nodeName.toLowerCase()==="input"&&"image"===u.type},reset:function(u){var D=u.nodeName.toLowerCase();return(D==="input"||D==="button")&&"reset"===u.type},button:function(u){var D=u.nodeName.toLowerCase();return D==="input"&&"button"===u.type||D==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)},focus:function(u){return u===u.ownerDocument.activeElement}},setFilters:{first:function(u,D){return D===0},last:function(u,
D,Q,P){return D===P.length-1},even:function(u,D){return D%2===0},odd:function(u,D){return D%2===1},lt:function(u,D,Q){return D<Q[3]-0},gt:function(u,D,Q){return D>Q[3]-0},nth:function(u,D,Q){return Q[3]-0===D},eq:function(u,D,Q){return Q[3]-0===D}},filter:{PSEUDO:function(u,D,Q,P){var U=D[1],Z=Y.filters[U];if(Z)return Z(u,Q,D,P);else if(U==="contains")return(u.textContent||u.innerText||N.getText([u])||"").indexOf(D[3])>=0;else if(U==="not"){D=D[3];Q=0;for(P=D.length;Q<P;Q++)if(D[Q]===u)return false;
return true}else N.error(U)},CHILD:function(u,D){var Q=D[1],P=u;switch(Q){case "only":case "first":for(;P=P.previousSibling;)if(P.nodeType===1)return false;if(Q==="first")return true;P=u;case "last":for(;P=P.nextSibling;)if(P.nodeType===1)return false;return true;case "nth":Q=D[2];var U=D[3];if(Q===1&&U===0)return true;D=D[0];var Z=u.parentNode;if(Z&&(Z.sizcache!==D||!u.nodeIndex)){var da=0;for(P=Z.firstChild;P;P=P.nextSibling)if(P.nodeType===1)P.nodeIndex=++da;Z.sizcache=D}u=u.nodeIndex-U;return Q===
0?u===0:u%Q===0&&u/Q>=0}},ID:function(u,D){return u.nodeType===1&&u.getAttribute("id")===D},TAG:function(u,D){return D==="*"&&u.nodeType===1||u.nodeName.toLowerCase()===D},CLASS:function(u,D){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(D)>-1},ATTR:function(u,D){var Q=D[1];u=Y.attrHandle[Q]?Y.attrHandle[Q](u):u[Q]!=null?u[Q]:u.getAttribute(Q);Q=u+"";var P=D[2];D=D[4];return u==null?P==="!=":P==="="?Q===D:P==="*="?Q.indexOf(D)>=0:P==="~="?(" "+Q+" ").indexOf(D)>=0:!D?Q&&u!==false:
P==="!="?Q!==D:P==="^="?Q.indexOf(D)===0:P==="$="?Q.substr(Q.length-D.length)===D:P==="|="?Q===D||Q.substr(0,D.length+1)===D+"-":false},POS:function(u,D,Q,P){var U=Y.setFilters[D[2]];if(U)return U(u,Q,D,P)}}},ka=Y.match.POS,ma=function(u,D){return"\\"+(D-0+1)};for(var na in Y.match){Y.match[na]=new RegExp(Y.match[na].source+/(?![^\[]*\])(?![^\(]*\))/.source);Y.leftMatch[na]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Y.match[na].source.replace(/\\(\d+)/g,ma))}var ua=function(u,D){u=Array.prototype.slice.call(u,
0);if(D){D.push.apply(D,u);return D}return u};try{Array.prototype.slice.call(W.documentElement.childNodes,0)}catch(Ka){ua=function(u,D){var Q=0;D=D||[];if(o.call(u)==="[object Array]")Array.prototype.push.apply(D,u);else if(typeof u.length==="number")for(var P=u.length;Q<P;Q++)D.push(u[Q]);else for(;u[Q];Q++)D.push(u[Q]);return D}}var ya,Fa;if(W.documentElement.compareDocumentPosition)ya=function(u,D){if(u===D){r=true;return 0}if(!u.compareDocumentPosition||!D.compareDocumentPosition)return u.compareDocumentPosition?
-1:1;return u.compareDocumentPosition(D)&4?-1:1};else{ya=function(u,D){if(u===D){r=true;return 0}else if(u.sourceIndex&&D.sourceIndex)return u.sourceIndex-D.sourceIndex;var Q,P,U=[],Z=[];Q=u.parentNode;P=D.parentNode;var da=Q;if(Q===P)return Fa(u,D);else if(Q){if(!P)return 1}else return-1;for(;da;){U.unshift(da);da=da.parentNode}for(da=P;da;){Z.unshift(da);da=da.parentNode}Q=U.length;P=Z.length;for(da=0;da<Q&&da<P;da++)if(U[da]!==Z[da])return Fa(U[da],Z[da]);return da===Q?Fa(u,Z[da],-1):Fa(U[da],
D,1)};Fa=function(u,D,Q){if(u===D)return Q;for(u=u.nextSibling;u;){if(u===D)return-1;u=u.nextSibling}return 1}}N.getText=function(u){for(var D="",Q,P=0;u[P];P++){Q=u[P];if(Q.nodeType===3||Q.nodeType===4)D+=Q.nodeValue;else if(Q.nodeType!==8)D+=N.getText(Q.childNodes)}return D};(function(){var u=W.createElement("div"),D="script"+(new Date).getTime(),Q=W.documentElement;u.innerHTML="<a name='"+D+"'/>";Q.insertBefore(u,Q.firstChild);if(W.getElementById(D)){Y.find.ID=function(P,U,Z){if(typeof U.getElementById!==
"undefined"&&!Z)return(U=U.getElementById(P[1]))?U.id===P[1]||typeof U.getAttributeNode!=="undefined"&&U.getAttributeNode("id").nodeValue===P[1]?[U]:b:[]};Y.filter.ID=function(P,U){var Z=typeof P.getAttributeNode!=="undefined"&&P.getAttributeNode("id");return P.nodeType===1&&Z&&Z.nodeValue===U}}Q.removeChild(u);Q=u=null})();(function(){var u=W.createElement("div");u.appendChild(W.createComment(""));if(u.getElementsByTagName("*").length>0)Y.find.TAG=function(D,Q){Q=Q.getElementsByTagName(D[1]);if(D[1]===
"*"){D=[];for(var P=0;Q[P];P++)Q[P].nodeType===1&&D.push(Q[P]);Q=D}return Q};u.innerHTML="<a href='#'></a>";if(u.firstChild&&typeof u.firstChild.getAttribute!=="undefined"&&u.firstChild.getAttribute("href")!=="#")Y.attrHandle.href=function(D){return D.getAttribute("href",2)};u=null})();W.querySelectorAll&&function(){var u=N,D=W.createElement("div");D.innerHTML="<p class='TEST'></p>";if(!(D.querySelectorAll&&D.querySelectorAll(".TEST").length===0)){N=function(P,U,Z,da){U=U||W;if(!da&&!N.isXML(U)){var ba=
/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(P);if(ba&&(U.nodeType===1||U.nodeType===9))if(ba[1])return ua(U.getElementsByTagName(P),Z);else if(ba[2]&&Y.find.CLASS&&U.getElementsByClassName)return ua(U.getElementsByClassName(ba[2]),Z);if(U.nodeType===9){if(P==="body"&&U.body)return ua([U.body],Z);else if(ba&&ba[3]){var qa=U.getElementById(ba[3]);if(qa&&qa.parentNode){if(qa.id===ba[3])return ua([qa],Z)}else return ua([],Z)}try{return ua(U.querySelectorAll(P),Z)}catch(Aa){}}else if(U.nodeType===1&&U.nodeName.toLowerCase()!==
"object"){ba=U;var xa=(qa=U.getAttribute("id"))||"__sizzle__",Da=U.parentNode,ra=/^\s*[+~]/.test(P);if(qa)xa=xa.replace(/'/g,"\\$&");else U.setAttribute("id",xa);if(ra&&Da)U=U.parentNode;try{if(!ra||Da)return ua(U.querySelectorAll("[id='"+xa+"'] "+P),Z)}catch(F){}finally{qa||ba.removeAttribute("id")}}}return u(P,U,Z,da)};for(var Q in u)N[Q]=u[Q];D=null}}();(function(){var u=W.documentElement,D=u.matchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.msMatchesSelector;if(D){var Q=!D.call(W.createElement("div"),
"div"),P=false;try{D.call(W.documentElement,"[test!='']:sizzle")}catch(U){P=true}N.matchesSelector=function(Z,da){da=da.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!N.isXML(Z))try{if(P||!Y.match.PSEUDO.test(da)&&!/!=/.test(da)){var ba=D.call(Z,da);if(ba||!Q||Z.document&&Z.document.nodeType!==11)return ba}}catch(qa){}return N(da,null,null,[Z]).length>0}}})();(function(){var u=W.createElement("div");u.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!u.getElementsByClassName||u.getElementsByClassName("e").length===
0)){u.lastChild.className="e";if(u.getElementsByClassName("e").length!==1){Y.order.splice(1,0,"CLASS");Y.find.CLASS=function(D,Q,P){if(typeof Q.getElementsByClassName!=="undefined"&&!P)return Q.getElementsByClassName(D[1])};u=null}}})();N.contains=W.documentElement.contains?function(u,D){return u!==D&&(u.contains?u.contains(D):true)}:W.documentElement.compareDocumentPosition?function(u,D){return!!(u.compareDocumentPosition(D)&16)}:function(){return false};N.isXML=function(u){return(u=(u?u.ownerDocument||
u:0).documentElement)?u.nodeName!=="HTML":false};var Ha=function(u,D){var Q,P=[],U="";for(D=D.nodeType?[D]:D;Q=Y.match.PSEUDO.exec(u);){U+=Q[0];u=u.replace(Y.match.PSEUDO,"")}u=Y.relative[u]?u+"*":u;Q=0;for(var Z=D.length;Q<Z;Q++)N(u,D[Q],P);return N.filter(U,P)};g.find=N;g.expr=N.selectors;g.expr[":"]=g.expr.filters;g.unique=N.uniqueSort;g.text=N.getText;g.isXMLDoc=N.isXML;g.contains=N.contains})();var Lb=/Until$/,Mb=/^(?:parents|prevUntil|prevAll)/,Nb=/,/,Eb=/^.[^:#\[\.,]*$/,Ob=Array.prototype.slice,
nb=g.expr.match.POS,Pb={children:true,contents:true,next:true,prev:true};g.fn.extend({find:function(c){var f=this,k,m;if(typeof c!=="string")return g(c).filter(function(){k=0;for(m=f.length;k<m;k++)if(g.contains(f[k],this))return true});var o=this.pushStack("","find",c),r,B,H;k=0;for(m=this.length;k<m;k++){r=o.length;g.find(c,this[k],o);if(k>0)for(B=r;B<o.length;B++)for(H=0;H<r;H++)if(o[H]===o[B]){o.splice(B--,1);break}}return o},has:function(c){var f=g(c);return this.filter(function(){for(var k=
0,m=f.length;k<m;k++)if(g.contains(this,f[k]))return true})},not:function(c){return this.pushStack(K(this,c,false),"not",c)},filter:function(c){return this.pushStack(K(this,c,true),"filter",c)},is:function(c){return!!c&&(typeof c==="string"?g.filter(c,this).length>0:this.filter(c).length>0)},closest:function(c,f){var k=[],m,o,r=this[0];if(g.isArray(c)){var B,H={},J=1;if(r&&c.length){m=0;for(o=c.length;m<o;m++){B=c[m];H[B]||(H[B]=nb.test(B)?g(B,f||this.context):B)}for(;r&&r.ownerDocument&&r!==f;){for(B in H){c=
H[B];if(c.jquery?c.index(r)>-1:g(r).is(c))k.push({selector:B,elem:r,level:J})}r=r.parentNode;J++}}return k}B=nb.test(c)||typeof c!=="string"?g(c,f||this.context):0;m=0;for(o=this.length;m<o;m++)for(r=this[m];r;)if(B?B.index(r)>-1:g.find.matchesSelector(r,c)){k.push(r);break}else{r=r.parentNode;if(!r||!r.ownerDocument||r===f||r.nodeType===11)break}k=k.length>1?g.unique(k):k;return this.pushStack(k,"closest",c)},index:function(c){if(!c)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof c===
"string")return g.inArray(this[0],g(c));return g.inArray(c.jquery?c[0]:c,this)},add:function(c,f){c=typeof c==="string"?g(c,f):g.makeArray(c&&c.nodeType?[c]:c);f=g.merge(this.get(),c);return this.pushStack(G(c[0])||G(f[0])?f:g.unique(f))},andSelf:function(){return this.add(this.prevObject)}});g.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return g.dir(c,"parentNode")},parentsUntil:function(c,f,k){return g.dir(c,"parentNode",k)},next:function(c){return g.nth(c,
2,"nextSibling")},prev:function(c){return g.nth(c,2,"previousSibling")},nextAll:function(c){return g.dir(c,"nextSibling")},prevAll:function(c){return g.dir(c,"previousSibling")},nextUntil:function(c,f,k){return g.dir(c,"nextSibling",k)},prevUntil:function(c,f,k){return g.dir(c,"previousSibling",k)},siblings:function(c){return g.sibling(c.parentNode.firstChild,c)},children:function(c){return g.sibling(c.firstChild)},contents:function(c){return g.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:
g.makeArray(c.childNodes)}},function(c,f){g.fn[c]=function(k,m){var o=g.map(this,f,k),r=Ob.call(arguments);Lb.test(c)||(m=k);if(m&&typeof m==="string")o=g.filter(m,o);o=this.length>1&&!Pb[c]?g.unique(o):o;if((this.length>1||Nb.test(m))&&Mb.test(c))o=o.reverse();return this.pushStack(o,c,r.join(","))}});g.extend({filter:function(c,f,k){if(k)c=":not("+c+")";return f.length===1?g.find.matchesSelector(f[0],c)?[f[0]]:[]:g.find.matches(c,f)},dir:function(c,f,k){var m=[];for(c=c[f];c&&c.nodeType!==9&&(k===
b||c.nodeType!==1||!g(c).is(k));){c.nodeType===1&&m.push(c);c=c[f]}return m},nth:function(c,f,k){f=f||1;for(var m=0;c;c=c[k])if(c.nodeType===1&&++m===f)break;return c},sibling:function(c,f){for(var k=[];c;c=c.nextSibling)c.nodeType===1&&c!==f&&k.push(c);return k}});var Qb=/ jQuery\d+="(?:\d+|null)"/g,cb=/^\s+/,ob=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,pb=/<([\w:]+)/,Rb=/<tbody/i,Sb=/<|&#?\w+;/,qb=/<(?:script|object|embed|option|style)/i,rb=/checked\s*(?:[^=]|=\s*.checked.)/i,
Tb=/\/(java|ecma)script/i,Fb=/^\s*<!(?:\[CDATA\[|\-\-)/,Ga={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};Ga.optgroup=Ga.option;Ga.tbody=Ga.tfoot=Ga.colgroup=Ga.caption=Ga.thead;Ga.th=Ga.td;if(!g.support.htmlSerialize)Ga._default=
[1,"div<div>","</div>"];g.fn.extend({text:function(c){if(g.isFunction(c))return this.each(function(f){var k=g(this);k.text(c.call(this,f,k.text()))});if(typeof c!=="object"&&c!==b)return this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(c));return g.text(this)},wrapAll:function(c){if(g.isFunction(c))return this.each(function(k){g(this).wrapAll(c.call(this,k))});if(this[0]){var f=g(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&f.insertBefore(this[0]);f.map(function(){for(var k=
this;k.firstChild&&k.firstChild.nodeType===1;)k=k.firstChild;return k}).append(this)}return this},wrapInner:function(c){if(g.isFunction(c))return this.each(function(f){g(this).wrapInner(c.call(this,f))});return this.each(function(){var f=g(this),k=f.contents();k.length?k.wrapAll(c):f.append(c)})},wrap:function(c){return this.each(function(){g(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(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(f){this.parentNode.insertBefore(f,this)});else if(arguments.length){var c=g(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(f){this.parentNode.insertBefore(f,this.nextSibling)});else if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,g(arguments[0]).toArray());return c}},remove:function(c,f){for(var k=0,m;(m=this[k])!=null;k++)if(!c||g.filter(c,[m]).length){if(!f&&m.nodeType===1){g.cleanData(m.getElementsByTagName("*"));g.cleanData([m])}m.parentNode&&m.parentNode.removeChild(m)}return this},empty:function(){for(var c=0,f;(f=this[c])!=null;c++)for(f.nodeType===1&&g.cleanData(f.getElementsByTagName("*"));f.firstChild;)f.removeChild(f.firstChild);
return this},clone:function(c,f){c=c==null?false:c;f=f==null?c:f;return this.map(function(){return g.clone(this,c,f)})},html:function(c){if(c===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Qb,""):null;else if(typeof c==="string"&&!qb.test(c)&&(g.support.leadingWhitespace||!cb.test(c))&&!Ga[(pb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(ob,"<$1></$2>");try{for(var f=0,k=this.length;f<k;f++)if(this[f].nodeType===1){g.cleanData(this[f].getElementsByTagName("*"));this[f].innerHTML=
c}}catch(m){this.empty().append(c)}}else g.isFunction(c)?this.each(function(o){var r=g(this);r.html(c.call(this,o,r.html()))}):this.empty().append(c);return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(g.isFunction(c))return this.each(function(f){var k=g(this),m=k.html();k.replaceWith(c.call(this,f,m))});if(typeof c!=="string")c=g(c).detach();return this.each(function(){var f=this.nextSibling,k=this.parentNode;g(this).remove();f?g(f).before(c):g(k).append(c)})}else return this.length?
this.pushStack(g(g.isFunction(c)?c():c),"replaceWith",c):this},detach:function(c){return this.remove(c,true)},domManip:function(c,f,k){var m,o,r,B=c[0],H=[];if(!g.support.checkClone&&arguments.length===3&&typeof B==="string"&&rb.test(B))return this.each(function(){g(this).domManip(c,f,k,true)});if(g.isFunction(B))return this.each(function(ka){var ma=g(this);c[0]=B.call(this,ka,f?ma.html():b);ma.domManip(c,f,k)});if(this[0]){m=B&&B.parentNode;m=g.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===
this.length?{fragment:m}:g.buildFragment(c,this,H);r=m.fragment;if(o=r.childNodes.length===1?(r=r.firstChild):r.firstChild){f=f&&g.nodeName(o,"tr");for(var J=0,N=this.length,Y=N-1;J<N;J++)k.call(f?A(this[J],o):this[J],m.cacheable||N>1&&J<Y?g.clone(r,true,true):r)}H.length&&g.each(H,M)}return this}});g.buildFragment=function(c,f,k){var m,o,r,B;if(f&&f[0])B=f[0].ownerDocument||f[0];B.createDocumentFragment||(B=W);if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&B===W&&c[0].charAt(0)==="<"&&
!qb.test(c[0])&&(g.support.checkClone||!rb.test(c[0]))){o=true;if((r=g.fragments[c[0]])&&r!==1)m=r}if(!m){m=B.createDocumentFragment();g.clean(c,B,m,k)}if(o)g.fragments[c[0]]=r?m:1;return{fragment:m,cacheable:o}};g.fragments={};g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,f){g.fn[c]=function(k){var m=[];k=g(k);var o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&k.length===1){k[f](this[0]);
return this}else{o=0;for(var r=k.length;o<r;o++){var B=(o>0?this.clone(true):this).get();g(k[o])[f](B);m=m.concat(B)}return this.pushStack(m,c,k.selector)}}});g.extend({clone:function(c,f,k){var m=c.cloneNode(true),o,r,B;if((!g.support.noCloneEvent||!g.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!g.isXMLDoc(c)){C(c,m);o=I(c);r=I(m);for(B=0;o[B];++B)r[B]&&C(o[B],r[B])}if(f){s(c,m);if(k){o=I(c);r=I(m);for(B=0;o[B];++B)s(o[B],r[B])}}return m},clean:function(c,f,k,m){f=f||W;if(typeof f.createElement===
"undefined")f=f.ownerDocument||f[0]&&f[0].ownerDocument||W;for(var o=[],r,B=0,H;(H=c[B])!=null;B++){if(typeof H==="number")H+="";if(H){if(typeof H==="string")if(Sb.test(H)){H=H.replace(ob,"<$1></$2>");r=(pb.exec(H)||["",""])[1].toLowerCase();var J=Ga[r]||Ga._default,N=J[0],Y=f.createElement("div");for(Y.innerHTML=J[1]+H+J[2];N--;)Y=Y.lastChild;if(!g.support.tbody){N=Rb.test(H);J=r==="table"&&!N?Y.firstChild&&Y.firstChild.childNodes:J[1]==="<table>"&&!N?Y.childNodes:[];for(r=J.length-1;r>=0;--r)g.nodeName(J[r],
"tbody")&&!J[r].childNodes.length&&J[r].parentNode.removeChild(J[r])}!g.support.leadingWhitespace&&cb.test(H)&&Y.insertBefore(f.createTextNode(cb.exec(H)[0]),Y.firstChild);H=Y.childNodes}else H=f.createTextNode(H);var ka;if(!g.support.appendChecked)if(H[0]&&typeof(ka=H.length)==="number")for(r=0;r<ka;r++)y(H[r]);else y(H);if(H.nodeType)o.push(H);else o=g.merge(o,H)}}if(k){c=function(ma){return!ma.type||Tb.test(ma.type)};for(B=0;o[B];B++)if(m&&g.nodeName(o[B],"script")&&(!o[B].type||o[B].type.toLowerCase()===
"text/javascript"))m.push(o[B].parentNode?o[B].parentNode.removeChild(o[B]):o[B]);else{if(o[B].nodeType===1){f=g.grep(o[B].getElementsByTagName("script"),c);o.splice.apply(o,[B+1,0].concat(f))}k.appendChild(o[B])}}return o},cleanData:function(c){for(var f,k,m=g.cache,o=g.expando,r=g.event.special,B=g.support.deleteExpando,H=0,J;(J=c[H])!=null;H++)if(!(J.nodeName&&g.noData[J.nodeName.toLowerCase()]))if(k=J[g.expando]){if((f=m[k]&&m[k][o])&&f.events){for(var N in f.events)r[N]?g.event.remove(J,N):g.removeEvent(J,
N,f.handle);if(f.handle)f.handle.elem=null}if(B)delete J[g.expando];else J.removeAttribute&&J.removeAttribute(g.expando);delete m[k]}}});var db=/alpha\([^)]*\)/i,Ub=/opacity=([^)]*)/,Vb=/([A-Z]|^ms)/g,sb=/^-?\d+(?:px)?$/i,Wb=/^-?\d/,Xb=/^([\-+])=([\-+.\de]+)/,Yb={position:"absolute",visibility:"hidden",display:"block"},Gb=["Left","Right"],Hb=["Top","Bottom"],Pa,tb,ub;g.fn.css=function(c,f){if(arguments.length===2&&f===b)return this;return g.access(this,c,f,true,function(k,m,o){return o!==b?g.style(k,
m,o):g.css(k,m)})};g.extend({cssHooks:{opacity:{get:function(c,f){if(f){c=Pa(c,"opacity","opacity");return c===""?"1":c}else return c.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":g.support.cssFloat?"cssFloat":"styleFloat"},style:function(c,f,k,m){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var o,r=g.camelCase(f),B=c.style,H=g.cssHooks[r];f=g.cssProps[r]||r;if(k!==b){m=typeof k;if(m===
"string"&&(o=Xb.exec(k))){k=+(o[1]+1)*+o[2]+parseFloat(g.css(c,f));m="number"}if(!(k==null||m==="number"&&isNaN(k))){if(m==="number"&&!g.cssNumber[r])k+="px";if(!H||!("set"in H)||(k=H.set(c,k))!==b)try{B[f]=k}catch(J){}}}else{if(H&&"get"in H&&(o=H.get(c,false,m))!==b)return o;return B[f]}}},css:function(c,f,k){var m,o;f=g.camelCase(f);o=g.cssHooks[f];f=g.cssProps[f]||f;if(f==="cssFloat")f="float";if(o&&"get"in o&&(m=o.get(c,true,k))!==b)return m;else if(Pa)return Pa(c,f)},swap:function(c,f,k){var m=
{};for(var o in f){m[o]=c.style[o];c.style[o]=f[o]}k.call(c);for(o in f)c.style[o]=m[o]}});g.curCSS=g.css;g.each(["height","width"],function(c,f){g.cssHooks[f]={get:function(k,m,o){var r;if(m){if(k.offsetWidth!==0)return v(k,f,o);else g.swap(k,Yb,function(){r=v(k,f,o)});return r}},set:function(k,m){if(sb.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!g.support.opacity)g.cssHooks.opacity={get:function(c,f){return Ub.test((f&&c.currentStyle?c.currentStyle.filter:c.style.filter)||
"")?parseFloat(RegExp.$1)/100+"":f?"1":""},set:function(c,f){var k=c.style;c=c.currentStyle;var m=g.isNaN(f)?"":"alpha(opacity="+f*100+")",o=c&&c.filter||k.filter||"";k.zoom=1;if(f>=1&&g.trim(o.replace(db,""))===""){k.removeAttribute("filter");if(c&&!c.filter)return}k.filter=db.test(o)?o.replace(db,m):o+" "+m}};g(function(){if(!g.support.reliableMarginRight)g.cssHooks.marginRight={get:function(c,f){var k;g.swap(c,{display:"inline-block"},function(){k=f?Pa(c,"margin-right","marginRight"):c.style.marginRight});
return k}}});if(W.defaultView&&W.defaultView.getComputedStyle)tb=function(c,f){var k,m;f=f.replace(Vb,"-$1").toLowerCase();if(!(m=c.ownerDocument.defaultView))return b;if(m=m.getComputedStyle(c,null)){k=m.getPropertyValue(f);if(k===""&&!g.contains(c.ownerDocument.documentElement,c))k=g.style(c,f)}return k};if(W.documentElement.currentStyle)ub=function(c,f){var k,m=c.currentStyle&&c.currentStyle[f],o=c.runtimeStyle&&c.runtimeStyle[f],r=c.style;if(!sb.test(m)&&Wb.test(m)){k=r.left;if(o)c.runtimeStyle.left=
c.currentStyle.left;r.left=f==="fontSize"?"1em":m||0;m=r.pixelLeft+"px";r.left=k;if(o)c.runtimeStyle.left=o}return m===""?"auto":m};Pa=tb||ub;if(g.expr&&g.expr.filters){g.expr.filters.hidden=function(c){var f=c.offsetHeight;return c.offsetWidth===0&&f===0||!g.support.reliableHiddenOffsets&&(c.style.display||g.css(c,"display"))==="none"};g.expr.filters.visible=function(c){return!g.expr.filters.hidden(c)}}var Zb=/%20/g,Ib=/\[\]$/,vb=/\r?\n/g,$b=/#.*$/,ac=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
cc=/^(?:GET|HEAD)$/,dc=/^\/\//,wb=/\?/,ec=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,fc=/^(?:select|textarea)/i,fb=/\s+/,gc=/([?&])_=[^&]*/,xb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,yb=g.fn.load,Ya={},zb={},Na,Oa,Ab=["*/"]+["*"];try{Na=ha.href}catch(mc){Na=W.createElement("a");Na.href="";Na=Na.href}Oa=xb.exec(Na.toLowerCase())||[];g.fn.extend({load:function(c,f,k){if(typeof c!=="string"&&yb)return yb.apply(this,arguments);else if(!this.length)return this;var m=c.indexOf(" ");
if(m>=0){var o=c.slice(m,c.length);c=c.slice(0,m)}m="GET";if(f)if(g.isFunction(f)){k=f;f=b}else if(typeof f==="object"){f=g.param(f,g.ajaxSettings.traditional);m="POST"}var r=this;g.ajax({url:c,type:m,dataType:"html",data:f,complete:function(B,H,J){J=B.responseText;if(B.isResolved()){B.done(function(N){J=N});r.html(o?g("<div>").append(J.replace(ec,"")).find(o):J)}k&&r.each(k,[J,H,B])}});return this},serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
g.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||fc.test(this.nodeName)||bc.test(this.type))}).map(function(c,f){c=g(this).val();return c==null?null:g.isArray(c)?g.map(c,function(k){return{name:f.name,value:k.replace(vb,"\r\n")}}):{name:f.name,value:c.replace(vb,"\r\n")}}).get()}});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,f){g.fn[f]=function(k){return this.bind(f,k)}});g.each(["get","post"],function(c,
f){g[f]=function(k,m,o,r){if(g.isFunction(m)){r=r||o;o=m;m=b}return g.ajax({type:f,url:k,data:m,success:o,dataType:r})}});g.extend({getScript:function(c,f){return g.get(c,b,f,"script")},getJSON:function(c,f,k){return g.get(c,f,k,"json")},ajaxSetup:function(c,f){if(f)T(c,g.ajaxSettings);else{f=c;c=g.ajaxSettings}T(c,f);return c},ajaxSettings:{url:Na,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Oa[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ab},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":true,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:q(Ya),ajaxTransport:q(zb),ajax:function(c,f){function k(P,U,Z,da){if(ya!==2){ya=2;Ka&&clearTimeout(Ka);
ua=b;ma=da||"";u.readyState=P>0?4:0;var ba,qa,Aa;da=U;Z=Z?X(m,u,Z):b;var xa;if(P>=200&&P<300||P===304){if(m.ifModified){if(xa=u.getResponseHeader("Last-Modified"))g.lastModified[N]=xa;if(xa=u.getResponseHeader("Etag"))g.etag[N]=xa}if(P===304){da="notmodified";ba=true}else try{qa=ia(m,Z);da="success";ba=true}catch(Da){da="parsererror";Aa=Da}}else{Aa=da;if(!da||P){da="error";if(P<0)P=0}}u.status=P;u.statusText=""+(U||da);ba?B.resolveWith(o,[qa,da,u]):B.rejectWith(o,[u,da,Aa]);u.statusCode(J);J=b;if(Fa)r.trigger("ajax"+
(ba?"Success":"Error"),[u,m,ba?qa:Aa]);H.resolveWith(o,[u,da]);if(Fa){r.trigger("ajaxComplete",[u,m]);--g.active||g.event.trigger("ajaxStop")}}}if(typeof c==="object"){f=c;c=b}f=f||{};var m=g.ajaxSetup({},f),o=m.context||m,r=o!==m&&(o.nodeType||o instanceof g)?g(o):g.event,B=g.Deferred(),H=g._Deferred(),J=m.statusCode||{},N,Y={},ka={},ma,na,ua,Ka,ya=0,Fa,Ha,u={readyState:0,setRequestHeader:function(P,U){if(!ya){var Z=P.toLowerCase();P=ka[Z]=ka[Z]||P;Y[P]=U}return this},getAllResponseHeaders:function(){return ya===
2?ma:null},getResponseHeader:function(P){var U;if(ya===2){if(!na)for(na={};U=ac.exec(ma);)na[U[1].toLowerCase()]=U[2];U=na[P.toLowerCase()]}return U===b?null:U},overrideMimeType:function(P){if(!ya)m.mimeType=P;return this},abort:function(P){P=P||"abort";ua&&ua.abort(P);k(0,P);return this}};B.promise(u);u.success=u.done;u.error=u.fail;u.complete=H.done;u.statusCode=function(P){if(P){var U;if(ya<2)for(U in P)J[U]=[J[U],P[U]];else{U=P[u.status];u.then(U,U)}}return this};m.url=((c||m.url)+"").replace($b,
"").replace(dc,Oa[1]+"//");m.dataTypes=g.trim(m.dataType||"*").toLowerCase().split(fb);if(m.crossDomain==null){c=xb.exec(m.url.toLowerCase());m.crossDomain=!!(c&&(c[1]!=Oa[1]||c[2]!=Oa[2]||(c[3]||(c[1]==="http:"?80:443))!=(Oa[3]||(Oa[1]==="http:"?80:443))))}if(m.data&&m.processData&&typeof m.data!=="string")m.data=g.param(m.data,m.traditional);O(Ya,m,f,u);if(ya===2)return false;Fa=m.global;m.type=m.type.toUpperCase();m.hasContent=!cc.test(m.type);Fa&&g.active++===0&&g.event.trigger("ajaxStart");if(!m.hasContent){if(m.data){m.url+=
(wb.test(m.url)?"&":"?")+m.data;delete m.data}N=m.url;if(m.cache===false){c=g.now();var D=m.url.replace(gc,"$1_="+c);m.url=D+(D===m.url?(wb.test(m.url)?"&":"?")+"_="+c:"")}}if(m.data&&m.hasContent&&m.contentType!==false||f.contentType)u.setRequestHeader("Content-Type",m.contentType);if(m.ifModified){N=N||m.url;g.lastModified[N]&&u.setRequestHeader("If-Modified-Since",g.lastModified[N]);g.etag[N]&&u.setRequestHeader("If-None-Match",g.etag[N])}u.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?
m.accepts[m.dataTypes[0]]+(m.dataTypes[0]!=="*"?", "+Ab+"; q=0.01":""):m.accepts["*"]);for(Ha in m.headers)u.setRequestHeader(Ha,m.headers[Ha]);if(m.beforeSend&&(m.beforeSend.call(o,u,m)===false||ya===2)){u.abort();return false}for(Ha in{success:1,error:1,complete:1})u[Ha](m[Ha]);if(ua=O(zb,m,f,u)){u.readyState=1;Fa&&r.trigger("ajaxSend",[u,m]);if(m.async&&m.timeout>0)Ka=setTimeout(function(){u.abort("timeout")},m.timeout);try{ya=1;ua.send(Y,k)}catch(Q){ya<2?k(-1,Q):g.error(Q)}}else k(-1,"No Transport");
return u},param:function(c,f){var k=[],m=function(r,B){B=g.isFunction(B)?B():B;k[k.length]=encodeURIComponent(r)+"="+encodeURIComponent(B)};if(f===b)f=g.ajaxSettings.traditional;if(g.isArray(c)||c.jquery&&!g.isPlainObject(c))g.each(c,function(){m(this.name,this.value)});else for(var o in c)ca(o,c[o],f,m);return k.join("&").replace(Zb,"+")}});g.extend({active:0,lastModified:{},etag:{}});var hc=g.now(),Va=/(\=)\?(&|$)|\?\?/i;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return g.expando+"_"+
hc++}});g.ajaxPrefilter("json jsonp",function(c,f,k){f=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==false&&(Va.test(c.url)||f&&Va.test(c.data))){var m,o=c.jsonpCallback=g.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,r=a[o],B=c.url,H=c.data,J="$1"+o+"$2";if(c.jsonp!==false){B=B.replace(Va,J);if(c.url===B){if(f)H=H.replace(Va,J);if(c.data===H)B+=(/\?/.test(B)?"&":"?")+c.jsonp+"="+o}}c.url=B;c.data=H;a[o]=function(N){m=
[N]};k.always(function(){a[o]=r;m&&g.isFunction(r)&&a[o](m[0])});c.converters["script json"]=function(){m||g.error(o+" was not called");return m[0]};c.dataTypes[0]="json";return"script"}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){g.globalEval(c);return c}}});g.ajaxPrefilter("script",function(c){if(c.cache===b)c.cache=false;if(c.crossDomain){c.type=
"GET";c.global=false}});g.ajaxTransport("script",function(c){if(c.crossDomain){var f,k=W.head||W.getElementsByTagName("head")[0]||W.documentElement;return{send:function(m,o){f=W.createElement("script");f.async="async";if(c.scriptCharset)f.charset=c.scriptCharset;f.src=c.url;f.onload=f.onreadystatechange=function(r,B){if(B||!f.readyState||/loaded|complete/.test(f.readyState)){f.onload=f.onreadystatechange=null;k&&f.parentNode&&k.removeChild(f);f=b;B||o(200,"success")}};k.insertBefore(f,k.firstChild)},
abort:function(){f&&f.onload(0,1)}}}});var eb=a.ActiveXObject?function(){for(var c in Ra)Ra[c](0,1)}:false,ic=0,Ra;g.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&oa()||x()}:oa;(function(c){g.extend(g.support,{ajax:!!c,cors:!!c&&"withCredentials"in c})})(g.ajaxSettings.xhr());g.support.ajax&&g.ajaxTransport(function(c){if(!c.crossDomain||g.support.cors){var f;return{send:function(k,m){var o=c.xhr(),r,B;c.username?o.open(c.type,c.url,c.async,c.username,c.password):o.open(c.type,
c.url,c.async);if(c.xhrFields)for(B in c.xhrFields)o[B]=c.xhrFields[B];c.mimeType&&o.overrideMimeType&&o.overrideMimeType(c.mimeType);if(!c.crossDomain&&!k["X-Requested-With"])k["X-Requested-With"]="XMLHttpRequest";try{for(B in k)o.setRequestHeader(B,k[B])}catch(H){}o.send(c.hasContent&&c.data||null);f=function(J,N){var Y,ka,ma,na,ua;try{if(f&&(N||o.readyState===4)){f=b;if(r){o.onreadystatechange=g.noop;eb&&delete Ra[r]}if(N)o.readyState!==4&&o.abort();else{Y=o.status;ma=o.getAllResponseHeaders();
na={};if((ua=o.responseXML)&&ua.documentElement)na.xml=ua;na.text=o.responseText;try{ka=o.statusText}catch(Ka){ka=""}if(!Y&&c.isLocal&&!c.crossDomain)Y=na.text?200:404;else if(Y===1223)Y=204}}}catch(ya){N||m(-1,ya)}na&&m(Y,ka,na,ma)};if(!c.async||o.readyState===4)f();else{r=++ic;if(eb){if(!Ra){Ra={};g(a).unload(eb)}Ra[r]=f}o.onreadystatechange=f}},abort:function(){f&&f(0,1)}}}});var Za={},Ia,Qa,jc=/^(?:toggle|show|hide)$/,kc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Wa,gb=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Ta;g.fn.extend({show:function(c,f,k){if(c||c===0)return this.animate(R("show",3),c,f,k);else{k=0;for(var m=this.length;k<m;k++){c=this[k];if(c.style){f=c.style.display;if(!g._data(c,"olddisplay")&&f==="none")f=c.style.display="";f===""&&g.css(c,"display")==="none"&&g._data(c,"olddisplay",aa(c.nodeName))}}for(k=0;k<m;k++){c=this[k];if(c.style){f=c.style.display;if(f===""||f==="none")c.style.display=
g._data(c,"olddisplay")||""}}return this}},hide:function(c,f,k){if(c||c===0)return this.animate(R("hide",3),c,f,k);else{c=0;for(f=this.length;c<f;c++)if(this[c].style){k=g.css(this[c],"display");k!=="none"&&!g._data(this[c],"olddisplay")&&g._data(this[c],"olddisplay",k)}for(c=0;c<f;c++)if(this[c].style)this[c].style.display="none";return this}},_toggle:g.fn.toggle,toggle:function(c,f,k){var m=typeof c==="boolean";if(g.isFunction(c)&&g.isFunction(f))this._toggle.apply(this,arguments);else c==null||
m?this.each(function(){var o=m?c:g(this).is(":hidden");g(this)[o?"show":"hide"]()}):this.animate(R("toggle",3),c,f,k);return this},fadeTo:function(c,f,k,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:f},c,k,m)},animate:function(c,f,k,m){var o=g.speed(f,k,m);if(g.isEmptyObject(c))return this.each(o.complete,[false]);c=g.extend({},c);return this[o.queue===false?"each":"queue"](function(){o.queue===false&&g._mark(this);var r=g.extend({},o),B=this.nodeType===1,H=B&&g(this).is(":hidden"),
J,N,Y,ka,ma;r.animatedProperties={};for(Y in c){J=g.camelCase(Y);if(Y!==J){c[J]=c[Y];delete c[Y]}N=c[J];if(g.isArray(N)){r.animatedProperties[J]=N[1];N=c[J]=N[0]}else r.animatedProperties[J]=r.specialEasing&&r.specialEasing[J]||r.easing||"swing";if(N==="hide"&&H||N==="show"&&!H)return r.complete.call(this);if(B&&(J==="height"||J==="width")){r.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(g.css(this,"display")==="inline"&&g.css(this,"float")==="none")if(g.support.inlineBlockNeedsLayout){N=
aa(this.nodeName);if(N==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}else this.style.display="inline-block"}}if(r.overflow!=null)this.style.overflow="hidden";for(Y in c){B=new g.fx(this,r,Y);N=c[Y];if(jc.test(N))B[N==="toggle"?H?"show":"hide":N]();else{J=kc.exec(N);ka=B.cur();if(J){N=parseFloat(J[2]);ma=J[3]||(g.cssNumber[Y]?"":"px");if(ma!=="px"){g.style(this,Y,(N||1)+ma);ka=(N||1)/B.cur()*ka;g.style(this,Y,ka+ma)}if(J[1])N=(J[1]==="-="?-1:1)*N+
ka;B.custom(ka,N,ma)}else B.custom(ka,N,"")}}return true})},stop:function(c,f){c&&this.queue([]);this.each(function(){var k=g.timers,m=k.length;for(f||g._unmark(true,this);m--;)if(k[m].elem===this){f&&k[m](true);k.splice(m,1)}});f||this.dequeue();return this}});g.each({slideDown:R("show",1),slideUp:R("hide",1),slideToggle:R("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,f){g.fn[c]=function(k,m,o){return this.animate(f,k,m,o)}});g.extend({speed:function(c,
f,k){var m=c&&typeof c==="object"?g.extend({},c):{complete:k||!k&&f||g.isFunction(c)&&c,duration:c,easing:k&&f||f&&!g.isFunction(f)&&f};m.duration=g.fx.off?0:typeof m.duration==="number"?m.duration:m.duration in g.fx.speeds?g.fx.speeds[m.duration]:g.fx.speeds._default;m.old=m.complete;m.complete=function(o){g.isFunction(m.old)&&m.old.call(this);if(m.queue!==false)g.dequeue(this);else o!==false&&g._unmark(this)};return m},easing:{linear:function(c,f,k,m){return k+m*c},swing:function(c,f,k,m){return(-Math.cos(c*
Math.PI)/2+0.5)*m+k}},timers:[],fx:function(c,f,k){this.options=f;this.elem=c;this.prop=k;f.orig=f.orig||{}}});g.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(g.fx.step[this.prop]||g.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var c,f=g.css(this.elem,this.prop);return isNaN(c=parseFloat(f))?!f||f==="auto"?0:f:c},custom:function(c,f,k){function m(B){return o.step(B)}
var o=this,r=g.fx;this.startTime=Ta||E();this.start=c;this.end=f;this.unit=k||this.unit||(g.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;m.elem=this.elem;if(m()&&g.timers.push(m)&&!Wa)Wa=setInterval(r.tick,r.interval)},show:function(){this.options.orig[this.prop]=g.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());g(this.elem).show()},hide:function(){this.options.orig[this.prop]=g.style(this.elem,this.prop);
this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var f=Ta||E(),k=true,m=this.elem,o=this.options,r;if(c||f>=o.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();o.animatedProperties[this.prop]=true;for(r in o.animatedProperties)if(o.animatedProperties[r]!==true)k=false;if(k){o.overflow!=null&&!g.support.shrinkWrapBlocks&&g.each(["","X","Y"],function(H,J){m.style["overflow"+J]=o.overflow[H]});o.hide&&g(m).hide();if(o.hide||o.show)for(var B in o.animatedProperties)g.style(m,
B,o.orig[B]);o.complete.call(m)}return false}else{if(o.duration==Infinity)this.now=f;else{c=f-this.startTime;this.state=c/o.duration;this.pos=g.easing[o.animatedProperties[this.prop]](this.state,c,0,1,o.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};g.extend(g.fx,{tick:function(){for(var c=g.timers,f=0;f<c.length;++f)c[f]()||c.splice(f--,1);c.length||g.fx.stop()},interval:13,stop:function(){clearInterval(Wa);Wa=null},speeds:{slow:600,fast:200,_default:400},
step:{opacity:function(c){g.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(g.expr&&g.expr.filters)g.expr.filters.animated=function(c){return g.grep(g.timers,function(f){return c===f.elem}).length};var lc=/^t(?:able|d|h)$/i,Bb=/^(?:body|html)$/i;g.fn.offset="getBoundingClientRect"in W.documentElement?function(c){var f=this[0],k;
if(c)return this.each(function(B){g.offset.setOffset(this,c,B)});if(!f||!f.ownerDocument)return null;if(f===f.ownerDocument.body)return g.offset.bodyOffset(f);try{k=f.getBoundingClientRect()}catch(m){}var o=f.ownerDocument,r=o.documentElement;if(!k||!g.contains(r,f))return k?{top:k.top,left:k.left}:{top:0,left:0};f=o.body;o=ga(o);return{top:k.top+(o.pageYOffset||g.support.boxModel&&r.scrollTop||f.scrollTop)-(r.clientTop||f.clientTop||0),left:k.left+(o.pageXOffset||g.support.boxModel&&r.scrollLeft||
f.scrollLeft)-(r.clientLeft||f.clientLeft||0)}}:function(c){var f=this[0];if(c)return this.each(function(Y){g.offset.setOffset(this,c,Y)});if(!f||!f.ownerDocument)return null;if(f===f.ownerDocument.body)return g.offset.bodyOffset(f);g.offset.initialize();var k,m=f.offsetParent,o=f,r=f.ownerDocument,B=r.documentElement,H=r.body;k=(r=r.defaultView)?r.getComputedStyle(f,null):f.currentStyle;for(var J=f.offsetTop,N=f.offsetLeft;(f=f.parentNode)&&f!==H&&f!==B;){if(g.offset.supportsFixedPosition&&k.position===
"fixed")break;k=r?r.getComputedStyle(f,null):f.currentStyle;J-=f.scrollTop;N-=f.scrollLeft;if(f===m){J+=f.offsetTop;N+=f.offsetLeft;if(g.offset.doesNotAddBorder&&!(g.offset.doesAddBorderForTableAndCells&&lc.test(f.nodeName))){J+=parseFloat(k.borderTopWidth)||0;N+=parseFloat(k.borderLeftWidth)||0}o=m;m=f.offsetParent}if(g.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){J+=parseFloat(k.borderTopWidth)||0;N+=parseFloat(k.borderLeftWidth)||0}k=k}if(k.position==="relative"||k.position===
"static"){J+=H.offsetTop;N+=H.offsetLeft}if(g.offset.supportsFixedPosition&&k.position==="fixed"){J+=Math.max(B.scrollTop,H.scrollTop);N+=Math.max(B.scrollLeft,H.scrollLeft)}return{top:J,left:N}};g.offset={initialize:function(){var c=W.body,f=W.createElement("div"),k,m,o,r=parseFloat(g.css(c,"marginTop"))||0;g.extend(f.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});f.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(f,c.firstChild);k=f.firstChild;m=k.firstChild;o=k.nextSibling.firstChild.firstChild;this.doesNotAddBorder=m.offsetTop!==5;this.doesAddBorderForTableAndCells=o.offsetTop===5;m.style.position="fixed";m.style.top="20px";this.supportsFixedPosition=m.offsetTop===20||m.offsetTop===15;m.style.position=m.style.top="";k.style.overflow="hidden";k.style.position="relative";this.subtractsBorderForOverflowNotVisible=m.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==r;c.removeChild(f);
g.offset.initialize=g.noop},bodyOffset:function(c){var f=c.offsetTop,k=c.offsetLeft;g.offset.initialize();if(g.offset.doesNotIncludeMarginInBodyOffset){f+=parseFloat(g.css(c,"marginTop"))||0;k+=parseFloat(g.css(c,"marginLeft"))||0}return{top:f,left:k}},setOffset:function(c,f,k){var m=g.css(c,"position");if(m==="static")c.style.position="relative";var o=g(c),r=o.offset(),B=g.css(c,"top"),H=g.css(c,"left"),J={},N={};if((m==="absolute"||m==="fixed")&&g.inArray("auto",[B,H])>-1){N=o.position();m=N.top;
H=N.left}else{m=parseFloat(B)||0;H=parseFloat(H)||0}if(g.isFunction(f))f=f.call(c,k,r);if(f.top!=null)J.top=f.top-r.top+m;if(f.left!=null)J.left=f.left-r.left+H;"using"in f?f.using.call(c,J):o.css(J)}};g.fn.extend({position:function(){if(!this[0])return null;var c=this[0],f=this.offsetParent(),k=this.offset(),m=Bb.test(f[0].nodeName)?{top:0,left:0}:f.offset();k.top-=parseFloat(g.css(c,"marginTop"))||0;k.left-=parseFloat(g.css(c,"marginLeft"))||0;m.top+=parseFloat(g.css(f[0],"borderTopWidth"))||0;
m.left+=parseFloat(g.css(f[0],"borderLeftWidth"))||0;return{top:k.top-m.top,left:k.left-m.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||W.body;c&&!Bb.test(c.nodeName)&&g.css(c,"position")==="static";)c=c.offsetParent;return c})}});g.each(["Left","Top"],function(c,f){var k="scroll"+f;g.fn[k]=function(m){var o,r;if(m===b){o=this[0];if(!o)return null;return(r=ga(o))?"pageXOffset"in r?r[c?"pageYOffset":"pageXOffset"]:g.support.boxModel&&r.document.documentElement[k]||
r.document.body[k]:o[k]}return this.each(function(){if(r=ga(this))r.scrollTo(!c?m:g(r).scrollLeft(),c?m:g(r).scrollTop());else this[k]=m})}});g.each(["Height","Width"],function(c,f){var k=f.toLowerCase();g.fn["inner"+f]=function(){var m=this[0];return m&&m.style?parseFloat(g.css(m,k,"padding")):null};g.fn["outer"+f]=function(m){var o=this[0];return o&&o.style?parseFloat(g.css(o,k,m?"margin":"border")):null};g.fn[k]=function(m){var o=this[0];if(!o)return m==null?null:this;if(g.isFunction(m))return this.each(function(H){var J=
g(this);J[k](m.call(this,H,J[k]()))});if(g.isWindow(o)){var r=o.document.documentElement["client"+f],B=o.document.body;return o.document.compatMode==="CSS1Compat"&&r||B&&B["client"+f]||r}else if(o.nodeType===9)return Math.max(o.documentElement["client"+f],o.body["scroll"+f],o.documentElement["scroll"+f],o.body["offset"+f],o.documentElement["offset"+f]);else if(m===b){o=g.css(o,k);r=parseFloat(o);return g.isNaN(r)?o:r}else return this.css(k,typeof m==="string"?m:m+"px")}});a.jQuery=a.$=g})(window);
jQuery.noConflict();jQuery.fn.extend({_wsHide:jQuery.fn.hide,_wsShow:jQuery.fn.show,hide:function(){this._wsHide.apply(this,arguments);return this.addClass("hidden")},show:function(){this.removeClass("hidden");return this._wsShow.apply(this,arguments)}});
(function(){var a=this,b=a._,e={},d=Array.prototype,h=Object.prototype,j=d.slice,l=d.unshift,p=h.toString,w=h.hasOwnProperty,z=d.forEach,G=d.map,K=d.reduce,A=d.reduceRight,s=d.filter,C=d.every,I=d.some,S=d.indexOf,y=d.lastIndexOf;h=Array.isArray;var M=Object.keys,v=function(x){return new X(x)};if(typeof module!=="undefined"&&module.exports){module.exports=v;v._=v}else a._=v;v.VERSION="1.1.4";var q=v.each=v.forEach=function(x,E,L){if(x!=null)if(z&&x.forEach===z)x.forEach(E,L);else if(v.isNumber(x.length))for(var R=
0,aa=x.length;R<aa;R++){if(E.call(L,x[R],R,x)===e)return}else for(R in x)if(w.call(x,R))if(E.call(L,x[R],R,x)===e)return};v.map=function(x,E,L){var R=[];if(x==null)return R;if(G&&x.map===G)return x.map(E,L);q(x,function(aa,ga,W){R[R.length]=E.call(L,aa,ga,W)});return R};v.reduce=v.foldl=v.inject=function(x,E,L,R){var aa=L!==void 0;if(x==null)x=[];if(K&&x.reduce===K){if(R)E=v.bind(E,R);return aa?x.reduce(E,L):x.reduce(E)}q(x,function(ga,W,za){if(!aa&&W===0){L=ga;aa=true}else L=E.call(R,L,ga,W,za)});
if(!aa)throw new TypeError("Reduce of empty array with no initial value");return L};v.reduceRight=v.foldr=function(x,E,L,R){if(x==null)x=[];if(A&&x.reduceRight===A){if(R)E=v.bind(E,R);return L!==void 0?x.reduceRight(E,L):x.reduceRight(E)}x=(v.isArray(x)?x.slice():v.toArray(x)).reverse();return v.reduce(x,E,L,R)};v.find=v.detect=function(x,E,L){var R;O(x,function(aa,ga,W){if(E.call(L,aa,ga,W)){R=aa;return true}});return R};v.filter=v.select=function(x,E,L){var R=[];if(x==null)return R;if(s&&x.filter===
s)return x.filter(E,L);q(x,function(aa,ga,W){if(E.call(L,aa,ga,W))R[R.length]=aa});return R};v.reject=function(x,E,L){var R=[];if(x==null)return R;q(x,function(aa,ga,W){E.call(L,aa,ga,W)||(R[R.length]=aa)});return R};v.every=v.all=function(x,E,L){E=E||v.identity;var R=true;if(x==null)return R;if(C&&x.every===C)return x.every(E,L);q(x,function(aa,ga,W){if(!(R=R&&E.call(L,aa,ga,W)))return e});return R};var O=v.some=v.any=function(x,E,L){E=E||v.identity;var R=false;if(x==null)return R;if(I&&x.some===
I)return x.some(E,L);q(x,function(aa,ga,W){if(R=E.call(L,aa,ga,W))return e});return R};v.include=v.contains=function(x,E){var L=false;if(x==null)return L;if(S&&x.indexOf===S)return x.indexOf(E)!=-1;O(x,function(R){if(L=R===E)return true});return L};v.invoke=function(x,E){var L=j.call(arguments,2);return v.map(x,function(R){return(E?R[E]:R).apply(R,L)})};v.pluck=function(x,E){return v.map(x,function(L){return L[E]})};v.max=function(x,E,L){if(!E&&v.isArray(x))return Math.max.apply(Math,x);var R={computed:-Infinity};
q(x,function(aa,ga,W){ga=E?E.call(L,aa,ga,W):aa;ga>=R.computed&&(R={value:aa,computed:ga})});return R.value};v.min=function(x,E,L){if(!E&&v.isArray(x))return Math.min.apply(Math,x);var R={computed:Infinity};q(x,function(aa,ga,W){ga=E?E.call(L,aa,ga,W):aa;ga<R.computed&&(R={value:aa,computed:ga})});return R.value};v.sortBy=function(x,E,L){return v.pluck(v.map(x,function(R,aa,ga){return{value:R,criteria:E.call(L,R,aa,ga)}}).sort(function(R,aa){R=R.criteria;aa=aa.criteria;return R<aa?-1:R>aa?1:0}),"value")};
v.sortedIndex=function(x,E,L){L=L||v.identity;for(var R=0,aa=x.length;R<aa;){var ga=R+aa>>1;L(x[ga])<L(E)?(R=ga+1):(aa=ga)}return R};v.toArray=function(x){if(!x)return[];if(x.toArray)return x.toArray();if(v.isArray(x))return x;if(v.isArguments(x))return j.call(x);return v.values(x)};v.size=function(x){return v.toArray(x).length};v.first=v.head=function(x,E,L){return E&&!L?j.call(x,0,E):x[0]};v.rest=v.tail=function(x,E,L){return j.call(x,v.isUndefined(E)||L?1:E)};v.last=function(x){return x[x.length-
1]};v.compact=function(x){return v.filter(x,function(E){return!!E})};v.flatten=function(x){return v.reduce(x,function(E,L){if(v.isArray(L))return E.concat(v.flatten(L));E[E.length]=L;return E},[])};v.without=function(x){var E=j.call(arguments,1);return v.filter(x,function(L){return!v.include(E,L)})};v.uniq=v.unique=function(x,E){return v.reduce(x,function(L,R,aa){if(0==aa||(E===true?v.last(L)!=R:!v.include(L,R)))L[L.length]=R;return L},[])};v.intersect=function(x){var E=j.call(arguments,1);return v.filter(v.uniq(x),
function(L){return v.every(E,function(R){return v.indexOf(R,L)>=0})})};v.zip=function(){for(var x=j.call(arguments),E=v.max(v.pluck(x,"length")),L=new Array(E),R=0;R<E;R++)L[R]=v.pluck(x,""+R);return L};v.indexOf=function(x,E,L){if(x==null)return-1;if(L){L=v.sortedIndex(x,E);return x[L]===E?L:-1}if(S&&x.indexOf===S)return x.indexOf(E);L=0;for(var R=x.length;L<R;L++)if(x[L]===E)return L;return-1};v.lastIndexOf=function(x,E){if(x==null)return-1;if(y&&x.lastIndexOf===y)return x.lastIndexOf(E);for(var L=
x.length;L--;)if(x[L]===E)return L;return-1};v.range=function(x,E,L){var R=j.call(arguments),aa=R.length<=1;x=aa?0:R[0];E=aa?R[0]:R[1];L=R[2]||1;R=Math.max(Math.ceil((E-x)/L),0);aa=0;for(var ga=new Array(R);aa<R;){ga[aa++]=x;x+=L}return ga};v.bind=function(x,E){var L=j.call(arguments,2);return function(){return x.apply(E||{},L.concat(j.call(arguments)))}};v.bindAll=function(x){var E=j.call(arguments,1);if(E.length==0)E=v.functions(x);q(E,function(L){x[L]=v.bind(x[L],x)});return x};v.memoize=function(x,
E){var L={};E=E||v.identity;return function(){var R=E.apply(this,arguments);return R in L?L[R]:(L[R]=x.apply(this,arguments))}};v.delay=function(x,E){var L=j.call(arguments,2);return setTimeout(function(){return x.apply(x,L)},E)};v.defer=function(x){return v.delay.apply(v,[x,1].concat(j.call(arguments,1)))};var T=function(x,E,L){var R;return function(){var aa=this,ga=arguments,W=function(){R=null;x.apply(aa,ga)};L&&clearTimeout(R);if(L||!R)R=setTimeout(W,E)}};v.throttle=function(x,E){return T(x,E,
false)};v.debounce=function(x,E){return T(x,E,true)};v.wrap=function(x,E){return function(){var L=[x].concat(j.call(arguments));return E.apply(this,L)}};v.compose=function(){var x=j.call(arguments);return function(){for(var E=j.call(arguments),L=x.length-1;L>=0;L--)E=[x[L].apply(this,E)];return E[0]}};v.keys=M||function(x){if(v.isArray(x))return v.range(0,x.length);var E=[];for(var L in x)if(w.call(x,L))E[E.length]=L;return E};v.values=function(x){return v.map(x,v.identity)};v.functions=v.methods=
function(x){return v.filter(v.keys(x),function(E){return v.isFunction(x[E])}).sort()};v.extend=function(x){q(j.call(arguments,1),function(E){for(var L in E)x[L]=E[L]});return x};v.clone=function(x){return v.isArray(x)?x.slice():v.extend({},x)};v.tap=function(x,E){E(x);return x};v.isEqual=function(x,E){if(x===E)return true;var L=typeof x;if(L!=typeof E)return false;if(x==E)return true;if(!x&&E||x&&!E)return false;if(x._chain)x=x._wrapped;if(E._chain)E=E._wrapped;if(x.isEqual)return x.isEqual(E);if(v.isDate(x)&&
v.isDate(E))return x.getTime()===E.getTime();if(v.isNaN(x)&&v.isNaN(E))return false;if(v.isRegExp(x)&&v.isRegExp(E))return x.source===E.source&&x.global===E.global&&x.ignoreCase===E.ignoreCase&&x.multiline===E.multiline;if(L!=="object")return false;if(x.length&&x.length!==E.length)return false;L=v.keys(x);var R=v.keys(E);if(L.length!=R.length)return false;for(var aa in x)if(!(aa in E)||!v.isEqual(x[aa],E[aa]))return false;return true};v.isEmpty=function(x){if(v.isArray(x)||v.isString(x))return x.length===
0;for(var E in x)if(w.call(x,E))return false;return true};v.isElement=function(x){return!!(x&&x.nodeType==1)};v.isArray=h||function(x){return p.call(x)==="[object Array]"};v.isArguments=function(x){return!!(x&&w.call(x,"callee"))};v.isFunction=function(x){return!!(x&&x.constructor&&x.call&&x.apply)};v.isString=function(x){return!!(x===""||x&&x.charCodeAt&&x.substr)};v.isNumber=function(x){return!!(x===0||x&&x.toExponential&&x.toFixed)};v.isNaN=function(x){return x!==x};v.isBoolean=function(x){return x===
true||x===false};v.isDate=function(x){return!!(x&&x.getTimezoneOffset&&x.setUTCFullYear)};v.isRegExp=function(x){return!!(x&&x.test&&x.exec&&(x.ignoreCase||x.ignoreCase===false))};v.isNull=function(x){return x===null};v.isUndefined=function(x){return x===void 0};v.noConflict=function(){a._=b;return this};v.identity=function(x){return x};v.times=function(x,E,L){for(var R=0;R<x;R++)E.call(L,R)};v.mixin=function(x){q(v.functions(x),function(E){oa(E,v[E]=x[E])})};var ca=0;v.uniqueId=function(x){var E=
ca++;return x?x+E:E};v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};v.template=function(x,E){var L=v.templateSettings;x="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+x.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(L.interpolate,function(R,aa){return"',"+aa.replace(/\\'/g,"'")+",'"}).replace(L.evaluate||null,function(R,aa){return"');"+aa.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,
"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";x=new Function("obj",x);return E?x(E):x};var X=function(x){this._wrapped=x};v.prototype=X.prototype;var ia=function(x,E){return E?v(x).chain():x},oa=function(x,E){X.prototype[x]=function(){var L=j.call(arguments);l.call(L,this._wrapped);return ia(E.apply(v,L),this._chain)}};v.mixin(v);q(["pop","push","reverse","shift","sort","splice","unshift"],function(x){var E=d[x];X.prototype[x]=function(){E.apply(this._wrapped,arguments);return ia(this._wrapped,
this._chain)}});q(["concat","join","slice"],function(x){var E=d[x];X.prototype[x]=function(){return ia(E.apply(this._wrapped,arguments),this._chain)}});X.prototype.chain=function(){this._chain=true;return this};X.prototype.value=function(){return this._wrapped}})();function WikispacesAutocomplete(){}WikispacesAutocomplete.idCounter=0;WikispacesAutocomplete.searchHandle=Array();WikispacesAutocomplete.DATA_SEARCH="dataSearch";WikispacesAutocomplete.autocompleteSelector="input.autocompleteInstance, input.autocompleteSpace, input.autocompleteTag, input.autocompletePage, input.autocompleteUser, input.autocompleteLink, input.autocompleteFile";
WikispacesAutocomplete.messageMap={page:{success:"Page Found",failure:"Page Not Found - A link will be made to a new page"},space:{success:"Wiki Found",failure:"Wiki Not Found"},tag:{success:"Tag Found",failure:"Tag Not Found"},instance:{success:"PL Found",failure:"PL Not Found"},user:{success:"User Found",failure:"User Not Found"},link:{success:"Link Found",failure:"Link Not Found"}};
WikispacesAutocomplete.formatInstanceItem=function(a){var b=jQuery("<div>").append(jQuery("<span>").text(a[0])).append("<br>").append(jQuery("<span>").addClass("autocompleteSupplemental").text("http://"+a[2]));a[1]&&b.append("<br>").append(jQuery("<span>").addClass("autocompleteSupplemental").text("Created "+a[1]));b.append(jQuery("<span>").addClass("autocompleteId").hide().text(a[3]));return b.html()};WikispacesAutocomplete.formatTagItem=function(a){return jQuery("<div/>").text(a[0]).append(jQuery('<span class="autocompleteId"/>').hide().text(a[0])).html()};
WikispacesAutocomplete.formatPageItem=function(a){return jQuery("<div/>").text(a[0]).append(jQuery('<span class="autocompleteId"/>').hide().text(a[0])).html()};
WikispacesAutocomplete.formatSpaceItem=function(a){var b=jQuery("<div>").append(jQuery("<span>").addClass("autocompleteSpaceMember-"+a[3]).text(a[0])).append("<br>").append(jQuery("<span>").addClass("autocompleteSupplemental").text("http://"+a[2]));a[1]&&b.append("<br>").append(jQuery("<span>").addClass("autocompleteSupplemental").text("Member Since "+a[1]));b.append(jQuery("<span>").addClass("autocompleteId").hide().text(a[4]));return b.html()};WikispacesAutocomplete.formatUserItem=function(a){return jQuery("<div/>").text(a[0]).append(jQuery('<span class="autocompleteId"/>').hide().text(a[0])).html()};
WikispacesAutocomplete.formatLinkItem=function(a){return a[2]=="project"||a[2]=="team"?jQuery("<div/>").text(a[1]).append(jQuery('<span class="autocompleteId novalidate"/>').hide().text(a[0])).html():jQuery("<div/>").text(a[1]).append(jQuery('<span class="autocompleteId"/>').hide().text(a[0])).html()};WikispacesAutocomplete.formatFileItem=function(a){return jQuery("<div />").text(a[1]).append(jQuery('<span class="autocompleteId"/>').hide().text(a[0])).html()};
WikispacesAutocomplete.findValue=function(a,b){jQuery(a.input).hasClass("autocompletePage")||jQuery(a.input).hasClass("autocompleteSpace")||jQuery(a.input).hasClass("autocompleteInstance")||jQuery(a.input).hasClass("autocompleteTag")||jQuery(a.input).hasClass("autocompleteUser")||jQuery(a.input).hasClass("autocompleteLink");b==null?jQuery(a.input).addClass("ac_nomatch").removeClass("ac_match").nextAll("input.autocompleteData:first").eq(0).val(""):jQuery(a.input).addClass("ac_match").removeClass("ac_nomatch").nextAll("input.autocompleteData:first").eq(0).val(jQuery(b).find(".autocompleteId").text())};
WikispacesAutocomplete.emptyValue=function(a){jQuery(a.input).removeClass("ac_match").removeClass("ac_nomatch")};
WikispacesAutocomplete.selectItem=function(a,b){jQuery(a.input).addClass("ac_match").removeClass("ac_nomatch");var e=jQuery(a.input).nextAll("input.autocompleteData:first").eq(0);jQuery(b).find(".autocompleteId").hasClass("novalidate")&&jQuery(a.input).addClass("ac_nomatch").removeClass("ac_match");if(e.length){jQuery(a.input).val(jQuery(b).children(":first").text());e.val(jQuery(b).find(".autocompleteId").text());e.data(WikispacesAutocomplete.DATA_SEARCH,jQuery(a.input).val())}a.input.focus();jQuery(b).find(".autocompleteId").hasClass("novalidate")&&
a.refreshResults()};
WikispacesAutocomplete.initAutocomplete=function(a){var b=jQuery(a);if(b.get(0).autocompleter)return true;var e={maxItemsToShow:20,onFindValue:WikispacesAutocomplete.findValue,onEmptyValue:WikispacesAutocomplete.emptyValue,formatItem:WikispacesAutocomplete.formatInstanceItem,onItemSelect:WikispacesAutocomplete.selectItem,id:WikispacesAutocomplete.idCounter++},d;if(b.is(".autocompleteInstance")||b.is(".autocompleteSpace")){d=jQuery("<input>").attr({name:b.attr("name"),type:"text"}).addClass("autocompleteData").hide();b.after(d);
b.attr("name","wsautocomplete_"+b.attr("name"));if(b.data("value")){d.val(b.data("value"));d.data(WikispacesAutocomplete.DATA_SEARCH,b.val())}else d.val(b.val());e.minChars=3}var h,j=255;if(b.is(".autocompleteSpace")){e.formatItem=WikispacesAutocomplete.formatSpaceItem;h=WikispacesCommon.pathFor("space","autocomplete","space")}if(b.is(".autocompleteInstance")){e.formatItem=WikispacesAutocomplete.formatInstanceItem;h=WikispacesCommon.pathFor("space","autocomplete","instance")}if(b.is(".autocompleteTag")){e.formatItem=
WikispacesAutocomplete.formatTagItem;h=WikispacesCommon.pathFor("space","autocomplete","tag")}if(b.is(".autocompletePage")){e.formatItem=WikispacesAutocomplete.formatPageItem;h=WikispacesCommon.pathFor("space","autocomplete","page")}if(b.is(".autocompleteUser")){e.formatItem=WikispacesAutocomplete.formatUserItem;h=WikispacesCommon.pathFor("space","autocomplete","user");j=32}if(b.is(".autocompleteLink")){e.formatItem=WikispacesAutocomplete.formatLinkItem;var l=jQuery("input.linkWiki").val();l||(l=
wikispaces_wikiName);h=WikispacesCommon.pathFor("space","autocompletepage",l,"P")}if(b.is(".autocompleteFile")){e.formatItem=WikispacesAutocomplete.formatFileItem;(l=jQuery("input.linkWiki").val())||(l=wikispaces_wikiName);h=WikispacesCommon.pathFor("space","autocompletepage",l,"F")}b.autocomplete(h,e).attr("maxlength",j).keydown(function(p){if(b.is(".autocompleteLink")){(l=jQuery("input.linkWiki").val())||(l=wikispaces_wikiName);h=WikispacesCommon.pathFor("space","autocompletepage",l,"P");a.autocompleter.options.url=
h}if(p.keyCode!=13&&p.keyCode!=9&&(p.keyCode<37||p.keyCode>40)){WikispacesAutocomplete.searchHandle[a.autocompleter.options.id]&&clearTimeout(WikispacesAutocomplete.searchHandle[a.autocompleter.options.id]);WikispacesAutocomplete.searchHandle[a.autocompleter.options.id]=setTimeout(function(){WikispacesAutocomplete.searchValue(a.autocompleter)},500);d&&d.data(WikispacesAutocomplete.DATA_SEARCH,null)}});b.val()&&!b.data("value")&&a.autocompleter.findValue();if(d&&d.data(WikispacesAutocomplete.DATA_SEARCH)==
b.val()){e=jQuery("<li>").append(jQuery('<span class="autocompleteId">').text(d.val()));WikispacesAutocomplete.findValue(a.autocompleter,e)}b.closest("form").submit(function(p){WikispacesAutocomplete.fixSubmit(this,p)})};WikispacesAutocomplete.fixSubmit=function(a){jQuery(a).find(WikispacesAutocomplete.autocompleteSelector).each(function(){var b=jQuery(this),e=b.nextAll("input.autocompleteData:first").eq(0);if(e.length){var d=e.data(WikispacesAutocomplete.DATA_SEARCH);b.val()!=d&&e.val(b.val())}})};
WikispacesAutocomplete.searchValue=function(a){clearTimeout(WikispacesAutocomplete.searchHandle[a.options.id]);delete WikispacesAutocomplete.searchHandle[a.options.id];var b=a.input.value,e=WikispacesAutocomplete.getValue(a),d=false;jQuery("."+a.options.resultsClass+" li").each(function(){var h=jQuery(this).text(),j=jQuery(this).text(),l=jQuery(this).find(".autocompleteId");if(l.length){h=jQuery(this).children(":first").text();j=l.text()}if(h==b&&j!=e&&!l.hasClass("novalidate")){WikispacesAutocomplete.selectItem(a,
this);d=true}else if(h==b&&j==e&&!l.hasClass("novalidate")){jQuery(a.input).addClass("ac_match").removeClass("ac_nomatch");d=true}});if(d==false){jQuery(a.input).nextAll("input.autocompleteData:first").val("");jQuery(a.input).removeClass("ac_match").addClass("ac_nomatch")}};WikispacesAutocomplete.getValue=function(a){var b=jQuery(a.input);a=b.val();b=b.nextAll("input.autocompleteData:first").eq(0);if(b.length)a=b.val();return a};WikispacesAutocomplete.registerAutocompleters=function(a){jQuery(a).find(WikispacesAutocomplete.autocompleteSelector).each(function(){WikispacesAutocomplete.initAutocomplete(this)})};
WikispacesCOB={};WikispacesCOB.cobChecks={};WikispacesCOB.cobChecksCount=0;
WikispacesCOB.bulkOperation=function(a,b,e){var d=jQuery(a).closest("form").attr("action","/site/bulk");jQuery("<input>").attr({type:"hidden",name:"operation",value:b}).appendTo(d);jQuery.each(e,function(j,l){if(typeof l=="function")l=l.call(d);jQuery("<input>").attr({type:"hidden",name:"params["+j+"]",value:l}).appendTo(d)});for(var h in WikispacesCOB.cobChecks)jQuery("<input>").attr("type","hidden").addClass("cobId").attr("name","cobCheck[]").val(h).appendTo(d);if(!d.find(".cobId").length){alert("Please select at least one item from the list to continue.");
return false}d.find('input:hidden[name="goto"]').length==0&&jQuery("<input>").attr("type","hidden").attr("name","goto").val(document.location.href).appendTo(d);d.submit();return false};WikispacesCOB.hasChecks=function(){for(var a in WikispacesCOB.cobChecks)return true;return false};
WikispacesCOB.setCheckboxes=function(a){a=jQuery(a);if(a.length){a.find("input.cobCheck").each(function(){if(WikispacesCOB.cobChecks[jQuery(this).val()]){jQuery(this).attr("checked",true);WikispacesCOB.highlightRow(this,true)}});WikispacesCOB.updateSelections(a.closest(".cobWrapper"))}};
WikispacesCOB.updateSelections=function(a){var b=a.find("table.cob");b.find("input.cobSelectAll").attr("checked",!b.find("input.cobCheck:not(:checked):first").length);a=jQuery(a).find(".selections");if(WikispacesCOB.cobChecksCount<=0)a.hide();else{a.find(".selectionCount").text(WikispacesCOB.cobChecksCount);if(WikispacesCOB.cobChecksCount==1){a.find(".selectionPlural").hide();a.find(".selectionSingular").show()}else{a.find(".selectionSingular").hide();a.find(".selectionPlural").show()}a.show().find("span").css("color",
"#F00").animate({color:"#000"},2E3)}};WikispacesCOB.clearSelections=function(a){a.find("input[type=checkbox].cobCheck").attr("checked",false).each(function(){WikispacesCOB.highlightRow(this,false)});a.find(".cobSelectAll").attr("checked",false);WikispacesCOB.cobChecksCount=0;WikispacesCOB.cobChecks={};WikispacesCOB.updateSelections(a)};
WikispacesCOB.checkBox=function(a,b){a=jQuery(a);WikispacesCOB.highlightRow(a,b);if(b&&!WikispacesCOB.cobChecks[a.val()]){WikispacesCOB.cobChecks[a.val()]=1;WikispacesCOB.cobChecksCount++}if(!b&&WikispacesCOB.cobChecks[a.val()]){delete WikispacesCOB.cobChecks[a.val()];WikispacesCOB.cobChecksCount--}};WikispacesCOB.highlightRow=function(a,b){a=jQuery(a);a=a.closest("tr");a.toggleClass("hl",b);if(a.is(".topHalfRow"))for(a=a.next("tr:first");a.length;a=a.next("tr:first")){a.toggleClass("hl",b);if(a.is(".bottomHalfRow"))break}};
WikispacesCOB.refreshRows=function(){jQuery("table.cob .refreshLink").trigger("click")};WikispacesCOB.callbacks=[];WikispacesCOB.addCallback=function(a){this.callbacks.push(a)};
WikispacesCOB.makeCallback=function(a,b,e){e=e||WikispacesCOB.defaultCallback;return function(d){var h=jQuery("#"+a);e(h,d);jQuery.each(WikispacesCOB.callbacks,function(l,p){p(h)});WikispacesCOB.setCheckboxes(h.find(".cob"));h.find(".jssmLink, .pagerLink").click(function(l){if(!WikispacesTags.promptForOpenInputs(l))return false;jQuery("#"+a).addClass("loading");trackFileLink(this.href);l.preventDefault();return false}).jssm("click");h.find(".w_sort").hover(function(){jQuery(this).parent("th").addClass("w_sort_highlight")},
function(){jQuery(this).parent("th").removeClass("w_sort_highlight")});d=(d=/[?&]tag=([^&]+)/.exec(b))?decodeURIComponent(d[1]).split(","):[];var j=h.find(".filterWrapper");WikispacesCOB.initFilter(j,{tagChangeCallback:function(l){var p=jQuery(l.filter).find(".tagLink");p.attr("href",WikispacesCommon.addUriParams(p.attr("href"),[["tag",l.getTags()]]));p.click();return false},mode:jQuery.trim(j.find(".listType").text()),tags:d})}};WikispacesCOB.scrollOnLoad=true;
WikispacesCOB.defaultCallback=function(a,b){a.html(b).removeClass("loading");WikispacesCOB.scrollOnLoad&&!a.find("th:first").is(":inView")&&jQuery.scrollTo(a,{axis:"y"})};WikispacesCOB.TAG_PER_PAGE=7;
WikispacesCOB.initFilter=function(a,b){this.filter=jQuery(a);if(!this.filter.length)return false;var e=this;this.showTagSpinner=function(){};this.hideTagSpinner=function(){};this.showPage=function(d){this.showTagSpinner();var h=(d-1)*WikispacesCOB.TAG_PER_PAGE,j=this.getTags(),l=this.filter.closest(".cobWrapper").find(".cobUrl").attr("href");l||(l="/tag/listjson/"+encodeURIComponent(this.options.mode));l=WikispacesCommon.addUriParams(l,[["offset",h],["tag",j],["tagPage","1"]]);jQuery.ajaxq("tagList");
jQuery.ajaxq("tagList",{url:l,type:"GET",dataType:"json",global:false,cache:false,error:function(){WikispacesSession.reloadSession(function(){e.showPage(d)},3E3,function(){e.options.sessionFailCallback(e)})},success:function(p){WikispacesSession.reloadSessionSuccess();e.loadTagData(p);e.hideTagSpinner();e.options.tagPageChangeCallback(e)}})};this.tagChange=function(){false!=this.options.tagChangeCallback(this)&&this.showPage(1)};this.displayTag=function(d){var h=jQuery("<li>");h.attr("title",d).text(WikispacesCommon.truncate(d,
28)).addClass("bit-box");jQuery("<a>").attr({"class":"closebutton",href:"#"}).appendTo(h).click(function(j){e.removeTag(this);j.preventDefault()});this.filter.find(".tagFilterActive").show().append(h)};this.addTag=function(d){this.displayTag(d);this.tagChange()};this.removeTag=function(d){jQuery(d).parent().remove();this.tagChange();this.filter.find(".tagFilterActive li").length||this.filter.find(".tagFilterActive").hide()};this.getTags=function(){var d=[];this.filter.find(".tagFilterActive li").each(function(){d.push(jQuery(this).attr("title"))});
return d.join()};this.loadTagData=function(d){var h=this.filter.find(".tagFilterList");if(d.tags.length){this.filter.find(".filterTagSection").removeClass("hidden");h.empty().show()}else h.hide().empty();jQuery.each(d.tags,function(j,l){jQuery("<li>").attr("title",l.name).text(WikispacesCommon.truncate(l.name,28)+" ("+l.count+")").click(function(){e.addTag(l.name)}).appendTo(h)});d.pagedata.current!=1&&jQuery('<li class="upTagPageLink"></li>').click(function(){e.showPage(d.pagedata.current-1)}).prependTo(h);
d.pagedata.islastpage||jQuery('<li class="downTagPageLink"></li>').click(function(){e.showPage(d.pagedata.current+1)}).appendTo(h)};this.setMode=function(d){this.options.mode=d};this.options=jQuery.extend({tagChangeCallback:function(){},sessionFailCallback:function(){},tagPageChangeCallback:function(){},mode:"files",tags:[]},b);if(this.options.tags.length){jQuery.each(this.options.tags,function(d,h){e.displayTag(h)});this.filter.find(".filterTagSection").removeClass("hidden")}(a=this.filter.find(".initialJson").text())?
this.loadTagData(JSON.parse(a)):this.showPage(1);this.filter.find(".autocompleteTag").each(function(){WikispacesAutocomplete.initAutocomplete(this);var d=this.autocompleter.options.onItemSelect;this.autocompleter.options.onItemSelect=function(h,j){d.call(this,h,j);jQuery(h.input).val("").removeClass("ac_match").removeClass("ac_nomatch");var l=jQuery(j).find(".autocompleteId").text();h=e.getTags().split(",");for(var p in h)if(h[p]==l){e.filter.find(".tagFilterActive li").each(function(){jQuery(this).attr("title")==
l&&jQuery(this).effect("highlight",{},3E3)});return}e.addTag(l)}});return this};
jQuery(document).ready(function(){jQuery(".cob .bottomHalfRow").live("mouseover",function(){jQuery(this).prev("tr").find(".editText").removeClass("invisible")}).live("mouseout",function(){jQuery(this).prev("tr").find(".editText").addClass("invisible")});jQuery(".cob .selectionsRemove").live("click",function(a){var b=jQuery(this).closest(".cobWrapper");WikispacesCOB.clearSelections(b);a.preventDefault()});jQuery(".cobSelectAll").live("change",function(){var a=jQuery(this).prop("checked"),b=jQuery(this).closest(".cobWrapper");
b.find("input[type=checkbox].cobCheck").attr("checked",a).each(function(){WikispacesCOB.checkBox(this,a)});WikispacesCOB.updateSelections(b)});jQuery(".cobCheck").live("click",function(){WikispacesCOB.checkBox(this,jQuery(this).prop("checked"));WikispacesCOB.updateSelections(jQuery(this).closest(".cobWrapper"))});jQuery(".toggleBottomHalfRow").live("click",function(){if(jQuery(this).attr("checked")){jQuery(".oneRow").addClass("twoRows").removeClass("oneRow");jQuery(".rowSpan2").attr("rowspan","2");
Cookie.set("showDetails",1)}else{jQuery(".twoRows td[rowspan=2]").attr("rowspan","1");jQuery(".twoRows").addClass("oneRow").removeClass("twoRows");Cookie.erase("showDetails")}})});function WikispacesEditor(){}WikispacesEditor.mainEditorId="wsMainEditor";WikispacesEditor.corePlugins=["wscommon","wsundo","wslink","wsstyle","wstable","wsimage","wswidget","wslist","wsobjectresize","wsselection","wsblockformat","autoresize","rgbcolor","wsbrtop","wscommentspace"];
WikispacesEditor.mainPlugins=["wssave","wsautosave","wsundomain","wspreview","wspreviewtext","wsreference","wsautoload","wstext","wslinktext","wsimagetext","wstabletext","wswidgettext","wsstyletext","wstoolbarscroll","wssubeditor","wspopup","wssavewithcommentpopup","wsdraftrecoveredpopup","wscleanuppopup","wsconcurrenteditorpopup","wsimagepopup","wslinkpopup","wsstylepopup","wstablepopup","wswidgetpopup","wsimageoverlay","wswidgetoverlay","wstableoverlay","wsexpireddraftpopup","wslinkoverlay","wscomment"];
WikispacesEditor.loadEditor=function(a,b){var e={mode:"exact",language:"",convert_newlines_to_brs:false,apply_source_formatting:false,force_br_newlines:false,force_p_newlines:true,forced_root_block:"p",body_class:"wiki",formats:{underline:{inline:"u"}},gecko_spellcheck:true,inline_styles:false,fix_list_elements:false,theme:"-subeditor",convert_urls:false},d={elements:WikispacesEditor.mainEditorId,plugins:"-paste,-"+WikispacesEditor.corePlugins.concat(WikispacesEditor.mainPlugins).join(",-"),theme:"wikispaces",
theme_wikispaces_toolbar_align:"left",theme_wikispaces_toolbar_location:"external",paste_remove_styles_if_webkit:false,paste_retain_style_properties:"all",paste_remove_word_images:false,wsautosave_enabled:wikispaces_object=="page",wssubeditor_plugins:"-paste,-"+WikispacesEditor.corePlugins.join(",-"),wssubeditor_options:jQuery.extend({},e,a),button_tile_map:true,theme:"-wikispaces",add_form_submit_trigger:false,submit_patch:false,setup:function(h){tinymce.mainEditor=h;h.onInit.add(function(j){j.focus()})}};
if(tinyMCE.isIDevice)tinyMCE.isIDevice=false;tinyMCE.init(jQuery.extend({},e,a,d,b))};
WikispacesEditor.loadEditorPlugins=function(){var a="?_="+(new Date).valueOf(),b=function(){};jQuery.each(["wikispaces","subeditor","reference"].reverse(),function(e,d){var h=b;b=function(){tinymce.ThemeManager.load(d,"/s/js/editor/themes/"+d+"/editor_template_src.js"+a,h)}});jQuery.each(["wscleanup"].concat(WikispacesEditor.corePlugins,WikispacesEditor.mainPlugins).reverse(),function(e,d){var h="";this.match(/^ws/)||(h="-lib");var j=b;b=function(){tinymce.PluginManager.load(d,"/s/js/editor"+h+"/plugins/"+
d+"/editor_plugin_src.js"+a,j)}});tinymce.PluginManager.load("paste","/s/js/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js"+a,b)};WikispacesEditor.loadEditorLibs=function(a){var b=document.createElement("script");b.type="text/javascript";b.src=a;document.getElementsByTagName("head")[0].appendChild(b)};
WikispacesEditor.enableButtons=function(a){jQuery(".editButton").attr("href",WikispacesCommon.pathFor("page","edit",wikispaces_page)).css("cursor","pointer").bind("click.wsEditor",function(b){jQuery(this).unbind("click.wsEditor");jQuery(".WikispacesNotice").fadeOut();jQuery(".WikispacesBanner").fadeOut();WikispacesNavigation.hide();try{WikispacesEditor.disableEditButtons();a.call(this);b.preventDefault()}catch(e){log(e);this.href=WikispacesCommon.pathFor("page","edit",wikispaces_page);return true}})};
WikispacesEditor.disableEditButtons=function(a){jQuery(a).find(".editButton").css("cursor","default").attr("href","#").unbind("click.wsEditor")};function WikispacesContent(){}WikispacesContent.content={};WikispacesContent.isLoaded=false;WikispacesContent.callbacks=[];WikispacesContent.content.draftRecovered='<div id="draftRecovered" class="wikispaces_message"><p>We\'ve recovered an unsaved draft from <span id="recoveredDraftDate"></span>.</p><p id="outOfDateDraft" style="display: none;">However, another person has edited this page since your last draft.  If you continue, their changes will be overwritten. To view these changes, <a href="#">click here</a>.</p><p>What would you like to do?</p><button class="primary btn" id="recoverDraft"><span><span>Edit from Recovered Draft</span></span></button><button class="btn" id="discardDraft"><span><span>Ignore Recovered Draft</span></span></button></div>';
WikispacesContent.content.cleanupPopupContents='<div id="cleanupPopupContents" style="padding: 5px;"><h1>Style Cleanup</h1><p>Please wait while your page styles are being optimized. <img id="cleanupSpinner" style="vertical-align: top;" src="/i/spinner.gif" width="18" height="18" alt="please wait..."/></p></div>';WikispacesContent.loadContent=function(a){if(WikispacesContent.content[a])return WikispacesContent.content[a];throw"Unloaded editor part: "+a;};
WikispacesContent.add=function(a){WikispacesContent.callbacks.push(a);WikispacesContent.isLoaded&&a()};WikispacesContent.loaded=function(){WikispacesContent.isLoaded=true;jQuery.each(WikispacesContent.callbacks,function(a,b){b()})};
var helpStack=Array(),currentId="0",currentSection="0",currentSectionCount=0,sectionTitles={1:"Editing Your Home Page",2:"Introduction to Your Wiki",3:"Becoming Familiar with Your Wiki",4:"Managing Your User Account",5:"Inviting Members to Your Wiki",6:"Some Advanced Features",7:"More on Wikispaces and Wikis"};
jQuery(document).ready(function(){jQuery("#WikispacesHelp").bind("dialogbeforeclose",function(){jQuery("#WikispacesHelp").parent().effect("transfer",{to:".WikispacesHelpTrigger",className:"dialogTransfer"},1E3);return true});jQuery(".WikispacesHelpLink").click(function(a){showHelp(jQuery(this).data("help"));a.preventDefault()})});
function showGettingStartedHome(){jQuery("#WikispacesGettingStartedCategory").empty();jQuery("#WikispacesGettingStartedBreadcrumbHome").addClass("WikispacesHelpBreadcrumbCurrent");jQuery("#WikispacesGettingStartedNav").empty();jQuery("#w_gs_"+currentSection+"-"+currentId).hide();jQuery("#w_gs_index").show();currentSection=currentId="0";return false}function showAllGettingStarted(){jQuery("#w_gs_index").hide();jQuery(".w_gs").show()}
function showGettingStartedDiv(a,b){jQuery("#WikispacesGettingStartedBreadcrumbs .WikispacesHelpBreadcrumbCurrent").removeClass("WikispacesHelpBreadcrumbCurrent");jQuery("#WikispacesGettingStartedCategory").html('<span class="WikispacesHelpBreadcrumb WikispacesHelpBreadcrumbCurrent"> &gt; <a href="#" onclick="return false;">'+sectionTitles[a]+"</a></span>");jQuery("#w_gs_index").hide();if(a!=currentSection){n=1;jQuery("#w_gs_s"+a).children().each(function(e){jQuery("#WikispacesGettingStartedNav").append('<div id="w_gs_n'+
n+'" class="num" onclick="showGettingStartedDiv(currentSection, \''+n+"');\">"+n+"</div>");n++});currentSectionCount=n-1;jQuery("#WikispacesGettingStartedNav").append('<div id="w_gs_next" onclick="showGettingStartedDiv(currentSection, parseInt(currentId) + 1);">Next &gt;</div>');jQuery("#WikispacesGettingStartedNav").append('<div id="w_gs_end" onclick="return showGettingStartedHome();">Menu</div>');jQuery("#WikispacesGettingStartedNav").show()}if(b!=currentId){jQuery("#w_gs_n"+currentId).removeClass("navhl");
jQuery("#w_gs_"+currentSection+"-"+currentId).hide()}jQuery("#w_gs_n"+b).addClass("navhl");jQuery("#w_gs_"+a+"-"+b).show();parseInt(b)==currentSectionCount?jQuery("#w_gs_next").hide():jQuery("#w_gs_next").show();currentId=b;currentSection=a;return false}function attachGettingStarted(a){jQuery(".WikispacesHelpTrigger").click(function(){loadGettingStarted(a);jQuery("#WikispacesHelp").dialog({modal:true,resizable:false,title:"Help",width:880}).css({"z-index":3001,padding:0});return false})}var scroll;
function scrollUp(a){if(a)scroll=true;if(scroll){jQuery("#WikispacesHelpContent").scrollTop(jQuery("#WikispacesHelpContent").scrollTop()-20);setTimeout("scrollUp(false);",50)}}function scrollDown(a){if(a)scroll=true;if(scroll){jQuery("#WikispacesHelpContent").scrollTop(jQuery("#WikispacesHelpContent").scrollTop()+20);setTimeout("scrollDown(false);",50)}}function stopScroll(){scroll=false}
function attachHelpWindow(a){jQuery(".WikispacesHelpTrigger").click(function(){helpStack.length==0&&loadHelp(a);WikispacesNavigation.hide();jQuery("#WikispacesHelp").dialog({modal:true,resizable:false,title:"Help",width:880}).css({"z-index":3001,padding:0});return false})}function showHelp(a){if(parent!=window&&typeof parent.showHelp=="function")return parent.showHelp(a);jQuery(".WikispacesHelpTrigger").eq(0).click();loadHelp(a)}
function loadGettingStarted(a){jQuery("#WikispacesHelpControls").hide();jQuery("#WikispacesHelpContent").hide();WikispacesNavigation.hide();jQuery("#WikispacesGettingStartedControls").show();jQuery("#WikispacesGettingStartedContent").show();jQuery.ajaxq("help",{url:"/site/helpcontent/none?mode=gettingstarted"+a,type:"GET",dataType:"html",success:function(b,e,d){jQuery("#WikispacesGettingStartedContent").html(b);WikispacesSession.reloadSessionSuccess()},error:function(b,e,d){WikispacesSession.reloadSession(function(){loadGettingStarted(a)},
500,function(){alert("Error: Could Not Display Help")})}})}
function loadHelp(a){jQuery("#WikispacesHelpControls").show();jQuery("#WikispacesHelpContent").show();jQuery("#WikispacesGettingStartedControls").hide();jQuery("#WikispacesGettingStartedContent").hide();var b=document.location.protocol+"//"+document.location.hostname;if(a.substring(0,b.length)==b&&a.substr(b.length,6)=="/Help.")a=a.substr(b.length);if(a.substring(0,7)=="http://"||a.substring(0,8)=="https://")return false;if(a.substring(0,11)=="/file/view/"){window.location=window.location.protocol+
"//help."+wikispaces_main_domain+a;return true}jQuery("#WikispacesHelpBreadcrumbSpinner").html('<img src="/i/spinner.gif" width="18" height="18" alt="please wait"/>');if(a.substr(0,1)=="/")a=a.substr(1);var e="";if(a.indexOf("#")>0){e=a.substr(a.indexOf("#")+1);a=a.substr(0,a.indexOf("#"))}if(a==helpStack[helpStack.length])e?jQuery("#WikispacesHelpContent").scrollTo(jQuery("#WikispacesHelpContent a[name='"+e+"']")):jQuery("#WikispacesHelpContent").scrollTop(0);else jQuery.ajaxq("help",{url:"/site/helpcontent/"+
a,cache:false,type:"GET",dataType:"html",success:function(d){WikispacesSession.reloadSessionSuccess();jQuery("#WikispacesHelpContent").html(d);fixHelpContent(jQuery("#WikispacesHelpContent"));generateHelpToc(jQuery("#WikispacesHelpContent"));helpStack.push(a);showBreadcrumbs();jQuery("#WikispacesHelpBreadcrumbSpinner").html("");e?jQuery("#WikispacesHelpContent").scrollTo(jQuery("#WikispacesHelpContent a[name='"+e+"']")):jQuery("#WikispacesHelpContent").scrollTop(0)},error:function(){WikispacesSession.reloadSession(function(){loadHelp(a)},
500,function(){alert("Error: Could Not Display Help")})}});return true}function getHelpPageText(a){(a=a)||(a="");if(a.substr(0,1)=="/")a=a.substr(1);a=decodeURIComponent(a);a=a.replace(/\+/g," ");if(a.lastIndexOf(".")>0)a=a.substr(a.lastIndexOf(".")+1);return a}var MAX_BREADCRUMBS=4;
function showBreadcrumbs(){jQuery("#WikispacesHelpBreadcrumbs span.WikispacesHelpBreadcrumb").remove(":not(#WikispacesHelpBreadcrumbHome)");var a=helpStack.length-MAX_BREADCRUMBS;if(a<1)a=1;for(a=a;a<helpStack.length;a++){var b=helpStack[a],e=getHelpPageText(b);jQuery("#WikispacesHelpBreadcrumbs span:last").after(" "+('<span class="WikispacesHelpBreadcrumb"> &gt; <a href="'+window.location.protocol+"//help."+wikispaces_main_domain+"/"+b+'" onclick="return gotoBreadcrumb(\''+a+"');\">"+e+"</a></span>"))}helpStack.length-
1>MAX_BREADCRUMBS?jQuery("#WikispacesHelpBreadcrumbsEllipsis").show():jQuery("#WikispacesHelpBreadcrumbsEllipsis").hide();jQuery("#WikispacesHelpBreadcrumbs .WikispacesHelpBreadcrumbCurrent").removeClass("WikispacesHelpBreadcrumbCurrent");jQuery("#WikispacesHelpBreadcrumbs .WikispacesHelpBreadcrumb:last").addClass("WikispacesHelpBreadcrumbCurrent")}function gotoBreadcrumb(a){for(var b=helpStack[a],e=helpStack.length;e>a;e--)helpStack.pop();loadHelp(b);return false}
function generateHelpToc(a){var b=jQuery('<div id="toc"><h1 class="nopad">Table of Contents</h1></div>');a.find("h1,h2,h3,h4,h5,h6").each(function(){var e=jQuery('<a href="#">'+jQuery(this).text()+"</a>"),d=jQuery(this);e.click(function(j){jQuery("#WikispacesHelpContent").scrollTo(d,300);j.preventDefault();return false});var h=jQuery('<div style="margin-left: '+this.tagName.substr(1,2)+'em;"></div>');h.append(e);b.append(h)});a.prepend(b)}
function fixHelpContent(a){jQuery(a).find("#toc").remove();var b=window.location.protocol+"//help."+wikispaces_main_domain;jQuery(a).find('img[src^="/"]').attr("src",function(e,d){return b+d});jQuery(a).find('a[href^="/"]').attr("href",function(e,d){return b+d});jQuery("a[href$='site/help']").each(function(){jQuery(this).attr("href",jQuery(this).attr("href")+"?src="+wikispaces_wikiName)});jQuery(a).find("a").each(function(){var e=jQuery(this);if(!(!e.attr("href")||b!=e.attr("href").substr(0,b.length))){e.unbind();
e.click(function(d){if(loadHelp(e.attr("href").substr(b.length))){d.preventDefault();return false}})}})}
jQuery.effects||function(a,b){function e(A){var s;if(A&&A.constructor==Array&&A.length==3)return A;if(s=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(A))return[parseInt(s[1],10),parseInt(s[2],10),parseInt(s[3],10)];if(s=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(A))return[parseFloat(s[1])*2.55,parseFloat(s[2])*2.55,parseFloat(s[3])*2.55];if(s=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(A))return[parseInt(s[1],
16),parseInt(s[2],16),parseInt(s[3],16)];if(s=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(A))return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(A))return z.transparent;return z[a.trim(A).toLowerCase()]}function d(A,s){var C;do{C=a.curCSS(A,s);if(C!=""&&C!="transparent"||a.nodeName(A,"body"))break;s="backgroundColor"}while(A=A.parentNode);return e(C)}function h(){var A=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
s={},C,I;if(A&&A.length&&A[0]&&A[A[0]])for(var S=A.length;S--;){C=A[S];if(typeof A[C]=="string"){I=C.replace(/\-(\w)/g,function(y,M){return M.toUpperCase()});s[I]=A[C]}}else for(C in A)if(typeof A[C]==="string")s[C]=A[C];return s}function j(A){var s,C;for(s in A){C=A[s];if(C==null||a.isFunction(C)||s in K||/scrollbar/.test(s)||!/color/i.test(s)&&isNaN(parseFloat(C)))delete A[s]}return A}function l(A,s){var C={_:0},I;for(I in s)if(A[I]!=s[I])C[I]=s[I];return C}function p(A,s,C,I){if(typeof A=="object"){I=
s;C=null;s=A;A=s.effect}if(a.isFunction(s)){I=s;C=null;s={}}if(typeof s=="number"||a.fx.speeds[s]){I=C;C=s;s={}}if(a.isFunction(C)){I=C;C=null}s=s||{};C=C||s.duration;C=a.fx.off?0:typeof C=="number"?C:C in a.fx.speeds?a.fx.speeds[C]:a.fx.speeds._default;I=I||s.complete;return[A,s,C,I]}function w(A){if(!A||typeof A==="number"||a.fx.speeds[A])return true;if(typeof A==="string"&&!a.effects[A])return true;return false}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
"borderTopColor","borderColor","color","outlineColor"],function(A,s){a.fx.step[s]=function(C){if(!C.colorInit){C.start=d(C.elem,s);C.end=e(C.end);C.colorInit=true}C.elem.style[s]="rgb("+Math.max(Math.min(parseInt(C.pos*(C.end[0]-C.start[0])+C.start[0],10),255),0)+","+Math.max(Math.min(parseInt(C.pos*(C.end[1]-C.start[1])+C.start[1],10),255),0)+","+Math.max(Math.min(parseInt(C.pos*(C.end[2]-C.start[2])+C.start[2],10),255),0)+")"}});var z={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]},G=["add","remove","toggle"],K={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(A,s,C,
I){if(a.isFunction(C)){I=C;C=null}return this.queue(function(){var S=a(this),y=S.attr("style")||" ",M=j(h.call(this)),v,q=S.attr("class");a.each(G,function(O,T){A[T]&&S[T+"Class"](A[T])});v=j(h.call(this));S.attr("class",q);S.animate(l(M,v),{queue:false,duration:s,easing:C,complete:function(){a.each(G,function(O,T){A[T]&&S[T+"Class"](A[T])});if(typeof S.attr("style")=="object"){S.attr("style").cssText="";S.attr("style").cssText=y}else S.attr("style",y);I&&I.apply(this,arguments);a.dequeue(this)}})})};
a.fn.extend({_addClass:a.fn.addClass,addClass:function(A,s,C,I){return s?a.effects.animateClass.apply(this,[{add:A},s,C,I]):this._addClass(A)},_removeClass:a.fn.removeClass,removeClass:function(A,s,C,I){return s?a.effects.animateClass.apply(this,[{remove:A},s,C,I]):this._removeClass(A)},_toggleClass:a.fn.toggleClass,toggleClass:function(A,s,C,I,S){return typeof s=="boolean"||s===b?C?a.effects.animateClass.apply(this,[s?{add:A}:{remove:A},C,I,S]):this._toggleClass(A,s):a.effects.animateClass.apply(this,
[{toggle:A},s,C,I])},switchClass:function(A,s,C,I,S){return a.effects.animateClass.apply(this,[{add:s,remove:A},C,I,S])}});a.extend(a.effects,{version:"@VERSION",save:function(A,s){for(var C=0;C<s.length;C++)s[C]!==null&&A.data("ec.storage."+s[C],A[0].style[s[C]])},restore:function(A,s){for(var C=0;C<s.length;C++)s[C]!==null&&A.css(s[C],A.data("ec.storage."+s[C]))},setMode:function(A,s){if(s=="toggle")s=A.is(":hidden")?"show":"hide";return s},getBaseline:function(A,s){var C;switch(A[0]){case "top":C=
0;break;case "middle":C=0.5;break;case "bottom":C=1;break;default:C=A[0]/s.height}switch(A[1]){case "left":A=0;break;case "center":A=0.5;break;case "right":A=1;break;default:A=A[1]/s.width}return{x:A,y:C}},createWrapper:function(A){if(A.parent().is(".ui-effects-wrapper"))return A.parent();var s={width:A.outerWidth(true),height:A.outerHeight(true),"float":A.css("float")},C=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),
I=document.activeElement;A.wrap(C);if(A[0]===I||a.contains(A[0],I))a(I).focus();C=A.parent();if(A.css("position")=="static"){C.css({position:"relative"});A.css({position:"relative"})}else{a.extend(s,{position:A.css("position"),zIndex:A.css("z-index")});a.each(["top","left","bottom","right"],function(S,y){s[y]=A.css(y);if(isNaN(parseInt(s[y],10)))s[y]="auto"});A.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return C.css(s).show()},removeWrapper:function(A){var s,C=document.activeElement;
if(A.parent().is(".ui-effects-wrapper")){s=A.parent().replaceWith(A);if(A[0]===C||a.contains(A[0],C))a(C).focus();return s}return A},setTransition:function(A,s,C,I){I=I||{};a.each(s,function(S,y){unit=A.cssUnit(y);if(unit[0]>0)I[y]=unit[0]*C+unit[1]});return I}});a.fn.extend({effect:function(A){var s=p.apply(this,arguments),C={options:s[1],duration:s[2],callback:s[3]};s=C.options.mode;var I=a.effects[A];if(a.fx.off||!I)return s?this[s](C.duration,C.callback):this.each(function(){C.callback&&C.callback.call(this)});
return I.call(this,C)},_show:a.fn.show,show:function(A){if(w(A))return this._show.apply(this,arguments);else{var s=p.apply(this,arguments);s[1].mode="show";return this.effect.apply(this,s)}},_hide:a.fn.hide,hide:function(A){if(w(A))return this._hide.apply(this,arguments);else{var s=p.apply(this,arguments);s[1].mode="hide";return this.effect.apply(this,s)}},__toggle:a.fn.toggle,toggle:function(A){if(w(A)||typeof A==="boolean"||a.isFunction(A))return this.__toggle.apply(this,arguments);else{var s=p.apply(this,
arguments);s[1].mode="toggle";return this.effect.apply(this,s)}},cssUnit:function(A){var s=this.css(A),C=[];a.each(["em","px","%","pt"],function(I,S){if(s.indexOf(S)>0)C=[parseFloat(s),S]});return C}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(A,s,C,I,S){return a.easing[a.easing.def](A,s,C,I,S)},easeInQuad:function(A,s,C,I,S){return I*(s/=S)*s+C},easeOutQuad:function(A,s,C,I,S){return-I*(s/=S)*(s-2)+C},easeInOutQuad:function(A,s,C,I,S){if((s/=S/2)<1)return I/
2*s*s+C;return-I/2*(--s*(s-2)-1)+C},easeInCubic:function(A,s,C,I,S){return I*(s/=S)*s*s+C},easeOutCubic:function(A,s,C,I,S){return I*((s=s/S-1)*s*s+1)+C},easeInOutCubic:function(A,s,C,I,S){if((s/=S/2)<1)return I/2*s*s*s+C;return I/2*((s-=2)*s*s+2)+C},easeInQuart:function(A,s,C,I,S){return I*(s/=S)*s*s*s+C},easeOutQuart:function(A,s,C,I,S){return-I*((s=s/S-1)*s*s*s-1)+C},easeInOutQuart:function(A,s,C,I,S){if((s/=S/2)<1)return I/2*s*s*s*s+C;return-I/2*((s-=2)*s*s*s-2)+C},easeInQuint:function(A,s,C,
I,S){return I*(s/=S)*s*s*s*s+C},easeOutQuint:function(A,s,C,I,S){return I*((s=s/S-1)*s*s*s*s+1)+C},easeInOutQuint:function(A,s,C,I,S){if((s/=S/2)<1)return I/2*s*s*s*s*s+C;return I/2*((s-=2)*s*s*s*s+2)+C},easeInSine:function(A,s,C,I,S){return-I*Math.cos(s/S*(Math.PI/2))+I+C},easeOutSine:function(A,s,C,I,S){return I*Math.sin(s/S*(Math.PI/2))+C},easeInOutSine:function(A,s,C,I,S){return-I/2*(Math.cos(Math.PI*s/S)-1)+C},easeInExpo:function(A,s,C,I,S){return s==0?C:I*Math.pow(2,10*(s/S-1))+C},easeOutExpo:function(A,
s,C,I,S){return s==S?C+I:I*(-Math.pow(2,-10*s/S)+1)+C},easeInOutExpo:function(A,s,C,I,S){if(s==0)return C;if(s==S)return C+I;if((s/=S/2)<1)return I/2*Math.pow(2,10*(s-1))+C;return I/2*(-Math.pow(2,-10*--s)+2)+C},easeInCirc:function(A,s,C,I,S){return-I*(Math.sqrt(1-(s/=S)*s)-1)+C},easeOutCirc:function(A,s,C,I,S){return I*Math.sqrt(1-(s=s/S-1)*s)+C},easeInOutCirc:function(A,s,C,I,S){if((s/=S/2)<1)return-I/2*(Math.sqrt(1-s*s)-1)+C;return I/2*(Math.sqrt(1-(s-=2)*s)+1)+C},easeInElastic:function(A,s,C,
I,S){A=1.70158;var y=0,M=I;if(s==0)return C;if((s/=S)==1)return C+I;y||(y=S*0.3);if(M<Math.abs(I)){M=I;A=y/4}else A=y/(2*Math.PI)*Math.asin(I/M);return-(M*Math.pow(2,10*(s-=1))*Math.sin((s*S-A)*2*Math.PI/y))+C},easeOutElastic:function(A,s,C,I,S){A=1.70158;var y=0,M=I;if(s==0)return C;if((s/=S)==1)return C+I;y||(y=S*0.3);if(M<Math.abs(I)){M=I;A=y/4}else A=y/(2*Math.PI)*Math.asin(I/M);return M*Math.pow(2,-10*s)*Math.sin((s*S-A)*2*Math.PI/y)+I+C},easeInOutElastic:function(A,s,C,I,S){A=1.70158;var y=
0,M=I;if(s==0)return C;if((s/=S/2)==2)return C+I;y||(y=S*0.3*1.5);if(M<Math.abs(I)){M=I;A=y/4}else A=y/(2*Math.PI)*Math.asin(I/M);if(s<1)return-0.5*M*Math.pow(2,10*(s-=1))*Math.sin((s*S-A)*2*Math.PI/y)+C;return M*Math.pow(2,-10*(s-=1))*Math.sin((s*S-A)*2*Math.PI/y)*0.5+I+C},easeInBack:function(A,s,C,I,S,y){if(y==b)y=1.70158;return I*(s/=S)*s*((y+1)*s-y)+C},easeOutBack:function(A,s,C,I,S,y){if(y==b)y=1.70158;return I*((s=s/S-1)*s*((y+1)*s+y)+1)+C},easeInOutBack:function(A,s,C,I,S,y){if(y==b)y=1.70158;
if((s/=S/2)<1)return I/2*s*s*(((y*=1.525)+1)*s-y)+C;return I/2*((s-=2)*s*(((y*=1.525)+1)*s+y)+2)+C},easeInBounce:function(A,s,C,I,S){return I-a.easing.easeOutBounce(A,S-s,0,I,S)+C},easeOutBounce:function(A,s,C,I,S){return(s/=S)<1/2.75?I*7.5625*s*s+C:s<2/2.75?I*(7.5625*(s-=1.5/2.75)*s+0.75)+C:s<2.5/2.75?I*(7.5625*(s-=2.25/2.75)*s+0.9375)+C:I*(7.5625*(s-=2.625/2.75)*s+0.984375)+C},easeInOutBounce:function(A,s,C,I,S){if(s<S/2)return a.easing.easeInBounce(A,s*2,0,I,S)*0.5+C;return a.easing.easeOutBounce(A,
s*2-S,0,I,S)*0.5+I*0.5+C}})}(jQuery);
(function(a,b){function e(h,j){var l=h.nodeName.toLowerCase();if("area"===l){j=h.parentNode;l=j.name;if(!h.href||!l||j.nodeName.toLowerCase()!=="map")return false;h=a("img[usemap=#"+l+"]")[0];return!!h&&d(h)}return(/input|select|textarea|button|object/.test(l)?!h.disabled:"a"==l?h.href||j:j)&&d(h)}function d(h){return!a(h).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"@VERSION",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(h,j){return typeof h==="number"?this.each(function(){var l=
this;setTimeout(function(){a(l).focus();j&&j.call(l)},h)}):this._focus.apply(this,arguments)},scrollParent:function(){var h;h=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,
"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!h.length?a(document):h},zIndex:function(h){if(h!==b)return this.css("zIndex",h);if(this.length){h=a(this[0]);for(var j;h.length&&h[0]!==document;){j=h.css("position");if(j==="absolute"||j==="relative"||j==="fixed"){j=parseInt(h.css("zIndex"),10);if(!isNaN(j)&&j!==0)return j}h=h.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(h){h.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(h,j){function l(G,K,A,s){a.each(p,function(){K-=parseFloat(a.curCSS(G,"padding"+this,true))||0;if(A)K-=parseFloat(a.curCSS(G,"border"+this+"Width",true))||0;if(s)K-=parseFloat(a.curCSS(G,"margin"+this,true))||0});return K}var p=j==="Width"?["Left","Right"]:["Top","Bottom"],w=j.toLowerCase(),z={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,
outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+j]=function(G){if(G===b)return z["inner"+j].call(this);return this.each(function(){a(this).css(w,l(this,G)+"px")})};a.fn["outer"+j]=function(G,K){if(typeof G!=="number")return z["outer"+j].call(this,G);return this.each(function(){a(this).css(w,l(this,G,true,K)+"px")})}});a.extend(a.expr[":"],{data:function(h,j,l){return!!a.data(h,l[3])},focusable:function(h){return e(h,!isNaN(a.attr(h,"tabindex")))},tabbable:function(h){var j=a.attr(h,
"tabindex"),l=isNaN(j);return(l||j>=0)&&e(h,!l)}});a(function(){var h=document.body,j=h.appendChild(j=document.createElement("div"));a.extend(j.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=j.offsetHeight===100;a.support.selectstart="onselectstart"in j;h.removeChild(j).style.display="none"});a.extend(a.ui,{plugin:{add:function(h,j,l){h=a.ui[h].prototype;for(var p in l){h.plugins[p]=h.plugins[p]||[];h.plugins[p].push([j,l[p]])}},call:function(h,j,l){if((j=h.plugins[j])&&
h.element[0].parentNode)for(var p=0;p<j.length;p++)h.options[j[p][0]]&&j[p][1].apply(h.element,l)}},contains:function(h,j){return document.compareDocumentPosition?h.compareDocumentPosition(j)&16:h!==j&&h.contains(j)},hasScroll:function(h,j){if(a(h).css("overflow")==="hidden")return false;j=j&&j==="left"?"scrollLeft":"scrollTop";var l=false;if(h[j]>0)return true;h[j]=1;l=h[j]>0;h[j]=0;return l},isOverAxis:function(h,j,l){return h>j&&h<j+l},isOver:function(h,j,l,p,w,z){return a.ui.isOverAxis(h,l,w)&&
a.ui.isOverAxis(j,p,z)}})}})(jQuery);
(function(a,b){if(a.cleanData){var e=a.cleanData;a.cleanData=function(h){for(var j=0,l;(l=h[j])!=null;j++)try{a(l).triggerHandler("remove")}catch(p){}e(h)}}else{var d=a.fn.remove;a.fn.remove=function(h,j){return this.each(function(){if(!j)if(!h||a.filter(h,[this]).length)a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(l){}});return d.call(a(this),h,j)})}}a.widget=function(h,j,l){var p=h.split(".")[0],w;h=h.split(".")[1];w=p+"-"+h;if(!l){l=j;j=a.Widget}a.expr[":"][w]=
function(z){return!!a.data(z,h)};a[p]=a[p]||{};a[p][h]=function(z,G){arguments.length&&this._createWidget(z,G)};j=new j;j.options=a.extend(true,{},j.options);a[p][h].prototype=a.extend(true,j,{namespace:p,widgetName:h,widgetEventPrefix:a[p][h].prototype.widgetEventPrefix||h,widgetBaseClass:w},l);a.widget.bridge(h,a[p][h])};a.widget.bridge=function(h,j){a.fn[h]=function(l){var p=typeof l==="string",w=Array.prototype.slice.call(arguments,1),z=this;l=!p&&w.length?a.extend.apply(null,[true,l].concat(w)):
l;if(p&&l.charAt(0)==="_")return z;p?this.each(function(){var G=a.data(this,h),K=G&&a.isFunction(G[l])?G[l].apply(G,w):G;if(K!==G&&K!==b){z=K;return false}}):this.each(function(){var G=a.data(this,h);G?G.option(l||{})._init():a.data(this,h,new j(l,this))});return z}};a.Widget=function(h,j){arguments.length&&this._createWidget(h,j)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(h,j){a.data(j,this.widgetName,this);this.element=a(j);this.options=
a.extend(true,{},this.options,this._getCreateOptions(),h);var l=this;this.element.bind("remove."+this.widgetName,function(){l.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(h,j){var l=h;if(arguments.length===0)return a.extend({},this.options);if(typeof h==="string"){if(j===b)return this.options[h];l={};l[h]=j}this._setOptions(l);return this},_setOptions:function(h){var j=this;a.each(h,function(l,p){j._setOption(l,p)});return this},_setOption:function(h,j){this.options[h]=j;if(h==="disabled")this.widget()[j?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
j);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(h,j,l){var p=this.options[h];j=a.Event(j);j.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase();l=l||{};if(j.originalEvent){h=a.event.props.length;for(var w;h;){w=a.event.props[--h];j[w]=j.originalEvent[w]}}this.element.trigger(j,l);return!(a.isFunction(p)&&p.call(this.element[0],j,l)===false||j.isDefaultPrevented())}}})(jQuery);
(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"],h=a.effects.setMode(e,b.options.mode||"show"),j={backgroundColor:e.css("backgroundColor")};if(h=="hide")j.opacity=0;a.effects.save(e,d);e.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){h=="hide"&&e.hide();a.effects.restore(e,d);h=="show"&&!a.support.opacity&&
this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);e.dequeue()}})})}})(jQuery);
(function(a){var b=false;a(document).mouseup(function(){b=false});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(d){return e._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,e.widgetName+".preventClickEvent")){a.removeData(d.target,e.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(e){if(!b){this._mouseStarted&&this._mouseUp(e);this._mouseDownEvent=e;var d=this,h=e.which==1,j=typeof this.options.cancel=="string"&&e.target.nodeName?a(e.target).closest(this.options.cancel).length:false;if(!h||j||!this._mouseCapture(e))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=
this._mouseStart(e)!==false;if(!this._mouseStarted){e.preventDefault();return true}}true===a.data(e.target,this.widgetName+".preventClickEvent")&&a.removeData(e.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(l){return d._mouseMove(l)};this._mouseUpDelegate=function(l){return d._mouseUp(l)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);e.preventDefault();return b=true}},_mouseMove:function(e){if(a.browser.msie&&
!(document.documentMode>=9)&&!e.button)return this._mouseUp(e);if(this._mouseStarted){this._mouseDrag(e);return e.preventDefault()}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==false)?this._mouseDrag(e):this._mouseUp(e);return!this._mouseStarted},_mouseUp:function(e){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;e.target==this._mouseDownEvent.target&&a.data(e.target,this.widgetName+".preventClickEvent",true);this._mouseStop(e)}return false},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.effects.transfer=function(b){return this.queue(function(){var e=a(this),d=a(b.options.to),h=d.offset();d={top:h.top,left:h.left,height:d.innerHeight(),width:d.innerWidth()};h=e.offset();var j=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(d,b.duration,b.options.easing,function(){j.remove();b.callback&&b.callback.apply(e[0],arguments);
e.dequeue()})})}})(jQuery);
(function(a){var b,e,d,h,j=function(){var p=a(this).find(":ui-button");setTimeout(function(){p.button("refresh")},1)},l=function(p){var w=p.name,z=p.form,G=a([]);if(w)G=z?a(z).find("[name='"+w+"']"):a("[name='"+w+"']",p.ownerDocument).filter(function(){return!this.form});return G};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",j);if(typeof this.options.disabled!==
"boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var p=this,w=this.options,z=this.type==="checkbox"||this.type==="radio",G="ui-state-hover"+(!z?" ui-state-active":"");if(w.label===null)w.label=this.buttonElement.html();if(this.element.is(":disabled"))w.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!w.disabled){a(this).addClass("ui-state-hover");
this===b&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){w.disabled||a(this).removeClass(G)}).bind("click.button",function(K){if(w.disabled){K.preventDefault();K.stopImmediatePropagation()}});this.element.bind("focus.button",function(){p.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){p.buttonElement.removeClass("ui-state-focus")});if(z){this.element.bind("change.button",function(){h||p.refresh()});this.buttonElement.bind("mousedown.button",function(K){if(!w.disabled){h=
false;e=K.pageX;d=K.pageY}}).bind("mouseup.button",function(K){if(!w.disabled)if(e!==K.pageX||d!==K.pageY)h=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(w.disabled||h)return false;a(this).toggleClass("ui-state-active");p.buttonElement.attr("aria-pressed",p.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(w.disabled||h)return false;a(this).addClass("ui-state-active");p.buttonElement.attr("aria-pressed","true");
var K=p.element[0];l(K).not(K).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(w.disabled)return false;a(this).addClass("ui-state-active");b=this;a(document).one("mouseup",function(){b=null})}).bind("mouseup.button",function(){if(w.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(K){if(w.disabled)return false;if(K.keyCode==a.ui.keyCode.SPACE||
K.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(K){K.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",w.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type===
"radio"){var p=this.element.parents().filter(":last"),w="label[for='"+this.element.attr("id")+"']";this.buttonElement=p.find(w);if(!this.buttonElement.length){p=p.length?p.siblings():this.element.siblings();this.buttonElement=p.filter(w);if(!this.buttonElement.length)this.buttonElement=p.find(w)}this.element.addClass("ui-helper-hidden-accessible");(p=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",p)}else this.buttonElement=this.element},
widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");
a.Widget.prototype.destroy.call(this)},_setOption:function(p,w){a.Widget.prototype._setOption.apply(this,arguments);if(p==="disabled")w?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var p=this.element.is(":disabled");p!==this.options.disabled&&this._setOption("disabled",p);if(this.type==="radio")l(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var p=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
w=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(p.empty()).text(),z=this.options.icons,G=z.primary&&z.secondary,K=[];if(z.primary||z.secondary){if(this.options.text)K.push("ui-button-text-icon"+(G?"s":z.primary?"-primary":"-secondary"));z.primary&&p.prepend("<span class='ui-button-icon-primary ui-icon "+z.primary+"'></span>");z.secondary&&p.append("<span class='ui-button-icon-secondary ui-icon "+z.secondary+"'></span>");if(!this.options.text){K.push(G?"ui-button-icons-only":
"ui-button-icon-only");this.hasTitle||p.attr("title",w)}}else K.push("ui-button-text-only");p.addClass(K.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(p,w){p==="disabled"&&this.buttons.button("option",p,w);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var p=this.element.css("direction")===
"ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(p?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(p?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
a.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(a,b){var e={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},d={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},h=a.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,
position:{my:"center",at:"center",collision:"fit",using:function(j){var l=a(this).css(j).offset().top;l<0&&a(this).css("top",j.top-l)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var j=this,l=j.options,p=l.title||"&#160;",w=a.ui.dialog.getTitleId(j.element),z=(j.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
l.dialogClass).css({zIndex:l.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(A){if(l.closeOnEscape&&!A.isDefaultPrevented()&&A.keyCode&&A.keyCode===a.ui.keyCode.ESCAPE){j.close(A);A.preventDefault()}}).attr({role:"dialog","aria-labelledby":w}).mousedown(function(A){j.moveToTop(false,A)});j.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(z);var G=(j.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(z),
K=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){K.addClass("ui-state-hover")},function(){K.removeClass("ui-state-hover")}).focus(function(){K.addClass("ui-state-focus")}).blur(function(){K.removeClass("ui-state-focus")}).click(function(A){j.close(A);return false}).appendTo(G);(j.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(l.closeText).appendTo(K);a("<span></span>").addClass("ui-dialog-title").attr("id",
w).html(p).prependTo(G);if(a.isFunction(l.beforeclose)&&!a.isFunction(l.beforeClose))l.beforeClose=l.beforeclose;G.find("*").add(G).disableSelection();l.draggable&&a.fn.draggable&&j._makeDraggable();l.resizable&&a.fn.resizable&&j._makeResizable();j._createButtons(l.buttons);j._isOpen=false;a.fn.bgiframe&&z.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(j){var l=this,p,w;if(false!==l._trigger("beforeClose",j)){l.overlay&&l.overlay.destroy();l.uiDialog.unbind("keypress.ui-dialog");l._isOpen=false;if(l.options.hide)l.uiDialog.hide(l.options.hide,function(){l._trigger("close",j)});else{l.uiDialog.hide();l._trigger("close",j)}a.ui.dialog.overlay.resize();if(l.options.modal){p=0;a(".ui-dialog").each(function(){if(this!==
l.uiDialog[0]){w=a(this).css("z-index");isNaN(w)||(p=Math.max(p,w))}});a.ui.dialog.maxZ=p}return l}},isOpen:function(){return this._isOpen},moveToTop:function(j,l){var p=this.options;if(p.modal&&!j||!p.stack&&!p.modal)return this._trigger("focus",l);if(p.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=p.zIndex;if(this.overlay){a.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}j={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};a.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(j);this._trigger("focus",l);return this},open:function(){if(!this._isOpen){var j=this.options,l=this.uiDialog;this.overlay=j.modal?new a.ui.dialog.overlay(this):null;this._size();this._position(j.position);l.show(j.show);this.moveToTop(true);j.modal&&l.bind("keypress.ui-dialog",function(p){if(p.keyCode===a.ui.keyCode.TAB){var w=a(":tabbable",this),z=w.filter(":first");w=w.filter(":last");if(p.target===w[0]&&!p.shiftKey){z.focus(1);
return false}else if(p.target===z[0]&&p.shiftKey){w.focus(1);return false}}});a(this.element.find(":tabbable").get().concat(l.find(".ui-dialog-buttonpane :tabbable").get().concat(l.get()))).eq(0).focus();this._isOpen=true;this._trigger("open");return this}},_createButtons:function(j){var l=this,p=false,w=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),z=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(w);l.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof j==="object"&&j!==null&&a.each(j,function(){return!(p=true)});if(p){a.each(j,function(G,K){K=a.isFunction(K)?{click:K,text:G}:K;var A=a('<button type="button"></button>').click(function(){K.click.apply(l.element[0],arguments)}).appendTo(z);a.each(K,function(s,C){if(s!=="click")s in h?A[s](C):A.attr(s,C)});a.fn.button&&A.button()});w.appendTo(l.uiDialog)}},_makeDraggable:function(){function j(G){return{position:G.position,offset:G.offset}}var l=this,p=l.options,w=a(document),z;l.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(G,K){z=p.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");l._trigger("dragStart",G,j(K))},drag:function(G,K){l._trigger("drag",G,j(K))},stop:function(G,K){p.position=[K.position.left-w.scrollLeft(),K.position.top-w.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(z);l._trigger("dragStop",G,j(K));a.ui.dialog.overlay.resize()}})},_makeResizable:function(j){function l(G){return{originalPosition:G.originalPosition,
originalSize:G.originalSize,position:G.position,size:G.size}}j=j===b?this.options.resizable:j;var p=this,w=p.options,z=p.uiDialog.css("position");j=typeof j==="string"?j:"n,e,s,w,se,sw,ne,nw";p.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:p.element,maxWidth:w.maxWidth,maxHeight:w.maxHeight,minWidth:w.minWidth,minHeight:p._minHeight(),handles:j,start:function(G,K){a(this).addClass("ui-dialog-resizing");p._trigger("resizeStart",G,l(K))},resize:function(G,K){p._trigger("resize",
G,l(K))},stop:function(G,K){a(this).removeClass("ui-dialog-resizing");w.height=a(this).height();w.width=a(this).width();p._trigger("resizeStop",G,l(K));a.ui.dialog.overlay.resize()}}).css("position",z).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var j=this.options;return j.height==="auto"?j.minHeight:Math.min(j.minHeight,j.height)},_position:function(j){var l=[],p=[0,0],w;if(j){if(typeof j==="string"||typeof j==="object"&&"0"in j){l=j.split?j.split(" "):
[j[0],j[1]];if(l.length===1)l[1]=l[0];a.each(["left","top"],function(z,G){if(+l[z]===l[z]){p[z]=l[z];l[z]=G}});j={my:l.join(" "),at:l.join(" "),offset:p.join(" ")}}j=a.extend({},a.ui.dialog.prototype.options.position,j)}else j=a.ui.dialog.prototype.options.position;(w=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},j));w||this.uiDialog.hide()},_setOptions:function(j){var l=this,p={},w=false;a.each(j,function(z,G){l._setOption(z,G);
if(z in e)w=true;if(z in d)p[z]=G});w&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",p)},_setOption:function(j,l){var p=this.uiDialog;switch(j){case "beforeclose":j="beforeClose";break;case "buttons":this._createButtons(l);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+l);break;case "dialogClass":p.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+l);break;case "disabled":l?p.addClass("ui-dialog-disabled"):
p.removeClass("ui-dialog-disabled");break;case "draggable":var w=p.is(":data(draggable)");w&&!l&&p.draggable("destroy");!w&&l&&this._makeDraggable();break;case "position":this._position(l);break;case "resizable":(w=p.is(":data(resizable)"))&&!l&&p.resizable("destroy");w&&typeof l==="string"&&p.resizable("option","handles",l);!w&&l!==false&&this._makeResizable(l);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(l||"&#160;"));break}a.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var j=this.options,l,p,w=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(j.minWidth>j.width)j.width=j.minWidth;l=this.uiDialog.css({height:"auto",width:j.width}).height();p=Math.max(0,j.minHeight-l);if(j.height==="auto")if(a.support.minHeight)this.element.css({minHeight:p,height:"auto"});else{this.uiDialog.show();j=this.element.css("height","auto").height();w||this.uiDialog.hide();this.element.height(Math.max(j,p))}else this.element.height(Math.max(j.height-
l,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"@VERSION",uuid:0,maxZ:0,getTitleId:function(j){j=j.attr("id");if(!j){this.uuid+=1;j=this.uuid}return"ui-dialog-title-"+j},overlay:function(j){this.$el=a.ui.dialog.overlay.create(j)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(j){return j+".dialog-overlay"}).join(" "),
create:function(j){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(p){if(a(p.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1);a(document).bind("keydown.dialog-overlay",function(p){if(j.options.closeOnEscape&&!p.isDefaultPrevented()&&p.keyCode&&p.keyCode===a.ui.keyCode.ESCAPE){j.close(p);p.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var l=(this.oldInstances.pop()||
a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&l.bgiframe();this.instances.push(l);return l},destroy:function(j){var l=a.inArray(j,this.instances);l!=-1&&this.oldInstances.push(this.instances.splice(l,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");j.remove();var p=0;a.each(this.instances,function(){p=Math.max(p,this.css("z-index"))});this.maxZ=p},height:function(){var j,l;if(a.browser.msie&&
a.browser.version<7){j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);l=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return j<l?a(window).height()+"px":j+"px"}else return a(document).height()+"px"},width:function(){var j,l;if(a.browser.msie){j=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);l=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return j<l?a(window).width()+"px":j+"px"}else return a(document).width()+
"px"},resize:function(){var j=a([]);a.each(a.ui.dialog.overlay.instances,function(){j=j.add(this)});j.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(b){var e=
this.options;if(this.helper||e.disabled||a(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);if(!this.handle)return false;if(e.iframeFix)a(e.iframeFix===true?"iframe":e.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return true},_mouseStart:function(b){var e=this.options;
this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);e.containment&&this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b);return true},
_mouseDrag:function(b,e){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!e){e=this._uiHash();if(this._trigger("drag",b,e)===false){this._mouseUp({});return false}this.position=e.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(b){var e=
false;if(a.ui.ddmanager&&!this.options.dropBehaviour)e=a.ui.ddmanager.drop(this,b);if(this.dropped){e=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!e||this.options.revert=="valid"&&e||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
10),function(){d._trigger("stop",b)!==false&&d._clear()})}else this._trigger("stop",b)!==false&&this._clear();return false},_mouseUp:function(b){this.options.iframeFix===true&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(b){var e=!this.options.handle||
!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target)e=true});return e},_createHelper:function(b){var e=this.options;b=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[b])):e.helper=="clone"?this.element.clone().removeAttr("id"):this.element;b.parents("body").length||b.appendTo(e.appendTo=="parent"?this.element[0].parentNode:e.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&
b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}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,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),
10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,
(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){b=a(b.containment);var e=b[0];if(e){b.offset();var d=a(e).css("overflow")!=
"hidden";this.containment=[(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),(d?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(d?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),
10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=b}}else if(b.containment.constructor==Array)this.containment=b.containment},_convertPositionTo:function(b,e){if(!e)e=this.position;b=b=="absolute"?1:-1;var d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(d[0].tagName);return{top:e.top+
this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:d.scrollTop())*b),left:e.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:d.scrollLeft())*b)}},_generatePosition:function(b){var e=this.options,d=this.cssPosition=="absolute"&&
!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(d[0].tagName),j=b.pageX,l=b.pageY;if(this.originalPosition){var p;if(this.containment){if(this.relative_container){p=this.relative_container.offset();p=[this.containment[0]+p.left,this.containment[1]+p.top,this.containment[2]+p.left,this.containment[3]+p.top]}else p=this.containment;if(b.pageX-this.offset.click.left<p[0])j=p[0]+this.offset.click.left;
if(b.pageY-this.offset.click.top<p[1])l=p[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>p[2])j=p[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>p[3])l=p[3]+this.offset.click.top}if(e.grid){l=e.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/e.grid[1])*e.grid[1]:this.originalPageY;l=p?!(l-this.offset.click.top<p[1]||l-this.offset.click.top>p[3])?l:!(l-this.offset.click.top<p[1])?l-e.grid[1]:l+e.grid[1]:l;j=e.grid[0]?this.originalPageX+Math.round((j-this.originalPageX)/
e.grid[0])*e.grid[0]:this.originalPageX;j=p?!(j-this.offset.click.left<p[0]||j-this.offset.click.left>p[2])?j:!(j-this.offset.click.left<p[0])?j-e.grid[0]:j+e.grid[0]:j}}return{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:d.scrollTop()),left:j-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<
526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:d.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(b,e,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[e,d]);if(b=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,b,e,
d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"@VERSION"});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,e){var d=a(this).data("draggable"),h=d.options,j=a.extend({},e,{item:d.element});d.sortables=[];a(h.connectToSortable).each(function(){var l=a.data(this,"sortable");if(l&&!l.options.disabled){d.sortables.push({instance:l,shouldRevert:l.options.revert});
l.refreshPositions();l._trigger("activate",b,j)}})},stop:function(b,e){var d=a(this).data("draggable"),h=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;d.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=
false;this.instance._trigger("deactivate",b,h)}})},drag:function(b,e){var d=a(this).data("draggable"),h=this;a.each(d.sortables,function(){this.instance.positionAbs=d.positionAbs;this.instance.helperProportions=d.helperProportions;this.instance.offset.click=d.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(h).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);
this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=d.offset.click.top;this.instance.offset.click.left=d.offset.click.left;this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top;
d._trigger("toSortable",b);d.dropped=this.instance.element;d.currentItem=d.element;this.instance.fromOutside=d}this.instance.currentItem&&this.instance._mouseDrag(b)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",b,this.instance._uiHash(this.instance));this.instance._mouseStop(b,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&
this.instance.placeholder.remove();d._trigger("fromSortable",b);d.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor"))e._cursor=b.css("cursor");b.css("cursor",e.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(b,e){b=a(e.helper);e=a(this).data("draggable").options;if(b.css("opacity"))e._opacity=
b.css("opacity");b.css("opacity",e.opacity)},stop:function(b,e){b=a(this).data("draggable").options;b._opacity&&a(e.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(b){var e=a(this).data("draggable"),d=e.options,h=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!d.axis||d.axis!=
"x")if(e.overflowOffset.top+e.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity)e.scrollParent[0].scrollTop=h=e.scrollParent[0].scrollTop+d.scrollSpeed;else if(b.pageY-e.overflowOffset.top<d.scrollSensitivity)e.scrollParent[0].scrollTop=h=e.scrollParent[0].scrollTop-d.scrollSpeed;if(!d.axis||d.axis!="y")if(e.overflowOffset.left+e.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity)e.scrollParent[0].scrollLeft=h=e.scrollParent[0].scrollLeft+d.scrollSpeed;else if(b.pageX-e.overflowOffset.left<
d.scrollSensitivity)e.scrollParent[0].scrollLeft=h=e.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(!d.axis||d.axis!="x")if(b.pageY-a(document).scrollTop()<d.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed);else if(a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed);if(!d.axis||d.axis!="y")if(b.pageX-a(document).scrollLeft()<d.scrollSensitivity)h=a(document).scrollLeft(a(document).scrollLeft()-
d.scrollSpeed);else if(a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity)h=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)}h!==false&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(e,b)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var d=a(this),h=d.offset();this!=b.element[0]&&b.snapElements.push({item:this,
width:d.outerWidth(),height:d.outerHeight(),top:h.top,left:h.left})})},drag:function(b,e){for(var d=a(this).data("draggable"),h=d.options,j=h.snapTolerance,l=e.offset.left,p=l+d.helperProportions.width,w=e.offset.top,z=w+d.helperProportions.height,G=d.snapElements.length-1;G>=0;G--){var K=d.snapElements[G].left,A=K+d.snapElements[G].width,s=d.snapElements[G].top,C=s+d.snapElements[G].height;if(K-j<l&&l<A+j&&s-j<w&&w<C+j||K-j<l&&l<A+j&&s-j<z&&z<C+j||K-j<p&&p<A+j&&s-j<w&&w<C+j||K-j<p&&p<A+j&&s-j<z&&
z<C+j){if(h.snapMode!="inner"){var I=Math.abs(s-z)<=j,S=Math.abs(C-w)<=j,y=Math.abs(K-p)<=j,M=Math.abs(A-l)<=j;if(I)e.position.top=d._convertPositionTo("relative",{top:s-d.helperProportions.height,left:0}).top-d.margins.top;if(S)e.position.top=d._convertPositionTo("relative",{top:C,left:0}).top-d.margins.top;if(y)e.position.left=d._convertPositionTo("relative",{top:0,left:K-d.helperProportions.width}).left-d.margins.left;if(M)e.position.left=d._convertPositionTo("relative",{top:0,left:A}).left-d.margins.left}var v=
I||S||y||M;if(h.snapMode!="outer"){I=Math.abs(s-w)<=j;S=Math.abs(C-z)<=j;y=Math.abs(K-l)<=j;M=Math.abs(A-p)<=j;if(I)e.position.top=d._convertPositionTo("relative",{top:s,left:0}).top-d.margins.top;if(S)e.position.top=d._convertPositionTo("relative",{top:C-d.helperProportions.height,left:0}).top-d.margins.top;if(y)e.position.left=d._convertPositionTo("relative",{top:0,left:K}).left-d.margins.left;if(M)e.position.left=d._convertPositionTo("relative",{top:0,left:A-d.helperProportions.width}).left-d.margins.left}if(!d.snapElements[G].snapping&&
(I||S||y||M||v))d.options.snap.snap&&d.options.snap.snap.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[G].item}));d.snapElements[G].snapping=I||S||y||M||v}else{d.snapElements[G].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[G].item}));d.snapElements[G].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options;b=a.makeArray(a(b.stack)).sort(function(d,h){return(parseInt(a(d).css("zIndex"),
10)||0)-(parseInt(a(h).css("zIndex"),10)||0)});if(b.length){var e=parseInt(b[0].style.zIndex)||0;a(b).each(function(d){this.style.zIndex=e+d});this[0].style.zIndex=e+b.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(b,e){b=a(e.helper);e=a(this).data("draggable").options;if(b.css("zIndex"))e._zIndex=b.css("zIndex");b.css("zIndex",e.zIndex)},stop:function(b,e){b=a(this).data("draggable").options;b._zIndex&&a(e.helper).css("zIndex",b._zIndex)}})})(jQuery);
(function(a){a.ui=a.ui||{};var b=/left|center|right/,e=/top|center|bottom/,d=a.fn.position,h=a.fn.offset;a.fn.position=function(j){if(!j||!j.of)return d.apply(this,arguments);j=a.extend({},j);var l=a(j.of),p=l[0],w=(j.collision||"flip").split(" "),z=j.offset?j.offset.split(" "):[0,0],G,K,A;if(p.nodeType===9){G=l.width();K=l.height();A={top:0,left:0}}else if(p.setTimeout){G=l.width();K=l.height();A={top:l.scrollTop(),left:l.scrollLeft()}}else if(p.preventDefault){j.at="left top";G=K=0;A={top:j.of.pageY,
left:j.of.pageX}}else{G=l.outerWidth();K=l.outerHeight();A=l.offset()}a.each(["my","at"],function(){var s=(j[this]||"").split(" ");if(s.length===1)s=b.test(s[0])?s.concat(["center"]):e.test(s[0])?["center"].concat(s):["center","center"];s[0]=b.test(s[0])?s[0]:"center";s[1]=e.test(s[1])?s[1]:"center";j[this]=s});if(w.length===1)w[1]=w[0];z[0]=parseInt(z[0],10)||0;if(z.length===1)z[1]=z[0];z[1]=parseInt(z[1],10)||0;if(j.at[0]==="right")A.left+=G;else if(j.at[0]==="center")A.left+=G/2;if(j.at[1]==="bottom")A.top+=
K;else if(j.at[1]==="center")A.top+=K/2;A.left+=z[0];A.top+=z[1];return this.each(function(){var s=a(this),C=s.outerWidth(),I=s.outerHeight(),S=parseInt(a.curCSS(this,"marginLeft",true))||0,y=parseInt(a.curCSS(this,"marginTop",true))||0,M=C+S+(parseInt(a.curCSS(this,"marginRight",true))||0),v=I+y+(parseInt(a.curCSS(this,"marginBottom",true))||0),q=a.extend({},A),O;if(j.my[0]==="right")q.left-=C;else if(j.my[0]==="center")q.left-=C/2;if(j.my[1]==="bottom")q.top-=I;else if(j.my[1]==="center")q.top-=
I/2;q.left=Math.round(q.left);q.top=Math.round(q.top);O={left:q.left-S,top:q.top-y};a.each(["left","top"],function(T,ca){a.ui.position[w[T]]&&a.ui.position[w[T]][ca](q,{targetWidth:G,targetHeight:K,elemWidth:C,elemHeight:I,collisionPosition:O,collisionWidth:M,collisionHeight:v,offset:z,my:j.my,at:j.at})});a.fn.bgiframe&&s.bgiframe();s.offset(a.extend(q,{using:j.using}))})};a.ui.position={fit:{left:function(j,l){var p=a(window);p=l.collisionPosition.left+l.collisionWidth-p.width()-p.scrollLeft();j.left=
p>0?j.left-p:Math.max(j.left-l.collisionPosition.left,j.left)},top:function(j,l){var p=a(window);p=l.collisionPosition.top+l.collisionHeight-p.height()-p.scrollTop();j.top=p>0?j.top-p:Math.max(j.top-l.collisionPosition.top,j.top)}},flip:{left:function(j,l){if(l.at[0]!=="center"){var p=a(window);p=l.collisionPosition.left+l.collisionWidth-p.width()-p.scrollLeft();var w=l.my[0]==="left"?-l.elemWidth:l.my[0]==="right"?l.elemWidth:0,z=l.at[0]==="left"?l.targetWidth:-l.targetWidth,G=-2*l.offset[0];j.left+=
l.collisionPosition.left<0?w+z+G:p>0?w+z+G:0}},top:function(j,l){if(l.at[1]!=="center"){var p=a(window);p=l.collisionPosition.top+l.collisionHeight-p.height()-p.scrollTop();var w=l.my[1]==="top"?-l.elemHeight:l.my[1]==="bottom"?l.elemHeight:0,z=l.at[1]==="top"?l.targetHeight:-l.targetHeight,G=-2*l.offset[1];j.top+=l.collisionPosition.top<0?w+z+G:p>0?w+z+G:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(j,l){if(/static/.test(a.curCSS(j,"position")))j.style.position="relative";var p=a(j),
w=p.offset(),z=parseInt(a.curCSS(j,"top",true),10)||0,G=parseInt(a.curCSS(j,"left",true),10)||0;w={top:l.top-w.top+z,left:l.left-w.left+G};"using"in l?l.using.call(j,w):p.css(w)};a.fn.offset=function(j){var l=this[0];if(!l||!l.ownerDocument)return null;if(j)return this.each(function(){a.offset.setOffset(this,j)});return h.call(this)}}})(jQuery);
(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(e){if(e===b)return this._value();this._setOption("value",e);return this},_setOption:function(e,d){if(e==="value"){this.options.value=d;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var e=this.options.value;if(typeof e!=="number")e=0;return Math.min(this.options.max,Math.max(this.min,e))},_percentage:function(){return 100*
this._value()/this.options.max},_refreshValue:function(){var e=this.value(),d=this._percentage();if(this.oldValue!==e){this.oldValue=e;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",e===this.options.max).width(d.toFixed(0)+"%");this.element.attr("aria-valuenow",e)}});a.extend(a.ui.progressbar,{version:"1.8.11"})})(jQuery);
(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var d=this,h=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=h.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var j=this.handles.split(",");this.handles={};for(var l=0;l<j.length;l++){var p=a.trim(j[l]),w=a('<div class="ui-resizable-handle '+("ui-resizable-"+p)+'"></div>');/sw|se|ne|nw/.test(p)&&w.css({zIndex:++h.zIndex});"se"==p&&w.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[p]=".ui-resizable-"+p;this.element.append(w)}}this._renderAxis=function(z){z=z||this.element;for(var G in this.handles){if(this.handles[G].constructor==
String)this.handles[G]=a(this.handles[G],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var K=a(this.handles[G],this.element),A=0;A=/sw|ne|nw|se|n|s/.test(G)?K.outerHeight():K.outerWidth();K=["padding",/ne|nw|n/.test(G)?"Top":/se|sw|s/.test(G)?"Bottom":/^e$/.test(G)?"Right":"Left"].join("");z.css(K,A);this._proportionallyResize()}a(this.handles[G])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!d.resizing){if(this.className)var z=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);d.axis=z&&z[1]?z[1]:"se"}});if(h.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){if(!h.disabled){a(this).removeClass("ui-resizable-autohide");d._handles.show()}},function(){if(!h.disabled)if(!d.resizing){a(this).addClass("ui-resizable-autohide");d._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();
var d=function(j){a(j).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var h=this.element;h.after(this.originalElement.css({position:h.css("position"),width:h.outerWidth(),height:h.outerHeight(),top:h.css("top"),left:h.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement);return this},_mouseCapture:function(d){var h=
false;for(var j in this.handles)if(a(this.handles[j])[0]==d.target)h=true;return!this.options.disabled&&h},_mouseStart:function(d){var h=this.options,j=this.element.position(),l=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(l.is(".ui-draggable")||/absolute/.test(l.css("position")))l.css({position:"absolute",top:j.top,left:j.left});a.browser.opera&&/relative/.test(l.css("position"))&&l.css({position:"relative",top:"auto",left:"auto"});
this._renderProxy();j=b(this.helper.css("left"));var p=b(this.helper.css("top"));if(h.containment){j+=a(h.containment).scrollLeft()||0;p+=a(h.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:p};this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()};this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()};this.originalPosition={left:j,top:p};this.sizeDiff=
{width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()};this.originalMousePosition={left:d.pageX,top:d.pageY};this.aspectRatio=typeof h.aspectRatio=="number"?h.aspectRatio:this.originalSize.width/this.originalSize.height||1;h=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",h=="auto"?this.axis+"-resize":h);l.addClass("ui-resizable-resizing");this._propagate("start",d);return true},_mouseDrag:function(d){var h=this.helper,j=this.originalMousePosition,l=this._change[this.axis];
if(!l)return false;j=l.apply(this,[d,d.pageX-j.left||0,d.pageY-j.top||0]);this._updateVirtualBoundaries(d.shiftKey);if(this._aspectRatio||d.shiftKey)j=this._updateRatio(j,d);j=this._respectSize(j,d);this._propagate("resize",d);h.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(j);this._trigger("resize",d,this.ui());return false},
_mouseStop:function(d){this.resizing=false;var h=this.options;if(this._helper){var j=this._proportionallyResizeElements,l=j.length&&/textarea/i.test(j[0].nodeName);j=l&&a.ui.hasScroll(j[0],"left")?0:this.sizeDiff.height;l=l?0:this.sizeDiff.width;l={width:this.helper.width()-l,height:this.helper.height()-j};j=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var p=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;h.animate||
this.element.css(a.extend(l,{top:p,left:j}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!h.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",d);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(d){var h=this.options,j,l,p;h={minWidth:e(h.minWidth)?h.minWidth:0,maxWidth:e(h.maxWidth)?h.maxWidth:Infinity,minHeight:e(h.minHeight)?h.minHeight:
0,maxHeight:e(h.maxHeight)?h.maxHeight:Infinity};if(this._aspectRatio||d){d=h.minHeight*this.aspectRatio;l=h.minWidth/this.aspectRatio;j=h.maxHeight*this.aspectRatio;p=h.maxWidth/this.aspectRatio;if(d>h.minWidth)h.minWidth=d;if(l>h.minHeight)h.minHeight=l;if(j<h.maxWidth)h.maxWidth=j;if(p<h.maxHeight)h.maxHeight=p}this._vBoundaries=h},_updateCache:function(d){this.offset=this.helper.offset();if(e(d.left))this.position.left=d.left;if(e(d.top))this.position.top=d.top;if(e(d.height))this.size.height=
d.height;if(e(d.width))this.size.width=d.width},_updateRatio:function(d){var h=this.position,j=this.size,l=this.axis;if(e(d.height))d.width=d.height*this.aspectRatio;else if(e(d.width))d.height=d.width/this.aspectRatio;if(l=="sw"){d.left=h.left+(j.width-d.width);d.top=null}if(l=="nw"){d.top=h.top+(j.height-d.height);d.left=h.left+(j.width-d.width)}return d},_respectSize:function(d){var h=this._vBoundaries,j=this.axis,l=e(d.width)&&h.maxWidth&&h.maxWidth<d.width,p=e(d.height)&&h.maxHeight&&h.maxHeight<
d.height,w=e(d.width)&&h.minWidth&&h.minWidth>d.width,z=e(d.height)&&h.minHeight&&h.minHeight>d.height;if(w)d.width=h.minWidth;if(z)d.height=h.minHeight;if(l)d.width=h.maxWidth;if(p)d.height=h.maxHeight;var G=this.originalPosition.left+this.originalSize.width,K=this.position.top+this.size.height,A=/sw|nw|w/.test(j);j=/nw|ne|n/.test(j);if(w&&A)d.left=G-h.minWidth;if(l&&A)d.left=G-h.maxWidth;if(z&&j)d.top=K-h.minHeight;if(p&&j)d.top=K-h.maxHeight;if((h=!d.width&&!d.height)&&!d.left&&d.top)d.top=null;
else if(h&&!d.top&&d.left)d.left=null;return d},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var d=this.helper||this.element,h=0;h<this._proportionallyResizeElements.length;h++){var j=this._proportionallyResizeElements[h];if(!this.borderDif){var l=[j.css("borderTopWidth"),j.css("borderRightWidth"),j.css("borderBottomWidth"),j.css("borderLeftWidth")],p=[j.css("paddingTop"),j.css("paddingRight"),j.css("paddingBottom"),j.css("paddingLeft")];this.borderDif=a.map(l,
function(w,z){w=parseInt(w,10)||0;z=parseInt(p[z],10)||0;return w+z})}a.browser.msie&&(a(d).is(":hidden")||a(d).parents(":hidden").length)||j.css({height:d.height()-this.borderDif[0]-this.borderDif[2]||0,width:d.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var d=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var h=a.browser.msie&&a.browser.version<7,j=h?1:0;h=h?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-j+"px",top:this.elementOffset.top-j+"px",zIndex:++d.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(d,h){return{width:this.originalSize.width+h}},w:function(d,h){return{left:this.originalPosition.left+h,width:this.originalSize.width-h}},n:function(d,h,j){return{top:this.originalPosition.top+j,height:this.originalSize.height-j}},s:function(d,h,j){return{height:this.originalSize.height+
j}},se:function(d,h,j){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,h,j]))},sw:function(d,h,j){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,h,j]))},ne:function(d,h,j){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,h,j]))},nw:function(d,h,j){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,h,j]))}},_propagate:function(d,h){a.ui.plugin.call(this,d,[h,this.ui()]);
d!="resize"&&this._trigger(d,h,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"@VERSION"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var d=a(this).data("resizable").options,h=function(j){a(j).each(function(){var l=a(this);l.data("resizable-alsoresize",{width:parseInt(l.width(),
10),height:parseInt(l.height(),10),left:parseInt(l.css("left"),10),top:parseInt(l.css("top"),10),position:l.css("position")})})};if(typeof d.alsoResize=="object"&&!d.alsoResize.parentNode)if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];h(d.alsoResize)}else a.each(d.alsoResize,function(j){h(j)});else h(d.alsoResize)},resize:function(d,h){var j=a(this).data("resizable");d=j.options;var l=j.originalSize,p=j.originalPosition,w={height:j.size.height-l.height||0,width:j.size.width-l.width||0,top:j.position.top-
p.top||0,left:j.position.left-p.left||0},z=function(G,K){a(G).each(function(){var A=a(this),s=a(this).data("resizable-alsoresize"),C={},I=K&&K.length?K:A.parents(h.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(I,function(S,y){if((S=(s[y]||0)+(w[y]||0))&&S>=0)C[y]=S||null});if(a.browser.opera&&/relative/.test(A.css("position"))){j._revertToRelativePosition=true;A.css({position:"absolute",top:"auto",left:"auto"})}A.css(C)})};typeof d.alsoResize=="object"&&!d.alsoResize.nodeType?
a.each(d.alsoResize,function(G,K){z(G,K)}):z(d.alsoResize)},stop:function(){var d=a(this).data("resizable"),h=d.options,j=function(l){a(l).each(function(){var p=a(this);p.css({position:p.data("resizable-alsoresize").position})})};if(d._revertToRelativePosition){d._revertToRelativePosition=false;typeof h.alsoResize=="object"&&!h.alsoResize.nodeType?a.each(h.alsoResize,function(l){j(l)}):j(h.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(d){var h=
a(this).data("resizable"),j=h.options,l=h._proportionallyResizeElements,p=l.length&&/textarea/i.test(l[0].nodeName),w=p&&a.ui.hasScroll(l[0],"left")?0:h.sizeDiff.height;p={width:h.size.width-(p?0:h.sizeDiff.width),height:h.size.height-w};w=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null;var z=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null;h.element.animate(a.extend(p,z&&w?{top:z,left:w}:{}),{duration:j.animateDuration,easing:j.animateEasing,
step:function(){var G={width:parseInt(h.element.css("width"),10),height:parseInt(h.element.css("height"),10),top:parseInt(h.element.css("top"),10),left:parseInt(h.element.css("left"),10)};l&&l.length&&a(l[0]).css({width:G.width,height:G.height});h._updateCache(G);h._propagate("resize",d)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var d=a(this).data("resizable"),h=d.element,j=d.options.containment;if(h=j instanceof a?j.get(0):/parent/.test(j)?h.parent().get(0):j){d.containerElement=
a(h);if(/document/.test(j)||j==document){d.containerOffset={left:0,top:0};d.containerPosition={left:0,top:0};d.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var l=a(h),p=[];a(["Top","Right","Left","Bottom"]).each(function(G,K){p[G]=b(l.css("padding"+K))});d.containerOffset=l.offset();d.containerPosition=l.position();d.containerSize={height:l.innerHeight()-p[3],width:l.innerWidth()-p[1]};j=d.containerOffset;
var w=d.containerSize.height,z=d.containerSize.width;z=a.ui.hasScroll(h,"left")?h.scrollWidth:z;w=a.ui.hasScroll(h)?h.scrollHeight:w;d.parentData={element:h,left:j.left,top:j.top,width:z,height:w}}}},resize:function(d){var h=a(this).data("resizable"),j=h.options,l=h.containerOffset,p=h.position;d=h._aspectRatio||d.shiftKey;var w={top:0,left:0},z=h.containerElement;if(z[0]!=document&&/static/.test(z.css("position")))w=l;if(p.left<(h._helper?l.left:0)){h.size.width+=h._helper?h.position.left-l.left:
h.position.left-w.left;if(d)h.size.height=h.size.width/j.aspectRatio;h.position.left=j.helper?l.left:0}if(p.top<(h._helper?l.top:0)){h.size.height+=h._helper?h.position.top-l.top:h.position.top;if(d)h.size.width=h.size.height*j.aspectRatio;h.position.top=h._helper?l.top:0}h.offset.left=h.parentData.left+h.position.left;h.offset.top=h.parentData.top+h.position.top;j=Math.abs((h._helper?h.offset.left-w.left:h.offset.left-w.left)+h.sizeDiff.width);l=Math.abs((h._helper?h.offset.top-w.top:h.offset.top-
l.top)+h.sizeDiff.height);p=h.containerElement.get(0)==h.element.parent().get(0);w=/relative|absolute/.test(h.containerElement.css("position"));if(p&&w)j-=h.parentData.left;if(j+h.size.width>=h.parentData.width){h.size.width=h.parentData.width-j;if(d)h.size.height=h.size.width/h.aspectRatio}if(l+h.size.height>=h.parentData.height){h.size.height=h.parentData.height-l;if(d)h.size.width=h.size.height*h.aspectRatio}},stop:function(){var d=a(this).data("resizable"),h=d.options,j=d.containerOffset,l=d.containerPosition,
p=d.containerElement,w=a(d.helper),z=w.offset(),G=w.outerWidth()-d.sizeDiff.width;w=w.outerHeight()-d.sizeDiff.height;d._helper&&!h.animate&&/relative/.test(p.css("position"))&&a(this).css({left:z.left-l.left-j.left,width:G,height:w});d._helper&&!h.animate&&/static/.test(p.css("position"))&&a(this).css({left:z.left-l.left-j.left,width:G,height:w})}});a.ui.plugin.add("resizable","ghost",{start:function(){var d=a(this).data("resizable"),h=d.options,j=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,
display:"block",position:"relative",height:j.height,width:j.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");d.ghost.appendTo(d.helper)},resize:function(){var d=a(this).data("resizable");d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(){var d=a(this).data("resizable");d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var d=
a(this).data("resizable"),h=d.options,j=d.size,l=d.originalSize,p=d.originalPosition,w=d.axis;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var z=Math.round((j.width-l.width)/(h.grid[0]||1))*(h.grid[0]||1);h=Math.round((j.height-l.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(w)){d.size.width=l.width+z;d.size.height=l.height+h}else if(/^(ne)$/.test(w)){d.size.width=l.width+z;d.size.height=l.height+h;d.position.top=p.top-h}else{if(/^(sw)$/.test(w)){d.size.width=l.width+z;d.size.height=
l.height+h}else{d.size.width=l.width+z;d.size.height=l.height+h;d.position.top=p.top-h}d.position.left=p.left-z}}});var b=function(d){return parseInt(d,10)||0},e=function(d){return!isNaN(parseInt(d,10))}})(jQuery);
(function(a,b){function e(){return++h}function d(){return++j}var h=0,j=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(l,p){if(l=="selected")this.options.collapsible&&
p==this.options.selected||this.select(p);else{this.options[l]=p;this._tabify()}},_tabId:function(l){return l.title&&l.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(l){return l.replace(/:/g,"\\:")},_cookie:function(){var l=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+d());return a.cookie.apply(null,[l].concat(a.makeArray(arguments)))},_ui:function(l,p){return{tab:l,panel:p,index:this.anchors.index(l)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var l=
a(this);l.html(l.data("label.tabs")).removeData("label.tabs")})},_tabify:function(l){function p(M,v){M.css("display","");!a.support.opacity&&v.opacity&&M[0].style.removeAttribute("filter")}var w=this,z=this.options,G=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(M,v){var q=a(v).attr("href"),O=q.split("#")[0],T;if(O&&(O===location.toString().split("#")[0]||
(T=a("base")[0])&&O===T.href)){q=v.hash;v.href=q}if(G.test(q))w.panels=w.panels.add(w.element.find(w._sanitizeSelector(q)));else if(q&&q!=="#"){a.data(v,"href.tabs",q);a.data(v,"load.tabs",q.replace(/#.*$/,""));q=w._tabId(v);v.href="#"+q;v=w.element.find("#"+q);if(!v.length){v=a(z.panelTemplate).attr("id",q).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(w.panels[M-1]||w.list);v.data("destroy.tabs",true)}w.panels=w.panels.add(v)}else z.disabled.push(M)});if(l){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(z.selected===b){location.hash&&this.anchors.each(function(M,v){if(v.hash==location.hash){z.selected=M;return false}});if(typeof z.selected!=="number"&&z.cookie)z.selected=parseInt(w._cookie(),10);if(typeof z.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)z.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));z.selected=z.selected||(this.lis.length?0:-1)}else if(z.selected===null)z.selected=-1;z.selected=z.selected>=0&&this.anchors[z.selected]||z.selected<0?z.selected:0;z.disabled=a.unique(z.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(M){return w.lis.index(M)}))).sort();a.inArray(z.selected,z.disabled)!=-1&&z.disabled.splice(a.inArray(z.selected,z.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(z.selected>=0&&this.anchors.length){w.element.find(w._sanitizeSelector(w.anchors[z.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(z.selected).addClass("ui-tabs-selected ui-state-active");w.element.queue("tabs",function(){w._trigger("show",null,w._ui(w.anchors[z.selected],w.element.find(w._sanitizeSelector(w.anchors[z.selected].hash))[0]))});this.load(z.selected)}a(window).bind("unload",function(){w.lis.add(w.anchors).unbind(".tabs");w.lis=w.anchors=w.panels=null})}else z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[z.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");z.cookie&&this._cookie(z.selected,z.cookie);l=0;for(var K;K=this.lis[l];l++)a(K)[a.inArray(l,z.disabled)!=-1&&!a(K).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");z.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(z.event!=="mouseover"){var A=function(M,v){v.is(":not(.ui-state-disabled)")&&v.addClass("ui-state-"+M)},s=function(M,v){v.removeClass("ui-state-"+
M)};this.lis.bind("mouseover.tabs",function(){A("hover",a(this))});this.lis.bind("mouseout.tabs",function(){s("hover",a(this))});this.anchors.bind("focus.tabs",function(){A("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){s("focus",a(this).closest("li"))})}var C,I;if(z.fx)if(a.isArray(z.fx)){C=z.fx[0];I=z.fx[1]}else C=I=z.fx;var S=I?function(M,v){a(M).closest("li").addClass("ui-tabs-selected ui-state-active");v.hide().removeClass("ui-tabs-hide").animate(I,I.duration||"normal",
function(){p(v,I);w._trigger("show",null,w._ui(M,v[0]))})}:function(M,v){a(M).closest("li").addClass("ui-tabs-selected ui-state-active");v.removeClass("ui-tabs-hide");w._trigger("show",null,w._ui(M,v[0]))},y=C?function(M,v){v.animate(C,C.duration||"normal",function(){w.lis.removeClass("ui-tabs-selected ui-state-active");v.addClass("ui-tabs-hide");p(v,C);w.element.dequeue("tabs")})}:function(M,v){w.lis.removeClass("ui-tabs-selected ui-state-active");v.addClass("ui-tabs-hide");w.element.dequeue("tabs")};
this.anchors.bind(z.event+".tabs",function(){var M=this,v=a(M).closest("li"),q=w.panels.filter(":not(.ui-tabs-hide)"),O=w.element.find(w._sanitizeSelector(M.hash));if(v.hasClass("ui-tabs-selected")&&!z.collapsible||v.hasClass("ui-state-disabled")||v.hasClass("ui-state-processing")||w.panels.filter(":animated").length||w._trigger("select",null,w._ui(this,O[0]))===false){this.blur();return false}z.selected=w.anchors.index(this);w.abort();if(z.collapsible)if(v.hasClass("ui-tabs-selected")){z.selected=
-1;z.cookie&&w._cookie(z.selected,z.cookie);w.element.queue("tabs",function(){y(M,q)}).dequeue("tabs");this.blur();return false}else if(!q.length){z.cookie&&w._cookie(z.selected,z.cookie);w.element.queue("tabs",function(){S(M,O)});w.load(w.anchors.index(this));this.blur();return false}z.cookie&&w._cookie(z.selected,z.cookie);if(O.length){q.length&&w.element.queue("tabs",function(){y(M,q)});w.element.queue("tabs",function(){S(M,O)});w.load(w.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(l){if(typeof l=="string")l=this.anchors.index(this.anchors.filter("[href$="+l+"]"));return l},destroy:function(){var l=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 p=
a.data(this,"href.tabs");if(p)this.href=p;var w=a(this).unbind(".tabs");a.each(["href","load","cache"],function(z,G){w.removeData(G+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});l.cookie&&this._cookie(null,l.cookie);return this},add:function(l,
p,w){if(w===b)w=this.anchors.length;var z=this,G=this.options;p=a(G.tabTemplate.replace(/#\{href\}/g,l).replace(/#\{label\}/g,p));l=!l.indexOf("#")?l.replace("#",""):this._tabId(a("a",p)[0]);p.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var K=z.element.find("#"+l);K.length||(K=a(G.panelTemplate).attr("id",l).data("destroy.tabs",true));K.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(w>=this.lis.length){p.appendTo(this.list);K.appendTo(this.list[0].parentNode)}else{p.insertBefore(this.lis[w]);
K.insertBefore(this.panels[w])}G.disabled=a.map(G.disabled,function(A){return A>=w?++A:A});this._tabify();if(this.anchors.length==1){G.selected=0;p.addClass("ui-tabs-selected ui-state-active");K.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){z._trigger("show",null,z._ui(z.anchors[0],z.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[w],this.panels[w]));return this},remove:function(l){l=this._getIndex(l);var p=this.options,w=this.lis.eq(l).remove(),z=this.panels.eq(l).remove();
if(w.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(l+(l+1<this.anchors.length?1:-1));p.disabled=a.map(a.grep(p.disabled,function(G){return G!=l}),function(G){return G>=l?--G:G});this._tabify();this._trigger("remove",null,this._ui(w.find("a")[0],z[0]));return this},enable:function(l){l=this._getIndex(l);var p=this.options;if(a.inArray(l,p.disabled)!=-1){this.lis.eq(l).removeClass("ui-state-disabled");p.disabled=a.grep(p.disabled,function(w){return w!=l});this._trigger("enable",null,
this._ui(this.anchors[l],this.panels[l]));return this}},disable:function(l){l=this._getIndex(l);var p=this.options;if(l!=p.selected){this.lis.eq(l).addClass("ui-state-disabled");p.disabled.push(l);p.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[l],this.panels[l]))}return this},select:function(l){l=this._getIndex(l);if(l==-1)if(this.options.collapsible&&this.options.selected!=-1)l=this.options.selected;else return this;this.anchors.eq(l).trigger(this.options.event+".tabs");return this},
load:function(l){l=this._getIndex(l);var p=this,w=this.options,z=this.anchors.eq(l)[0],G=a.data(z,"load.tabs");this.abort();if(!G||this.element.queue("tabs").length!==0&&a.data(z,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(l).addClass("ui-state-processing");if(w.spinner){var K=a("span",z);K.data("label.tabs",K.html()).html(w.spinner)}this.xhr=a.ajax(a.extend({},w.ajaxOptions,{url:G,success:function(A,s){p.element.find(p._sanitizeSelector(z.hash)).html(A);p._cleanup();w.cache&&a.data(z,
"cache.tabs",true);p._trigger("load",null,p._ui(p.anchors[l],p.panels[l]));try{w.ajaxOptions.success(A,s)}catch(C){}},error:function(A,s){p._cleanup();p._trigger("load",null,p._ui(p.anchors[l],p.panels[l]));try{w.ajaxOptions.error(A,s,l,z)}catch(C){}}}));p.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
url:function(l,p){this.anchors.eq(l).removeData("cache.tabs").data("load.tabs",p);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.11"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(l,p){var w=this,z=this.options,G=w._rotate||(w._rotate=function(K){clearTimeout(w.rotation);w.rotation=setTimeout(function(){var A=z.selected;w.select(++A<w.anchors.length?A:0)},l);K&&K.stopPropagation()});p=w._unrotate||(w._unrotate=!p?function(K){K.clientX&&
w.rotate(null)}:function(){t=z.selected;G()});if(l){this.element.bind("tabsshow",G);this.anchors.bind(z.event+".tabs",p);G()}else{clearTimeout(w.rotation);this.element.unbind("tabsshow",G);this.anchors.unbind(z.event+".tabs",p);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
jQuery.ajaxq=function(a,b){if(typeof document.ajaxq=="undefined")document.ajaxq={q:{},r:null,rq:null};if(typeof document.ajaxq.q[a]=="undefined")document.ajaxq.q[a]=[];if(typeof b!="undefined"){var e={};for(var d in b)e[d]=b[d];b=e;var h=b.complete;b.complete=function(j,l){document.ajaxq.q[a].shift();document.ajaxq.r=null;document.ajaxq.rq=null;h&&h(j,l);if(document.ajaxq.q[a].length>0){document.ajaxq.rq=a;document.ajaxq.r=jQuery.ajax(document.ajaxq.q[a][0])}};document.ajaxq.q[a].push(b);if(document.ajaxq.q[a].length==
1){document.ajaxq.rq=a;document.ajaxq.r=jQuery.ajax(b)}}else{if(document.ajaxq.rq==a){document.ajaxq.r.abort();document.ajaxq.r=null;document.ajaxq.rq=null}document.ajaxq.q[a]=[]}};
(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var b=this.options;this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?b.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):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 b=this.items.length-1;b>=0;b--)this.items[b].item.removeData("sortable-item");return this},_setOption:function(b,e){if(b===
"disabled"){this.options[b]=e;this.widget()[e?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,e){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(b);var d=null,h=this;a(b.target).parents().each(function(){if(a.data(this,"sortable-item")==h){d=a(this);return false}});if(a.data(b.target,"sortable-item")==h)d=a(b.target);if(!d)return false;if(this.options.handle&&
!e){var j=false;a(this.options.handle,d).find("*").andSelf().each(function(){if(this==b.target)j=true});if(!j)return false}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(b,e,d){e=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-
this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();e.containment&&this._setContainment();if(e.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",e.cursor)}if(e.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",e.opacity)}if(e.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",e.zIndex)}if(this.scrollParent[0]!=
document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate",b,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);
return true},_mouseDrag:function(b){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var e=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+e.scrollSpeed;else if(b.pageY-this.overflowOffset.top<
e.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-e.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+e.scrollSpeed;else if(b.pageX-this.overflowOffset.left<e.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(b.pageY-a(document).scrollTop()<e.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-
e.scrollSpeed);else if(a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed);if(b.pageX-a(document).scrollLeft()<e.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed);else if(a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)}d!==false&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,
b)}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(e=this.items.length-1;e>=0;e--){d=this.items[e];var h=d.item[0],j=this._intersectsWithPointer(d);if(j)if(h!=this.currentItem[0]&&this.placeholder[j==1?"next":"prev"]()[0]!=h&&!a.ui.contains(this.placeholder[0],h)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],
h):true)){this.direction=j==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(d))this._rearrange(b,d);else break;this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);this._trigger("sort",b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,e){if(b){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this;e=d.placeholder.offset();
d.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-d.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,e);return false}},cancel:function(){if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):
this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,this._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,this._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,
{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(b){var e=this._getItemsAsjQuery(b&&b.connected),d=[];b=b||{};a(e).each(function(){var h=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(h)d.push((b.key||h[1]+"[]")+"="+(b.key&&b.expression?h[1]:h[2]))});!d.length&&b.key&&d.push(b.key+"=");return d.join("&")},
toArray:function(b){var e=this._getItemsAsjQuery(b&&b.connected),d=[];b=b||{};e.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")});return d},_intersectsWith:function(b){var e=this.positionAbs.left,d=e+this.helperProportions.width,h=this.positionAbs.top,j=h+this.helperProportions.height,l=b.left,p=l+b.width,w=b.top,z=w+b.height,G=this.offset.click.top,K=this.offset.click.left;G=h+G>w&&h+G<z&&e+K>l&&e+K<p;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?G:l<e+this.helperProportions.width/2&&d-this.helperProportions.width/2<p&&w<h+this.helperProportions.height/2&&j-this.helperProportions.height/2<z},_intersectsWithPointer:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width);e=e&&b;b=this._getDragVerticalDirection();
var d=this._getDragHorizontalDirection();if(!e)return false;return this.floating?d&&d=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var d=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h=="right"&&b||h=="left"&&!b:d&&(d=="down"&&e||d=="up"&&!e)},
_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var e=[],d=[],h=this._connectWith();
if(h&&b)for(b=h.length-1;b>=0;b--)for(var j=a(h[b]),l=j.length-1;l>=0;l--){var p=a.data(j[l],"sortable");if(p&&p!=this&&!p.options.disabled)d.push([a.isFunction(p.options.items)?p.options.items.call(p.element):a(p.options.items,p.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),p])}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
this]);for(b=d.length-1;b>=0;b--)d[b][0].each(function(){e.push(this)});return a(e)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++)for(var d=0;d<b.length;d++)b[d]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var e=this.items,d=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),
this]],h=this._connectWith();if(h)for(var j=h.length-1;j>=0;j--)for(var l=a(h[j]),p=l.length-1;p>=0;p--){var w=a.data(l[p],"sortable");if(w&&w!=this&&!w.options.disabled){d.push([a.isFunction(w.options.items)?w.options.items.call(w.element[0],b,{item:this.currentItem}):a(w.options.items,w.element),w]);this.containers.push(w)}}for(j=d.length-1;j>=0;j--){b=d[j][1];h=d[j][0];p=0;for(l=h.length;p<l;p++){w=a(h[p]);w.data("sortable-item",b);e.push({item:w,instance:b,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&
this.helper)this.offset.parent=this._getParentOffset();for(var e=this.items.length-1;e>=0;e--){var d=this.items[e];if(!(d.instance!=this.currentContainer&&this.currentContainer&&d.item[0]!=this.currentItem[0])){var h=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;if(!b){d.width=h.outerWidth();d.height=h.outerHeight()}h=h.offset();d.left=h.left;d.top=h.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=
this.containers.length-1;e>=0;e--){h=this.containers[e].element.offset();this.containers[e].containerCache.left=h.left;this.containers[e].containerCache.top=h.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}return this},_createPlaceholder:function(b){var e=b||this,d=e.options;if(!d.placeholder||d.placeholder.constructor==String){var h=d.placeholder;d.placeholder={element:function(){var j=
a(document.createElement(e.currentItem[0].nodeName)).addClass(h||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h)j.style.visibility="hidden";return j},update:function(j,l){if(!(h&&!d.forcePlaceholderSize)){l.height()||l.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10));l.width()||l.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||
0,10))}}}}e.placeholder=a(d.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);d.placeholder.update(e,e.placeholder)},_contactContainers:function(b){for(var e=null,d=null,h=this.containers.length-1;h>=0;h--)if(!a.ui.contains(this.currentItem[0],this.containers[h].element[0]))if(this._intersectsWith(this.containers[h].containerCache)){if(!(e&&a.ui.contains(this.containers[h].element[0],e.element[0]))){e=this.containers[h];d=h}}else if(this.containers[h].containerCache.over){this.containers[h]._trigger("out",
b,this._uiHash(this));this.containers[h].containerCache.over=0}if(e)if(this.containers.length===1){this.containers[d]._trigger("over",b,this._uiHash(this));this.containers[d].containerCache.over=1}else if(this.currentContainer!=this.containers[d]){e=1E4;h=null;for(var j=this.positionAbs[this.containers[d].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(a.ui.contains(this.containers[d].element[0],this.items[l].item[0])){var p=this.items[l][this.containers[d].floating?"left":"top"];if(Math.abs(p-
j)<e){e=Math.abs(p-j);h=this.items[l]}}if(h||this.options.dropOnEmpty){this.currentContainer=this.containers[d];h?this._rearrange(b,h,null,true):this._rearrange(b,null,this.containers[d].element,true);this._trigger("change",b,this._uiHash());this.containers[d]._trigger("change",b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[d]._trigger("over",b,this._uiHash(this));this.containers[d].containerCache.over=1}}},_createHelper:function(b){var e=
this.options;b=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[b,this.currentItem])):e.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||a(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[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(b[0].style.width==
""||e.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||e.forceHelperSize)b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=
this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b=
{top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}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 b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?
document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var e=a(b.containment)[0];b=a(b.containment).offset();var d=a(e).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(e).css("borderTopWidth"),
10)||0)+(parseInt(a(e).css("paddingTop"),10)||0)-this.margins.top,b.left+(d?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(d?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,e){if(!e)e=
this.position;b=b=="absolute"?1:-1;var d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(d[0].tagName);return{top:e.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:d.scrollTop())*b),left:e.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&
this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:d.scrollLeft())*b)}},_generatePosition:function(b){var e=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(d[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
var j=b.pageX,l=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])j=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])l=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])j=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])l=this.containment[3]+this.offset.click.top}if(e.grid){l=this.originalPageY+Math.round((l-
this.originalPageY)/e.grid[1])*e.grid[1];l=this.containment?!(l-this.offset.click.top<this.containment[1]||l-this.offset.click.top>this.containment[3])?l:!(l-this.offset.click.top<this.containment[1])?l-e.grid[1]:l+e.grid[1]:l;j=this.originalPageX+Math.round((j-this.originalPageX)/e.grid[0])*e.grid[0];j=this.containment?!(j-this.offset.click.left<this.containment[0]||j-this.offset.click.left>this.containment[2])?j:!(j-this.offset.click.left<this.containment[0])?j-e.grid[0]:j+e.grid[0]:j}}return{top:l-
this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:d.scrollTop()),left:j-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:d.scrollLeft())}},_rearrange:function(b,e,d,h){d?d[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],
this.direction=="down"?e.item[0]:e.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var j=this,l=this.counter;window.setTimeout(function(){l==j.counter&&j.refreshPositions(!h)},0)},_clear:function(b,e){this.reverting=false;var d=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var h in this._storedCSS)if(this._storedCSS[h]=="auto"||this._storedCSS[h]=="static")this._storedCSS[h]=
"";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!e&&d.push(function(j){this._trigger("receive",j,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])&&!e)d.push(function(j){this._trigger("update",j,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){e||d.push(function(j){this._trigger("remove",
j,this._uiHash())});for(h=this.containers.length-1;h>=0;h--)if(a.ui.contains(this.containers[h].element[0],this.currentItem[0])&&!e){d.push(function(j){return function(l){j._trigger("receive",l,this._uiHash(this))}}.call(this,this.containers[h]));d.push(function(j){return function(l){j._trigger("update",l,this._uiHash(this))}}.call(this,this.containers[h]))}}for(h=this.containers.length-1;h>=0;h--){e||d.push(function(j){return function(l){j._trigger("deactivate",l,this._uiHash(this))}}.call(this,
this.containers[h]));if(this.containers[h].containerCache.over){d.push(function(j){return function(l){j._trigger("out",l,this._uiHash(this))}}.call(this,this.containers[h]));this.containers[h].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",
b,this._uiHash());for(h=0;h<d.length;h++)d[h].call(this,b);this._trigger("stop",b,this._uiHash())}return false}e||this._trigger("beforeStop",b,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!e){for(h=0;h<d.length;h++)d[h].call(this,b);this._trigger("stop",b,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
_uiHash:function(b){var e=b||this;return{helper:e.helper,placeholder:e.placeholder||a([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:b?b.element:null}}});a.extend(a.ui.sortable,{version:"@VERSION"})})(jQuery);
(function(a){function b(d,h){return typeof d=="function"?d.call(h):d}function e(d,h){this.$element=a(d);this.options=h;this.enabled=true;this.fixTitle()}e.prototype={show:function(){var d=this.getTitle();if(d&&this.enabled){var h=this.tip();h.find(".tipsy-inner")[this.options.html?"html":"text"](d);h[0].className="tipsy";h.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);d=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});
var j=h[0].offsetWidth,l=h[0].offsetHeight,p=b(this.options.gravity,this.$element[0]),w;switch(p.charAt(0)){case "n":w={top:d.top+d.height+this.options.offset,left:d.left+d.width/2-j/2};break;case "s":w={top:d.top-l-this.options.offset,left:d.left+d.width/2-j/2};break;case "e":w={top:d.top+d.height/2-l/2,left:d.left-j-this.options.offset};break;case "w":w={top:d.top+d.height/2-l/2,left:d.left+d.width+this.options.offset};break}if(p.length==2)w.left=p.charAt(1)=="w"?d.left+d.width/2-15:d.left+d.width/
2-j+15;h.css(w).addClass("tipsy-"+p);h.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+p.charAt(0);this.options.className&&h.addClass(b(this.options.className,this.$element[0]));this.options.fade?h.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):h.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){a(this).remove()}):this.tip().remove()},fixTitle:function(){var d=
this.$element;if(d.attr("title")||typeof d.attr("original-title")!="string")d.attr("original-title",d.attr("title")||"").removeAttr("title")},getTitle:function(){var d,h=this.$element,j=this.options;this.fixTitle();j=this.options;if(typeof j.title=="string")d=h.attr(j.title=="title"?"original-title":j.title);else if(typeof j.title=="function")d=j.title.call(h[0]);return(d=(""+d).replace(/(^\s*|\s*$)/,""))||j.fallback},tip:function(){if(!this.$tip)this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.options=this.$element=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};a.fn.tipsy=function(d){function h(z){var G=a.data(z,"tipsy");if(!G){G=new e(z,a.fn.tipsy.elementOptions(z,d));a.data(z,"tipsy",G)}return G}function j(){var z=h(this);z.hoverState="in";if(d.delayIn==0)z.show();else{z.fixTitle();setTimeout(function(){z.hoverState==
"in"&&z.show()},d.delayIn)}}function l(){var z=h(this);z.hoverState="out";d.delayOut==0?z.hide():setTimeout(function(){z.hoverState=="out"&&z.hide()},d.delayOut)}if(d===true)return this.data("tipsy");else if(typeof d=="string"){var p=this.data("tipsy");p&&p[d]();return this}d=a.extend({},a.fn.tipsy.defaults,d);d.live||this.each(function(){h(this)});if(d.trigger!="manual"){p=d.live?"live":"bind";var w=d.trigger=="hover"?"mouseleave":"blur";this[p](d.trigger=="hover"?"mouseenter":"focus",j)[p](w,l)}return this};
a.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:false,fallback:"",gravity:"n",html:false,live:false,offset:0,opacity:0.8,title:"title",trigger:"hover"};a.fn.tipsy.elementOptions=function(d,h){return a.metadata?a.extend({},h,a(d).metadata()):h};a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"};a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"};a.fn.tipsy.autoBounds=
function(d,h){return function(){var j={ns:h[0],ew:h.length>1?h[1]:false},l=a(document).scrollTop()+d,p=a(document).scrollLeft()+d,w=a(this);if(w.offset().top<l)j.ns="n";if(w.offset().left<p)j.ew="w";if(a(window).width()+a(document).scrollLeft()-w.offset().left<d)j.ew="e";if(a(window).height()+a(document).scrollTop()-w.offset().top<d)j.ns="s";return j.ns+(j.ew?j.ew:"")}}})(jQuery);
(function(a){jQuery.autocomplete=function(b,e){function d(){E={};E.data={};E.length=0}function h(){if(R==46||R>8&&R<32)return X.hide();var g=T.val();if(g!=oa){oa=g;if(g.length>=e.minChars){T.addClass(e.loadingClass);S(g)}else{T.removeClass(e.loadingClass);X.hide()}}}function j(g){var V=a("li",ca);if(V){x+=g;if(x<0)x=0;else if(x>=V.size())x=V.size()-1;V.removeClass("ac_over");a(V[x]).addClass("ac_over")}}function l(){var g=a("li.ac_over",ca)[0];if(!g){var V=a("li",ca);if(e.selectOnly){if(V.length==
1)g=V[0]}else if(e.selectFirst)g=V[0]}if(g){p(g);return true}else return false}function p(g){var V=T.get(0).autocompleter;if(!g){g=document.createElement("li");g.extra=[];g.selectValue=""}var ea=a.trim(g.selectValue?g.selectValue:g.innerHTML);g=jQuery(g).clone().get(0);oa=b.lastSelected=ea;X.html("");T.val(ea);A();e.onItemSelect&&setTimeout(function(){e.onItemSelect(V,g)},1)}function w(g,V){var ea=T.get(0);if(ea.createTextRange){var la=ea.createTextRange();la.collapse(true);la.moveStart("character",
g);la.moveEnd("character",V);la.select()}else if(ea.setSelectionRange)ea.setSelectionRange(g,V);else if(ea.selectionStart){ea.selectionStart=g;ea.selectionEnd=V}ea.focus()}function z(g){if(R!=8){T.val(T.val()+g.substring(oa.length));w(oa.length,g.length)}}function G(){for(var g=b,V=0;g.tagName.toUpperCase()!="BODY";)if(a(g).css("z-index")!="auto"){V=a(g).css("z-index");break}else g=g.parentNode;g=jQuery(b).offsetParent().css("position")=="fixed"?"fixed":"absolute";var ea=O(b),la=e.width>0?e.width:
T.width();X.css({zIndex:V,width:parseInt(la)+"px",top:ea.y+b.offsetHeight+"px",left:ea.x+"px",position:g}).show()}function K(){ia&&clearTimeout(ia);ia=setTimeout(A,200)}function A(){ia&&clearTimeout(ia);T.removeClass(e.loadingClass);X.is(":visible")&&X.hide();e.mustMatch&&T.val()!=b.lastSelected&&p(null)}function s(g,V){if(V){T.removeClass(e.loadingClass);ca.innerHTML="";if(!L||V.length==0)return A();a.browser.msie&&X.append(document.createElement("iframe"));ca.appendChild(I(V));e.autoFill&&T.val().toLowerCase()==
g.toLowerCase()&&z(V[0][0]);G()}else A()}function C(g){if(!g)return null;var V=[];g=g.split(e.lineSeparator);for(var ea=0;ea<g.length;ea++){var la=a.trim(g[ea]);if(la)V[V.length]=la.split(e.cellSeparator)}return V}function I(g){var V=document.createElement("ul"),ea=g.length;if(e.maxItemsToShow>0&&e.maxItemsToShow<ea)ea=e.maxItemsToShow;for(var la=0;la<ea;la++){var ta=g[la];if(ta){var va=document.createElement("li");va.innerHTML=e.formatItem?e.formatItem(ta,la,ea):ta[0];va.selectValue=ta[0];var pa=
null;if(ta.length>1){pa=[];for(var Ea=1;Ea<ta.length;Ea++)pa[pa.length]=ta[Ea]}va.extra=pa;V.appendChild(va);a(va).hover(function(){a("li",V).removeClass("ac_over");a(this).addClass("ac_over");x=a("li",V).indexOf(a(this).get(0))},function(){a(this).removeClass("ac_over")}).click(function(Ja){Ja.preventDefault();Ja.stopPropagation();p(this)})}}return V}function S(g){e.matchCase||(g=g.toLowerCase());var V=e.cacheLength?M(g):null;if(V)s(g,V);else if(typeof e.url=="string"&&e.url.length>0){a.ajaxq("autocomplete"+
e.id);a.ajaxq("autocomplete"+e.id,{type:"GET",url:y(g),success:function(ea,la,ta){if(ta.status==0)WikispacesSession.reloadSession(function(){S(g)},3E3);else{WikispacesSession.reloadSessionSuccess();ea=C(ea);q(g,ea);s(g,ea)}},error:function(){WikispacesSession.reloadSession(function(){S(g)},3E3)}})}else T.removeClass(e.loadingClass)}function y(g){g=e.url+"?q="+encodeURIComponent(g);for(var V in e.extraParams)g+="&"+V+"="+encodeURIComponent(e.extraParams[V]);return g}function M(g){if(!g)return null;
if(E.data[g])return E.data[g];if(e.matchSubset)for(var V=g.length-1;V>=e.minChars;V--){var ea=g.substr(0,V);if(ea=E.data[ea]){V=[];for(var la=0;la<ea.length;la++){var ta=ea[la];if(v(ta[0],g))V[V.length]=ta}return V}}return null}function v(g,V){e.matchCase||(g=g.toLowerCase());g=g.indexOf(V);if(g==-1)return false;return g==0||e.matchContains}function q(g,V){if(!(!V||!g||!e.cacheLength)){if(!E.length||E.length>e.cacheLength){d();E.length++}else E[g]||E.length++;E.data[g]=V}}function O(g){var V=a(g).offset();
if(a(g).offsetParent().css("position")=="fixed"){g=V.left-jQuery(document).scrollLeft();V=V.top-jQuery(document).scrollTop()}else{g=V.left;V=V.top}return{x:g,y:V}}this.options=e;this.input=b;var T=a(b).attr("autocomplete","off");e.inputClass&&T.addClass(e.inputClass);var ca=document.createElement("div"),X=a(ca);X.hide().addClass(e.resultsClass).css("position","absolute");e.width>0&&X.css("width",e.width);a("body").append(ca);b.autocompleter=this;var ia=null,oa="",x=-1,E={},L=false,R=null;d();if(e.data!=
null){var aa="",ga={},W=[];if(typeof e.url!="string")e.cacheLength=1;for(var za=0;za<e.data.length;za++){W=typeof e.data[za]=="string"?[e.data[za]]:e.data[za];if(W[0].length>0){aa=W[0].substring(0,1).toLowerCase();ga[aa]||(ga[aa]=[]);ga[aa].push(W)}}for(var ha in ga){e.cacheLength++;q(ha,ga[ha])}}T.keydown(function(g){R=g.keyCode;switch(g.keyCode){case 38:g.preventDefault();j(-1);break;case 40:g.preventDefault();j(1);break;case 9:case 13:if(l()){T.get(0).blur();g.preventDefault()}break;case 16:case 17:case 18:case 20:case 45:g.preventDefault();
break;default:x=-1;ia&&clearTimeout(ia);ia=setTimeout(function(){h()},e.delay);break}}).focus(function(){L=true}).blur(function(){L=false;K()});A();this.refreshResults=function(){ia&&clearTimeout(ia);var g=T.val();oa=g;T.addClass(e.loadingClass);S(g)};this.flushCache=function(){d()};this.setExtraParams=function(g){e.extraParams=g};this.findValue=function(){var g=T.val(),V=this;if(g.length){e.matchCase||(g=g.toLowerCase());var ea=e.cacheLength?M(g):null;if(ea)this.findValueCallback(V,g,ea);else if(typeof e.url==
"string"&&e.url.length>0){a.ajaxq("autocomplete"+e.id);a.ajaxq("autocomplete"+e.id,{type:"GET",url:y(g),success:function(la,ta,va){if(va.status==0)WikispacesSession.reloadSession(function(){V.findValue()},3E3);else{WikispacesSession.reloadSessionSuccess();la=C(la);q(g,la);V.findValueCallback(V,g,la)}},error:function(){WikispacesSession.reloadSession(function(){V.findValue()},3E3)}})}else this.findValueCallback(V,g,null)}else e.onEmptyValue&&setTimeout(function(){e.onEmptyValue(V)},1)};this.findValueCallback=
function(g,V,ea){ea&&T.removeClass(e.loadingClass);for(var la=ea?ea.length:0,ta=null,va=0;va<la;va++){var pa=ea[va];if(pa[0].toLowerCase()==V.toLowerCase()){ta=document.createElement("li");ta.innerHTML=e.formatItem?e.formatItem(pa,va,la):pa[0];ta.selectValue=pa[0];var Ea=null;if(pa.length>1){Ea=[];for(var Ja=1;Ja<pa.length;Ja++)Ea[Ea.length]=pa[Ja]}ta.extra=Ea}}e.onFindValue&&setTimeout(function(){e.onFindValue(g,ta)},1)}};jQuery.fn.autocomplete=function(b,e,d){e=e||{};e.url=b;e.data=typeof d=="object"&&
d.constructor==Array?d:null;e.inputClass=e.inputClass||"ac_input";e.resultsClass=e.resultsClass||"ac_results";e.lineSeparator=e.lineSeparator||"\n";e.cellSeparator=e.cellSeparator||"|";e.minChars=e.minChars||1;e.delay=e.delay||400;e.matchCase=e.matchCase||0;e.matchSubset=e.matchSubset||0;e.matchContains=e.matchContains||0;e.cacheLength=e.cacheLength||10;e.mustMatch=e.mustMatch||0;e.extraParams=e.extraParams||{};e.loadingClass=e.loadingClass||"ac_loading";e.selectFirst=e.selectFirst||false;e.selectOnly=
e.selectOnly||false;e.maxItemsToShow=e.maxItemsToShow||-1;e.autoFill=e.autoFill||false;e.width=parseInt(e.width,10)||0;this.each(function(){new jQuery.autocomplete(this,e)});return this};jQuery.fn.autocompleteArray=function(b,e){return this.autocomplete(null,e,b)};jQuery.fn.indexOf=function(b){for(var e=0;e<this.length;e++)if(this[e]==b)return e;return-1}})(jQuery);
(function(a){function b(d){return typeof d=="object"?d:{top:d,left:d}}var e=a.scrollTo=function(d,h,j){a(window).scrollTo(d,h,j)};e.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1};e.window=function(){return a(window)._scrollable()};a.fn._scrollable=function(){return this.map(function(){if(!(!this.nodeName||a.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1))return this;var d=(this.contentWindow||this).document||this.ownerDocument||this;return a.browser.safari||
d.compatMode=="BackCompat"?d.body:d.documentElement})};a.fn.scrollTo=function(d,h,j){if(typeof h=="object"){j=h;h=0}if(typeof j=="function")j={onAfter:j};if(d=="max")d=9E9;j=a.extend({},e.defaults,j);h=h||j.speed||j.duration;j.queue=j.queue&&j.axis.length>1;if(j.queue)h/=2;j.offset=b(j.offset);j.over=b(j.over);return this._scrollable().each(function(){function l(s){w.animate(K,h,j.easing,s&&function(){s.call(this,d,j)})}var p=this,w=a(p),z=d,G,K={},A=w.is("html,body");switch(typeof z){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(z)){z=
b(z);break}z=a(z,this);case "object":if(z.is||z.style)G=(z=a(z)).offset()}a.each(j.axis.split(""),function(s,C){var I=C=="x"?"Left":"Top",S=I.toLowerCase(),y="scroll"+I,M=p[y],v=e.max(p,C);if(G){K[y]=G[S]+(A?0:M-w.offset()[S]);if(j.margin){K[y]-=parseInt(z.css("margin"+I))||0;K[y]-=parseInt(z.css("border"+I+"Width"))||0}K[y]+=j.offset[S]||0;if(j.over[S])K[y]+=z[C=="x"?"width":"height"]()*j.over[S]}else{C=z[S];K[y]=C.slice&&C.slice(-1)=="%"?parseFloat(C)/100*v:C}if(/^\d+$/.test(K[y]))K[y]=K[y]<=0?
0:Math.min(K[y],v);if(!s&&j.queue){M!=K[y]&&l(j.onAfterFirst);delete K[y]}});l(j.onAfter)}).end()};e.max=function(d,h){var j=h=="x"?"Width":"Height";h="scroll"+j;if(!a(d).is("html,body"))return d[h]-a(d)[j.toLowerCase()]();j="client"+j;var l=d.ownerDocument.documentElement;d=d.ownerDocument.body;return Math.max(l[h],d[h])-Math.min(l[j],d[j])}})(jQuery);
(function(a){a.fn.hoverIntent=function(b,e){var d={sensitivity:7,interval:100,timeout:0};d=a.extend(d,e?{over:b,out:e}:b);var h,j,l,p,w=function(K){h=K.pageX;j=K.pageY},z=function(K,A){A.hoverIntent_t=clearTimeout(A.hoverIntent_t);if(Math.abs(l-h)+Math.abs(p-j)<d.sensitivity){a(A).unbind("mousemove",w);A.hoverIntent_s=1;return d.over.apply(A,[K])}else{l=h;p=j;A.hoverIntent_t=setTimeout(function(){z(K,A)},d.interval)}},G=function(K,A){A.hoverIntent_t=clearTimeout(A.hoverIntent_t);A.hoverIntent_s=0;
return d.out.apply(A,[K])};b=function(K){var A=jQuery.extend({},K),s=this;if(s.hoverIntent_t)s.hoverIntent_t=clearTimeout(s.hoverIntent_t);if(K.type=="mouseenter"){l=A.pageX;p=A.pageY;a(s).bind("mousemove",w);if(s.hoverIntent_s!=1)s.hoverIntent_t=setTimeout(function(){z(A,s)},d.interval)}else{a(s).unbind("mousemove",w);if(s.hoverIntent_s==1)s.hoverIntent_t=setTimeout(function(){G(A,s)},d.timeout)}};return this.bind("mouseenter",b).bind("mouseleave",b)}})(jQuery);
jQuery(function(a){a.fn.fcbkcomplete=function(b){return this.each(function(){function e(){d();l();j();h();C()}function d(){W.hide();W.attr("multiple","multiple");W.attr("name").indexOf("[]")==-1&&W.attr("name",W.attr("name")+"[]");q=a("<ul/>").attr("class","holder");W.after(q);T=a("<div/>").addClass("facebook-auto");T.append('<div class="default">'+v.complete_text+"</div>");if(R){T.append('<iframe class="ie6fix" scrolling="no" frameborder="0"></iframe>');aa=T.children(".ie6fix")}O=a("<ul/>").attr("id",
za+"_feed");T.prepend(O);q.after(T)}function h(){W.children("option").not(ga).removeAttr("selected").removeClass("selected");q.empty();a(ga).attr("selected","selected").addClass("selected").each(function(ha,g){g=a(g);p(g.text(),g.val(),true)});z(0);T.children(".default").show()}function j(){ga=[];W.children("option.selected").each(function(){ga[ga.length]=this})}function l(){var ha=v.filter_case?"":"i";W.children("option").each(function(g,V){V=a(V);if(!(new RegExp(oa+"\\d+:"+WikispacesCommon.escapeRegExp(V.text())+
oa,"g"+ha)).exec(x)){X.push({caption:V.text(),value:V.val(),count:V.attr("count")});x+=""+(X.length-1)+":"+V.text()+oa}})}function p(ha,g,V){ha=a.trim(ha);ha=g=a.trim(g);if(!ha||!g)return false;a("<div/>").text(g).html();var ea=q.find("li").filter(function(){return(a(this).attr("rel")||"").toLowerCase()==g.toLowerCase()});if(ea.length){a(ea).effect("highlight",{},3E3);a("#"+za+"_annoninput").children(".maininput").val("")}else{ea=a("<a/>").attr({"class":"closebutton",href:"#"}).click(function(){a(this).parent("li").fadeOut("fast",
function(){w(a(this))});return false});a("<li/>").attr({"class":"bit-box",rel:g}).text(ha).append(ea).appendTo(q);if(!V){a("#"+za+"_annoninput").remove();z(1);ea=W.children("option").filter(function(){return a(this).val().toLowerCase()==g.toLowerCase()});if(ea.length){ha=ea;ha.attr("selected","selected");ha.hasClass("selected")||ha.addClass("selected")}else ha=a("<option/>").attr("value",g).attr("selected","selected").addClass("selected").text(ha).appendTo(W);v.onselect.length&&S(v.onselect,ha)}q.children("li.bit-box.deleted").removeClass("deleted");
O.hide();R&&aa.hide()}}function w(ha){if(v.onremove.length){var g=W.children("option").filter(function(){return jQuery(this).val()==ha.attr("rel")});S(v.onremove,g)}W.children("option").filter(function(){return jQuery(this).val()==ha.attr("rel")}).removeAttr("selected").removeClass("selected");ha.remove();L=0}function z(ha){var g=a("<li/>").attr({"class":"bit-input",id:za+"_annoninput"}),V=a("<input/>").attr({type:"text","class":"maininput",size:"1",maxlength:v.maxlength});q.append(g.append(V));V.focus(function(){T.fadeIn("fast")});
V.blur(function(){T.fadeOut("fast")});q.click(function(){V.focus();if(O.length&&V.val().length){O.show();T.children(".default").hide()}else{O.hide();R&&aa.hide();T.children(".default").show()}});V.keypress(function(ea){if(ea.keyCode==13)return false;V.attr("size",V.val().length+1)});C();V.keyup(function(ea){var la=M(V.val());if(!(ea.keyCode==40||ea.keyCode==38||ea.keyCode==188&&!ea.shiftKey&&v.comma_is_enter))if(la.length!=0){ca=0;if(v.json_url)if(v.cache&&ia){G(la);C()}else{a.ajaxq("fcbkcomplete");
a.ajaxq("fcbkcomplete",{url:v.json_url+"?tag="+encodeURIComponent(la),data:null,dataType:"json",type:"GET",success:function(ta){G(la,ta);ia=true;C()}})}else{G(la);C()}T.children(".default").hide();O.show()}else{O.hide();R&&aa.hide();T.children(".default").show()}});ha&&setTimeout(function(){V.focus();T.children(".default").show()},1)}function G(ha,g){O.html("");E=null;var V=v.filter_case?"":"i";if(!v.cache){X=[];x=oa}I(ha);g!=null&&g.length&&a.each(g,function(hb,La){if(!(new RegExp(oa+"\\d+:"+WikispacesCommon.escapeRegExp(La.caption)+
oa,"g"+V)).exec(x)){X.push({caption:La.caption,value:La.value,count:La.count});x+=""+(X.length-1)+":"+La.caption+oa}});var ea,la;try{ea=new RegExp(oa+"(\\d+):[^"+oa+"]*?"+WikispacesCommon.escapeRegExp(ha)+"[^"+oa+"]*","g"+V);la=ea.exec(x)}catch(ta){}ha=K(a("<div/>").text(ha).html());g=v.maxshownitems<X.length?v.maxshownitems:X.length;for(var va="";la!=null&&g>0;){var pa=X[la[1]],Ea=false,Ja=pa.value;la=W.children("option").filter(function(){return a(this).val()==Ja});if(v.filter_case&&v.filter_selected&&
la.hasClass("selected"))Ea=true;else!v.filter_case&&v.filter_selected&&W.find("option").each(function(){if(this.value.toLowerCase()==pa.value.toLowerCase()&&a(this).hasClass("selected"))Ea=true});if(!Ea){va+='<li rel="'+a("<div/>").text(pa.value).html().replace(/"/g,"&quot;")+'">'+ha(a("<div/>").text(pa.caption).html())+(pa.count!=null?" ("+pa.count+")":"")+"</li>";ca++;g--}la=ea.exec(x)}O.append(va);if(v.firstselected){E=O.children("li:visible:first");E.addClass("auto-focus")}if(ca>v.height){O.css({height:v.height*
24+"px",overflow:"auto"});R&&aa.css({height:v.height*24+"px",width:O.width()+"px"}).show()}else{O.css("height","auto");R&&aa.css({height:O.height()+"px",width:O.width()+"px"}).show()}}function K(ha){var g=v.filter_case?"":"i",V=new RegExp("("+WikispacesCommon.escapeRegExp(ha)+")",g);return function(ea){return ea.replace(V,"<em>$1</em>")}}function A(){O.children("li").mouseover(function(){O.children("li.auto-focus").removeClass("auto-focus");a(this).addClass("auto-focus");E=a(this)}).mouseout(function(){a(this).removeClass("auto-focus");
E=null})}function s(){O.children("li").unbind("mouseover").unbind("mouseout");O.mousemove(function(){O.unbind("mousemove");A()})}function C(){var ha=a("#"+za+"_annoninput").children(".maininput");O.mousemove(function(){A();O.unbind("mousemove")});O.children("li").unbind("mousedown");O.children("li").mousedown(function(){var g=a(this);p(g.text(),g.attr("rel"));O.hide();R&&aa.hide();T.hide()});ha.unbind("keydown");ha.keydown(function(g){g.keyCode!=8&&q.children("li.bit-box.deleted").removeClass("deleted");
var V=a.trim(ha.val());if(g.keyCode==8&&V.length==0){O.hide();if(q.children("li.bit-box.deleted").length==0){q.children("li.bit-box:last").addClass("deleted");return false}else{if(L)return;L=1;q.children("li.bit-box.deleted").fadeOut("fast",function(){w(a(this));return false})}}if((g.keyCode==13||v.comma_is_enter&&g.keyCode==188&&!g.shiftKey)&&y()){V=E;p(V.text(),V.attr("rel"));T.hide();g.preventDefault();E=null;return false}if((g.keyCode==13||v.comma_is_enter&&g.keyCode==188&&!g.shiftKey)&&!y()){if(v.newel){V=
M(a(this).val());p(V,V);T.hide();g.preventDefault();E=null}return false}if(g.keyCode==40){s();if(E==null||E.length==0){E=O.children("li:visible:first");O.get(0).scrollTop=0}else{E.removeClass("auto-focus");E=E.nextAll("li:visible:first");V=parseInt(E.prevAll("li:visible").length,10);var ea=parseInt(E.nextAll("li:visible").length,10);if((V>Math.round(v.height/2)||ea<=Math.round(v.height/2))&&typeof E.get(0)!="undefined")O.get(0).scrollTop=parseInt(E.get(0).scrollHeight,10)*(V-Math.round(v.height/2))}O.children("li").removeClass("auto-focus");
E.addClass("auto-focus")}if(g.keyCode==38){s();if(E==null||E.length==0){E=O.children("li:visible:last");O.get(0).scrollTop=parseInt(E.get(0).scrollHeight,10)*(parseInt(O.children("li:visible").length,10)-Math.round(v.height/2))}else{E.removeClass("auto-focus");E=E.prevAll("li:visible:first");V=parseInt(E.prevAll("li:visible").length,10);ea=parseInt(E.nextAll("li:visible").length,10);if((ea>Math.round(v.height/2)||V<=Math.round(v.height/2))&&typeof E.get(0)!="undefined")O.get(0).scrollTop=parseInt(E.get(0).scrollHeight,
10)*(V-Math.round(v.height/2))}O.children("li").removeClass("auto-focus");E.addClass("auto-focus")}})}function I(ha){if(v.newel){O.children("li[fckb=1]").remove();if(ha.length!=0){a("<li/>").attr({rel:ha,fckb:"1"}).text(ha).prependTo(O);ca++}}}function S(ha,g){var V="";for(i=0;i<g.get(0).attributes.length;i++)if(g.get(0).attributes[i].nodeValue!=null)V+='"_'+g.get(0).attributes[i].nodeName+'": "'+g.get(0).attributes[i].nodeValue+'",';V="{"+V+" notinuse: 0}";try{eval(ha+"("+V+")")}catch(ea){}}function y(){if(E==
null)return false;if(E.length==0)return false;return true}function M(ha){return jQuery.trim(ha)}a(this).bind("addItem",function(ha,g){p(g.title,g.value)});var v=a.extend({json_url:null,cache:false,height:"10",newel:false,firstselected:false,filter_case:false,comma_is_enter:false,filter_hide:false,complete_text:"Start to type...",maxshownitems:30,onselect:"",onremove:"",maxlength:""},b),q=null,O=null,T=null,ca=0,X=[],ia=false,oa=",",x=oa,E=null,L=0,R=false,aa,ga=[],W=a(this),za=W.attr("id");this.addFinalItem=
function(){var ha=a("#"+za+"_annoninput").children(".maininput");(ha=a.trim(ha.val()))&&p(ha,ha)};this.reset=h;this.updateSelected=j;e();return this})}});
var jssm={created:false,rid:0,zerolength:false,pointer:false,interval:100,stackelem:false,lengthelem:false,pointerelem:false,iframe:false,stack:[],settings:{formid:"jssmform",stackid:"jssmstack",lengthid:"jssmlength",pointerid:"jssmpointer",iframeid:"jssmiframe",blankurl:"/blank.html",basetitle:"",titleseparator:" : "},functions:{pageload:false,beforeload:false,load:false,afterload:false,beforeunload:false,unload:false,afterunload:false},inline:function(a){if(!this.created){this.created=true;this.settings=
jQuery.fn.extend(this.settings,a);document.write('<div style="display: none;">');document.write('<form id="'+this.settings.formid+'" action="" method="post"><div><textarea name="'+this.settings.stackid+'" id="'+this.settings.stackid+'"></textarea><input type="text" id="'+this.settings.lengthid+'" name="'+this.settings.lengthid+'" /><input type="text" id="'+this.settings.pointerid+'" name="'+this.settings.pointerid+'" /></div></form>');jQuery.browser.msie&&jQuery.browser.version<8&&document.write('<iframe id="'+
this.settings.iframeid+'" src="'+this.settings.blankurl+"?"+this.getHash()+'"></iframe>');document.write("</div>");jQuery.browser.opera&&document.write('<img style="position: absolute; left: -999em; top: -999em;" width="1" height="1"  src="javascript:location.href=\'javascript:jssm.fixOpera();\';" />')}},init:function(a){if(!(jQuery.browser.msie&&a=="ready"))if(!(!jQuery.browser.msie&&a=="load")){jQuery(window).bind("hashchange",jssm.hashchange);this.stackelem=document.getElementById(this.settings.stackid);
this.lengthelem=document.getElementById(this.settings.lengthid);this.pointerelem=document.getElementById(this.settings.pointerid);this.iframe=document.getElementById(this.settings.iframeid);if(jQuery.browser.opera){this.stackelem.focus();this.lengthelem.focus();this.pointerelem.focus();window.focus()}if(this.lengthelem.value){this.zerolength=this.lengthelem.value;this.load()}else{this.pointer=this.zerolength=history.length;this.stack[this.pointer]=this.getHash();this.save()}this.rid=this.getRID(this.stack[this.pointer]);
this.rid++;this.functions.pageload&&this.functions.pageload(this.stack[this.pointer]);"onhashchange"in window||this.poll()}},poll:function(){jssm.getHash()!=jssm.stack[jssm.pointer]&&jQuery(window).trigger("hashchange");setTimeout(jssm.poll,jssm.interval)},fixOpera:function(){},iframeEvent:function(a){if(a||window.location.hash)window.location.hash=a},hashchange:function(){var a=jssm.getHash(),b=a;if(a==="")b=jssm.getCurrentPage();jQuery.browser.msie&&jQuery.browser.version<8&&jssm.iframe.contentWindow.document.body.innerText!=
a&&jssm.setHash(a);jssm.functions.beforeunload&&jssm.functions.beforeunload(b);jssm.functions.unload&&jssm.functions.unload(b);jssm.functions.afterunload&&jssm.functions.afterunload(b);jssm.functions.beforeload&&jssm.functions.beforeload(b);jssm.functions.load&&jssm.functions.load(b);jssm.functions.afterload&&jssm.functions.afterload(b);b=[];for(var e=jssm.zerolength;e<jssm.stack.length;e++)a===jssm.stack[e]&&b.push(e);switch(b.length){case 0:jssm.pointer++;jssm.stack[jssm.pointer]=a;jssm.stack.length=
jssm.pointer+1;break;case 1:jssm.pointer=b[0];break}jssm.save()},load:function(){this.stack=JSON.parse(this.stackelem.value);this.length=this.lengthelem.value;this.pointer=this.pointerelem.value},save:function(){this.stackelem.value=JSON.stringify(this.stack);this.lengthelem.value=this.zerolength;this.pointerelem.value=this.pointer},getHash:function(){var a=window.location.href,b=a.indexOf("#");return b>=0?a.substr(b+1):""},setHash:function(a){this.setHash=jQuery.browser.msie&&jQuery.browser.version<
8?function(b){var e=jssm.iframe.contentWindow.document;e.open("javascript:'<html></html>'");e.write('<html><head><script type="text/javascript">window.parent.jssm.iframeEvent("'+b+'");<\/script></head><body>'+b+"</body></html>");e.close()}:function(b){window.location.hash=b};return this.setHash(a)},getRID:function(a){if(!a)return 0;return(a=a.match(/rid=[\d]+/))?a[0].substr(4):0},getHref:function(){var a=window.location.href.indexOf("#");return a>=0?window.location.href.substr(0,a):window.location.href},
getPathTokens:function(a){var b=a.indexOf("#"),e=a.indexOf("?"),d="",h="";if(b!=-1){if(e!=-1&&e<b)d=a.substring(e,b);h=a.substring(b)}else if(e>=0)d=a.substring(e);if(b!=-1&&e!=-1)a=a.substring(0,Math.min(b,e));else if(b!=-1)a=a.substring(0,b);else if(e!=-1)a=a.substring(0,e);a=/^(https?:\/\/){0,1}([A-Za-z0-9\-\.]+){0,1}(\:\d+){0,1}(\/){0,1}((?:[^\/]*\/)*){0,1}(.*)$/.exec(a);if(a[5]){a[5]=a[5].split("/");a[5].pop()}else a[5]=[];a.push(d);a.push(h);return a},getCurrentPath:function(){var a=this.getPathTokens(this.getHref());
return a&&a[5]?a[5].join("/")+"/":""},getCurrentPage:function(){var a=this.getPathTokens(this.getHref());return a&&a[6]?a[6]:""},getRelativePath:function(a,b,e){if(a==b&&b.indexOf("?")==-1)return this.getCurrentPage(b);a=this.getPathTokens(a);b=this.getPathTokens(b);if(((e=e||false)||b[1])&&a[1]!==b[1])return false;if((e||b[2])&&a[2]!==b[2])return false;if(a[3]!==b[3]){if(e)return false;e=false;switch(a[1]){case "http":e=80;break;case "https":e=443;break}if(!e)return false;if(!(a[3]===""&&b[3]==e)&&
!(a[3]==e&&b[3]===""))return false}e="";if(!a[5].length||!b[4])e+=b[5].join("/")+"/"+(b[6]?b[6]:"");else{var d=0;if(a[5].length&&b[5].length){for(d=0;d<a[5].length;d++)if(a[5][d]==b[5][d]){a[5].shift();b[5].shift();d--}else break;for(d=0;d<a[5].length;d++)e+="../";e+=b[5].join("/")+(b[5].length?"/":"")+(b[6]?b[6]:"")}else{for(d=0;d<a[5].length;d++)e+="../";e+=b[6]?b[6]:""}}if(b[7])e+=b[7];if(b[8])e+=b[8];return e},getRootRelativePath:function(a,b,e){if(arguments.length==1){var d=jssm.getPathTokens(a);
return"/"+d[5].join("/")+"/"+(d[6]?d[6]:"")}a=this.getPathTokens(a);b=this.getPathTokens(b);if(((e=e||false)||b[1])&&a[1]!==b[1])return false;if((e||b[2])&&a[2]!==b[2])return false;if(a[3]!==b[3]){if(e)return false;d=false;switch(a[1]){case "http":d=80;break;case "https":d=443;break}if(!d)return false;if(!(a[3]===""&&b[3]==d)&&!(a[3]==d&&b[3]===""))return false}d="/";b[4]||(d+=a[5].join("/")+"/");if(b[5].length)d+=b[5].join("/")+"/";if(b[6])d+=b[6];if(b[7])d+=b[7];if(b[8])d+=b[8];return d},setTitle:function(a){document.title=
a},buildTitle:function(a,b){b=b||this.settings.titleseparator;return this.settings.basetitle+(a?b+a:"")}};
jQuery.fn.jssm=function(a){return this.each(function(){jQuery(this).bind(a,function(b){jQuery.data(this,"jssm");var e="",d="";if(a=="submit"&&this.action){e=jQuery('<a href="'+this.action+'"></a>').get(0).href;d="&"+jQuery(this).serialize()}else if(this.href)e=this.href;e=jssm.getRelativePath(jssm.getHref(),e);if(e!==false){e=e+(e.indexOf("?")>=0?"&":"?")+"rid="+jssm.rid++ +d;jssm.setHash(e)}b.preventDefault();return false})})};
(function(a){function b(y){if(!y)return false;this.x=String(y).replace(/middle/i,"center").match(/left|right|center/i)[0].toLowerCase();this.y=String(y).replace(/middle/i,"center").match(/top|bottom|center/i)[0].toLowerCase();this.offset={left:0,top:0};this.precedance=y.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y}}function e(y,M,v){M={bottomright:[[0,0],[M,v],[M,0]],bottomleft:[[0,0],[M,0],[0,v]],topright:[[0,v],[M,0],[M,v]],
topleft:[[0,0],[0,v],[M,v]],topcenter:[[0,v],[M/2,0],[M,v]],bottomcenter:[[0,0],[M,0],[M/2,v]],rightcenter:[[0,0],[M,v/2],[0,v]],leftcenter:[[M,0],[M,v],[0,v/2]]};M.lefttop=M.bottomright;M.righttop=M.bottomleft;M.leftbottom=M.topright;M.rightbottom=M.topleft;return M[y]}function d(y){var M;if(a("<canvas />").get(0).getContext)M={topLeft:[y,y],topRight:[0,y],bottomLeft:[y,0],bottomRight:[0,0]};else if(a.browser.msie)M={topLeft:[-90,90,0],topRight:[-90,90,-y],bottomLeft:[90,270,0],bottomRight:[90,270,
-y]};return M}function h(y,M){var v;y=a.extend(true,{},y);for(v in y)if(M===true&&/(tip|classes)/i.test(v))delete y[v];else!M&&/(width|border|tip|title|classes|user)/i.test(v)&&delete y[v];return y}function j(y){if(typeof y.tip!=="object")y.tip={corner:y.tip};if(typeof y.tip.size!=="object")y.tip.size={width:y.tip.size,height:y.tip.size};if(typeof y.border!=="object")y.border={width:y.border};if(typeof y.width!=="object")y.width={value:y.width};if(typeof y.width.max==="string")y.width.max=parseInt(y.width.max.replace(/([0-9]+)/i,
"$1"),10);if(typeof y.width.min==="string")y.width.min=parseInt(y.width.min.replace(/([0-9]+)/i,"$1"),10);if(typeof y.tip.size.x==="number"){y.tip.size.width=y.tip.size.x;delete y.tip.size.x}if(typeof y.tip.size.y==="number"){y.tip.size.height=y.tip.size.y;delete y.tip.size.y}return y}function l(){var y,M;M=[true,{}];for(y=0;y<arguments.length;y++)M.push(arguments[y]);for(y=[a.extend.apply(a,M)];typeof y[0].name==="string";)y.unshift(j(a.fn.qtip.styles[y[0].name]));y.unshift(true,{classes:{tooltip:"qtip-"+
(arguments[0].name||"defaults")}},a.fn.qtip.styles.defaults);y=a.extend.apply(a,y);M=a.browser.msie?1:0;y.tip.size.width+=M;y.tip.size.height+=M;if(y.tip.size.width%2>0)y.tip.size.width+=1;if(y.tip.size.height%2>0)y.tip.size.height+=1;if(y.tip.corner===true)y.tip.corner=this.options.position.corner.tooltip==="center"&&this.options.position.corner.target==="center"?false:this.options.position.corner.tooltip;return y}function p(y,M,v,q){y=y.get(0).getContext("2d");y.fillStyle=q;y.beginPath();y.arc(M[0],
M[1],v,0,Math.PI*2,false);y.fill()}function w(){var y,M,v,q,O,T,ca,X,ia;y=this;y.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();v=y.options.style.border.width;q=y.options.style.border.radius;O=y.options.style.border.color||y.options.style.tip.color;T=d(q);ca={};for(M in T){ca[M]='<div rel="'+M+'" style="'+(/Left/.test(M)?"left":"right")+":0; position:absolute; height:"+q+"px; width:"+q+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(a("<canvas />").get(0).getContext)ca[M]+=
'<canvas height="'+q+'" width="'+q+'" style="vertical-align: top"></canvas>';else if(a.browser.msie){X=q*2+3;ca[M]+='<v:arc stroked="false" fillcolor="'+O+'" startangle="'+T[M][0]+'" endangle="'+T[M][1]+'" style="width:'+X+"px; height:"+X+"px; margin-top:"+(/bottom/.test(M)?-2:-1)+"px; margin-left:"+(/Right/.test(M)?T[M][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}ca[M]+="</div>"}M=y.getDimensions().width-Math.max(v,q)*2;M='<div class="qtip-betweenCorners" style="height:'+
q+"px; width:"+M+"px; overflow:hidden; background-color:"+O+'; line-height:0.1px; font-size:1px;">';y.elements.wrapper.prepend('<div class="qtip-borderTop" dir="ltr" style="height:'+q+"px; margin-left:"+q+'px; line-height:0.1px; font-size:1px; padding:0;">'+ca.topLeft+ca.topRight+M);y.elements.wrapper.append('<div class="qtip-borderBottom" dir="ltr" style="height:'+q+"px; margin-left:"+q+'px; line-height:0.1px; font-size:1px; padding:0;">'+ca.bottomLeft+ca.bottomRight+M);if(a("<canvas />").get(0).getContext)y.elements.wrapper.find("canvas").each(function(){ia=
T[a(this).parent("[rel]:first").attr("rel")];p.call(y,a(this),ia,q,O)});else a.browser.msie&&y.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>');ca=Math.max(q,q+(v-q));v=Math.max(v-q,0);y.elements.contentWrapper.css({border:"0px solid "+O,borderWidth:v+"px "+ca+"px"})}function z(y,M,v){y=y.get(0).getContext("2d");y.fillStyle=v;y.beginPath();y.moveTo(M[0][0],M[0][1]);y.lineTo(M[1][0],M[1][1]);y.lineTo(M[2][0],M[2][1]);y.fill()}function G(y){var M,v;if(!(this.options.style.tip.corner===
false||!this.elements.tip)){y||(y=new b(this.elements.tip.attr("rel")));M=v=a.browser.msie?1:0;this.elements.tip.css(y[y.precedance],0);if(y.precedance==="y"){if(a.browser.msie)v=parseInt(a.browser.version.charAt(0),10)===6?y.y==="top"?-3:1:y.y==="top"?1:2;if(y.x==="center")this.elements.tip.css({left:"50%",marginLeft:-(this.options.style.tip.size.width/2)});else y.x==="left"?this.elements.tip.css({left:this.options.style.border.radius-M}):this.elements.tip.css({right:this.options.style.border.radius+
M});y.y==="top"?this.elements.tip.css({top:-v}):this.elements.tip.css({bottom:v})}else{if(a.browser.msie)v=parseInt(a.browser.version.charAt(0),10)===6?1:y.x==="left"?1:2;if(y.y==="center")this.elements.tip.css({top:"50%",marginTop:-(this.options.style.tip.size.height/2)});else y.y==="top"?this.elements.tip.css({top:this.options.style.border.radius-M}):this.elements.tip.css({bottom:this.options.style.border.radius+M});y.x==="left"?this.elements.tip.css({left:-v}):this.elements.tip.css({right:v})}M=
"padding-"+y[y.precedance];y=this.options.style.tip.size[y.precedance==="x"?"width":"height"];this.elements.tooltip.css("padding",0).css(M,y);if(a.browser.msie&&parseInt(a.browser.version.charAt(0),6)===6){y=parseInt(this.elements.tip.css("margin-top"),10)||0;y+=parseInt(this.elements.content.css("margin-top"),10)||0;this.elements.tip.css({marginTop:y})}}}function K(y){var M,v,q,O;this.elements.tip!==null&&this.elements.tip.remove();M=this.options.style.tip.color||this.options.style.border.color;
if(this.options.style.tip.corner!==false){y||(y=new b(this.options.style.tip.corner));v=e(y.string(),this.options.style.tip.size.width,this.options.style.tip.size.height);this.elements.tip='<div class="'+this.options.style.classes.tip+'" dir="ltr" rel="'+y.string()+'" style="position:absolute; height:'+this.options.style.tip.size.height+"px; width:"+this.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;"></div>';this.elements.tooltip.prepend(this.elements.tip);if(a("<canvas />").get(0).getContext)q=
'<canvas height="'+this.options.style.tip.size.height+'" width="'+this.options.style.tip.size.width+'"></canvas>';else if(a.browser.msie){q=this.options.style.tip.size.width+","+this.options.style.tip.size.height;O="m"+v[0][0]+","+v[0][1];O+=" l"+v[1][0]+","+v[1][1];O+=" "+v[2][0]+","+v[2][1];O+=" xe";q='<v:shape fillcolor="'+M+'" stroked="false" filled="true" path="'+O+'" coordsize="'+q+'" style="width:'+this.options.style.tip.size.width+"px; height:"+this.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+
(y.y==="top"?"bottom":"top")+'"></v:shape>';q+='<v:image style="behavior:url(#default#VML);"></v:image>';this.elements.contentWrapper.css("position","relative")}this.elements.tip=this.elements.tooltip.find("."+this.options.style.classes.tip).eq(0);this.elements.tip.html(q);a("<canvas  />").get(0).getContext&&z.call(this,this.elements.tip.find("canvas:first"),v,M);y.y==="top"&&a.browser.msie&&parseInt(a.browser.version.charAt(0),10)===6&&this.elements.tip.css({marginTop:-4});G.call(this,y)}}function A(){var y=
this;y.elements.title!==null&&y.elements.title.remove();y.elements.tooltip.attr("aria-labelledby","qtip-"+y.id+"-title");y.elements.title=a('<div id="qtip-'+y.id+'-title" class="'+y.options.style.classes.title+'"></div>').css(h(y.options.style.title,true)).css({zoom:a.browser.msie?1:0}).prependTo(y.elements.contentWrapper);y.options.content.title.text&&y.updateTitle.call(y,y.options.content.title.text);if(y.options.content.title.button!==false&&typeof y.options.content.title.button==="string")y.elements.button=
a('<a class="'+y.options.style.classes.button+'" role="button" style="float:right; position: relative"></a>').css(h(y.options.style.button,true)).html(y.options.content.title.button).prependTo(y.elements.title).click(function(M){y.status.disabled||y.hide(M)})}function s(){function y(X){if(q.status.disabled!==true){clearTimeout(q.timers.inactive);q.timers.inactive=setTimeout(function(){a(ca).each(function(){T.unbind(this+".qtip-inactive");q.elements.content.unbind(this+".qtip-inactive")});q.hide(X)},
q.options.hide.delay)}}function M(X){if(q.status.disabled!==true){if(q.options.hide.when.event==="inactive"){a(ca).each(function(){T.bind(this+".qtip-inactive",y);q.elements.content.bind(this+".qtip-inactive",y)});y()}clearTimeout(q.timers.show);clearTimeout(q.timers.hide);if(q.options.show.delay>0)q.timers.show=setTimeout(function(){q.show(X)},q.options.show.delay);else q.show(X)}}function v(X){if(q.status.disabled!==true){if(q.options.hide.fixed===true&&/mouse(out|leave)/i.test(q.options.hide.when.event)&&
a(X.relatedTarget).parents('div.qtip[id^="qtip"]').length>0){X.stopPropagation();X.preventDefault();clearTimeout(q.timers.hide);return false}clearTimeout(q.timers.show);clearTimeout(q.timers.hide);q.elements.tooltip.stop(true,true);q.timers.hide=setTimeout(function(){q.hide(X)},q.options.hide.delay)}}var q,O,T,ca;q=this;O=q.options.show.when.target;T=q.options.hide.when.target;if(q.options.hide.fixed)T=T.add(q.elements.tooltip);ca=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter",
"mouseleave","mouseover"];q.options.hide.fixed===true&&q.elements.tooltip.bind("mouseover.qtip",function(){q.status.disabled!==true&&clearTimeout(q.timers.hide)});q.options.position.target==="mouse"&&q.options.position.type!=="static"&&O.bind("mousemove.qtip",function(X){q.cache.mouse={left:X.pageX,top:X.pageY};q.status.disabled===false&&q.options.position.adjust.mouse===true&&q.options.position.type!=="static"&&q.elements.tooltip.css("display")!=="none"&&q.updatePosition(X)});if(q.options.show.when.target.add(q.options.hide.when.target).length===
1&&q.options.show.when.event===q.options.hide.when.event&&q.options.hide.when.event!=="inactive"||q.options.hide.when.event==="unfocus"){q.cache.toggle=0;O.bind(q.options.show.when.event+".qtip",function(X){q.cache.toggle===0?M(X):v(X)})}else{O.bind(q.options.show.when.event+".qtip",M);q.options.hide.when.event!=="inactive"&&T.bind(q.options.hide.when.event+".qtip",v)}/(fixed|absolute)/.test(q.options.position.type)&&q.elements.tooltip.bind("mouseover.qtip",q.focus)}function C(){var y;y=this.getDimensions();
this.elements.bgiframe=this.elements.wrapper.prepend('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+y.height+"px; width:"+y.width+'px" />').children(".qtip-bgiframe:first")}function I(){var y,M,v;this.beforeRender.call(this);this.status.rendered=2;this.elements.tooltip='<div qtip="'+this.id+'" id="qtip-'+this.id+'" role="tooltip" aria-describedby="qtip-'+
this.id+'-content" class="qtip '+(this.options.style.classes.tooltip||this.options.style)+'" style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; position:'+this.options.position.type+';">   <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">     <div class="qtip-contentWrapper" style="overflow:hidden;">        <div id="qtip-'+this.id+'-content" class="qtip-content '+this.options.style.classes.content+'"></div> </div></div></div>';
this.elements.tooltip=a(this.elements.tooltip);this.elements.tooltip.appendTo(this.options.position.container);this.elements.tooltip.data("qtip",{current:0,interfaces:[this]});this.elements.wrapper=this.elements.tooltip.children("div:first");this.elements.contentWrapper=this.elements.wrapper.children("div:first");this.elements.content=this.elements.contentWrapper.children("div:first").css(h(this.options.style));a.browser.msie&&this.elements.wrapper.add(this.elements.content).css({zoom:1});this.options.hide.when.event===
"unfocus"&&this.elements.tooltip.attr("unfocus",true);typeof this.options.style.width.value==="number"&&this.updateWidth();if(a("<canvas />").get(0).getContext||a.browser.msie){this.options.style.border.radius>0?w.call(this):this.elements.contentWrapper.css({border:this.options.style.border.width+"px solid "+this.options.style.border.color});this.options.style.tip.corner!==false&&K.call(this)}else{this.elements.contentWrapper.css({border:this.options.style.border.width+"px solid "+this.options.style.border.color});
this.options.style.border.radius=0;this.options.style.tip.corner=false}y=typeof this.options.content.text==="string"&&this.options.content.text.length>0||this.options.content.text.jquery&&this.options.content.text.length>0?this.options.content.text:" ";this.options.content.title.text!==false&&A.call(this);this.updateContent(y,false);s.call(this);this.options.show.ready===true&&this.show();if(this.options.content.url!==false){y=this.options.content.url;M=this.options.content.data;v=this.options.content.method||
"get";this.loadContent(y,M,v)}this.status.rendered=true;this.onRender.call(this)}function S(y,M,v){var q=this;q.id=v;q.options=M;q.status={animated:false,rendered:false,disabled:false,focused:false};q.elements={target:y.addClass(q.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};q.cache={attr:false,mouse:{},toggle:0,overflow:{left:false,top:false}};q.timers={};a.extend(q,q.options.api,{show:function(O){function T(){q.elements.tooltip.attr("aria-hidden",
true);q.options.position.type!=="static"&&q.focus();q.onShow.call(q,O);if(a.browser.msie){var X=q.elements.tooltip.get(0).style;X.removeAttribute("filter");X.removeAttribute("opacity")}else q.elements.tooltip.css({opacity:""})}var ca;if(!q.status.rendered)return false;if(q.elements.tooltip.css("display")!=="none")return q;q.elements.tooltip.stop(true,false);if(q.beforeShow.call(q,O)===false)return q;q.cache.toggle=1;q.options.position.type!=="static"&&q.updatePosition(O,q.options.show.effect.length>
0&&q.rendered!==2);if(typeof q.options.show.solo==="object")ca=a(q.options.show.solo);else if(q.options.show.solo===true)ca=a("div.qtip").not(q.elements.tooltip);ca&&ca.each(function(){a(this).qtip("api").status.rendered===true&&a(this).qtip("api").hide()});if(typeof q.options.show.effect.type==="function"){q.options.show.effect.type.call(q.elements.tooltip,q.options.show.effect.length);q.elements.tooltip.queue(function(){T();a(this).dequeue()})}else{switch(q.options.show.effect.type.toLowerCase()){case "fade":q.elements.tooltip.fadeIn(q.options.show.effect.length,
T);break;case "slide":q.elements.tooltip.slideDown(q.options.show.effect.length,function(){T();q.options.position.type!=="static"&&q.updatePosition(O,true)});break;case "grow":q.elements.tooltip.show(q.options.show.effect.length,T);break;default:q.elements.tooltip.show(null,T);break}q.elements.tooltip.addClass(q.options.style.classes.active)}return q},hide:function(O){function T(){q.elements.tooltip.attr("aria-hidden",true);a.browser.msie?q.elements.tooltip.get(0).style.removeAttribute("opacity"):
q.elements.tooltip.css({opacity:""});q.onHide.call(q,O)}if(q.status.rendered){if(q.elements.tooltip.css("display")==="none")return q}else return false;clearTimeout(q.timers.show);q.elements.tooltip.stop(true,false);if(q.beforeHide.call(q,O)===false)return q;q.cache.toggle=0;if(typeof q.options.hide.effect.type==="function"){q.options.hide.effect.type.call(q.elements.tooltip,q.options.hide.effect.length);q.elements.tooltip.queue(function(){T();a(this).dequeue()})}else{switch(q.options.hide.effect.type.toLowerCase()){case "fade":q.elements.tooltip.fadeOut(q.options.hide.effect.length,
T);break;case "slide":q.elements.tooltip.slideUp(q.options.hide.effect.length,T);break;case "grow":q.elements.tooltip.hide(q.options.hide.effect.length,T);break;default:q.elements.tooltip.hide(null,T);break}q.elements.tooltip.removeClass(q.options.style.classes.active)}return q},toggle:function(O,T){T=/boolean|number/.test(typeof T)?T:!q.elements.tooltip.is(":visible");q[T?"show":"hide"](O);return q},updatePosition:function(O,T){if(!q.status.rendered)return false;var ca=M.position,X=a(ca.target),
ia=q.elements.tooltip.outerWidth(),oa=q.elements.tooltip.outerHeight(),x,E,L,R=ca.corner.tooltip,aa=ca.corner.target,ga,W,za={left:function(){var ha=a(window).scrollLeft(),g=a(window).width()+a(window).scrollLeft(),V=R.x==="center"?ia/2:ia,ea=R.x==="center"?x/2:x,la=(R.x==="center"?1:2)*q.options.style.border.radius,ta=-2*ca.adjust.x,va=L.left+ia,pa;if(va>g){pa=ta-V-ea+la;if(L.left+pa>ha||ha-(L.left+pa)<va-g)return{adjust:pa,tip:"right"}}if(L.left<ha){pa=ta+V+ea-la;if(va+pa<g||va+pa-g<ha-L.left)return{adjust:pa,
tip:"left"}}return{adjust:0,tip:R.x}},top:function(){var ha=a(window).scrollTop(),g=a(window).height()+a(window).scrollTop(),V=R.y==="center"?oa/2:oa,ea=R.y==="center"?E/2:E,la=(R.y==="center"?1:2)*q.options.style.border.radius,ta=-2*ca.adjust.y,va=L.top+oa,pa;if(va>g){pa=ta-V-ea+la;if(L.top+pa>ha||ha-(L.top+pa)<va-g)return{adjust:pa,tip:"bottom"}}if(L.top<ha){pa=ta+V+ea-la;if(va+pa<g||va+pa-g<ha-L.top)return{adjust:pa,tip:"top"}}return{adjust:0,tip:R.y}}};if(O&&M.position.target==="mouse"){aa={x:"left",
y:"top"};x=E=0;L=O.pageX?{top:O.pageY,left:O.pageX}:q.cache.mouse}else{if(X[0]===document){x=X.width();E=X.height();L={top:0,left:0}}else if(X[0]===window){x=X.width();E=X.height();L={top:X.scrollTop(),left:X.scrollLeft()}}else if(X.is("area")){X=q.options.position.target.attr("coords").split(",");for(ga=0;ga<X.length;ga++)X[ga]=parseInt(X[ga],10);ga=q.options.position.target.parent("map").attr("name");W=a('img[usemap="#'+ga+'"]:first').offset();L={left:Math.floor(W.left+X[0]),top:Math.floor(W.top+
X[1])};switch(q.options.position.target.attr("shape").toLowerCase()){case "rect":x=Math.ceil(Math.abs(X[2]-X[0]));E=Math.ceil(Math.abs(X[3]-X[1]));break;case "circle":x=X[2]+1;E=X[2]+1;break;case "poly":x=X[0];E=X[1];for(ga=0;ga<X.length;ga++)if(ga%2===0){if(X[ga]>x)x=X[ga];if(X[ga]<X[0])L.left=Math.floor(W.left+X[ga])}else{if(X[ga]>E)E=X[ga];if(X[ga]<X[1])L.top=Math.floor(W.top+X[ga])}x-=L.left-W.left;E-=L.top-W.top;break}x-=2;E-=2}else{x=X.outerWidth();E=X.outerHeight();q.elements.tooltip.is(":visible")||
q.elements.tooltip.css({left:"-10000000em"}).show();if(q.elements.tooltip.offsetParent()[0]===document.body)L=X.offset();else{L=X.position();L.top+=X.offsetParent().scrollTop();L.left+=X.offsetParent().scrollLeft()}}L.left+=aa.x==="right"?x:aa.x==="center"?x/2:0;L.top+=aa.y==="bottom"?E:aa.y==="center"?E/2:0}L.left+=ca.adjust.x+(R.x==="right"?-ia:R.x==="center"?-ia/2:0);L.top+=ca.adjust.y+(R.y==="bottom"?-oa:R.y==="center"?-oa/2:0);if(q.options.style.border.radius>0){if(R.x==="left")L.left-=q.options.style.border.radius;
else if(R.x==="right")L.left+=q.options.style.border.radius;if(R.y==="top")L.top-=q.options.style.border.radius;else if(R.y==="bottom")L.top+=q.options.style.border.radius}ca.adjust.screen&&function(){var ha={x:0,y:0},g={x:za.left(),y:za.top()},V=new b(M.style.tip.corner);if(q.elements.tip&&V){if(g.y.adjust!==0){L.top+=g.y.adjust;V.y=ha.y=g.y.tip}if(g.x.adjust!==0){L.left+=g.x.adjust;V.x=ha.x=g.x.tip}q.cache.overflow={left:ha.x===false,top:ha.y===false};q.elements.tip.attr("rel")!==V.string()&&K.call(q,
V)}}();!q.elements.bgiframe&&a.browser.msie&&parseInt(a.browser.version.charAt(0),10)===6&&C.call(q);if(q.beforePositionUpdate.call(q,O)===false)return q;if(M.position.target!=="mouse"&&T===true){q.status.animated=true;q.elements.tooltip.stop().animate(L,200,"swing",function(){q.status.animated=false})}else q.elements.tooltip.css(L);q.onPositionUpdate.call(q,O);return q},updateWidth:function(O){if(!q.status.rendered||O&&typeof O!=="number")return false;var T=q.elements.contentWrapper.siblings().add(q.elements.tip).add(q.elements.button),
ca=q.elements.wrapper.add(q.elements.contentWrapper.children()),X=q.elements.tooltip,ia=q.options.style.width.max,oa=q.options.style.width.min;if(!O)if(typeof q.options.style.width.value==="number")O=q.options.style.width.value;else{q.elements.tooltip.css({width:"auto"});T.hide();X.width(O);a.browser.msie&&ca.css({zoom:""});O=q.getDimensions().width;q.options.style.width.value||(O=Math.min(Math.max(O,oa),ia))}if(O%2)O+=1;q.elements.tooltip.width(O);T.show();q.options.style.border.radius&&q.elements.tooltip.find(".qtip-betweenCorners").each(function(){a(this).width(O-
q.options.style.border.radius*2)});if(a.browser.msie){ca.css({zoom:1});q.elements.wrapper.width(O);q.elements.bgiframe&&q.elements.bgiframe.width(O).height(q.getDimensions.height)}return q},updateStyle:function(O){var T,ca,X,ia;if(!q.status.rendered||typeof O!=="string"||!a.fn.qtip.styles[O])return false;q.options.style=l.call(q,a.fn.qtip.styles[O],q.options.user.style);q.elements.content.css(h(q.options.style));q.options.content.title.text!==false&&q.elements.title.css(h(q.options.style.title,true));
q.elements.contentWrapper.css({borderColor:q.options.style.border.color});if(q.options.style.tip.corner!==false)if(a("<canvas />").get(0).getContext){O=q.elements.tooltip.find(".qtip-tip canvas:first");ca=O.get(0).getContext("2d");ca.clearRect(0,0,300,300);X=O.parent("div[rel]:first").attr("rel");ia=e(X,q.options.style.tip.size.width,q.options.style.tip.size.height);z.call(q,O,ia,q.options.style.tip.color||q.options.style.border.color)}else if(a.browser.msie){O=q.elements.tooltip.find('.qtip-tip [nodeName="shape"]');
O.attr("fillcolor",q.options.style.tip.color||q.options.style.border.color)}if(q.options.style.border.radius>0){q.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:q.options.style.border.color});if(a("<canvas />").get(0).getContext){T=d(q.options.style.border.radius);q.elements.tooltip.find(".qtip-wrapper canvas").each(function(){ca=a(this).get(0).getContext("2d");ca.clearRect(0,0,300,300);X=a(this).parent("div[rel]:first").attr("rel");p.call(q,a(this),T[X],q.options.style.border.radius,
q.options.style.border.color)})}else a.browser.msie&&q.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){a(this).attr("fillcolor",q.options.style.border.color)})}return q},updateContent:function(O,T){function ca(){q.updateWidth();if(T!==false){q.options.position.type!=="static"&&q.updatePosition(q.elements.tooltip.is(":visible"),true);q.options.style.tip.corner!==false&&G.call(q)}}var X,ia,oa;if(!O)return false;X=q.beforeContentUpdate.call(q,O);if(typeof X==="string")O=X;else if(X===
false)return;if(q.status.rendered){a.browser.msie&&q.elements.contentWrapper.children().css({zoom:"normal"});O.jquery&&O.length>0?O.clone(true).appendTo(q.elements.content).show():q.elements.content.html(O);ia=q.elements.content.find("img[complete=false]");if(ia.length>0){oa=0;ia.each(function(){a('<img src="'+a(this).attr("src")+'" />').load(function(){++oa===ia.length&&ca()})})}else ca()}else q.options.content.text=O;q.onContentUpdate.call(q);return q},loadContent:function(O,T,ca){function X(ia){q.onContentLoad.call(q);
q.updateContent(ia)}if(!q.status.rendered)return false;if(q.beforeContentLoad.call(q)===false)return q;ca==="post"?a.post(O,T,X):a.get(O,T,X);return q},updateTitle:function(O){if(!q.status.rendered||!O)return false;if(q.beforeTitleUpdate.call(q)===false)return q;if(q.elements.button)q.elements.button=q.elements.button.clone(true);q.elements.title.html(O);q.elements.button&&q.elements.title.prepend(q.elements.button);q.onTitleUpdate.call(q);return q},focus:function(O){var T,ca,X;if(!q.status.rendered||
q.options.position.type==="static")return false;T=parseInt(q.elements.tooltip.css("z-index"),10);ca=15E3+a('div.qtip[id^="qtip"]').length-1;if(!q.status.focused&&T!==ca){T=q.beforeFocus.call(q,O);if(T===false)return q;a('div.qtip[id^="qtip"]').not(q.elements.tooltip).each(function(){if(a(this).qtip("api").status.rendered===true){X=parseInt(a(this).css("z-index"),10);typeof X==="number"&&X>-1&&a(this).css({zIndex:parseInt(a(this).css("z-index"),10)-1});a(this).qtip("api").status.focused=false}});q.elements.tooltip.css({zIndex:ca});
q.status.focused=true;q.onFocus.call(q,O)}return q},disable:function(O){q.status.disabled=O?true:false;return q},destroy:function(){var O,T,ca=q.elements.target.data("old"+q.cache.attr[0]);if(q.beforeDestroy.call(q)===false)return q;if(q.status.rendered){q.options.show.when.target.unbind("mousemove.qtip",q.updatePosition);q.options.show.when.target.unbind("mouseout.qtip",q.hide);q.options.show.when.target.unbind(q.options.show.when.event+".qtip");q.options.hide.when.target.unbind(q.options.hide.when.event+
".qtip");q.elements.tooltip.unbind(q.options.hide.when.event+".qtip");q.elements.tooltip.unbind("mouseover.qtip",q.focus);q.elements.tooltip.remove()}else q.options.show.when.target.unbind(q.options.show.when.event+".qtip-"+q.id+"-create");if(typeof q.elements.target.data("qtip")==="object"){T=q.elements.target.data("qtip").interfaces;if(typeof T==="object"&&T.length>0)for(O=0;O<T.length-1;O++)T[O].id===q.id&&T.splice(O,1)}a.fn.qtip.interfaces.splice(q.id,1);if(typeof T==="object"&&T.length>0)q.elements.target.data("qtip").current=
T.length-1;else q.elements.target.removeData("qtip");ca&&q.elements.target.attr(q.cache.attr[0],ca);q.onDestroy.call(q);return q.elements.target},getPosition:function(){var O,T;if(!q.status.rendered)return false;(O=q.elements.tooltip.css("display")!=="none"?false:true)&&q.elements.tooltip.css({visiblity:"hidden"}).show();T=q.elements.tooltip.offset();O&&q.elements.tooltip.css({visiblity:"visible"}).hide();return T},getDimensions:function(){var O,T;if(!q.status.rendered)return false;(O=!q.elements.tooltip.is(":visible")?
true:false)&&q.elements.tooltip.css({visiblity:"hidden"}).show();T={height:q.elements.tooltip.outerHeight(),width:q.elements.tooltip.outerWidth()};O&&q.elements.tooltip.css({visiblity:"visible"}).hide();return T}})}a(document).ready(function(){var y;a(window).bind("resize scroll",function(M){for(y=0;y<a.fn.qtip.interfaces.length;y++){var v=a.fn.qtip.interfaces[y];if(v&&v.status&&v.status.rendered&&v.options.position.type!=="static"&&v.elements.tooltip.is(":visible")&&(v.options.position.adjust.scroll&&
M.type==="scroll"||v.options.position.adjust.resize&&M.type==="resize"))v.updatePosition(M,true)}});a(document).bind("mouseenter.qtip",function(M){if(a(M.target).parents("div.qtip").length===0){var v=a(".qtipSelector"),q=v.qtip("api");v.is(":visible")&&q&&q.status&&!q.status.disabled&&a(M.target).add(q.elements.target).length>1&&q.hide(M)}})});a.fn.qtip=function(y,M){var v,q,O,T,ca,X,ia,oa;if(typeof y==="string")if(a(this).data("qtip"))if(y==="api")return a(this).data("qtip").interfaces[a(this).data("qtip").current];
else{if(y==="interfaces")return a(this).data("qtip").interfaces}else return a(this);else{y||(y={});if(typeof y.content!=="object"||y.content.jquery&&y.content.length>0)y.content={text:y.content};if(typeof y.content.title!=="object")y.content.title={text:y.content.title};if(typeof y.position!=="object")y.position={corner:y.position};if(typeof y.position.corner!=="object")y.position.corner={target:y.position.corner,tooltip:y.position.corner};if(typeof y.show!=="object")y.show={when:y.show};if(typeof y.show.when!==
"object")y.show.when={event:y.show.when};if(typeof y.show.effect!=="object")y.show.effect={type:y.show.effect};if(typeof y.hide!=="object")y.hide={when:y.hide};if(typeof y.hide.when!=="object")y.hide.when={event:y.hide.when};if(typeof y.hide.effect!=="object")y.hide.effect={type:y.hide.effect};if(typeof y.style!=="object")y.style={name:y.style};y.style=j(y.style);T=a.extend(true,{},a.fn.qtip.defaults,y);T.style=l.call({options:T},T.style);T.user=a.extend(true,{},y)}return a(this).each(function(){var x=
a(this),E=false;if(typeof y==="string"){X=y.toLowerCase();O=a(this).qtip("interfaces");if(typeof O==="object")if(M===true&&X==="destroy")for(v=O.length-1;v>-1;v--)"object"===typeof O[v]&&O[v].destroy();else{if(M!==true)O=[a(this).qtip("api")];for(v=0;v<O.length;v++)if(X==="destroy")O[v].destroy();else if(O[v].status.rendered===true)if(X==="show")O[v].show();else if(X==="hide")O[v].hide();else if(X==="focus")O[v].focus();else if(X==="disable")O[v].disable(true);else if(X==="enable")O[v].disable(false);
else X==="update"&&O[v].updatePosition()}}else{ia=a.extend(true,{},T);ia.hide.effect.length=T.hide.effect.length;ia.show.effect.length=T.show.effect.length;if(ia.position.container===false)ia.position.container=a(document.body);if(ia.position.target===false)ia.position.target=a(this);if(ia.show.when.target===false)ia.show.when.target=a(this);if(ia.hide.when.target===false)ia.hide.when.target=a(this);ia.position.corner.tooltip=new b(ia.position.corner.tooltip);ia.position.corner.target=new b(ia.position.corner.target);
ia.content.text.length||a(["title","alt"]).each(function(L,R){if((L=x.attr(R))&&L.length){E=[R,L];x.data("old"+R,L).removeAttr(R);ia.content.text=L.replace(/\n/gi,"<br />");return false}});q=a.fn.qtip.interfaces.length;for(v=0;v<q;v++)if(typeof a.fn.qtip.interfaces[v]==="undefined"){q=v;break}ca=new S(a(this),ia,q);a.fn.qtip.interfaces[q]=ca;ca.cache.attr=E;if(typeof a(this).data("qtip")==="object"&&a(this).data("qtip")){if(typeof a(this).attr("qtip")==="undefined")a(this).data("qtip").current=a(this).data("qtip").interfaces.length;
a(this).data("qtip").interfaces.push(ca)}else a(this).data("qtip",{current:0,interfaces:[ca]});if(ia.content.prerender===false&&ia.show.when.event!==false&&ia.show.ready!==true)ia.show.when.target.bind(ia.show.when.event+".qtip-"+q+"-create",{qtip:q},function(L){oa=a.fn.qtip.interfaces[L.data.qtip];oa.options.show.when.target.unbind(oa.options.show.when.event+".qtip-"+L.data.qtip+"-create");oa.cache.mouse={left:L.pageX,top:L.pageY};I.call(oa);oa.options.show.when.target.trigger(oa.options.show.when.event)});
else{ca.cache.mouse={left:ia.show.when.target.offset().left,top:ia.show.when.target.offset().top};I.call(ca)}}})};a.fn.qtip.interfaces=[];a.fn.qtip.fn={attr:a.fn.attr};a.fn.attr=function(y){var M=a(this).qtip("api");return arguments.length===1&&/title|alt/i.test(y)&&M.status&&M.status.rendered===true?a(this).data("old"+M.cache.attr[0]):a.fn.qtip.fn.attr.apply(this,arguments)};a.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,
corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},
beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};a.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,
color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",
color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",
color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);jQuery.fn.qtip.styles.WikispacesDarkGrey={name:"light",width:350,border:{radius:4,color:"#888"},title:{"font-size":"16px","font-weight":"bold","background-color":"#888",padding:"7px 9px 5px",color:"#FFF"}};
(function(a){var b=0;a.getScrollbarWidth=function(){if(!b)if(a.browser.msie){var e=a('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo("body"),d=a('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo("body");b=e.width()-d.width();e.add(d).remove()}else{e=a("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).prependTo("body").append("<div />").find("div").css({width:"100%",
height:200});b=100-e.width();e.parent().remove()}return b}})(jQuery);
(function(a){a.fn.autogrow=function(){this.filter("textarea").each(function(){var b=a(this),e=b.height();b.css("lineHeight");var d=a("<div></div>").css({position:"absolute",top:-10000,left:-10000,width:a(this).width(),fontSize:b.css("fontSize"),fontFamily:b.css("fontFamily"),lineHeight:b.css("lineHeight"),resize:"none"}).appendTo(document.body);b=_.throttle(function(){var h=this.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n/g,"<br/>");d.html(h);a(this).css("height",
Math.max(d.height()+20,e))},200);a(this).focus(b).change(b).keyup(b).keydown(b);b.apply(this)});return this}})(jQuery);var JSON;JSON||(JSON={});
(function(){function a(z){return z<10?"0"+z:z}function b(z){h.lastIndex=0;return h.test(z)?'"'+z.replace(h,function(G){var K=p[G];return typeof K==="string"?K:"\\u"+("0000"+G.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+z+'"'}function e(z,G){var K,A,s=j,C,I=G[z];if(I&&typeof I==="object"&&typeof I.toJSON==="function")I=I.toJSON(z);if(typeof w==="function")I=w.call(G,z,I);switch(typeof I){case "string":return b(I);case "number":return isFinite(I)?String(I):"null";case "boolean":case "null":return String(I);
case "object":if(!I)return"null";j+=l;C=[];if(Object.prototype.toString.apply(I)==="[object Array]"){A=I.length;for(z=0;z<A;z+=1)C[z]=e(z,I)||"null";G=C.length===0?"[]":j?"[\n"+j+C.join(",\n"+j)+"\n"+s+"]":"["+C.join(",")+"]";j=s;return G}if(w&&typeof w==="object"){A=w.length;for(z=0;z<A;z+=1)if(typeof w[z]==="string"){K=w[z];if(G=e(K,I))C.push(b(K)+(j?": ":":")+G)}}else for(K in I)if(Object.prototype.hasOwnProperty.call(I,K))if(G=e(K,I))C.push(b(K)+(j?": ":":")+G);G=C.length===0?"{}":j?"{\n"+j+C.join(",\n"+
j)+"\n"+s+"}":"{"+C.join(",")+"}";j=s;return G}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
h=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,j,l,p={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},w;if(typeof JSON.stringify!=="function")JSON.stringify=function(z,G,K){var A;l=j="";if(typeof K==="number")for(A=0;A<K;A+=1)l+=" ";else if(typeof K==="string")l=K;if((w=G)&&typeof G!=="function"&&(typeof G!=="object"||typeof G.length!=="number"))throw new Error("JSON.stringify");return e("",
{"":z})};if(typeof JSON.parse!=="function")JSON.parse=function(z,G){function K(A,s){var C,I,S=A[s];if(S&&typeof S==="object")for(C in S)if(Object.prototype.hasOwnProperty.call(S,C)){I=K(S,C);if(I!==undefined)S[C]=I;else delete S[C]}return G.call(A,s,S)}z=String(z);d.lastIndex=0;if(d.test(z))z=z.replace(d,function(A){return"\\u"+("0000"+A.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(z.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){z=eval("("+z+")");return typeof G==="function"?K({"":z},""):z}throw new SyntaxError("JSON.parse");}})();
function WikispacesNavigationObj(){var a=this;this.panels={wiki:{displayed:false,loaded:false,loading:false,url:"/site/wikinav",button:"#WikiNavigationButton",container:"#WikiNavigationTool",onLoad:function(){jQuery("#WikiNavigationTool li.wikiItem").hover(function(){jQuery(this).addClass("highlight")},function(){jQuery(this).removeClass("highlight")});jQuery("#WikiNavigationTool li.wikiItem").click(function(){window.location=jQuery(this).find("a:first").attr("href")})}},notice:{displayed:false,loaded:false,
loading:false,url:"/site/notice/"+encodeURIComponent(wikispaces_username),button:"#NoticeButton",container:"#NoticeTool",onLoad:function(){jQuery("#NoticeTool li.notice").hover(function(){jQuery(this).addClass("highlight")},function(){jQuery(this).removeClass("highlight")});jQuery("#NoticeTool li.notice").click(function(){window.location=jQuery(this).find("a:first").attr("href")})}}};this.justHidden=this.headerNavIsHidden=false;this.show=function(){if(a.headerNavIsHidden){jQuery(".WikiInternalHeaderNav").animate({right:0});
a.headerNavIsHidden=false}};this.hide=function(){if(!a.headerNavIsHidden){jQuery.each(a.panels,function(e,d){d.displayed&&a.hidePanel(e)});var b=jQuery(window).width()-jQuery(".WikiInternalHeaderNav .slideMarker").offset().left;jQuery(".WikiInternalHeaderNav").animate({right:-b});a.headerNavIsHidden=true;a.justHidden=true;setTimeout(function(){a.justHidden=false},500)}};this.panelOpen=function(){var b=false;jQuery.each(a.panels,function(e,d){b=b||d.displayed});return b};this.showPanel=function(b){if(a.panels[b].loaded){jQuery.each(a.panels,
function(e,d){d.displayed&&a.hidePanel(e,true)});a.panels[b].displayed=true;jQuery(a.panels[b].button).closest(".WikiInternalHeaderNavMenuArea").addClass("active");jQuery(a.panels[b].container).slideDown(400,function(){jQuery(a.panels[b].container).css("max-height",jQuery(a.panels[b].container)[0].scrollHeight);jQuery(a.panels[b].container).css("width",jQuery(".WikiInternalHeaderNavMenu")[0].scrollWidth);a.updatePanelHeight(b)})}else a.loadPanel(b)};this.hidePanel=function(b,e){a.panels[b].displayed=
false;e?jQuery(a.panels[b].container).hide():jQuery(a.panels[b].container).slideUp();jQuery(a.panels[b].button).closest(".WikiInternalHeaderNavMenuArea").removeClass("active")};this.updatePanelHeight=function(b){b=jQuery(a.panels[b].container);if(b.length){var e=jQuery(window).height()-(b.offset().top-jQuery(window).scrollTop());b.height(e)}};this.loadPanel=function(b){if(!a.panels[b].loading){a.panels[b].loading=true;jQuery.ajax({url:a.panels[b].url,dataType:"html",success:function(e){jQuery(".WikiInternalHeaderNav").append(e);
a.panels[b].onLoad(a);a.panels[b].loaded=true;a.panels[b].loading=false;a.showPanel(b)},error:function(){WikispacesSession.reloadSession(function(){a.panels[b].loading=false;a.loadPanel(b)},500,function(){alert("Error: Could Not Show Space Navigation")})}})}};jQuery(document).ready(function(){jQuery(".WikiInternalHeaderNav").mouseover(function(){a.justHidden||a.show()});jQuery(window).scroll(function(){jQuery(document).scrollTop()>15&&!a.panelOpen()&&a.hide()});jQuery.each(a.panels,function(b,e){jQuery(e.button).click(function(d){e.displayed?
a.hidePanel(b):a.showPanel(b);d.preventDefault();return false})});jQuery(window).resize(function(){jQuery.each(a.panels,function(b,e){e.displayed&&a.updatePanelHeight(b)})})})}var WikispacesNavigation=new WikispacesNavigationObj;function WikispacesSession(){}WikispacesSession.sessionReloadAttempt=0;WikispacesSession.sessionReloadHandle=null;WikispacesSession.reloadSessionSuccess=function(){jQuery("iframe.sessionReloadIframe").remove();this.sessionReloadAttempt=0};
WikispacesSession.reloadSession=function(a,b,e){log("reloadSession",a,"attempt "+this.sessionReloadAttempt);if(this.sessionReloadAttempt>4)typeof e=="function"&&e.call(this);else this.reloadSessionIframe(a,b)};
WikispacesSession.reloadSessionIframe=function(a,b){var e='<iframe class="sessionReloadIframe" id="sessionReloadIfr'+this.sessionReloadAttempt+'" src="/space/sessionreload?_='+(new Date).getTime()+'" name="sessionReloadIfr'+this.sessionReloadAttempt+'" style="display: none; width:0; height:0; border:0; padding:0; margin:0; visibility: hidden;"></iframe>';jQuery("body").append(e);this.sessionReloadAttempt++;setTimeout(a,b)};
WikispacesSession.reloadSessionAt=function(a){typeof this.sessionReloadHandle=="number"&&clearTimeout(this.sessionReloadHandle);var b=Math.floor((new Date).getTime()/1E3);a=a-b;if(a<1)a=1;var e=this;this.sessionReloadHandle=setTimeout(function(){e.reloadSessionIframe(function(){e.reloadSessionSuccess()},1)},a*1E3)};function WikispacesTags(){}
WikispacesTags.getTagsFromSelect=function(a){var b=[];a[0].addFinalItem&&a[0].addFinalItem();jQuery(a).find("option.selected").each(function(){b.push(jQuery(this).val())});return b};
WikispacesTags.updateTags=function(a){function b(){WikispacesSession.reloadSession(function(){WikispacesTags.updateTags(a)},500,function(){alert("Error: Could Not Update Tags")})}var e=this.getTagsFromSelect(jQuery(a).find("select"));jQuery.ajax({url:WikispacesCommon.pathFor("tag","update",a.objectName.value)+"?object="+encodeURIComponent(a.type.value),type:"POST",data:{go:true,"tags[]":e},success:function(){jQuery(a).find(".WikiTagList ul").empty();for(var d=0;d<e.length;d++){var h=jQuery("<a/>").attr("rel",
"tag").attr("href",WikispacesCommon.pathFor("space","content")+"?tag="+encodeURIComponent(e[d])).text(e[d]);h=jQuery("<li/>").addClass("WikiTag").append(h);jQuery(a).find(".WikiTagList ul").append(h);jQuery(a).find(".WikiTagList ul").append(" ")}jQuery(a).trigger("tagUpdate")},error:b})};WikispacesTags.showInput=function(a){a=jQuery(a).parents(".WikiTagForm");a.find(".WikiTagList").hide();a.find("select.WikiTagInput").get(0).reset&&a.find("select.WikiTagInput").get(0).reset();a.find(".WikiTagsEdit, .WikiTagsInput").show().find("input.maininput").focus()};
WikispacesTags.hideInput=function(a){a=jQuery(a).parents(".WikiTagForm");a.find(".WikiTagList").show();a.find(".WikiTagsEdit, .WikiTagsInput").hide()};WikispacesTags.save=function(a){var b=jQuery(a).find("select.WikiTagInput").get(0);WikispacesTags.updateTags(a);b.updateSelected();jQuery(".WikiTagList").show().parents("td:first").css("width","auto");jQuery(".WikiTagsEdit, .WikiTagsInput").hide();WikispacesTags.openCounter--};
WikispacesTags.initElements=function(a){jQuery(a).filter(function(){return!jQuery(this).siblings("div.facebook-auto").length}).fcbkcomplete({json_url:WikispacesCommon.pathFor("space","autocomplete2","tag"),json_cache:false,filter_case:false,filter_selected:true,comma_is_enter:true,newel:true,complete_text:"Type a tag name. Press comma or enter to add another.",maxlength:255})};
WikispacesTags.promptForOpenInputs=function(a){var b=WikispacesTags.checkForOpenInputs();if(b)if(confirm("Are you sure you want to navigate away from this page?\n\n"+b+"\n\nPress OK to continue, or Cancel to stay on the current page."))WikispacesTags.openCounter=0;else{a.stopImmediatePropagation();a.preventDefault();return false}return true};WikispacesTags.checkForOpenInputs=function(){if(WikispacesTags.openCounter>0)return"You have not yet saved your tag changes."};WikispacesTags.openCounter=0;
jQuery(document).ready(function(){jQuery(".WikiTagsEditLink").live("click",function(a){window.onbeforeunload=WikispacesTags.checkForOpenInputs;WikispacesTags.showInput(this);var b=jQuery(this).parents(".WikiTagForm");if(!b.find(".facebook-auto").length){WikispacesTags.initElements(b.find("select.WikiTagInput"));b.submit(function(e){WikispacesTags.save(this);jQuery(".WikiTagsEditLink").show();e.preventDefault();return false});WikispacesTags.showInput(this)}jQuery(".WikiTagsEditLink").hide();WikispacesTags.openCounter++;
a.preventDefault();return false});jQuery(".WikiTagFormCancel").live("click",function(a){WikispacesTags.hideInput(this);WikispacesTags.openCounter--;jQuery(".WikiTagsEditLink").show();a.preventDefault();return false})});function WikispacesCommon(){}WikispacesCommon.PROJECT_INDICATOR="-";
WikispacesCommon.camelize=function(a){var b=a.split("-"),e=b.length;if(e==1)return b[0];a=a.charAt(0)=="-"?b[0].charAt(0).toUpperCase()+b[0].substring(1):b[0];for(var d=1;d<e;d++)a+=b[d].charAt(0).toUpperCase()+b[d].substring(1);return a};WikispacesCommon.normalizeCssSelector=function(a){if(a==a.toUpperCase())a=a.toLowerCase();return WikispacesCommon.camelize(a)};WikispacesCommon.highlightColor="#FFC";
WikispacesCommon.jumpToAnchor=function(a){window.location=window.location.toString().replace(/\#.*$/,"")+a};WikispacesCommon.truncate=function(a,b,e){return WikispacesCommon.truncify(a,b,0,e)};WikispacesCommon.truncify=function(a,b,e,d){if(!a)return"";if(null==e)e=10;if(null==d)d="...";if(a.length<=b)return a;return a.substr(0,b-e-d.length)+d+a.substr(a.length-e)};
WikispacesCommon.addUriParams=function(a,b){if(!b||!b.length)return a;a+=a.indexOf("?")==-1?"?":"&";for(var e=[],d=0;d<b.length;++d)_.isUndefined(b[d][1])||e.push(encodeURIComponent(b[d][0])+"="+encodeURIComponent(b[d][1]));return a+e.join("&")};WikispacesCommon.track=function(a,b,e){_gaq=_gaq||[];_gaq.push(["_trackEvent",a,b,e])};WikispacesCommon.escapeRegExp=function(a){return a.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")};
WikispacesCommon.escapeHtml=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};WikispacesCommon.strtr=function(a,b,e){for(var d="",h=-1,j=0;j<a.length;j++)if(a.charCodeAt(j)<=127)d+=a.charAt(j);else{h=b.indexOf(a.charAt(j));d+=h>=0?e.charAt(h):a.charAt(j)}return d};WikispacesCommon.getProjectUrl=function(){if(wikispaces_isDefaultSpace)return"";return"/"+WikispacesCommon.encodePath(WikispacesCommon.PROJECT_INDICATOR,wikispaces_projectName,wikispaces_spaceName)};
WikispacesCommon.encodePath=function(){return _(arguments).chain().filter(function(a){return a!=null}).map(function(a){return encodeURIComponent(a)}).value().join("/")};WikispacesCommon.pathFor=function(a,b,e,d){return this.getProjectUrl()+"/"+WikispacesCommon.encodePath(a,b,e,d)};WikispacesCommon.fullTeamPath=function(a,b,e,d,h,j){return"/"+WikispacesCommon.PROJECT_INDICATOR+"/"+WikispacesCommon.encodePath(a,b,e,d,h,j)};
WikispacesCommon.relativePath=function(a,b,e,d){return"/"+WikispacesCommon.encodePath(a,b,e,d)};WikispacesCommon.single_page_regex=/^([:\/]?)([^:\/]+)$/;WikispacesCommon.full_link_regex=/^[:\/]?([^:\/]+)[:\/]([^:\/]+)[:\/]([^:\/]+)$/;WikispacesCommon.pageNameRegex=/[\[\]:|{}$\"#@+]/;WikispacesCommon.projectNameRegex=/[:\[\]\/]/;WikispacesCommon.teamNameRegex=/[:\[\]\/]/;
WikispacesCommon.parseLink=function(a,b,e){var d=a.match(WikispacesCommon.single_page_regex);if(d)return d[1]!="/"?WikispacesCommon.pathFor(b,e,d[2]):WikispacesCommon.relativePath(b,e,d[2]);else return(d=a.match(WikispacesCommon.full_link_regex))?WikispacesCommon.fullTeamPath(d[1],d[2],b,e,d[3]):false};WikispacesCommon.parseLinkText=function(a){if(WikispacesCommon.full_link_regex.test(a)){var b=a.match(WikispacesCommon.full_link_regex);if(b[1]==wikispaces_projectName&&b[2]==wikispaces_spaceName)return b[3]}return a};
var Cookie={set:function(a,b,e,d){var h="";if(e!=undefined){h=new Date;h.setTime(h.getTime()+864E5*parseFloat(e));h="; expires="+h.toGMTString()}if(d==undefined)d={path:"/"};return document.cookie=escape(a)+"="+escape(b||"")+(d.path?";path="+d.path:"")+(d.domain?";domain="+d.domain:"")+(d.secure?";secure":"")+h},get:function(a){return(a=document.cookie.match(new RegExp("(^|;)\\s*"+escape(a)+"=([^;\\s]*)")))?unescape(a[2]):null},erase:function(a){var b=Cookie.get(a)||true;Cookie.set(a,"",-1);return b},
accept:function(){if(typeof navigator.cookieEnabled=="boolean")return navigator.cookieEnabled;Cookie.set("_test","1");return Cookie.erase("_test")="1"},all:function(){return _(document.cookie.split(";")).reduce(function(a,b){kv=b.split("=");a[kv[0]]=kv[1];return a},{})}},jsDebugMode=false;if(document.cookie&&document.cookie.indexOf("debug_js=")!=-1)jsDebugMode=true;
function log(){if(jsDebugMode&&window.console)if(jQuery.browser.mozilla)window.console.log.apply(this,arguments);else for(var a=0;a<arguments.length;a++)window.console.log(arguments[a])}
WikispacesCommon.logFileUploadError=function(a,b){var e;e=a.file&&a.file.name?"Could not upload "+a.file.name+": ":"An error occured while uploading: ";if(a.code==plupload.FILE_SIZE_ERROR)e+="the file is larger than your maximum of "+b;else if(a.code==plupload.HTTP_ERROR){e+="an HTTP error occurred. (HTTP status: ";e+=a.status?a.status:"unknown";e+=")"}else e+=a.message;alert(e+" (code: "+-a.code+").")};
function highlightIncludeSection(a,b,e){jQuery(a).toggleClass("includeEditButton",!e).toggleClass("includeEditButtonActive",e);jQuery(".includeBody-"+b.replace(/%/g,"\\%")).toggleClass("includeBody",!e).toggleClass("includeBodyActive",e)}function embed_generic(a,b,e,d){document.writeln('<embed src="'+e+'" type="'+d+'" quality="high" width="'+a+'" height="'+b+'"></embed>')}WikispacesCommon.disableHideOverlappingEmbeds=false;
function hideOverlappingEmbeds(a){if(!WikispacesCommon.disableHideOverlappingEmbeds){a=jQuery(a);if(a.is(":visible")){var b=a.offset(),e=b.top,d=b.left,h=e+a.outerHeight(),j=d+a.outerWidth();jQuery("iframe:visible, object:visible, embed:visible, applet:visible").not(a.find("*")).each(function(){var l=jQuery(this);if(l.is(":visible")){var p=l.offset(),w=p.top,z=p.left,G=z+l.outerWidth(),K=w+l.outerHeight();l.find("iframe:visible, object:visible, embed:visible, applet:visible").each(function(){var A=
jQuery(this),s=A.offset(),C=s.top;s=s.left;var I=s+A.outerWidth();A=C+A.outerHeight();if(C<w)w=C;if(s<z)z=s;if(A>K)K=A;if(I>G)G=I});if(e<K&&h>w&&d<G&&j>z){p=l.css("display");if(p!="block")p="inline-block";p={display:p,position:l.css("position"),"float":l.css("float"),top:l.css("top"),right:l.css("right"),bottom:l.css("bottom"),left:l.css("left"),width:G-z-18,height:K-w-18,overflow:"hidden"};jQuery("<div></div>").css(p).addClass("WikiEmbedSubForPopup").insertBefore(l);l.addClass("WikiHideForPopup")}}})}else{jQuery(".WikiEmbedSubForPopup").remove();
jQuery(".WikiHideForPopup").removeClass("WikiHideForPopup")}}}var preventMenuClose=false;function showMenu(a){jQuery(".WikiMenu").not(jQuery(a).next()).removeClass("WikiMenuEnabled").addClass("WikiMenuDisabled");jQuery(a).removeClass("WikiMenuDisabled").addClass("WikiMenuEnabled");hideOverlappingEmbeds(jQuery(a).find("ul"));return false}
function hideMenu(a){if(!preventMenuClose&&jQuery(".WikiMenuEnabled").length){jQuery(a).addClass("WikiMenuDisabled").removeClass("WikiMenuEnabled");hideOverlappingEmbeds(jQuery(a).find("ul"))}}
function loadMenuHandlers(){jQuery(".WikiMenuControl").live("mouseover",function(a){var b=jQuery(this),e=b.nextAll(".WikiMenu:first");if(e.length==0)e=b.parent().nextAll(".WikiMenu:first");if(!b.data("init")){b.data("init",true);e.hover(function(){return preventMenuClose=true},function(){preventMenuClose=false;setTimeout(function(){hideMenu(e[0])},500);return true});b.hoverIntent({sensitivity:3,interval:200,over:function(){showMenu(e[0])},timeout:500,out:function(){hideMenu(e[0])}});b.click(function(){showMenu(e[0])});
e.find(".WikiMenuEntry").click(function(d){if(jQuery(d.target).children("a").length==1){d=jQuery(d.target).children("a:first");if(d.attr("href")&&d.attr("href")!="#"&&!d.hasClass("WikispacesDialogLink"))window.location=d.attr("href");else jQuery(d).trigger("click")}preventMenuClose=false;hideMenu(e[0])});b.trigger(a)}})}
WikispacesCommon.setInputDefaults=function(a,b,e){!a.val()&&b&&a.addClass(b);e||a.val(a.attr("title"));a.focus(function(){if(a.val()==a.attr("title")||e&&""==a.val()){a.val("");b&&a.removeClass(b)}});a.blur(function(){if(a.val()==""){b&&a.addClass(b);e||a.val(a.attr("title"))}})};WikispacesCommon.resolveName=function(a){if("string"===typeof a){var b=window,e=false;jQuery.each(a.split("."),function(d,h){b=b[h];if(!b)return e=false;e=true});if(e)return b}};
WikispacesCommon.resolveNameToBoundFunction=function(a){if("string"===typeof a){var b=null,e=window,d=false;jQuery.each(a.split("."),function(h,j){b=e;e=b[j];if(!e)return d=false;d=true});if(d&&"function"===typeof e)return function(){return e.call(b)}}};function trackFileLink(a){_gaq=_gaq||[];typeof wsSpaceGoogleAccount!="undefined"&&_gaq.push(["gaSpace._trackPageview",a]);typeof wsInstanceGoogleAcount!="undefined"&&_gaq.push(["gaInstance._trackPageview",a]);_gaq.push(["_trackPageview",a])}
function userLinkClick(a){function b(){WikispacesSession.reloadSession(function(){e.click()},500,function(){alert("Error: Could Not Display User Details")})}var e=jQuery(this);jQuery(".userMenu").remove();var d=jQuery("<div>");d.addClass("userMenu");jQuery("body").append(d);var h=e.attr("href").substring(e.attr("href").lastIndexOf("/")+1);jQuery.ajax({url:"/user/menu/"+h,type:"GET",dataType:"html",success:function(j){d.html(j);d.fadeIn("slow");d.css("position","absolute");d.css("left",Math.min(e.offset().left-
3,jQuery(window).width()-d.outerWidth()));d.css("top",e.offset().top-8)},error:b});a.stopPropagation();return false}
jQuery(document).ready(function(){WikispacesCommon.setInputDefaults(jQuery(".WikiSearchInput"),"WikiSearchDefault");jQuery("a.userLink:not(.userLinkNoMenu)").live("click",userLinkClick);loadMenuHandlers();jQuery("textarea.autogrow").autogrow();jQuery(".WikispacesDialogLink").live("click",function(a){if(!(!WikispacesCommon.isMac&&a.ctrlKey||WikispacesCommon.isMac&&a.originalEvent.metaKey||a.shiftKey)){var b=jQuery(this).data("dialogonclose");WikispacesCommon.frameDialog(this.href,WikispacesCommon.resolveNameToBoundFunction(b),
this.target);a.preventDefault();return false}});WikispacesAutocomplete.registerAutocompleters(jQuery("body"));jQuery("body").click(function(){jQuery(".userMenu").remove()});jQuery("btn").one("submit",function(){jQuery(this).click(function(){return false})});if(jQuery.browser.msie&&wikispaces_method!="diff")if(jQuery.browser.version==7)jQuery(".wiki a[name]").css("display","inline-block");else jQuery.browser.version==8&&jQuery(".wiki a[name]").html("&zwj;");jQuery("form").submit(function(){jQuery(this).find(".wsh, .jowic, .movkp, .mimw, .jovise").find('input[name="wikispaces_user_id"]').val("")});
jQuery(".WikispacesNoticeDismiss").click(function(){jQuery(this).closest(".WikispacesNotice").fadeOut()});setTimeout(function(){jQuery(".WikispacesNoticeHolder .WikispacesNoticeSuccess .WikispacesNoticeDismiss").click()},3E4);WikispacesCommon.setInputDefaults(jQuery("#newTag"),"WikiSearchDefault")});function ucfirst(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)}
jQuery.extend(jQuery.expr[":"],{inView:function(a){var b=document.documentElement.scrollTop||document.body.scrollTop,e=jQuery(a).offset().top,d=window.innerHeight&&window.innerHeight<jQuery(window).height()?window.innerHeight:jQuery(window).height();return e>b&&jQuery(a).height()+e<b+d}});
WikispacesCommon.compareGroupPermissionValues=function(a,b){if(a==b)return 0;if(a=="O")return 1;if(b=="O")return-1;if(a=="M")return 1;if(b=="M")return-1;if(a=="W")return 1;if(b=="W")return-1;if(a=="L")return 1;if(b=="L")return-1};
WikispacesCommon.addNotice=function(a,b){var e=jQuery("#WikispacesNoticeJs div."+b);if(e.length==0)e=jQuery("<div>").addClass("WikispacesNotice").addClass(b).append('<span class="WikispacesNoticeDismiss"><img src="/i/icon/16_close.png"/></span>').append("<ul>").appendTo("#WikispacesNoticeJs");e.find("ul").append(jQuery("<li>").html(a));jQuery(".WikispacesNoticeDismiss").click(function(){jQuery(this).closest(".WikispacesNotice").fadeOut()});jQuery("#WikispacesNoticeJs").show()};
WikispacesCommon.removeNotice=function(a){jQuery("#WikispacesNoticeJs").hide().empty();a&&jQuery(".WikispacesNotice").hide()};
WikispacesCommon.asyncForm=function(a,b){if(b==null)b="POST";if(!jQuery("#asyncForm").length){jQuery("<iframe>").attr({id:"asyncFrame",name:"asyncFrame",src:"javascript:false"}).css({width:0,height:0,border:0}).appendTo(document.body);if(document.frames!=null)document.frames.asyncFrame.name="asyncFrame";jQuery("<form>").attr({id:"asyncForm",target:"asyncFrame"}).css({display:"none"}).appendTo(document.body)}a=jQuery("#asyncForm").attr({action:a,method:b}).empty();jQuery("<input>").attr({name:"async",
value:1}).appendTo(a);return a};
WikispacesCommon.newObjectDialog=function(a){var b=this.tabFrameDialog("New",{"New Page":this.pathFor("space","page"),"New Template":this.pathFor("space","createtemplate"),"Upload Files":this.pathFor("file","upload")},750,350,a,function(){b.find("iframe").each(function(e,d){d.contentWindow.callFinally&&d.contentWindow.callFinally()})});jQuery("#tabs",b).addClass("ui-tabs-vertical ui-helper-clearfix");jQuery("#tabs li",b).removeClass("ui-corner-top").addClass("ui-corner-left");jQuery("iframe",b).each(function(){var e=
jQuery(this).attr("width")-jQuery(".ui-tabs-nav",b).width();jQuery(this).attr("width",e);jQuery(this).closest(".ui-tabs-panel").css("width",e)})};WikispacesCommon.sizeFrameToContent=function(a){if(a.get(0).contentWindow.document.body){var b=jQuery("body",a.get(0).contentWindow.document).width()+20;b>a.attr("width")&&a.attr("width",b);a.attr("height",jQuery("body",a.get(0).contentWindow.document).height()+40)}};
WikispacesCommon.recenterDialog=function(a){var b=Math.max((jQuery(window).height()-a.parent().height())/2.2,0)+jQuery(window).scrollTop();a.parent().css("top",b+"px")};WikispacesCommon.dialogStack=[];
WikispacesCommon.frameDialog=function(a,b){try{if(window.parent!=window&&parent.WikispacesCommon)return parent.WikispacesCommon.frameDialog(a,b)}catch(e){}WikispacesCommon.closeDialog();var d=new jQuery.ui.dialog.overlay,h=jQuery("<iframe>").attr({src:WikispacesCommon.addUriParams(a,[["f","dialog"]]),frameborder:"no",scrolling:"auto"}),j=jQuery("<div>").addClass("frameDialog").append(h).dialog({modal:true,draggable:false,resizable:false,autoOpen:false});WikispacesCommon.dialogStack.push(j);h.bind("load",
function(){var l=jQuery("#dialogContent",h.get(0).contentWindow.document);if(l.length==0)window.location=a;else if(l.contents().length!=0){var p=l.find(".WikispacesContent"),w=p.data("dialogwidth"),z=p.data("dialogheight");w&&h.attr("width",w-40);z&&h.attr("height",z);j.dialog("option",{width:parseInt(h.attr("width"))+40,title:p.find(".pageTitle").html()});j.dialog("option",{width:parseInt(h.attr("width"))+40});if(d){d.destroy();d=null}WikispacesCommon.sizeFrameToContent(h);j.dialog("open");p=h.get(0).contentWindow;
p.jQuery("body",p.document).bind("resize.dialog",function(){if(h.is(":visible")){WikispacesCommon.sizeFrameToContent(h);hideOverlappingEmbeds(j)}});WikispacesCommon.sizeFrameToContent(h);WikispacesCommon.recenterDialog(j);hideOverlappingEmbeds(j);l.find("ul, ol").find("input:text:visible, textarea:visible").first().focus()}});j.bind("dialogclose",function(){hideOverlappingEmbeds(j);WikispacesCommon.dialogStack.pop();b&&b()});return j};
WikispacesCommon.tabFrameDialog=function(a,b,e,d,h,j){h=h?h:0;var l=new jQuery.ui.dialog.overlay,p=jQuery("<div>").addClass("frameDialog").css({padding:0,overflow:"hidden","margin-right":"3px"}).dialog({modal:true,resizable:false,draggable:false,title:a,width:e,autoOpen:false});WikispacesCommon.dialogStack.push(p);var w=jQuery("<div id='tabs'><ul></ul></div>").appendTo(p),z=-1;_(b).each(function(G,K){w.find("ul").append(jQuery('<li><a href="#tabs-'+ ++z+'">'+K+"</a></li>"));var A=jQuery("<iframe>").attr({src:WikispacesCommon.addUriParams(G,
[["f","dialog"]]),frameborder:"no",scrolling:"auto",width:e-40,height:d});jQuery("<div>").attr("id","tabs-"+z).appendTo(w).append(A);z==h&&A.load(function(){$dialogContent=jQuery("#dialogContent",A.get(0).contentWindow.document);if($dialogContent.length==0)window.location=G;else{if(l){l.destroy();l=null}WikispacesCommon.sizeFrameToContent(A);p.dialog("open");WikispacesCommon.sizeFrameToContent(A);WikispacesCommon.recenterDialog(p)}});A.load(function(){var s=A.get(0).contentWindow;s.jQuery("body",
s.document).bind("resize.dialog",function(){if(A.is(":visible")){WikispacesCommon.sizeFrameToContent(A);hideOverlappingEmbeds(p)}});if(A.is(":visible")){WikispacesCommon.sizeFrameToContent(A);hideOverlappingEmbeds(p);$dialogContent.find("ul, ol").find("input:text:visible, textarea:visible").first().focus()}})});w.tabs({show:function(G,K){WikispacesCommon.sizeFrameToContent(jQuery("iframe",K.panel))},selected:h});p.bind("dialogclose",function(){hideOverlappingEmbeds(p);WikispacesCommon.dialogStack.pop();
j&&j()});return p};WikispacesCommon.closeDialog=function(a){a||(a={});($dialog=_(WikispacesCommon.dialogStack).last())&&$dialog.dialog("close");if(a.reload){new jQuery.ui.dialog.overlay;window.location.reload()}else if(a.redirect){new jQuery.ui.dialog.overlay;window.location.href=a.redirect}else if(a.notices){if($dialog){$dialog.dialog("destroy");$dialog.remove()}this.removeNotice();_(a.notices).each(function(b,e){_(b).each(function(d){WikispacesCommon.addNotice(d,"WikispacesNotice"+ucfirst(e))})})}};
WikispacesCommon.isIOsDevice=function(){return _(["iphone","ipod","ipad"]).any(function(a){return navigator.userAgent.match(new RegExp(a,"i"))})};WikispacesCommon.isMac=navigator.userAgent.indexOf("Mac")!=-1;WikispacesCommon.getURLParameter=function(a){return decodeURI((RegExp(a+"=(.+?)(&|$)").exec(location.search)||[,null])[1])};WikispacesCommon.validatePageName=function(a){var b=a.match(/[\/\[\]\{\}\:\|\$\+\#\@\"]/);if(b&&b.length>0||a.length>255||a.length==0)return false;return true};
var CANVAS_Z_INDEX,COLUMN_Z_INDEX,COMMENT_COLUMN_WIDTH,COMMENT_HIDE_LINK_HEIGHT,COMMENT_MARGIN,COMMENT_OPEN_PADDING,Comment,CommentReply,DivCanvas,EDITOR_HEIGHT,EXPANDED_COOKIE_NAME,ElemFinder,IMAGE_HIGHLIGHT_MARGIN,MENU_Z_INDEX,MINIMUM_MIDDLE_EXTENT_HEIGHT,MINIMUM_MULTILINE_STARTING_EXTENT_WIDTH,POSITION_SEARCH_INCREMENT,SELECTED_COMMENT_Z_INDEX,Space,UNSELECTED_COMMENT_Z_INDEX,commentManager,commentUser,contentTemplate,outerHtml,replyTemplate,__bind=function(a,b){return function(){return a.apply(b,
arguments)}},__hasProp=Object.prototype.hasOwnProperty,__extends=function(a,b){function e(){this.constructor=a}for(var d in b)if(__hasProp.call(b,d))a[d]=b[d];e.prototype=b.prototype;a.prototype=new e;a.__super__=b.prototype;return a};COMMENT_COLUMN_WIDTH=250;COMMENT_HIDE_LINK_HEIGHT=18;COMMENT_OPEN_PADDING=8;POSITION_SEARCH_INCREMENT=10;COMMENT_MARGIN=8;EDITOR_HEIGHT=60;IMAGE_HIGHLIGHT_MARGIN=4;MINIMUM_MULTILINE_STARTING_EXTENT_WIDTH=5;MINIMUM_MIDDLE_EXTENT_HEIGHT=10;UNSELECTED_COMMENT_Z_INDEX=0;
SELECTED_COMMENT_Z_INDEX=1;CANVAS_Z_INDEX=10;COLUMN_Z_INDEX=11;MENU_Z_INDEX=12;EXPANDED_COOKIE_NAME="exp_com_col";outerHtml=function(a){return jQuery(a).clone().wrap("<div></div>").parent().html()};
window.WikispacesCommentManager=commentManager={comments:[],spaces:[],readOnly:true,hidden:false,collapsed:true,clear:function(){var a,b,e,d,h;this.comments=[];d=this.spaces;h=[];b=0;for(e=d.length;b<e;b++){a=d[b];h.push(this.removeSpace(a))}return h},retrieveData:function(a){var b,e;b=WikispacesCommon.asyncForm(WikispacesCommon.pathFor("page","listcommentsjson",wikispaces_page),"GET");e=jQuery("#asyncFrame");e.one("load",__bind(function(){this.load(e.get(0).contentWindow.commentData);if(a!=null)return a()},
this));return b.submit()},load:function(a){this.comments=_(a).map(__bind(function(b){return new Comment(b)},this));return this.redrawAll()},addSpace:function(a){this.spaces.push(a);this.rediscover(true);return a.draw()},removeSpace:function(a){a.remove();return this.spaces=_(this.spaces).without(a)},preemptSpaces:function(){var a;a=this.spaces;this.spaces=[];this.undiscover();return a},restoreSpaces:function(a){return this.spaces=a},rediscover:function(a){var b,e,d;if(!((this.collapsed||this.hidden)&&
!a)){d=this.comments;b=0;for(e=d.length;b<e;b++){a=d[b];a.discover(this.spaces)}return this.hidden=this.commentCount()===0}},undiscover:function(){var a,b,e,d,h;d=this.discoveredComments();h=[];b=0;for(e=d.length;b<e;b++){a=d[b];h.push(a.undiscover())}return h},discoveredComments:function(){return _(this.comments).select(function(a){return a.isDiscovered()})},commentCount:function(){return this.discoveredComments().length},commentsInSpace:function(a){return _(this.comments).select(function(b){return b.space===
a})},flatComments:function(){var a;a=[];_(this.discoveredComments()).each(function(b){a.push(b);if(b.replies.length>0)return a.push(b.replies)});return _(a).flatten()},commentById:function(a){return _(this.comments).find(function(b){return b.commentId===a})},addComment:function(a){this.comments.push(a);return this.redrawAll(true)},removeComment:function(a){a.remove();this.comments=_(this.comments).without(a);return this.drawAll()},showAll:function(){this.rediscover(true);this.drawAll();return this.forceWidth()},
hideAll:function(){this.undiscover();this.hidden=true;return this.drawAll()},expand:function(){this.collapsed=false;this.redrawAll(true);_.delay(__bind(function(){return this.forceWidth()},this),10);return Cookie.set(EXPANDED_COOKIE_NAME,1)},collapse:function(){var a;this.collapsed=true;if((typeof tinymce!=="undefined"&&tinymce!==null?(a=tinymce.activeEditor)!=null?a.id.substring(0,7):void 0:void 0)==="comment")tinymce.mainEditor.focus();this.drawAll();_.delay(__bind(function(){return this.forceWidth()},
this),10);return Cookie.set(EXPANDED_COOKIE_NAME,-1)},forceWidth:function(){var a,b,e,d,h;if(jQuery.browser.webkit){d=this.spaces;h=[];b=0;for(e=d.length;b<e;b++){a=d[b];h.push(a.forceWidth())}return h}},drawAll:function(){var a,b,e,d,h;d=this.spaces;h=[];b=0;for(e=d.length;b<e;b++){a=d[b];h.push(a.draw())}return h},redrawAll:function(a){this.rediscover(a);return this.drawAll()},reflowAll:function(){var a,b,e,d,h;d=this.spaces;h=[];b=0;for(e=d.length;b<e;b++){a=d[b];h.push(a.reflow())}return h},deselectAll:function(){var a,
b,e,d,h;d=this.discoveredComments();h=[];b=0;for(e=d.length;b<e;b++){a=d[b];h.push(a.deselect())}return h},markCommentsSaved:function(){var a,b,e,d;d=this.flatComments();b=0;for(e=d.length;b<e;b++){a=d[b];a.markSaved()}return this.reflowAll()},generateCommentId:function(){for(var a;;){a=Math.floor(Math.random()*1E6);if(!_(this.comments).any(function(b){return b.id===a}))return a}return[]}};
window.WikispacesCommentSpace=Space=function(){function a(b,e,d,h,j){this.contents=jQuery(b);this.contents.click(__bind(function(l){var p;return(p=this.eventComment(l))?p.select():commentManager.deselectAll()},this));this.contents.dblclick(__bind(function(l){var p;return(p=this.eventComment(l))!=null?p.scrollTo():void 0},this));this.contentContainer=jQuery(e);this.canvasContainer=jQuery(d);this.drawBehind=jQuery(h||e);this.editor=j;this.contents.css({"z-index":CANVAS_Z_INDEX,position:"relative","overflow-x":"hidden"});
this.column=jQuery("<div>").addClass("commentColumn").css({"z-index":COLUMN_Z_INDEX,width:0}).appendTo(this.contentContainer).hide();this.column.click(function(){return commentManager.deselectAll()});this.canvas=new DivCanvas(this.drawBehind,this.canvasContainer,"a.range",this.contents);commentManager.addSpace(this);if(this.editor!=null&&this.editor===(typeof tinymce!=="undefined"&&tinymce!==null?tinymce.mainEditor:void 0))jQuery("<a>").addClass("commentsHide").text("Hide comments").appendTo(this.column).click(function(){return commentManager.collapse()})}
a.prototype.remove=function(){this.column.remove();this.canvas.destroy();return this.contentContainer.css({width:"auto",minHeight:0})};a.prototype.comments=function(){return commentManager.commentsInSpace(this)};a.prototype.eventComment=function(b){var e,d;e=b.pageX-this.contents.offset().left;d=b.pageY-this.contents.offset().top;if(jQuery.browser.msie&&this.contentContainer.find("iframe").length){e-=jQuery(window).scrollLeft();d-=jQuery(window).scrollTop()}return _(this.comments()).find(function(h){return h.isPointInExtent(e,
d)})};a.prototype.sortedComments=function(){var b;b=this.comments();return _(jQuery("a.range[name^=comment-]",this.contents)).chain().map(function(e){return _(b).find(function(d){return d.opener[0]===e})}).compact().value()};a.prototype.hasComments=function(){return this.comments().length>0};a.prototype.redraw=function(){commentManager.rediscover();return this.draw()};a.prototype.reflow=function(){return this.draw()};a.prototype.forceWidth=function(){this.contentContainer.css("width","0");return _.defer(__bind(function(){this.contentContainer.css("width",
"auto");return this.draw()},this))};a.prototype.draw=function(){var b,e,d,h,j,l,p;if(this.contents.is(":visible"))if(commentManager.hidden){this.column.hide();this.canvas.hide();return this.contentContainer.css({paddingRight:0,minHeight:0})}else if(commentManager.collapsed){this.column.show();this.column.find(".commentView").hide();this.column.find(".commentsHide").hide();this.column.css("min-height",0);commentManager.readOnly&&this.column.removeClass("expanded");this.column.css("width",0);this.contentContainer.css({paddingRight:0,
minHeight:0});return this.canvas.hide()}else{this.column.show();commentManager.readOnly&&this.column.addClass("expanded");this.column.find(".commentView").show();this.column.find(".commentsHide").show();this.column.css("width",COMMENT_COLUMN_WIDTH);this.contentContainer.css({paddingRight:this.column.width()+COMMENT_OPEN_PADDING});this.canvas.show();this.canvas.reset();this.reservedPositions=[];e=[];l=this.sortedComments();d=0;for(j=l.length;d<j;d++){b=l[d];if(b.isDiscovered()){h=b.height();e.push({comment:b,
y:this.findPosition(b.preferredY(),h)})}else b.hide()}j=this.contentContainer.height();e=_(e).sortBy(function(w){return w.y});l=b=0;for(p=e.length;l<p;l++){d=e[l];d.comment.draw(d.y,this.canvas,b%2===1);j=Math.max(j,d.y+h);b+=1}this.column.css("min-height",j);return this.contentContainer.css("min-height",j)}};a.prototype.findPosition=function(b,e){var d,h,j;h=this.column.find(".commentsHide").length?COMMENT_HIDE_LINK_HEIGHT:0;j=Math.max(b,h);b=Math.max(b+POSITION_SEARCH_INCREMENT,h);for(d=null;!d;){if(j>=
h&&this.isPositionClear(j,e))d=j;else if(this.isPositionClear(b,e))d=b;j-=POSITION_SEARCH_INCREMENT;b+=POSITION_SEARCH_INCREMENT}this.reservedPositions.push([d-COMMENT_MARGIN,d+e+COMMENT_MARGIN]);return d};a.prototype.isPositionClear=function(b,e){return _(this.reservedPositions).all(__bind(function(d){return!this.isBetween(b,d[0],d[1])&&!this.isBetween(b+e,d[0],d[1])&&!this.isBetween(d[0],b,b+e)},this))};a.prototype.isBetween=function(b,e,d){return e<b&&b<d};return a}();
window.WikispacesComment=Comment=function(){function a(b,e){var d,h;if(!b||_(b).isString()){this.commentId=e||commentManager.generateCommentId();this.messageId=null;this.monitored=this.locked=false;this.user=wikispaces_username;this.created="new";this.createdTimestamp=(new Date).getTime();this.ipCreated=null;this.bodyHtml=b||"Type your comment here"}else{this.commentId=b.id;this.messageId=b.messageId;this.locked=b.locked;this.monitored=b.monitored;this.user=b.user;this.created=b.created;this.createdTimestamp=
b.createdTimestamp;this.ipCreated=b.ipCreated;this.bodyHtml=b.bodyHtml}this.div=jQuery(contentTemplate(this)).css("visibility","hidden");this.div.find(".userLink").click(userLinkClick);this.locked||this.div.find(".commentLocked").hide();this.monitored||this.div.find(".commentMonitored").hide();this.space=null;this.composing=false;this.replies=[];if(this.messageId==null||!window.wikispaces_isUserLoggedIn){this.div.find(".commentMenuControl").hide();this.div.find(".commentDelete").hide()}else if(!window.wikispaces_isUserOrganizer){this.div.find(".commentLockCommand").hide();
this.div.find(".commentDelete").hide()}if(!wikispaces_can_discuss||this.locked&&!window.wikispaces_isUserOrganizer||!this.messageId)this.div.find(".commentReply").hide();if(this.messageId!=null&&b.replies!=null){h=b.replies;e=0;for(d=h.length;e<d;e++){b=h[e];this.addReply(new CommentReply(b))}}}a.prototype.insertInto=function(b){var e,d,h,j,l;this.space=b;this.div.appendTo(b.column);e=this.div.find("img").not(function(){return this.complete}).load(__bind(function(){if(--e===0)return this.space.reflow()},
this)).length;commentManager.readOnly?this.div.find(".commentFooter").hide():this.div.find(".commentFooter").show();if(!commentManager.readOnly){this.composing&&this.compose(true);l=this.replies;b=0;for(j=l.length;b<j;b++){h=l[b];h.composing&&h.compose(true)}}this.div.click(__bind(function(p){this.isSelected()||this.select();return p.stopPropagation()},this));this.div.dblclick(__bind(function(p){this.extent&&jQuery.scrollTo(this.extent,{offset:-70});return p.stopPropagation()},this));this.div.find("a.commentReplyCommand").click(__bind(function(){this.div.find("a.commentReplyCommand").hide();
h=new CommentReply;this.addReply(h);h.compose();this.div.find(".commentDelete").addClass("commentHiddenCommand");return false},this));this.div.find("a.commentCancelCompose").click(__bind(function(){this.composing?this.cancel():_(this.replies).last().cancel();return false},this));d=this.div.find(".commentMenu").css("z-index",MENU_Z_INDEX);this.div.find(".commentMenuControl").click(__bind(function(){var p;d.toggle();if(d.is(":visible")){p=true;return d.hover(function(){return p=true},function(){p=false;
return setTimeout(function(){if(!p)return d.hide()},500)})}},this));this.div.find(".commentMonitorCommand").click(__bind(function(){d.hide();return this.toggleMonitor()},this));this.div.find(".commentLockCommand").click(__bind(function(){d.hide();return this.toggleLock()},this));return this.div.find(".commentDelete").click(__bind(function(){return this["delete"]()},this))};a.prototype.toggleMonitor=function(){var b;b=WikispacesCommon.asyncForm(WikispacesCommon.pathFor("message","view",wikispaces_page,
this.messageId));jQuery("<input>").attr({name:this.monitored?"unmonitor":"monitor",value:"true"}).appendTo(b);b.submit();this.monitored=!this.monitored;this.div.find(".commentMonitored").toggle();this.div.find(".commentMonitorCommand a").text(""+(this.monitored?"Unmonitor":"Monitor")+" Comment");return this.space.reflow()};a.prototype.toggleLock=function(){var b;b=WikispacesCommon.asyncForm(WikispacesCommon.pathFor("message","view",wikispaces_page,this.messageId));jQuery("<input>").attr({name:this.locked?
"unlock":"lock",value:"true"}).appendTo(b);b.submit();this.locked=!this.locked;this.div.find(".commentLocked").toggle();this.div.find(".commentLockCommand a").text(""+(this.locked?"Unlock":"Lock")+" Comment");return this.space.reflow()};a.prototype["delete"]=function(){var b;if(((b=this.space)!=null?b.editor:void 0)!=null){this.space.editor.undoManager.begin();if((b=this.opener)!=null)b.remove();if((b=this.closer)!=null)b.remove();this.space.editor.undoManager.end();return this.undiscover()}else{b=
WikispacesCommon.asyncForm(WikispacesCommon.pathFor("message","delete",wikispaces_page,this.messageId));jQuery("<input>").attr({name:"all",value:"true"}).appendTo(b);b.submit();return this.remove()}};a.prototype.remove=function(){var b;this.undiscover();if((b=this.opener)!=null)b.remove();if((b=this.closer)!=null)b.remove();this.composing=false;return commentManager.redrawAll()};a.prototype.cancel=function(){var b;if(!((b=this.editor)!=null?b.isDirty():void 0)||confirm("Do you really want to discard this comment?"))return commentManager.removeComment(this)};
a.prototype.discover=function(b){var e,d,h,j;this.opener=this.closer=null;d=0;for(h=b.length;d<h;d++){e=b[d];this.opener=jQuery(e.contents).find(this.openSelector());this.closer=jQuery(e.contents).find(this.closeSelector());if(this.opener.length===0&&this.closer.length===0)this.space===e&&this.undiscover();else{if(!this.isDiscovered()&&((j=e.editor)!=null?j.selection.isCollapsed():void 0))if(this.opener.length===0){e.editor.selection.setContent(this.openerHtml());this.opener=jQuery(e.contents).find(this.openSelector())}else if(this.closer.length===
0){e.editor.selection.setContent(this.closerHtml());this.closer=jQuery(e.contents).find(this.closeSelector())}if((b=jQuery("a[name="+this.opener.attr("name")+"], a[name="+this.closer.attr("name")+"]",e.contents)[0]===this.closer[0])||this.hasNullExtent()){this.undiscover();this.opener.remove();this.closer.remove()}else{this.opener.slice(1).remove();this.closer.slice(1).remove()}e!==this.space&&this.insertInto(e);return true}}};a.prototype.undiscover=function(){var b,e,d,h;this.stopComposing();h=this.replies;
e=0;for(d=h.length;e<d;e++){b=h[e];b.stopComposing()}this.deselect();if((b=this.extent)!=null)b.remove();this.div.remove();return this.space=null};a.prototype.isDiscovered=function(){var b,e;return((b=this.opener)!=null?b.length:void 0)>0&&((e=this.closer)!=null?e.length:void 0)>0};a.prototype.isContentBetween=function(b,e){for(b=b!=null?b.nextSibling:void 0;b&&b!==e;){if(b.nodeType!==3||b.nodeValue)return true;b=b.nextSibling}return false};a.prototype.hasNullExtent=function(){return!this.isContentBetween(this.opener[0],
this.closer[0])};a.prototype.addReply=function(b){this.replies.push(b);b.setParent(this);return b.insert(this.div.find(".commentReplies"))};a.prototype.removeReply=function(b){b.remove();this.replies=_(this.replies).without(b);this.div.find("a.commentReplyCommand").show();this.div.find(".commentCancelCompose").hide();return commentManager.reflowAll()};a.prototype.scrollTo=function(){return jQuery.scrollTo(this.div,{offset:-70})};a.prototype.body=function(){return this.composing&&this.editor!=null?
this.editor.getContent({no_events:true}):this.bodyHtml};a.prototype.openAnchorName=function(){return"comment-"+this.commentId+"-open"};a.prototype.closeAnchorName=function(){return"comment-"+this.commentId+"-close"};a.prototype.openSelector=function(){return"a.range[name="+this.openAnchorName()+"]"};a.prototype.closeSelector=function(){return"a.range[name="+this.closeAnchorName()+"]"};a.prototype.generateOpener=function(b){return jQuery("<a>",b).addClass("range").attr("name",this.openAnchorName()).get(0)};
a.prototype.generateCloser=function(b){return jQuery("<a>",b).addClass("range").attr("name",this.closeAnchorName()).get(0)};a.prototype.openerHtml=function(){return outerHtml(this.generateOpener())};a.prototype.closerHtml=function(){return outerHtml(this.generateCloser())};a.prototype.preferredY=function(){this.opener.get(0).offsetParent!=null&&this.closer.get(0).offsetParent!=null||commentManager.rediscover();return ElemFinder.top(this.opener)};a.prototype.height=function(){this.div.parent().size()||
this.div.appendTo("body");return this.div.height()};a.prototype.draw=function(b,e,d){this.opener.get(0).offsetParent!=null&&this.closer.get(0).offsetParent!=null||commentManager.rediscover();this.div.css({visibility:"visible",top:Math.floor(b)}).show().removeClass("commentZebra").addClass(d?"commentZebra":"");if((b=this.extent)!=null)b.remove();this.extent=e.makeExtent(this.opener.get(0),this.closer.get(0));this.div.hasClass("selected")&&this.extent.addClass("selected");if(d)return this.extent.addClass("commentZebra")};
a.prototype.hide=function(){this.deselect();this.div.hide();return this.extent.hide()};a.prototype.compose=function(b){var e,d,h;if(this.isDiscovered()){this.composing=true;this.div.find(".commentBody").hide();this.div.find(".commentEditor").show();this.div.find(".commentReplyCommand").hide();this.div.closest(".commentTopView").find(".commentCancelCompose").show();e="comment-editor-"+this.commentId;this.div.find("textarea").attr("id",e).show();commentManager.expand();d={height:EDITOR_HEIGHT,theme:"-subeditor"};
h=_(tinymce.mainEditor.plugins.wssubeditor.plugins.split(",")).without("-wscommentspace","-autoresize").join();tinymce.mainEditor.plugins.wssubeditor.create(e,d,h);return _.defer(__bind(function(){var j;this.editor=tinymce.editors[e];this.editor.onClick.add(__bind(function(){return this.select()},this));jQuery(this.editor.getDoc().body).css("background-color","white");this.editor.setContent(this.bodyHtml);this.editor.focus();if(!b)if((j=this.editor.wsselection)!=null)j.selectAll();this.editor.setClean();
this.select();return commentManager.reflowAll()},this))}};a.prototype.stopComposing=function(){var b;this.bodyHtml=this.body();if((b=this.editor)!=null)b.remove();this.editor=null;this.div.find(".commentEditor").hide();return this.div.find(".commentBody").first().html(this.bodyHtml).show()};a.prototype.unsaved=function(){return this.composing};a.prototype.markSaved=function(){if(this.unsaved()){this.stopComposing();this.composing=false;this.div.find(".commentCreated").text("saved");return this.div.closest(".commentTopView").find(".commentCancelCompose").hide()}};
a.prototype.select=function(){var b;commentManager.deselectAll();this.div.addClass("selected");if((b=this.extent)!=null)b.addClass("selected").css("z-index",SELECTED_COMMENT_Z_INDEX);return this};a.prototype.deselect=function(){var b;this.div.removeClass("selected");if((b=this.extent)!=null)b.removeClass("selected").css("z-index",UNSELECTED_COMMENT_Z_INDEX);return this};a.prototype.isSelected=function(){return this.div.hasClass("selected")};a.prototype.isPointInExtent=function(b,e){if(this.extent==
null)return false;return _(this.extent).any(__bind(function(d){var h,j,l;h=jQuery(d).position().left;j=h+jQuery(d).width();l=jQuery(d).position().top;d=l+jQuery(d).height();return h<=b&&b<=j&&l<=e&&e<=d},this))};return a}();
window.WikispacesCommentReply=CommentReply=function(){function a(b){if(!b||_(b).isString()){this.messageId=null;this.user=wikispaces_username;this.created="new";this.createdTimestamp=(new Date).getTime();this.ipCreated=null;this.bodyHtml=b||"Type your reply here"}else{this.messageId=b.messageId;this.user=b.user;this.created=b.created;this.createdTimestamp=b.createdTimestamp;this.ipCreated=b.ipCreated;this.bodyHtml=b.bodyHtml}this.replies=[];this.div=jQuery(replyTemplate(this));this.div.find(".commentReply").hide()}
__extends(a,Comment);a.prototype.setParent=function(b){this.parent=b;return this.commentId=this.parent.commentId};a.prototype.insert=function(b){return this.div.appendTo(b)};a.prototype.cancel=function(){if(!this.editor.isDirty()||confirm("Do you really want to discard this reply?")){this.div.closest(".commentTopView").find(".commentDelete").removeClass("commentHiddenCommand");return this.parent.removeReply(this)}};a.prototype.select=function(){return this.parent.select()};a.prototype["delete"]=function(){var b;
b=WikispacesCommon.asyncForm(WikispacesCommon.pathFor("message","delete",wikispaces_page,this.messageId));if(confirm("Are you sure you want to delete this reply?")){b.submit();return this.parent.removeReply(this)}};a.prototype.isDiscovered=function(){return true};return a}();
DivCanvas=function(){function a(b,e,d,h){this.targetDiv=b;this.locatorPattern=d;this.locatorSource=h;jQuery(this.targetDiv).css({position:"relative",zIndex:CANVAS_Z_INDEX});jQuery(e).css({position:"relative",zIndex:CANVAS_Z_INDEX});d=parseInt(this.targetDiv.css("padding-top"))+parseInt(e.css("padding-top"));b=parseInt(this.targetDiv.css("padding-left"))+parseInt(e.css("padding-left"));this.canvasDiv=jQuery("<div>").addClass("div-canvas").css({position:"absolute",top:d,left:b}).prependTo(e);this.reset()}
a.prototype.show=function(){return this.canvasDiv.show()};a.prototype.hide=function(){return this.canvasDiv.hide()};a.prototype.destroy=function(){return this.canvasDiv.remove()};a.prototype.reset=function(){this.canvasDiv.empty();this.canvasDiv.css({width:this.targetDiv.width(),height:this.targetDiv.height()});return ElemFinder.prepare(this.locatorPattern,this.locatorSource)};a.prototype.makeExtentDiv=function(b,e,d,h){return jQuery("<div>").addClass("commentExtent").css({top:b,left:e,width:d,height:h})[0]};
a.prototype.makeImageFrame=function(b){b=jQuery(b);return this.makeExtentDiv(b.position().top,b.position().left,b.outerWidth()+IMAGE_HIGHLIGHT_MARGIN,b.outerHeight()+IMAGE_HIGHLIGHT_MARGIN)};a.prototype.elemsBetween=function(b,e){var d;d=[];for(b=b.nextSibling;b!==e;){if(!b)return[];b.nodeType===1&&d.push(b);b=b.nextSibling}return d};a.prototype.makeExtent=function(b,e){var d,h,j,l,p,w,z,G;d=[];jQuery(this.elemsBetween(b,e)).filter("img").each(__bind(function(K,A){return d.push(this.makeImageFrame(A))},
this));p=ElemFinder.top(b);j=ElemFinder.left(b);h=ElemFinder.height(b);G=ElemFinder.top(e);z=ElemFinder.left(e);w=ElemFinder.height(e);l=jQuery(b).closest("table.wiki_table td");e=jQuery(e).closest("table.wiki_table td");if(l.length&&l.get(0)===e.get(0)){e=l.position().left;l=e+l.innerWidth()}else{e=0;l=this.canvasDiv.width()}if(Math.abs(p-G)<10){b=z-j;d.push(this.makeExtentDiv(p,j,b,h))}else if(this.isRtl(b)){j-e>=MINIMUM_MULTILINE_STARTING_EXTENT_WIDTH&&d.push(this.makeExtentDiv(p,e,j-e,h));G-p-
h>=MINIMUM_MIDDLE_EXTENT_HEIGHT&&d.push(this.makeExtentDiv(p+h,e,l-e,G-p-h));d.push(this.makeExtentDiv(G,z,l-z,w))}else{l-j>=MINIMUM_MULTILINE_STARTING_EXTENT_WIDTH&&d.push(this.makeExtentDiv(p,j,l-j,h));G-p-h>=MINIMUM_MIDDLE_EXTENT_HEIGHT&&d.push(this.makeExtentDiv(p+h,e,l-e,G-p-h));d.push(this.makeExtentDiv(G,e,z-e,w))}return jQuery(d).appendTo(this.canvasDiv)};a.prototype.isRtl=function(b){return jQuery(b).css("direction")==="rtl"||jQuery(b).parents("*[dir]").attr("dir")==="rtl"};return a}();
ElemFinder={top:function(a){var b;if(jQuery.browser.mozilla)return jQuery(a).position().top-this.height(a)+4;else if(jQuery.browser.webkit){jQuery(a).html("&zwj;");b=jQuery(a).position().top-2;jQuery(a).html("");return b}else return jQuery(a).position().top},height:function(a){var b;if(jQuery.browser.msie)return jQuery(a).get(0).offsetHeight;else{b=parseInt(jQuery(a).css("lineHeight").match(/^\d+/));return _.isNaN(b)?jQuery(a).get(0).offsetHeight:b}},left:function(a){var b;a=jQuery(a)[0];if(jQuery.browser.webkit){jQuery(a).html("&zwj;");
b=jQuery(a).position().left;jQuery(a).html("");return b}else if(jQuery.browser.msie&&jQuery((b=a.ownerDocument)!=null?b.body:void 0).attr("contentEditable")==="true"){jQuery(a).html(" ");b=jQuery(a).position().left;jQuery(a).html("");return b}else return jQuery(a).position().left},prepare:function(a,b){if(jQuery.browser.msie)return jQuery(a,b).html("&zwj;");else if(jQuery.browser.webkit){jQuery("span.wkzw",b).remove();return jQuery("<span>").addClass("wkzw").html("&zwj;").insertBefore(jQuery(a,b))}}};
jQuery(window).load(function(){var a,b,e,d;if(jQuery("#content_view a.range[name^=comment-]:first").size()>0){commentManager.readOnly=true;if(a=window.location.hash.match(/#comment-(\d+)-open/))d=a[1];b=false;e=function(){return commentManager.retrieveData(function(){var h;new WikispacesCommentSpace("#content_view",".commentContainer",".commentContainer");_.defer(function(){return commentManager.expand()});if((h=commentManager.commentById(d))!=null)h.select().scrollTo();return b=true})};a=jQuery(".MenuBar .CommentButton").not(".disabled");
if(Cookie.get(EXPANDED_COOKIE_NAME)>0||WikispacesCommon.getURLParameter("showComments")>0||d){a.addClass("Current");e()}return a.click(function(h){if(jQuery(this).hasClass("Current")){commentManager.collapse();jQuery(this).removeClass("Current")}else{b?commentManager.expand():e();jQuery(this).addClass("Current")}return h.preventDefault()})}});jQuery(window).resize(function(){return commentManager.redrawAll()});commentUser='<span class="commentUser">\n  <% if (user) { %>\n  <a class="userLink userLinkPicture" href="/user/view/<%= user %>"><img class="userPicture" src="/user/pic/<%= createdTimestamp %>/<%= user %>-sm.jpg" width="16" height="16"></a><a class="userLink" href="/user/view/<%= user %>"><%= user %></a>\n  <% } else if (ipCreated) { %>\n  <a class="userLinkGuest" href="/user/view/<%= ipCreated %>"><img class="userPicture" src="/i/user_none_sm.jpg" width="16" height="16"> </a><a class="userLinkGuest" href="/user/view/<%= ipCreated %>">guest (<%= ipCreated %>)</a>\n  <% } else { %>\n  <img class="userPicture" src="/i/user_none_sm.jpg" width="16" height="16"> (guest)</a>\n  <% } %>\n</span>\n';
contentTemplate=_.template('<div class="commentView commentTopView">\n  <div class="commentHeader">\n    <div class="commentHeaderContent">\n      <span class="commentIndicator commentMonitored" title="You are monitoring this comment"></span>\n      <span class="commentIndicator commentLocked" title="This comment is locked"></span>\n      '+commentUser+'\n      <span class="commentCreated"><%= created %></span>\n    </div>\n  </div>\n  <div class="commentBody"><%= bodyHtml %></div>\n  <div class="commentReplies"></div>\n  <div class="commentEditor" style="display:none">\n    <form action="#">\n      <textarea autocomplete="off"></textarea>\n      <input type="hidden" title="mode" value="visual"/>\n    </form>\n  </div>\n  <div class="commentFooter">\n    <div class="commentFooterContent">\n      <a href="#" class="commentReplyCommand"><span>Reply</span></a>\n      <a href="#" class="commentCancelCompose" style="display:none">Cancel</a>\n      <span class="WikiMenuControl commentMenuControl" title="Control comment options"></span>\n      <span class="commentDelete" title="Delete this comment"></span>\n    </div>\n    <div class="commentMenu" style="display:none">\n      <ul>\n        <li class="commentMonitorCommand"><a href="#"><%= monitored ? "Unmonitor" : "Monitor" %> Comment</a></li>\n        <li class="commentLockCommand"><a href="#"><%= locked ? "Unlock" : "Lock" %> Comment</a></li>\n      </ul>\n    </div>\n  </div>\n</div>');
replyTemplate=_.template('<div class="commentView commentReplyView">\n  <div class="commentHeader">\n    <div class="commentHeaderContent">\n      '+commentUser+'\n      <span class="commentCreated"><%= created %></span>\n    </div>\n  </div>\n  <div class="commentBody"><%= bodyHtml %></div>\n  <div class="commentEditor" style="display:none">\n    <form action="#">\n      <textarea autocomplete="off"></textarea>\n      <input type="hidden" title="mode" value="visual"/>\n    </form>\n  </div>\n</div>');
var WikispacesNavbar={};WikispacesNavbar.toggle=function(a){var b=a.closest(".WikispacesNavbarList").attr("id"),e=Cookie.get(b);a.closest(".WikispacesNavbarEntryHeader").children("img.WikispacesNavbarToggleImg").toggle();a.closest(".WikispacesNavbarEntryHeader").nextAll().slideToggle("fast");Cookie.set(b,!e,365)};
WikispacesNavbar.seeMore=function(a,b){var e=a.find("span.WikispacesNavbarEntryId").text();b||(b=a.find("span.WikispacesNavbarNum").text());a.load("/navbar/fetch/"+e,{num:b},function(){WikispacesNavbar.setSortable();WikispacesNavbar.hideIfEmpty(a)})};WikispacesNavbar.hideIfEmpty=function(a){a.find("li").length==0?a.closest(".WikispacesNavbarList").hide():a.closest(".WikispacesNavbarList").show()};
WikispacesNavbar.toggleEntryStatus=function(a,b){a="/navbar/fetch/"+a.siblings().attr("value");jQuery.ajax({url:a,cache:false,type:"POST",data:"num=21&replaceDiv=true&flip=true",success:function(e){b=="A"&&jQuery("div#WikispacesNavbarAllPagesList").html(e).toggle();WikispacesNavbar.setSortable()}})};
WikispacesNavbar.addTag=function(){var a=jQuery("input#newTag").attr("value");jQuery("input#newTag").attr("value",null);if(a!=""){var b=jQuery("#submitTag").attr("src");jQuery("#submitTag").attr("src","/i/spinner.gif");jQuery.ajaxq("navbartag",{url:"/navbar/tag/"+a,cache:false,type:"POST",data:"num=21",success:function(e){jQuery.ajaxq("navbartag");jQuery("#submitTag").attr("src",b);jQuery("div#WikispacesNavbarTags").append(e);WikispacesNavbar.setSortable();jQuery("input#newTag").attr("value","")}})}};
WikispacesNavbar.removeElem=function(a){a.hide();var b=a.find("span.WikispacesNavbarEntryId").text();jQuery.ajax({url:"/navbar/fetch/"+b,type:"POST",data:"flip=true",cache:false,success:function(){a.hide();jQuery("div#WikispacesNavbarAllPagesList").is(":hidden")&&jQuery("input#showAll").attr("checked",false)},error:function(){a.show()}})};
WikispacesNavbar.reorderTag=function(){var a=[];jQuery("div#WikispacesNavbarTags").find("span.WikispacesNavbarEntryId").each(function(){a.push(jQuery(this).text())});jQuery.ajax({url:"/navbar/tagreorder",type:"POST",data:{"tags[]":a},cache:false,error:function(){jQuery("div.WikispacesNavbarTagsSort").sortable("cancel")}})};WikispacesNavbar.refreshTags=function(){jQuery("div#WikispacesNavbarTags").load("/navbar/tagrefresh",function(){WikispacesNavbar.setSortable()})};
WikispacesNavbar.reorderPages=function(a){var b=a.parent().find("span.WikispacesNavbarEntryId").text(),e=[];a.find("span").each(function(){e.push(jQuery(this).text())});jQuery.ajax({url:"/navbar/pagereorder/"+b,type:"POST",data:{"pages[]":e},cache:false,error:function(){a.sortable("cancel")}})};
WikispacesNavbar.setSortable=function(){jQuery("div.WikispacesNavbarTagsSort").sortable({handle:".WikispacesNavbarDraggableEntryHeader",tolerance:"pointer",update:function(){WikispacesNavbar.reorderTag()}});jQuery("ol.WikispacesNavbarListItemsSort").sortable({tolerance:"pointer",update:function(){WikispacesNavbar.reorderPages(jQuery(this))}})};
jQuery(document).ready(function(){jQuery(".WikispacesNavbarEntryHeader").live("click",function(){WikispacesNavbar.toggle(jQuery(this))});jQuery("div.WikispacesNavbarEntryHeader").live("mouseover",function(){jQuery(this).addClass("hover")}).live("mouseout",function(){jQuery(this).removeClass("hover")});jQuery("#submitTag").live("click",function(){WikispacesNavbar.addTag()});jQuery("input#showAll").live("click",function(){WikispacesNavbar.toggleEntryStatus(jQuery(this),"A")});jQuery("img.WikispacesNavbarRemoveElemImg").live("click",
function(a){WikispacesNavbar.removeElem(jQuery(this).closest(".WikispacesNavbarList"));a.stopPropagation()});jQuery("a.WikispacesNavbarSeeMore").live("click",function(){WikispacesNavbar.seeMore(jQuery(this).closest(".WikispacesNavbarListItems"))});jQuery("form.WikiTagForm").live("tagUpdate",function(){WikispacesNavbar.refreshTags()});jQuery("ol.WikispacesNavbarListItemsSort li").live("mouseover",function(){jQuery(this).addClass("hover")});jQuery("ol.WikispacesNavbarListItemsSort li").live("mouseout mouseup",
function(){jQuery(this).removeClass("hover")});jQuery("input#newTag").keypress(function(a){(a.keyCode||a.which)==13&&WikispacesNavbar.addTag()});WikispacesNavbar.setSortable()});var WikispacesStar={};WikispacesStar.rotateCount=6;WikispacesStar.rotatePosition=WikispacesStar.rotateCount;WikispacesStar.rotateActive=false;WikispacesStar.noticeSet=false;
WikispacesStar.changeStar=function(a){jQuery("iframe#star_edit").remove();WikispacesStar.rotatePosition=WikispacesStar.rotateCount;if(!WikispacesStar.rotateActive){WikispacesStar.rotateActive=true;WikispacesStar.rotateStar()}var b=WikispacesCommon.getProjectUrl();jQuery("body").append('<iframe id="star_edit" name="star_edit" src="'+b+"/star/"+a+"/"+encodeURIComponent(wikispaces_page)+'?ajax=true" style="width:0px;height:0px;border:0"></iframe>')};
WikispacesStar.rotateStar=function(){if(WikispacesStar.rotateActive){jQuery(".MenuBar img.StarImg:visible").addClass("star-"+WikispacesStar.rotatePosition%WikispacesStar.rotateCount).removeClass("star-"+(WikispacesStar.rotatePosition-1)%WikispacesStar.rotateCount);setTimeout(WikispacesStar.rotateStar,100);WikispacesStar.rotatePosition++}};
WikispacesStar.starIsCreated=function(){setTimeout(function(){WikispacesStar.rotateActive=false;jQuery(".MenuBar img.StarImg").removeClass("star-"+(WikispacesStar.rotatePosition-1)%WikispacesStar.rotateCount).hide();jQuery(".MenuBar img.StarYes").show();if(WikispacesStar.noticeSet){WikispacesCommon.removeNotice();WikispacesStar.noticeSet=false}},(WikispacesStar.rotateCount-(WikispacesStar.rotatePosition-1)%WikispacesStar.rotateCount-1)*100);WikispacesNavbar.seeMore(jQuery("div#WikispacesNavbarFavoritesListItems"),
21)};
WikispacesStar.starIsDeleted=function(a){setTimeout(function(){WikispacesStar.rotateActive=false;jQuery(".MenuBar img.StarImg").removeClass("star-"+(WikispacesStar.rotatePosition-1)%WikispacesStar.rotateCount).hide();jQuery(".MenuBar img.StarNo").show();if(WikispacesStar.noticeSet){WikispacesCommon.removeNotice();WikispacesStar.noticeSet=false}a&&a.call(this)},(WikispacesStar.rotateCount-(WikispacesStar.rotatePosition-1)%WikispacesStar.rotateCount-1)*100);WikispacesNavbar.seeMore(jQuery("div#WikispacesNavbarFavoritesListItems"),21)};
WikispacesStar.addNotice=function(a,b){WikispacesCommon.removeNotice();WikispacesStar.starIsDeleted(function(){WikispacesCommon.addNotice(a,b);WikispacesStar.noticeSet=true})};jQuery(document).ready(function(){jQuery(".MenuBar img.StarYes").click(function(){WikispacesStar.changeStar("delete")});jQuery(".MenuBar img.StarNo").click(function(){WikispacesStar.changeStar("create")})});var wikispaces_jsLoaded=wikispaces_jsLoaded||[];wikispaces_jsLoaded.push({common:"e337da90b058ea07058856e96de407a5"});

