/* 878ed8522a3d775db5d4b6e0f58885e5 */
(function(a,b){function d(c,g,k){if(k===b&&c.nodeType===1){k="data-"+g.replace(ua,"$1-$2").toLowerCase();k=c.getAttribute(k);if(typeof k==="string"){try{k=k==="true"?true:k==="false"?false:k==="null"?null:!f.isNaN(k)?parseFloat(k):ka.test(k)?f.parseJSON(k):k}catch(m){}f.data(c,g,k)}else k=b}return k}function e(c){for(var g in c)if(g!=="toJSON")return false;return true}function h(c,g,k){var m=g+"defer",o=g+"queue",r=g+"mark",B=f.data(c,m,b,true);if(B&&(k==="queue"||!f.data(c,o,b,true))&&(k==="mark"||
!f.data(c,r,b,true)))setTimeout(function(){if(!f.data(c,o,b,true)&&!f.data(c,r,b,true)){f.removeData(c,m,true);B.resolve()}},0)}function j(){return false}function l(){return true}function p(c,g,k){var m=f.extend({},k[0]);m.type=c;m.originalEvent={};m.liveFired=b;f.event.handle.call(g,m);m.isDefaultPrevented()&&k[0].preventDefault()}function x(c){var g,k,m,o,r,B,I,K,O,X,ia,la=[];o=[];r=f._data(this,"events");if(!(c.liveFired===this||!r||!r.live||c.target.disabled||c.button&&c.type==="click")){if(c.namespace)ia=
new RegExp("(^|\\.)"+c.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");c.liveFired=this;var oa=r.live.slice(0);for(I=0;I<oa.length;I++){r=oa[I];r.origType.replace(Xa,"")===c.type?o.push(r.selector):oa.splice(I--,1)}o=f(c.target).closest(o,c.currentTarget);K=0;for(O=o.length;K<O;K++){X=o[K];for(I=0;I<oa.length;I++){r=oa[I];if(X.selector===r.selector&&(!ia||ia.test(r.namespace))&&!X.elem.disabled){B=X.elem;m=null;if(r.preType==="mouseenter"||r.preType==="mouseleave"){c.type=r.preType;if((m=f(c.relatedTarget).closest(r.selector)[0])&&
f.contains(B,m))m=B}if(!m||m!==B)la.push({elem:B,handleObj:r,level:X.level})}}}K=0;for(O=la.length;K<O;K++){o=la[K];if(k&&o.level>k)break;c.currentTarget=o.elem;c.data=o.handleObj.data;c.handleObj=o.handleObj;ia=o.handleObj.origHandler.apply(o.elem,arguments);if(ia===false||c.isPropagationStopped()){k=o.level;if(ia===false)g=false;if(c.isImmediatePropagationStopped())break}}return g}}function z(c,g){return(c&&c!=="*"?c+".":"")+g.replace(Cb,"`").replace(Db,"&")}function H(c){return!c||!c.parentNode||
c.parentNode.nodeType===11}function L(c,g,k){g=g||0;if(f.isFunction(g))return f.grep(c,function(o,r){return!!g.call(o,r,o)===k});else if(g.nodeType)return f.grep(c,function(o){return o===g===k});else if(typeof g==="string"){var m=f.grep(c,function(o){return o.nodeType===1});if(Eb.test(g))return f.filter(g,m,!k);else g=f.filter(g,m)}return f.grep(c,function(o){return f.inArray(o,g)>=0===k})}function A(c){return f.nodeName(c,"table")?c.getElementsByTagName("tbody")[0]||c.appendChild(c.ownerDocument.createElement("tbody")):
c}function s(c,g){if(!(g.nodeType!==1||!f.hasData(c))){var k=f.expando,m=f.data(c),o=f.data(g,m);if(m=m[k]){c=m.events;o=o[k]=f.extend({},m);if(c){delete o.handle;o.events={};for(var r in c){k=0;for(m=c[r].length;k<m;k++)f.event.add(g,r+(c[r][k].namespace?".":"")+c[r][k].namespace,c[r][k],c[r][k].data)}}}}}function D(c,g){var k;if(g.nodeType===1){g.clearAttributes&&g.clearAttributes();g.mergeAttributes&&g.mergeAttributes(c);k=g.nodeName.toLowerCase();if(k==="object")g.outerHTML=c.outerHTML;else if(k===
"input"&&(c.type==="checkbox"||c.type==="radio")){if(c.checked)g.defaultChecked=g.checked=c.checked;if(g.value!==c.value)g.value=c.value}else if(k==="option")g.selected=c.defaultSelected;else if(k==="input"||k==="textarea")g.defaultValue=c.defaultValue;g.removeAttribute(f.expando)}}function J(c){return"getElementsByTagName"in c?c.getElementsByTagName("*"):"querySelectorAll"in c?c.querySelectorAll("*"):[]}function V(c){if(c.type==="checkbox"||c.type==="radio")c.defaultChecked=c.checked}function y(c){if(f.nodeName(c,
"input"))V(c);else"getElementsByTagName"in c&&f.grep(c.getElementsByTagName("input"),V)}function N(c,g){g.src?f.ajax({url:g.src,async:false,dataType:"script"}):f.globalEval((g.text||g.textContent||g.innerHTML||"").replace(Fb,"/*$0*/"));g.parentNode&&g.parentNode.removeChild(g)}function M(c,g,k){var m=g==="width"?c.offsetWidth:c.offsetHeight,o=g==="width"?Gb:Hb;if(m>0){k!=="border"&&f.each(o,function(){k||(m-=parseFloat(f.css(c,"padding"+this))||0);if(k==="margin")m+=parseFloat(f.css(c,k+this))||0;
else m-=parseFloat(f.css(c,"border"+this+"Width"))||0});return m+"px"}m=Pa(c,g,g);if(m<0||m==null)m=c.style[g]||0;m=parseFloat(m)||0;k&&f.each(o,function(){m+=parseFloat(f.css(c,"padding"+this))||0;if(k!=="padding")m+=parseFloat(f.css(c,"border"+this+"Width"))||0;if(k==="margin")m+=parseFloat(f.css(c,k+this))||0});return m+"px"}function q(c){return function(g,k){if(typeof g!=="string"){k=g;g="*"}if(f.isFunction(k)){g=g.toLowerCase().split(fb);for(var m=0,o=g.length,r,B;m<o;m++){r=g[m];if(B=/^\+/.test(r))r=
r.substr(1)||"*";r=c[r]=c[r]||[];r[B?"unshift":"push"](k)}}}}function v(c,g,k,m,o,r){o=o||g.dataTypes[0];r=r||{};r[o]=true;o=c[o];for(var B=0,I=o?o.length:0,K=c===Ya,O;B<I&&(K||!O);B++){O=o[B](g,k,m);if(typeof O==="string")if(!K||r[O])O=b;else{g.dataTypes.unshift(O);O=v(c,g,k,m,O,r)}}if((K||!O)&&!r["*"])O=v(c,g,k,m,"*",r);return O}function T(c,g){var k,m,o=f.ajaxSettings.flatOptions||{};for(k in g)if(g[k]!==b)(o[k]?c:m||(m={}))[k]=g[k];m&&f.extend(true,c,m)}function ca(c,g,k,m){if(f.isArray(g))f.each(g,
function(r,B){k||Ib.test(c)?m(c,B):ca(c+"["+(typeof B==="object"||f.isArray(B)?r:"")+"]",B,k,m)});else if(!k&&g!=null&&typeof g==="object")for(var o in g)ca(c+"["+o+"]",g[o],k,m);else m(c,g)}function Y(c,g,k){var m=c.contents,o=c.dataTypes,r=c.responseFields,B,I,K,O;for(I in r)if(I in k)g[r[I]]=k[I];for(;o[0]==="*";){o.shift();if(B===b)B=c.mimeType||g.getResponseHeader("content-type")}if(B)for(I in m)if(m[I]&&m[I].test(B)){o.unshift(I);break}if(o[0]in k)K=o[0];else{for(I in k){if(!o[0]||c.converters[I+
" "+o[0]]){K=I;break}O||(O=I)}K=K||O}if(K){K!==o[0]&&o.unshift(K);return k[K]}}function ha(c,g){if(c.dataFilter)g=c.dataFilter(g,c.dataType);var k=c.dataTypes,m={},o,r,B=k.length,I,K=k[0],O,X,ia,la,oa;for(o=1;o<B;o++){if(o===1)for(r in c.converters)if(typeof r==="string")m[r.toLowerCase()]=c.converters[r];O=K;K=k[o];if(K==="*")K=O;else if(O!=="*"&&O!==K){X=O+" "+K;ia=m[X]||m["* "+K];if(!ia){oa=b;for(la in m){I=la.split(" ");if(I[0]===O||I[0]==="*")if(oa=m[I[1]+" "+K]){la=m[la];if(la===true)ia=oa;
else if(oa===true)ia=la;break}}}ia||oa||f.error("No conversion from "+X.replace(" "," to "));if(ia!==true)g=ia?ia(g):oa(la(g))}}return g}function ma(){try{return new a.XMLHttpRequest}catch(c){}}function pa(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}function ea(){setTimeout(ja,0);return Ta=f.now()}function ja(){Ta=b}function na(c,g){var k={};f.each(gb.concat.apply([],gb.slice(0,g)),function(){k[this]=c});return k}function w(c){if(!Za[c]){var g=C.body,k=f("<"+c+">").appendTo(g),
m=k.css("display");k.remove();if(m==="none"||m===""){if(!Ia){Ia=C.createElement("iframe");Ia.frameBorder=Ia.width=Ia.height=0}g.appendChild(Ia);if(!Qa||!Ia.createElement){Qa=(Ia.contentWindow||Ia.contentDocument).document;Qa.write((C.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");Qa.close()}k=Qa.createElement(c);Qa.body.appendChild(k);m=f.css(k,"display");g.removeChild(Ia)}Za[c]=m}return Za[c]}function E(c){return f.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}
var C=a.document,U=a.navigator,S=a.location,f=function(){function c(){if(!g.isReady){try{C.documentElement.doScroll("left")}catch(G){setTimeout(c,1);return}g.ready()}}var g=function(G,$){return new g.fn.init(G,$,o)},k=a.jQuery,m=a.$,o,r=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,B=/\S/,I=/^\s+/,K=/\s+$/,O=/\d/,X=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ia=/^[\],:{}\s]*$/,la=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,oa=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,va=/(?:^|:|,)(?:\s*\[)+/g,Ka=
/(webkit)[ \/]([\w.]+)/,za=/(opera)(?:.*version)?[ \/]([\w.]+)/,Fa=/(msie) ([\w.]+)/,Ha=/(mozilla)(?:.*? rv:([\w.]+))?/,u=/-([a-z]|[0-9])/ig,F=/^-ms-/,R=function(G,$){return($+"").toUpperCase()},Q=U.userAgent,W,Z,da=Object.prototype.toString,ba=Object.prototype.hasOwnProperty,ra=Array.prototype.push,Aa=Array.prototype.slice,ya=String.prototype.trim,Da=Array.prototype.indexOf,sa={};g.fn=g.prototype={constructor:g,init:function(G,$,fa){var ga;if(!G)return this;if(G.nodeType){this.context=this[0]=G;
this.length=1;return this}if(G==="body"&&!$&&C.body){this.context=C;this[0]=C.body;this.selector=G;this.length=1;return this}if(typeof G==="string")if((ga=G.charAt(0)==="<"&&G.charAt(G.length-1)===">"&&G.length>=3?[null,G,null]:r.exec(G))&&(ga[1]||!$))if(ga[1]){fa=($=$ instanceof g?$[0]:$)?$.ownerDocument||$:C;if(G=X.exec(G))if(g.isPlainObject($)){G=[C.createElement(G[1])];g.fn.attr.call(G,$,true)}else G=[fa.createElement(G[1])];else{G=g.buildFragment([ga[1]],[fa]);G=(G.cacheable?g.clone(G.fragment):
G.fragment).childNodes}return g.merge(this,G)}else{if(($=C.getElementById(ga[2]))&&$.parentNode){if($.id!==ga[2])return fa.find(G);this.length=1;this[0]=$}this.context=C;this.selector=G;return this}else return!$||$.jquery?($||fa).find(G):this.constructor($).find(G);else if(g.isFunction(G))return fa.ready(G);if(G.selector!==b){this.selector=G.selector;this.context=G.context}return g.makeArray(G,this)},selector:"",jquery:"1.6.3",length:0,size:function(){return this.length},toArray:function(){return Aa.call(this,
0)},get:function(G){return G==null?this.toArray():G<0?this[this.length+G]:this[G]},pushStack:function(G,$,fa){var ga=this.constructor();g.isArray(G)?ra.apply(ga,G):g.merge(ga,G);ga.prevObject=this;ga.context=this.context;if($==="find")ga.selector=this.selector+(this.selector?" ":"")+fa;else if($)ga.selector=this.selector+"."+$+"("+fa+")";return ga},each:function(G,$){return g.each(this,G,$)},ready:function(G){g.bindReady();W.done(G);return this},eq:function(G){return G===-1?this.slice(G):this.slice(G,
+G+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(G){return this.pushStack(g.map(this,function($,fa){return G.call($,fa,$)}))},end:function(){return this.prevObject||this.constructor(null)},push:ra,sort:[].sort,splice:[].splice};g.fn.init.prototype=g.fn;g.extend=g.fn.extend=function(){var G,$,fa,ga,xa,ta=arguments[0]||{},Ba=1,Ca=arguments.length,$a=false;
if(typeof ta==="boolean"){$a=ta;ta=arguments[1]||{};Ba=2}if(typeof ta!=="object"&&!g.isFunction(ta))ta={};if(Ca===Ba){ta=this;--Ba}for(;Ba<Ca;Ba++)if((G=arguments[Ba])!=null)for($ in G){fa=ta[$];ga=G[$];if(ta!==ga)if($a&&ga&&(g.isPlainObject(ga)||(xa=g.isArray(ga)))){if(xa){xa=false;fa=fa&&g.isArray(fa)?fa:[]}else fa=fa&&g.isPlainObject(fa)?fa:{};ta[$]=g.extend($a,fa,ga)}else if(ga!==b)ta[$]=ga}return ta};g.extend({noConflict:function(G){if(a.$===g)a.$=m;if(G&&a.jQuery===g)a.jQuery=k;return g},isReady:false,
readyWait:1,holdReady:function(G){if(G)g.readyWait++;else g.ready(true)},ready:function(G){if(G===true&&!--g.readyWait||G!==true&&!g.isReady){if(!C.body)return setTimeout(g.ready,1);g.isReady=true;if(!(G!==true&&--g.readyWait>0)){W.resolveWith(C,[g]);g.fn.trigger&&g(C).trigger("ready").unbind("ready")}}},bindReady:function(){if(!W){W=g._Deferred();if(C.readyState==="complete")return setTimeout(g.ready,1);if(C.addEventListener){C.addEventListener("DOMContentLoaded",Z,false);a.addEventListener("load",
g.ready,false)}else if(C.attachEvent){C.attachEvent("onreadystatechange",Z);a.attachEvent("onload",g.ready);var G=false;try{G=a.frameElement==null}catch($){}C.documentElement.doScroll&&G&&c()}}},isFunction:function(G){return g.type(G)==="function"},isArray:Array.isArray||function(G){return g.type(G)==="array"},isWindow:function(G){return G&&typeof G==="object"&&"setInterval"in G},isNaN:function(G){return G==null||!O.test(G)||isNaN(G)},type:function(G){return G==null?String(G):sa[da.call(G)]||"object"},
isPlainObject:function(G){if(!G||g.type(G)!=="object"||G.nodeType||g.isWindow(G))return false;try{if(G.constructor&&!ba.call(G,"constructor")&&!ba.call(G.constructor.prototype,"isPrototypeOf"))return false}catch($){return false}var fa;for(fa in G);return fa===b||ba.call(G,fa)},isEmptyObject:function(G){for(var $ in G)return false;return true},error:function(G){throw G;},parseJSON:function(G){if(typeof G!=="string"||!G)return null;G=g.trim(G);if(a.JSON&&a.JSON.parse)return a.JSON.parse(G);if(ia.test(G.replace(la,
"@").replace(oa,"]").replace(va,"")))return(new Function("return "+G))();g.error("Invalid JSON: "+G)},parseXML:function(G){var $,fa;try{if(a.DOMParser){fa=new DOMParser;$=fa.parseFromString(G,"text/xml")}else{$=new ActiveXObject("Microsoft.XMLDOM");$.async="false";$.loadXML(G)}}catch(ga){$=b}if(!$||!$.documentElement||$.getElementsByTagName("parsererror").length)g.error("Invalid XML: "+G);return $},noop:function(){},globalEval:function(G){if(G&&B.test(G))(a.execScript||function($){a.eval.call(a,$)})(G)},
camelCase:function(G){return G.replace(F,"ms-").replace(u,R)},nodeName:function(G,$){return G.nodeName&&G.nodeName.toUpperCase()===$.toUpperCase()},each:function(G,$,fa){var ga,xa=0,ta=G.length,Ba=ta===b||g.isFunction(G);if(fa)if(Ba)for(ga in G){if($.apply(G[ga],fa)===false)break}else for(;xa<ta;){if($.apply(G[xa++],fa)===false)break}else if(Ba)for(ga in G){if($.call(G[ga],ga,G[ga])===false)break}else for(;xa<ta;)if($.call(G[xa],xa,G[xa++])===false)break;return G},trim:ya?function(G){return G==null?
"":ya.call(G)}:function(G){return G==null?"":G.toString().replace(I,"").replace(K,"")},makeArray:function(G,$){$=$||[];if(G!=null){var fa=g.type(G);G.length==null||fa==="string"||fa==="function"||fa==="regexp"||g.isWindow(G)?ra.call($,G):g.merge($,G)}return $},inArray:function(G,$){if(!$)return-1;if(Da)return Da.call($,G);for(var fa=0,ga=$.length;fa<ga;fa++)if($[fa]===G)return fa;return-1},merge:function(G,$){var fa=G.length,ga=0;if(typeof $.length==="number")for(var xa=$.length;ga<xa;ga++)G[fa++]=
$[ga];else for(;$[ga]!==b;)G[fa++]=$[ga++];G.length=fa;return G},grep:function(G,$,fa){var ga=[],xa;fa=!!fa;for(var ta=0,Ba=G.length;ta<Ba;ta++){xa=!!$(G[ta],ta);fa!==xa&&ga.push(G[ta])}return ga},map:function(G,$,fa){var ga,xa,ta=[],Ba=0,Ca=G.length;if(G instanceof g||Ca!==b&&typeof Ca==="number"&&(Ca>0&&G[0]&&G[Ca-1]||Ca===0||g.isArray(G)))for(;Ba<Ca;Ba++){ga=$(G[Ba],Ba,fa);if(ga!=null)ta[ta.length]=ga}else for(xa in G){ga=$(G[xa],xa,fa);if(ga!=null)ta[ta.length]=ga}return ta.concat.apply([],ta)},
guid:1,proxy:function(G,$){if(typeof $==="string"){var fa=G[$];$=G;G=fa}if(!g.isFunction(G))return b;var ga=Aa.call(arguments,2);fa=function(){return G.apply($,ga.concat(Aa.call(arguments)))};fa.guid=G.guid=G.guid||fa.guid||g.guid++;return fa},access:function(G,$,fa,ga,xa,ta){var Ba=G.length;if(typeof $==="object"){for(var Ca in $)g.access(G,Ca,$[Ca],ga,xa,fa);return G}if(fa!==b){ga=!ta&&ga&&g.isFunction(fa);for(Ca=0;Ca<Ba;Ca++)xa(G[Ca],$,ga?fa.call(G[Ca],Ca,xa(G[Ca],$)):fa,ta);return G}return Ba?
xa(G[0],$):b},now:function(){return(new Date).getTime()},uaMatch:function(G){G=G.toLowerCase();G=Ka.exec(G)||za.exec(G)||Fa.exec(G)||G.indexOf("compatible")<0&&Ha.exec(G)||[];return{browser:G[1]||"",version:G[2]||"0"}},sub:function(){function G(fa,ga){return new G.fn.init(fa,ga)}g.extend(true,G,this);G.superclass=this;G.fn=G.prototype=this();G.fn.constructor=G;G.sub=this.sub;G.fn.init=function(fa,ga){if(ga&&ga instanceof g&&!(ga instanceof G))ga=G(ga);return g.fn.init.call(this,fa,ga,$)};G.fn.init.prototype=
G.fn;var $=G(C);return G},browser:{}});g.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(G,$){sa["[object "+$+"]"]=$.toLowerCase()});Q=g.uaMatch(Q);if(Q.browser){g.browser[Q.browser]=true;g.browser.version=Q.version}if(g.browser.webkit)g.browser.safari=true;if(B.test("\u00a0")){I=/^[\s\xA0]+/;K=/[\s\xA0]+$/}o=g(C);if(C.addEventListener)Z=function(){C.removeEventListener("DOMContentLoaded",Z,false);g.ready()};else if(C.attachEvent)Z=function(){if(C.readyState==="complete"){C.detachEvent("onreadystatechange",
Z);g.ready()}};return g}(),P="done fail isResolved isRejected promise then always pipe".split(" "),aa=[].slice;f.extend({_Deferred:function(){var c=[],g,k,m,o={done:function(){if(!m){var r=arguments,B,I,K,O,X;if(g){X=g;g=0}B=0;for(I=r.length;B<I;B++){K=r[B];O=f.type(K);if(O==="array")o.done.apply(o,K);else O==="function"&&c.push(K)}X&&o.resolveWith(X[0],X[1])}return this},resolveWith:function(r,B){if(!m&&!g&&!k){B=B||[];k=1;try{for(;c[0];)c.shift().apply(r,B)}finally{g=[r,B];k=0}}return this},resolve:function(){o.resolveWith(this,
arguments);return this},isResolved:function(){return!!(k||g)},cancel:function(){m=1;c=[];return this}};return o},Deferred:function(c){var g=f._Deferred(),k=f._Deferred(),m;f.extend(g,{then:function(o,r){g.done(o).fail(r);return this},always:function(){return g.done.apply(g,arguments).fail.apply(this,arguments)},fail:k.done,rejectWith:k.resolveWith,reject:k.resolve,isRejected:k.isResolved,pipe:function(o,r){return f.Deferred(function(B){f.each({done:[o,"resolve"],fail:[r,"reject"]},function(I,K){var O=
K[0],X=K[1],ia;f.isFunction(O)?g[I](function(){(ia=O.apply(this,arguments))&&f.isFunction(ia.promise)?ia.promise().then(B.resolve,B.reject):B[X+"With"](this===g?B:this,[ia])}):g[I](B[X])})}).promise()},promise:function(o){if(o==null){if(m)return m;m=o={}}for(var r=P.length;r--;)o[P[r]]=g[P[r]];return o}});g.done(k.cancel).fail(g.cancel);delete g.cancel;c&&c.call(g,g);return g},when:function(c){function g(I){return function(K){k[I]=arguments.length>1?aa.call(arguments,0):K;--r||B.resolveWith(B,aa.call(k,
0))}}var k=arguments,m=0,o=k.length,r=o,B=o<=1&&c&&f.isFunction(c.promise)?c:f.Deferred();if(o>1){for(;m<o;m++)if(k[m]&&f.isFunction(k[m].promise))k[m].promise().then(g(m),B.reject);else--r;r||B.resolveWith(B,k)}else if(B!==c)B.resolveWith(B,o?[c]:[]);return B.promise()}});f.support=function(){var c=C.createElement("div"),g=C.documentElement,k,m,o,r,B,I;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=C.createElement("select");r=o.appendChild(C.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(K){B.deleteExpando=false}if(!c.addEventListener&&c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function(){B.noCloneEvent=
false});c.cloneNode(true).fireEvent("onclick")}k=C.createElement("input");k.value="t";k.setAttribute("type","radio");B.radioValue=k.value==="t";k.setAttribute("checked","checked");c.appendChild(k);m=C.createDocumentFragment();m.appendChild(c.firstChild);B.checkClone=m.cloneNode(true).cloneNode(true).lastChild.checked;c.innerHTML="";c.style.width=c.style.paddingLeft="1px";o=C.getElementsByTagName("body")[0];m=C.createElement(o?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,
background:"none"};o&&f.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(I in r)m.style[I]=r[I];m.appendChild(c);g=o||g;g.insertBefore(m,g.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(C.defaultView&&C.defaultView.getComputedStyle){k=C.createElement("div");k.style.width="0";k.style.marginRight="0";c.appendChild(k);B.reliableMarginRight=(parseInt((C.defaultView.getComputedStyle(k,null)||{marginRight:0}).marginRight,10)||0)===0}m.innerHTML="";g.removeChild(m);if(c.attachEvent)for(I in{submit:1,change:1,focusin:1}){g=
"on"+I;k=g in c;if(!k){c.setAttribute(g,"return;");k=typeof c[g]==="function"}B[I+"Bubbles"]=k}m=m=o=r=o=k=c=k=null;return B}();f.boxModel=f.support.boxModel;var ka=/^(?:\{.*\}|\[.*\])$/,ua=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.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?f.cache[c[f.expando]]:c[f.expando];return!!c&&!e(c)},data:function(c,g,k,m){if(f.acceptData(c)){var o=
f.expando,r=typeof g==="string",B=c.nodeType,I=B?f.cache:c,K=B?c[f.expando]:c[f.expando]&&f.expando;if(!((!K||m&&K&&I[K]&&!I[K][o])&&r&&k===b)){if(!K)if(B)c[f.expando]=K=++f.uuid;else K=f.expando;if(!I[K]){I[K]={};if(!B)I[K].toJSON=f.noop}if(typeof g==="object"||typeof g==="function")if(m)I[K][o]=f.extend(I[K][o],g);else I[K]=f.extend(I[K],g);c=I[K];if(m){c[o]||(c[o]={});c=c[o]}if(k!==b)c[f.camelCase(g)]=k;if(g==="events"&&!c[g])return c[o]&&c[o].events;if(r){k=c[g];if(k==null)k=c[f.camelCase(g)]}else k=
c;return k}}},removeData:function(c,g,k){if(f.acceptData(c)){var m,o=f.expando,r=c.nodeType,B=r?f.cache:c,I=r?c[f.expando]:f.expando;if(B[I]){if(g)if(m=k?B[I][o]:B[I]){m[g]||(g=f.camelCase(g));delete m[g];if(!e(m))return}if(k){delete B[I][o];if(!e(B[I]))return}g=B[I][o];if(f.support.deleteExpando||!B.setInterval)delete B[I];else B[I]=null;if(g){B[I]={};if(!r)B[I].toJSON=f.noop;B[I][o]=g}else if(r)if(f.support.deleteExpando)delete c[f.expando];else if(c.removeAttribute)c.removeAttribute(f.expando);
else c[f.expando]=null}}},_data:function(c,g,k){return f.data(c,g,k,true)},acceptData:function(c){if(c.nodeName){var g=f.noData[c.nodeName.toLowerCase()];if(g)return!(g===true||c.getAttribute("classid")!==g)}return true}});f.fn.extend({data:function(c,g){var k=null;if(typeof c==="undefined"){if(this.length){k=f.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=f.camelCase(o.substring(5));d(this[0],o,k[o])}}}return k}else if(typeof c===
"object")return this.each(function(){f.data(this,c)});var I=c.split(".");I[1]=I[1]?"."+I[1]:"";if(g===b){k=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(k===b&&this.length){k=f.data(this[0],c);k=d(this[0],c,k)}return k===b&&I[1]?this.data(I[0]):k}else return this.each(function(){var K=f(this),O=[I[0],g];K.triggerHandler("setData"+I[1]+"!",O);f.data(this,c,g);K.triggerHandler("changeData"+I[1]+"!",O)})},removeData:function(c){return this.each(function(){f.removeData(this,c)})}});f.extend({_mark:function(c,
g){if(c){g=(g||"fx")+"mark";f.data(c,g,(f.data(c,g,b,true)||0)+1,true)}},_unmark:function(c,g,k){if(c!==true){k=g;g=c;c=false}if(g){k=k||"fx";var m=k+"mark";if(c=c?0:(f.data(g,m,b,true)||1)-1)f.data(g,m,c,true);else{f.removeData(g,m,true);h(g,k,"mark")}}},queue:function(c,g,k){if(c){g=(g||"fx")+"queue";var m=f.data(c,g,b,true);if(k)if(!m||f.isArray(k))m=f.data(c,g,f.makeArray(k),true);else m.push(k);return m||[]}},dequeue:function(c,g){g=g||"fx";var k=f.queue(c,g),m=k.shift();if(m==="inprogress")m=
k.shift();if(m){g==="fx"&&k.unshift("inprogress");m.call(c,function(){f.dequeue(c,g)})}if(!k.length){f.removeData(c,g+"queue",true);h(c,g,"queue")}}});f.fn.extend({queue:function(c,g){if(typeof c!=="string"){g=c;c="fx"}if(g===b)return f.queue(this[0],c);return this.each(function(){var k=f.queue(this,c,g);c==="fx"&&k[0]!=="inprogress"&&f.dequeue(this,c)})},dequeue:function(c){return this.each(function(){f.dequeue(this,c)})},delay:function(c,g){c=f.fx?f.fx.speeds[c]||c:c;g=g||"fx";return this.queue(g,
function(){var k=this;setTimeout(function(){f.dequeue(k,g)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,g){function k(){--r||m.resolveWith(o,[o])}if(typeof c!=="string"){g=c;c=b}c=c||"fx";var m=f.Deferred(),o=this;g=o.length;var r=1,B=c+"defer",I=c+"queue";c=c+"mark";for(var K;g--;)if(K=f.data(o[g],B,b,true)||(f.data(o[g],I,b,true)||f.data(o[g],c,b,true))&&f.data(o[g],B,f._Deferred(),true)){r++;K.done(k)}k();return m.promise()}});var wa=/[\n\t\r]/g,qa=/\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;f.fn.extend({attr:function(c,g){return f.access(this,c,g,true,f.attr)},removeAttr:function(c){return this.each(function(){f.removeAttr(this,c)})},prop:function(c,g){return f.access(this,c,g,true,f.prop)},removeProp:function(c){c=f.propFix[c]||c;return this.each(function(){try{this[c]=
b;delete this[c]}catch(g){}})},addClass:function(c){var g,k,m,o,r,B,I;if(f.isFunction(c))return this.each(function(K){f(this).addClass(c.call(this,K,this.className))});if(c&&typeof c==="string"){g=c.split(qa);k=0;for(m=this.length;k<m;k++){o=this[k];if(o.nodeType===1)if(!o.className&&g.length===1)o.className=c;else{r=" "+o.className+" ";B=0;for(I=g.length;B<I;B++)~r.indexOf(" "+g[B]+" ")||(r+=g[B]+" ");o.className=f.trim(r)}}}return this},removeClass:function(c){var g,k,m,o,r,B,I;if(f.isFunction(c))return this.each(function(K){f(this).removeClass(c.call(this,
K,this.className))});if(c&&typeof c==="string"||c===b){g=(c||"").split(qa);k=0;for(m=this.length;k<m;k++){o=this[k];if(o.nodeType===1&&o.className)if(c){r=(" "+o.className+" ").replace(wa," ");B=0;for(I=g.length;B<I;B++)r=r.replace(" "+g[B]+" "," ");o.className=f.trim(r)}else o.className=""}}return this},toggleClass:function(c,g){var k=typeof c,m=typeof g==="boolean";if(f.isFunction(c))return this.each(function(o){f(this).toggleClass(c.call(this,o,this.className,g),g)});return this.each(function(){if(k===
"string")for(var o,r=0,B=f(this),I=g,K=c.split(qa);o=K[r++];){I=m?I:!B.hasClass(o);B[I?"addClass":"removeClass"](o)}else if(k==="undefined"||k==="boolean"){this.className&&f._data(this,"__className__",this.className);this.className=this.className||c===false?"":f._data(this,"__className__")||""}})},hasClass:function(c){c=" "+c+" ";for(var g=0,k=this.length;g<k;g++)if(this[g].nodeType===1&&(" "+this[g].className+" ").replace(wa," ").indexOf(c)>-1)return true;return false},val:function(c){var g,k,m=
this[0];if(!arguments.length){if(m){if((g=f.valHooks[m.nodeName.toLowerCase()]||f.valHooks[m.type])&&"get"in g&&(k=g.get(m,"value"))!==b)return k;k=m.value;return typeof k==="string"?k.replace(Ea,""):k==null?"":k}return b}var o=f.isFunction(c);return this.each(function(r){var B=f(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(f.isArray(r))r=f.map(r,function(I){return I==null?"":I+""});g=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];
if(!g||!("set"in g)||g.set(this,r,"value")===b)this.value=r}})}});f.extend({valHooks:{option:{get:function(c){var g=c.attributes.value;return!g||g.specified?c.value:c.text}},select:{get:function(c){var g,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++){g=o[r];if(g.selected&&(f.support.optDisabled?!g.disabled:g.getAttribute("disabled")===null)&&(!g.parentNode.disabled||!f.nodeName(g.parentNode,"optgroup"))){g=f(g).val();if(c)return g;
m.push(g)}}if(c&&!m.length&&o.length)return f(o[k]).val();return m},set:function(c,g){var k=f.makeArray(g);f(c).find("option").each(function(){this.selected=f.inArray(f(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,g,k,m){var o=c.nodeType;if(!c||o===3||o===8||o===2)return b;if(m&&g in f.attrFn)return f(c)[g](k);if(!("getAttribute"in c))return f.prop(c,
g,k);var r,B;if(m=o!==1||!f.isXMLDoc(c)){g=f.attrFix[g]||g;B=f.attrHooks[g];if(!B)if(ib.test(g))B=jb;else if(Ma)B=Ma}if(k!==b)if(k===null){f.removeAttr(c,g);return b}else if(B&&"set"in B&&m&&(r=B.set(c,k,g))!==b)return r;else{c.setAttribute(g,""+k);return k}else if(B&&"get"in B&&m&&(r=B.get(c,g))!==null)return r;else{r=c.getAttribute(g);return r===null?b:r}},removeAttr:function(c,g){var k;if(c.nodeType===1){g=f.attrFix[g]||g;f.attr(c,g,"");c.removeAttribute(g);if(ib.test(g)&&(k=f.propFix[g]||g)in
c)c[k]=false}},attrHooks:{type:{set:function(c,g){if(Ja.test(c.nodeName)&&c.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&g==="radio"&&f.nodeName(c,"input")){var k=c.value;c.setAttribute("type",g);if(k)c.value=k;return g}}},value:{get:function(c,g){if(Ma&&f.nodeName(c,"button"))return Ma.get(c,g);return g in c?c.value:null},set:function(c,g,k){if(Ma&&f.nodeName(c,"button"))return Ma.set(c,g,k);c.value=g}}},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,g,k){var m=c.nodeType;if(!c||m===3||m===8||m===2)return b;var o,r;if(m!==1||!f.isXMLDoc(c)){g=f.propFix[g]||g;r=f.propHooks[g]}return k!==b?r&&"set"in r&&(o=r.set(c,k,g))!==b?o:(c[g]=k):r&&"get"in r&&(o=r.get(c,g))!==null?o:c[g]},propHooks:{tabIndex:{get:function(c){var g=c.getAttributeNode("tabindex");
return g&&g.specified?parseInt(g.value,10):hb.test(c.nodeName)||La.test(c.nodeName)&&c.href?0:b}}}});f.attrHooks.tabIndex=f.propHooks.tabIndex;jb={get:function(c,g){var k;return f.prop(c,g)===true||(k=c.getAttributeNode(g))&&k.nodeValue!==false?g.toLowerCase():b},set:function(c,g,k){if(g===false)f.removeAttr(c,k);else{g=f.propFix[k]||k;if(g in c)c[g]=true;c.setAttribute(k,k.toLowerCase())}return k}};if(!f.support.getSetAttribute){Ma=f.valHooks.button={get:function(c,g){return(c=c.getAttributeNode(g))&&
c.nodeValue!==""?c.nodeValue:b},set:function(c,g,k){var m=c.getAttributeNode(k);if(!m){m=C.createAttribute(k);c.setAttributeNode(m)}return m.nodeValue=g+""}};f.each(["width","height"],function(c,g){f.attrHooks[g]=f.extend(f.attrHooks[g],{set:function(k,m){if(m===""){k.setAttribute(g,"auto");return m}}})})}f.support.hrefNormalized||f.each(["href","src","width","height"],function(c,g){f.attrHooks[g]=f.extend(f.attrHooks[g],{get:function(k){k=k.getAttribute(g,2);return k===null?b:k}})});if(!f.support.style)f.attrHooks.style=
{get:function(c){return c.style.cssText.toLowerCase()||b},set:function(c,g){return c.style.cssText=""+g}};if(!f.support.optSelected)f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(){return null}});f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(c){return c.getAttribute("value")===null?"on":c.value}}});f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(c,g){if(f.isArray(g))return c.checked=f.inArray(f(c).val(),
g)>=0}})});var Xa=/\.(.*)$/,ab=/^(?:textarea|input|select)$/i,Cb=/\./g,Db=/ /g,Jb=/[^\w\s.|`]/g,Kb=function(c){return c.replace(Jb,"\\$&")};f.event={add:function(c,g,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=f.guid++;if(r=f._data(c)){var B=r.events,I=r.handle;if(!B)r.events=B={};if(!I)r.handle=I=function(oa){return typeof f!=="undefined"&&(!oa||f.event.triggered!==oa.type)?f.event.handle.apply(I.elem,arguments):
b};I.elem=c;g=g.split(" ");for(var K,O=0,X;K=g[O++];){r=o?f.extend({},o):{handler:k,data:m};if(K.indexOf(".")>-1){X=K.split(".");K=X.shift();r.namespace=X.slice(0).sort().join(".")}else{X=[];r.namespace=""}r.type=K;if(!r.guid)r.guid=k.guid;var ia=B[K],la=f.event.special[K]||{};if(!ia){ia=B[K]=[];if(!la.setup||la.setup.call(c,m,X,I)===false)if(c.addEventListener)c.addEventListener(K,I,false);else c.attachEvent&&c.attachEvent("on"+K,I)}if(la.add){la.add.call(c,r);if(!r.handler.guid)r.handler.guid=k.guid}ia.push(r);
f.event.global[K]=true}c=null}}},global:{},remove:function(c,g,k,m){if(!(c.nodeType===3||c.nodeType===8)){if(k===false)k=j;var o,r,B=0,I,K,O,X,ia,la,oa=f.hasData(c)&&f._data(c),va=oa&&oa.events;if(oa&&va){if(g&&g.type){k=g.handler;g=g.type}if(!g||typeof g==="string"&&g.charAt(0)==="."){g=g||"";for(o in va)f.event.remove(c,o+g)}else{for(g=g.split(" ");o=g[B++];){X=o;I=o.indexOf(".")<0;K=[];if(!I){K=o.split(".");o=K.shift();O=new RegExp("(^|\\.)"+f.map(K.slice(0).sort(),Kb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(ia=
va[o])if(k){X=f.event.special[o]||{};for(r=m||0;r<ia.length;r++){la=ia[r];if(k.guid===la.guid){if(I||O.test(la.namespace)){m==null&&ia.splice(r--,1);X.remove&&X.remove.call(c,la)}if(m!=null)break}}if(ia.length===0||m!=null&&ia.length===1){if(!X.teardown||X.teardown.call(c,K)===false)f.removeEvent(c,o,oa.handle);delete va[o]}}else for(r=0;r<ia.length;r++){la=ia[r];if(I||O.test(la.namespace)){f.event.remove(c,X,la.handler,r);ia.splice(r--,1)}}}if(f.isEmptyObject(va)){if(g=oa.handle)g.elem=null;delete oa.events;
delete oa.handle;f.isEmptyObject(oa)&&f.removeData(c,b,true)}}}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(c,g,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||f.event.customEvent[o])&&!f.event.global[o])){c=typeof c==="object"?c[f.expando]?c:new f.Event(o,c):new f.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;g=g!=null?f.makeArray(g):[];g.unshift(c);r=k;m=o.indexOf(":")<0?"on"+o:"";do{B=f._data(r,"handle");c.currentTarget=r;B&&B.apply(r,g);if(m&&f.acceptData(r)&&r[m]&&r[m].apply(r,g)===false){c.result=false;c.preventDefault()}r=r.parentNode||r.ownerDocument||r===c.target.ownerDocument&&a}while(r&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var I;r=f.event.special[o]||
{};if((!r._default||r._default.call(k.ownerDocument,c)===false)&&!(o==="click"&&f.nodeName(k,"a"))&&f.acceptData(k)){try{if(m&&k[o]){if(I=k[m])k[m]=null;f.event.triggered=o;k[o]()}}catch(K){}if(I)k[m]=I;f.event.triggered=b}}return c.result}}else f.each(f.cache,function(){var O=this[f.expando];O&&O.events&&O.events[o]&&f.event.trigger(c,g,O.handle.elem)})}},handle:function(c){c=f.event.fix(c||a.event);var g=((f._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=g.length;o<r;o++){var B=g[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[f.expando])return c;var g=c;c=f.Event(g);for(var k=this.props.length,m;k;){m=this.props[--k];c[m]=g[m]}if(!c.target)c.target=c.srcElement||C;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||C;g=k.documentElement;k=k.body;c.pageX=c.clientX+(g&&g.scrollLeft||k&&k.scrollLeft||0)-(g&&g.clientLeft||k&&k.clientLeft||
0);c.pageY=c.clientY+(g&&g.scrollTop||k&&k.scrollTop||0)-(g&&g.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:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(c){f.event.add(this,z(c.origType,c.selector),f.extend({},c,{handler:x,guid:c.handler.guid}))},
remove:function(c){f.event.remove(this,z(c.origType,c.selector),c)}},beforeunload:{setup:function(c,g,k){if(f.isWindow(this))this.onbeforeunload=k},teardown:function(c,g){if(this.onbeforeunload===g)this.onbeforeunload=null}}}};f.removeEvent=C.removeEventListener?function(c,g,k){c.removeEventListener&&c.removeEventListener(g,k,false)}:function(c,g,k){c.detachEvent&&c.detachEvent("on"+g,k)};f.Event=function(c,g){if(!this.preventDefault)return new f.Event(c,g);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;g&&f.extend(this,g);this.timeStamp=f.now();this[f.expando]=true};f.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 g=c.relatedTarget,k=false,m=c.type;c.type=c.data;if(g!==this){if(g)k=f.contains(this,g);if(!k){f.event.handle.apply(this,arguments);c.type=m}}},lb=function(c){c.type=c.data;f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,g){f.event.special[c]=
{setup:function(k){f.event.add(this,g,k&&k.selector?lb:kb,c)},teardown:function(k){f.event.remove(this,g,k&&k.selector?lb:kb)}}});if(!f.support.submitBubbles)f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return false;else{f.event.add(this,"click.specialSubmit",function(c){var g=c.target,k=f.nodeName(g,"input")?g.type:"";if((k==="submit"||k==="image")&&f(g).closest("form").length)p("submit",this,arguments)});f.event.add(this,"keypress.specialSubmit",function(c){var g=c.target,
k=f.nodeName(g,"input")?g.type:"";if((k==="text"||k==="password")&&f(g).closest("form").length&&c.keyCode===13)p("submit",this,arguments)})}},teardown:function(){f.event.remove(this,".specialSubmit")}};if(!f.support.changeBubbles){var Sa,mb=function(c){var g=f.nodeName(c,"input")?c.type:"",k=c.value;if(g==="radio"||g==="checkbox")k=c.checked;else if(g==="select-multiple")k=c.selectedIndex>-1?f.map(c.options,function(m){return m.selected}).join("-"):"";else if(f.nodeName(c,"select"))k=c.selectedIndex;
return k},Ua=function(c,g){var k=c.target,m,o;if(!(!ab.test(k.nodeName)||k.readOnly)){m=f._data(k,"_change_data");o=mb(k);if(c.type!=="focusout"||k.type!=="radio")f._data(k,"_change_data",o);if(!(m===b||o===m))if(m!=null||o){c.type="change";c.liveFired=b;f.event.trigger(c,g,k)}}};f.event.special.change={filters:{focusout:Ua,beforedeactivate:Ua,click:function(c){var g=c.target,k=f.nodeName(g,"input")?g.type:"";if(k==="radio"||k==="checkbox"||f.nodeName(g,"select"))Ua.call(this,c)},keydown:function(c){var g=
c.target,k=f.nodeName(g,"input")?g.type:"";if(c.keyCode===13&&!f.nodeName(g,"textarea")||c.keyCode===32&&(k==="checkbox"||k==="radio")||k==="select-multiple")Ua.call(this,c)},beforeactivate:function(c){c=c.target;f._data(c,"_change_data",mb(c))}},setup:function(){if(this.type==="file")return false;for(var c in Sa)f.event.add(this,c+".specialChange",Sa[c]);return ab.test(this.nodeName)},teardown:function(){f.event.remove(this,".specialChange");return ab.test(this.nodeName)}};Sa=f.event.special.change.filters;
Sa.focus=Sa.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(c,g){function k(o){var r=f.event.fix(o);r.type=g;r.originalEvent={};f.event.trigger(r,null,r.target);r.isDefaultPrevented()&&o.preventDefault()}var m=0;f.event.special[g]={setup:function(){m++===0&&C.addEventListener(c,k,true)},teardown:function(){--m===0&&C.removeEventListener(c,k,true)}}});f.each(["bind","one"],function(c,g){f.fn[g]=function(k,m,o){var r;if(typeof k==="object"){for(var B in k)this[g](B,
m,k[B],o);return this}if(arguments.length===2||m===false){o=m;m=b}if(g==="one"){r=function(K){f(this).unbind(K,r);return o.apply(this,arguments)};r.guid=o.guid||f.guid++}else r=o;if(k==="unload"&&g!=="one")this.one(k,m,o);else{B=0;for(var I=this.length;B<I;B++)f.event.add(this[B],k,r,m)}return this}});f.fn.extend({unbind:function(c,g){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++)f.event.remove(this[k],c,g)}return this},delegate:function(c,
g,k,m){return this.live(g,k,m,c)},undelegate:function(c,g,k){return arguments.length===0?this.unbind("live"):this.die(g,null,k,c)},trigger:function(c,g){return this.each(function(){f.event.trigger(c,g,this)})},triggerHandler:function(c,g){if(this[0])return f.event.trigger(c,g,this[0],true)},toggle:function(c){var g=arguments,k=c.guid||f.guid++,m=0,o=function(r){var B=(f.data(this,"lastToggle"+c.guid)||0)%m;f.data(this,"lastToggle"+c.guid,B+1);r.preventDefault();return g[B].apply(this,arguments)||
false};for(o.guid=k;m<g.length;)g[m++].guid=k;return this.click(o)},hover:function(c,g){return this.mouseenter(c).mouseleave(g||c)}});var bb={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(c,g){f.fn[g]=function(k,m,o,r){var B=0,I,K,O=r||this.selector,X=r?this:f(this.context);if(typeof k==="object"&&!k.preventDefault){for(I in k)X[g](I,m,k[I],O);return this}if(g==="die"&&!k&&r&&r.charAt(0)==="."){X.unbind(r);return this}if(m===false||f.isFunction(m)){o=
m||j;m=b}for(k=(k||"").split(" ");(r=k[B++])!=null;){I=Xa.exec(r);K="";if(I){K=I[0];r=r.replace(Xa,"")}if(r==="hover")k.push("mouseenter"+K,"mouseleave"+K);else{I=r;if(bb[r]){k.push(bb[r]+K);r+=K}else r=(bb[r]||r)+K;if(g==="live"){K=0;for(var ia=X.length;K<ia;K++)f.event.add(X[K],"live."+z(r,O),{data:m,selector:O,handler:o,origType:r,origHandler:o,preType:I})}else X.unbind("live."+z(r,O),o)}}return this}});f.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,g){f.fn[g]=function(k,m){if(m==null){m=k;k=null}return arguments.length>0?this.bind(g,k,m):this.trigger(g)};if(f.attrFn)f.attrFn[g]=true});(function(){function c(u,F,R,Q,W,Z){W=0;for(var da=Q.length;W<da;W++){var ba=Q[W];if(ba){var ra=false;for(ba=ba[u];ba;){if(ba.sizcache===R){ra=Q[ba.sizset];break}if(ba.nodeType===1&&!Z){ba.sizcache=R;ba.sizset=W}if(ba.nodeName.toLowerCase()===F){ra=ba;break}ba=ba[u]}Q[W]=ra}}}function g(u,F,R,Q,W,Z){W=0;for(var da=Q.length;W<da;W++){var ba=Q[W];if(ba){var ra=
false;for(ba=ba[u];ba;){if(ba.sizcache===R){ra=Q[ba.sizset];break}if(ba.nodeType===1){if(!Z){ba.sizcache=R;ba.sizset=W}if(typeof F!=="string"){if(ba===F){ra=true;break}}else if(O.filter(F,[ba]).length>0){ra=ba;break}}ba=ba[u]}Q[W]=ra}}}var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,o=Object.prototype.toString,r=false,B=true,I=/\\/g,K=/\W/;[0,0].sort(function(){B=false;return 0});var O=function(u,F,R,Q){R=
R||[];var W=F=F||C;if(F.nodeType!==1&&F.nodeType!==9)return[];if(!u||typeof u!=="string")return R;var Z,da,ba,ra,Aa,ya=true,Da=O.isXML(F),sa=[],G=u;do{k.exec("");if(Z=k.exec(G)){G=Z[3];sa.push(Z[1]);if(Z[2]){ra=Z[3];break}}}while(Z);if(sa.length>1&&ia.exec(u))if(sa.length===2&&X.relative[sa[0]])da=Ha(sa[0]+sa[1],F);else for(da=X.relative[sa[0]]?[F]:O(sa.shift(),F);sa.length;){u=sa.shift();if(X.relative[u])u+=sa.shift();da=Ha(u,da)}else{if(!Q&&sa.length>1&&F.nodeType===9&&!Da&&X.match.ID.test(sa[0])&&
!X.match.ID.test(sa[sa.length-1])){Z=O.find(sa.shift(),F,Da);F=Z.expr?O.filter(Z.expr,Z.set)[0]:Z.set[0]}if(F){Z=Q?{expr:sa.pop(),set:va(Q)}:O.find(sa.pop(),sa.length===1&&(sa[0]==="~"||sa[0]==="+")&&F.parentNode?F.parentNode:F,Da);da=Z.expr?O.filter(Z.expr,Z.set):Z.set;if(sa.length>0)ba=va(da);else ya=false;for(;sa.length;){Z=Aa=sa.pop();if(X.relative[Aa])Z=sa.pop();else Aa="";if(Z==null)Z=F;X.relative[Aa](ba,Z,Da)}}else ba=[]}ba||(ba=da);ba||O.error(Aa||u);if(o.call(ba)==="[object Array]")if(ya)if(F&&
F.nodeType===1)for(u=0;ba[u]!=null;u++){if(ba[u]&&(ba[u]===true||ba[u].nodeType===1&&O.contains(F,ba[u])))R.push(da[u])}else for(u=0;ba[u]!=null;u++)ba[u]&&ba[u].nodeType===1&&R.push(da[u]);else R.push.apply(R,ba);else va(ba,R);if(ra){O(ra,W,R,Q);O.uniqueSort(R)}return R};O.uniqueSort=function(u){if(za){r=B;u.sort(za);if(r)for(var F=1;F<u.length;F++)u[F]===u[F-1]&&u.splice(F--,1)}return u};O.matches=function(u,F){return O(u,null,null,F)};O.matchesSelector=function(u,F){return O(F,null,null,[u]).length>
0};O.find=function(u,F,R){var Q;if(!u)return[];for(var W=0,Z=X.order.length;W<Z;W++){var da,ba=X.order[W];if(da=X.leftMatch[ba].exec(u)){var ra=da[1];da.splice(1,1);if(ra.substr(ra.length-1)!=="\\"){da[1]=(da[1]||"").replace(I,"");Q=X.find[ba](da,F,R);if(Q!=null){u=u.replace(X.match[ba],"");break}}}}Q||(Q=typeof F.getElementsByTagName!=="undefined"?F.getElementsByTagName("*"):[]);return{set:Q,expr:u}};O.filter=function(u,F,R,Q){for(var W,Z,da=u,ba=[],ra=F,Aa=F&&F[0]&&O.isXML(F[0]);u&&F.length;){for(var ya in X.filter)if((W=
X.leftMatch[ya].exec(u))!=null&&W[2]){var Da,sa,G=X.filter[ya];sa=W[1];Z=false;W.splice(1,1);if(sa.substr(sa.length-1)!=="\\"){if(ra===ba)ba=[];if(X.preFilter[ya])if(W=X.preFilter[ya](W,ra,R,ba,Q,Aa)){if(W===true)continue}else Z=Da=true;if(W)for(var $=0;(sa=ra[$])!=null;$++)if(sa){Da=G(sa,W,$,ra);var fa=Q^!!Da;if(R&&Da!=null)if(fa)Z=true;else ra[$]=false;else if(fa){ba.push(sa);Z=true}}if(Da!==b){R||(ra=ba);u=u.replace(X.match[ya],"");if(!Z)return[];break}}}if(u===da)if(Z==null)O.error(u);else break;
da=u}return ra};O.error=function(u){throw"Syntax error, unrecognized expression: "+u;};var X=O.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,F){var R=typeof F==="string",Q=R&&!K.test(F);R=R&&!Q;if(Q)F=F.toLowerCase();Q=0;for(var W=u.length,Z;Q<W;Q++)if(Z=u[Q]){for(;(Z=Z.previousSibling)&&Z.nodeType!==
1;);u[Q]=R||Z&&Z.nodeName.toLowerCase()===F?Z||false:Z===F}R&&O.filter(F,u,true)},">":function(u,F){var R,Q=typeof F==="string",W=0,Z=u.length;if(Q&&!K.test(F))for(F=F.toLowerCase();W<Z;W++){if(R=u[W]){R=R.parentNode;u[W]=R.nodeName.toLowerCase()===F?R:false}}else{for(;W<Z;W++)if(R=u[W])u[W]=Q?R.parentNode:R.parentNode===F;Q&&O.filter(F,u,true)}},"":function(u,F,R){var Q,W=m++,Z=g;if(typeof F==="string"&&!K.test(F)){Q=F=F.toLowerCase();Z=c}Z("parentNode",F,W,u,Q,R)},"~":function(u,F,R){var Q,W=m++,
Z=g;if(typeof F==="string"&&!K.test(F)){Q=F=F.toLowerCase();Z=c}Z("previousSibling",F,W,u,Q,R)}},find:{ID:function(u,F,R){if(typeof F.getElementById!=="undefined"&&!R)return(u=F.getElementById(u[1]))&&u.parentNode?[u]:[]},NAME:function(u,F){if(typeof F.getElementsByName!=="undefined"){var R=[];F=F.getElementsByName(u[1]);for(var Q=0,W=F.length;Q<W;Q++)F[Q].getAttribute("name")===u[1]&&R.push(F[Q]);return R.length===0?null:R}},TAG:function(u,F){if(typeof F.getElementsByTagName!=="undefined")return F.getElementsByTagName(u[1])}},
preFilter:{CLASS:function(u,F,R,Q,W,Z){u=" "+u[1].replace(I,"")+" ";if(Z)return u;Z=0;for(var da;(da=F[Z])!=null;Z++)if(da)if(W^(da.className&&(" "+da.className+" ").replace(/[\t\n\r]/g," ").indexOf(u)>=0))R||Q.push(da);else if(R)F[Z]=false;return false},ID:function(u){return u[1].replace(I,"")},TAG:function(u){return u[1].replace(I,"").toLowerCase()},CHILD:function(u){if(u[1]==="nth"){u[2]||O.error(u[0]);u[2]=u[2].replace(/^\+|\s*/g,"");var F=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(u[2]==="even"&&"2n"||
u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=F[1]+(F[2]||1)-0;u[3]=F[3]-0}else u[2]&&O.error(u[0]);u[0]=m++;return u},ATTR:function(u,F,R,Q,W,Z){F=u[1]=u[1].replace(I,"");if(!Z&&X.attrMap[F])u[1]=X.attrMap[F];u[4]=(u[4]||u[5]||"").replace(I,"");if(u[2]==="~=")u[4]=" "+u[4]+" ";return u},PSEUDO:function(u,F,R,Q,W){if(u[1]==="not")if((k.exec(u[3])||"").length>1||/^\w/.test(u[3]))u[3]=O(u[3],null,null,F);else{u=O.filter(u[3],F,R,true^W);R||Q.push.apply(Q,u);return false}else if(X.match.POS.test(u[0])||
X.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,F,R){return!!O(R[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){var F=
u.getAttribute("type"),R=u.type;return u.nodeName.toLowerCase()==="input"&&"text"===R&&(F===R||F===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 F=u.nodeName.toLowerCase();return(F==="input"||
F==="button")&&"submit"===u.type},image:function(u){return u.nodeName.toLowerCase()==="input"&&"image"===u.type},reset:function(u){var F=u.nodeName.toLowerCase();return(F==="input"||F==="button")&&"reset"===u.type},button:function(u){var F=u.nodeName.toLowerCase();return F==="input"&&"button"===u.type||F==="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,F){return F===0},last:function(u,
F,R,Q){return F===Q.length-1},even:function(u,F){return F%2===0},odd:function(u,F){return F%2===1},lt:function(u,F,R){return F<R[3]-0},gt:function(u,F,R){return F>R[3]-0},nth:function(u,F,R){return R[3]-0===F},eq:function(u,F,R){return R[3]-0===F}},filter:{PSEUDO:function(u,F,R,Q){var W=F[1],Z=X.filters[W];if(Z)return Z(u,R,F,Q);else if(W==="contains")return(u.textContent||u.innerText||O.getText([u])||"").indexOf(F[3])>=0;else if(W==="not"){F=F[3];R=0;for(Q=F.length;R<Q;R++)if(F[R]===u)return false;
return true}else O.error(W)},CHILD:function(u,F){var R=F[1],Q=u;switch(R){case "only":case "first":for(;Q=Q.previousSibling;)if(Q.nodeType===1)return false;if(R==="first")return true;Q=u;case "last":for(;Q=Q.nextSibling;)if(Q.nodeType===1)return false;return true;case "nth":R=F[2];var W=F[3];if(R===1&&W===0)return true;F=F[0];var Z=u.parentNode;if(Z&&(Z.sizcache!==F||!u.nodeIndex)){var da=0;for(Q=Z.firstChild;Q;Q=Q.nextSibling)if(Q.nodeType===1)Q.nodeIndex=++da;Z.sizcache=F}u=u.nodeIndex-W;return R===
0?u===0:u%R===0&&u/R>=0}},ID:function(u,F){return u.nodeType===1&&u.getAttribute("id")===F},TAG:function(u,F){return F==="*"&&u.nodeType===1||u.nodeName.toLowerCase()===F},CLASS:function(u,F){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(F)>-1},ATTR:function(u,F){var R=F[1];u=X.attrHandle[R]?X.attrHandle[R](u):u[R]!=null?u[R]:u.getAttribute(R);R=u+"";var Q=F[2];F=F[4];return u==null?Q==="!=":Q==="="?R===F:Q==="*="?R.indexOf(F)>=0:Q==="~="?(" "+R+" ").indexOf(F)>=0:!F?R&&u!==false:
Q==="!="?R!==F:Q==="^="?R.indexOf(F)===0:Q==="$="?R.substr(R.length-F.length)===F:Q==="|="?R===F||R.substr(0,F.length+1)===F+"-":false},POS:function(u,F,R,Q){var W=X.setFilters[F[2]];if(W)return W(u,R,F,Q)}}},ia=X.match.POS,la=function(u,F){return"\\"+(F-0+1)};for(var oa in X.match){X.match[oa]=new RegExp(X.match[oa].source+/(?![^\[]*\])(?![^\(]*\))/.source);X.leftMatch[oa]=new RegExp(/(^(?:.|\r|\n)*?)/.source+X.match[oa].source.replace(/\\(\d+)/g,la))}var va=function(u,F){u=Array.prototype.slice.call(u,
0);if(F){F.push.apply(F,u);return F}return u};try{Array.prototype.slice.call(C.documentElement.childNodes,0)}catch(Ka){va=function(u,F){var R=0;F=F||[];if(o.call(u)==="[object Array]")Array.prototype.push.apply(F,u);else if(typeof u.length==="number")for(var Q=u.length;R<Q;R++)F.push(u[R]);else for(;u[R];R++)F.push(u[R]);return F}}var za,Fa;if(C.documentElement.compareDocumentPosition)za=function(u,F){if(u===F){r=true;return 0}if(!u.compareDocumentPosition||!F.compareDocumentPosition)return u.compareDocumentPosition?
-1:1;return u.compareDocumentPosition(F)&4?-1:1};else{za=function(u,F){if(u===F){r=true;return 0}else if(u.sourceIndex&&F.sourceIndex)return u.sourceIndex-F.sourceIndex;var R,Q,W=[],Z=[];R=u.parentNode;Q=F.parentNode;var da=R;if(R===Q)return Fa(u,F);else if(R){if(!Q)return 1}else return-1;for(;da;){W.unshift(da);da=da.parentNode}for(da=Q;da;){Z.unshift(da);da=da.parentNode}R=W.length;Q=Z.length;for(da=0;da<R&&da<Q;da++)if(W[da]!==Z[da])return Fa(W[da],Z[da]);return da===R?Fa(u,Z[da],-1):Fa(W[da],
F,1)};Fa=function(u,F,R){if(u===F)return R;for(u=u.nextSibling;u;){if(u===F)return-1;u=u.nextSibling}return 1}}O.getText=function(u){for(var F="",R,Q=0;u[Q];Q++){R=u[Q];if(R.nodeType===3||R.nodeType===4)F+=R.nodeValue;else if(R.nodeType!==8)F+=O.getText(R.childNodes)}return F};(function(){var u=C.createElement("div"),F="script"+(new Date).getTime(),R=C.documentElement;u.innerHTML="<a name='"+F+"'/>";R.insertBefore(u,R.firstChild);if(C.getElementById(F)){X.find.ID=function(Q,W,Z){if(typeof W.getElementById!==
"undefined"&&!Z)return(W=W.getElementById(Q[1]))?W.id===Q[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===Q[1]?[W]:b:[]};X.filter.ID=function(Q,W){var Z=typeof Q.getAttributeNode!=="undefined"&&Q.getAttributeNode("id");return Q.nodeType===1&&Z&&Z.nodeValue===W}}R.removeChild(u);R=u=null})();(function(){var u=C.createElement("div");u.appendChild(C.createComment(""));if(u.getElementsByTagName("*").length>0)X.find.TAG=function(F,R){R=R.getElementsByTagName(F[1]);if(F[1]===
"*"){F=[];for(var Q=0;R[Q];Q++)R[Q].nodeType===1&&F.push(R[Q]);R=F}return R};u.innerHTML="<a href='#'></a>";if(u.firstChild&&typeof u.firstChild.getAttribute!=="undefined"&&u.firstChild.getAttribute("href")!=="#")X.attrHandle.href=function(F){return F.getAttribute("href",2)};u=null})();C.querySelectorAll&&function(){var u=O,F=C.createElement("div");F.innerHTML="<p class='TEST'></p>";if(!(F.querySelectorAll&&F.querySelectorAll(".TEST").length===0)){O=function(Q,W,Z,da){W=W||C;if(!da&&!O.isXML(W)){var ba=
/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(Q);if(ba&&(W.nodeType===1||W.nodeType===9))if(ba[1])return va(W.getElementsByTagName(Q),Z);else if(ba[2]&&X.find.CLASS&&W.getElementsByClassName)return va(W.getElementsByClassName(ba[2]),Z);if(W.nodeType===9){if(Q==="body"&&W.body)return va([W.body],Z);else if(ba&&ba[3]){var ra=W.getElementById(ba[3]);if(ra&&ra.parentNode){if(ra.id===ba[3])return va([ra],Z)}else return va([],Z)}try{return va(W.querySelectorAll(Q),Z)}catch(Aa){}}else if(W.nodeType===1&&W.nodeName.toLowerCase()!==
"object"){ba=W;var ya=(ra=W.getAttribute("id"))||"__sizzle__",Da=W.parentNode,sa=/^\s*[+~]/.test(Q);if(ra)ya=ya.replace(/'/g,"\\$&");else W.setAttribute("id",ya);if(sa&&Da)W=W.parentNode;try{if(!sa||Da)return va(W.querySelectorAll("[id='"+ya+"'] "+Q),Z)}catch(G){}finally{ra||ba.removeAttribute("id")}}}return u(Q,W,Z,da)};for(var R in u)O[R]=u[R];F=null}}();(function(){var u=C.documentElement,F=u.matchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.msMatchesSelector;if(F){var R=!F.call(C.createElement("div"),
"div"),Q=false;try{F.call(C.documentElement,"[test!='']:sizzle")}catch(W){Q=true}O.matchesSelector=function(Z,da){da=da.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!O.isXML(Z))try{if(Q||!X.match.PSEUDO.test(da)&&!/!=/.test(da)){var ba=F.call(Z,da);if(ba||!R||Z.document&&Z.document.nodeType!==11)return ba}}catch(ra){}return O(da,null,null,[Z]).length>0}}})();(function(){var u=C.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){X.order.splice(1,0,"CLASS");X.find.CLASS=function(F,R,Q){if(typeof R.getElementsByClassName!=="undefined"&&!Q)return R.getElementsByClassName(F[1])};u=null}}})();O.contains=C.documentElement.contains?function(u,F){return u!==F&&(u.contains?u.contains(F):true)}:C.documentElement.compareDocumentPosition?function(u,F){return!!(u.compareDocumentPosition(F)&16)}:function(){return false};O.isXML=function(u){return(u=(u?u.ownerDocument||
u:0).documentElement)?u.nodeName!=="HTML":false};var Ha=function(u,F){var R,Q=[],W="";for(F=F.nodeType?[F]:F;R=X.match.PSEUDO.exec(u);){W+=R[0];u=u.replace(X.match.PSEUDO,"")}u=X.relative[u]?u+"*":u;R=0;for(var Z=F.length;R<Z;R++)O(u,F[R],Q);return O.filter(W,Q)};f.find=O;f.expr=O.selectors;f.expr[":"]=f.expr.filters;f.unique=O.uniqueSort;f.text=O.getText;f.isXMLDoc=O.isXML;f.contains=O.contains})();var Lb=/Until$/,Mb=/^(?:parents|prevUntil|prevAll)/,Nb=/,/,Eb=/^.[^:#\[\.,]*$/,Ob=Array.prototype.slice,
nb=f.expr.match.POS,Pb={children:true,contents:true,next:true,prev:true};f.fn.extend({find:function(c){var g=this,k,m;if(typeof c!=="string")return f(c).filter(function(){k=0;for(m=g.length;k<m;k++)if(f.contains(g[k],this))return true});var o=this.pushStack("","find",c),r,B,I;k=0;for(m=this.length;k<m;k++){r=o.length;f.find(c,this[k],o);if(k>0)for(B=r;B<o.length;B++)for(I=0;I<r;I++)if(o[I]===o[B]){o.splice(B--,1);break}}return o},has:function(c){var g=f(c);return this.filter(function(){for(var k=
0,m=g.length;k<m;k++)if(f.contains(this,g[k]))return true})},not:function(c){return this.pushStack(L(this,c,false),"not",c)},filter:function(c){return this.pushStack(L(this,c,true),"filter",c)},is:function(c){return!!c&&(typeof c==="string"?f.filter(c,this).length>0:this.filter(c).length>0)},closest:function(c,g){var k=[],m,o,r=this[0];if(f.isArray(c)){var B,I={},K=1;if(r&&c.length){m=0;for(o=c.length;m<o;m++){B=c[m];I[B]||(I[B]=nb.test(B)?f(B,g||this.context):B)}for(;r&&r.ownerDocument&&r!==g;){for(B in I){c=
I[B];if(c.jquery?c.index(r)>-1:f(r).is(c))k.push({selector:B,elem:r,level:K})}r=r.parentNode;K++}}return k}B=nb.test(c)||typeof c!=="string"?f(c,g||this.context):0;m=0;for(o=this.length;m<o;m++)for(r=this[m];r;)if(B?B.index(r)>-1:f.find.matchesSelector(r,c)){k.push(r);break}else{r=r.parentNode;if(!r||!r.ownerDocument||r===g||r.nodeType===11)break}k=k.length>1?f.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 f.inArray(this[0],f(c));return f.inArray(c.jquery?c[0]:c,this)},add:function(c,g){c=typeof c==="string"?f(c,g):f.makeArray(c&&c.nodeType?[c]:c);g=f.merge(this.get(),c);return this.pushStack(H(c[0])||H(g[0])?g:f.unique(g))},andSelf:function(){return this.add(this.prevObject)}});f.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return f.dir(c,"parentNode")},parentsUntil:function(c,g,k){return f.dir(c,"parentNode",k)},next:function(c){return f.nth(c,
2,"nextSibling")},prev:function(c){return f.nth(c,2,"previousSibling")},nextAll:function(c){return f.dir(c,"nextSibling")},prevAll:function(c){return f.dir(c,"previousSibling")},nextUntil:function(c,g,k){return f.dir(c,"nextSibling",k)},prevUntil:function(c,g,k){return f.dir(c,"previousSibling",k)},siblings:function(c){return f.sibling(c.parentNode.firstChild,c)},children:function(c){return f.sibling(c.firstChild)},contents:function(c){return f.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:
f.makeArray(c.childNodes)}},function(c,g){f.fn[c]=function(k,m){var o=f.map(this,g,k),r=Ob.call(arguments);Lb.test(c)||(m=k);if(m&&typeof m==="string")o=f.filter(m,o);o=this.length>1&&!Pb[c]?f.unique(o):o;if((this.length>1||Nb.test(m))&&Mb.test(c))o=o.reverse();return this.pushStack(o,c,r.join(","))}});f.extend({filter:function(c,g,k){if(k)c=":not("+c+")";return g.length===1?f.find.matchesSelector(g[0],c)?[g[0]]:[]:f.find.matches(c,g)},dir:function(c,g,k){var m=[];for(c=c[g];c&&c.nodeType!==9&&(k===
b||c.nodeType!==1||!f(c).is(k));){c.nodeType===1&&m.push(c);c=c[g]}return m},nth:function(c,g,k){g=g||1;for(var m=0;c;c=c[k])if(c.nodeType===1&&++m===g)break;return c},sibling:function(c,g){for(var k=[];c;c=c.nextSibling)c.nodeType===1&&c!==g&&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(!f.support.htmlSerialize)Ga._default=
[1,"div<div>","</div>"];f.fn.extend({text:function(c){if(f.isFunction(c))return this.each(function(g){var k=f(this);k.text(c.call(this,g,k.text()))});if(typeof c!=="object"&&c!==b)return this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(c));return f.text(this)},wrapAll:function(c){if(f.isFunction(c))return this.each(function(k){f(this).wrapAll(c.call(this,k))});if(this[0]){var g=f(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&g.insertBefore(this[0]);g.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(f.isFunction(c))return this.each(function(g){f(this).wrapInner(c.call(this,g))});return this.each(function(){var g=f(this),k=g.contents();k.length?k.wrapAll(c):g.append(c)})},wrap:function(c){return this.each(function(){f(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(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(g){this.parentNode.insertBefore(g,this)});else if(arguments.length){var c=f(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(g){this.parentNode.insertBefore(g,this.nextSibling)});else if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,f(arguments[0]).toArray());return c}},remove:function(c,g){for(var k=0,m;(m=this[k])!=null;k++)if(!c||f.filter(c,[m]).length){if(!g&&m.nodeType===1){f.cleanData(m.getElementsByTagName("*"));f.cleanData([m])}m.parentNode&&m.parentNode.removeChild(m)}return this},empty:function(){for(var c=0,g;(g=this[c])!=null;c++)for(g.nodeType===1&&f.cleanData(g.getElementsByTagName("*"));g.firstChild;)g.removeChild(g.firstChild);
return this},clone:function(c,g){c=c==null?false:c;g=g==null?c:g;return this.map(function(){return f.clone(this,c,g)})},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)&&(f.support.leadingWhitespace||!cb.test(c))&&!Ga[(pb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(ob,"<$1></$2>");try{for(var g=0,k=this.length;g<k;g++)if(this[g].nodeType===1){f.cleanData(this[g].getElementsByTagName("*"));this[g].innerHTML=
c}}catch(m){this.empty().append(c)}}else f.isFunction(c)?this.each(function(o){var r=f(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(f.isFunction(c))return this.each(function(g){var k=f(this),m=k.html();k.replaceWith(c.call(this,g,m))});if(typeof c!=="string")c=f(c).detach();return this.each(function(){var g=this.nextSibling,k=this.parentNode;f(this).remove();g?f(g).before(c):f(k).append(c)})}else return this.length?
this.pushStack(f(f.isFunction(c)?c():c),"replaceWith",c):this},detach:function(c){return this.remove(c,true)},domManip:function(c,g,k){var m,o,r,B=c[0],I=[];if(!f.support.checkClone&&arguments.length===3&&typeof B==="string"&&rb.test(B))return this.each(function(){f(this).domManip(c,g,k,true)});if(f.isFunction(B))return this.each(function(ia){var la=f(this);c[0]=B.call(this,ia,g?la.html():b);la.domManip(c,g,k)});if(this[0]){m=B&&B.parentNode;m=f.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===
this.length?{fragment:m}:f.buildFragment(c,this,I);r=m.fragment;if(o=r.childNodes.length===1?(r=r.firstChild):r.firstChild){g=g&&f.nodeName(o,"tr");for(var K=0,O=this.length,X=O-1;K<O;K++)k.call(g?A(this[K],o):this[K],m.cacheable||O>1&&K<X?f.clone(r,true,true):r)}I.length&&f.each(I,N)}return this}});f.buildFragment=function(c,g,k){var m,o,r,B;if(g&&g[0])B=g[0].ownerDocument||g[0];B.createDocumentFragment||(B=C);if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&B===C&&c[0].charAt(0)==="<"&&
!qb.test(c[0])&&(f.support.checkClone||!rb.test(c[0]))){o=true;if((r=f.fragments[c[0]])&&r!==1)m=r}if(!m){m=B.createDocumentFragment();f.clean(c,B,m,k)}if(o)f.fragments[c[0]]=r?m:1;return{fragment:m,cacheable:o}};f.fragments={};f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,g){f.fn[c]=function(k){var m=[];k=f(k);var o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&k.length===1){k[g](this[0]);
return this}else{o=0;for(var r=k.length;o<r;o++){var B=(o>0?this.clone(true):this).get();f(k[o])[g](B);m=m.concat(B)}return this.pushStack(m,c,k.selector)}}});f.extend({clone:function(c,g,k){var m=c.cloneNode(true),o,r,B;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!f.isXMLDoc(c)){D(c,m);o=J(c);r=J(m);for(B=0;o[B];++B)r[B]&&D(o[B],r[B])}if(g){s(c,m);if(k){o=J(c);r=J(m);for(B=0;o[B];++B)s(o[B],r[B])}}return m},clean:function(c,g,k,m){g=g||C;if(typeof g.createElement===
"undefined")g=g.ownerDocument||g[0]&&g[0].ownerDocument||C;for(var o=[],r,B=0,I;(I=c[B])!=null;B++){if(typeof I==="number")I+="";if(I){if(typeof I==="string")if(Sb.test(I)){I=I.replace(ob,"<$1></$2>");r=(pb.exec(I)||["",""])[1].toLowerCase();var K=Ga[r]||Ga._default,O=K[0],X=g.createElement("div");for(X.innerHTML=K[1]+I+K[2];O--;)X=X.lastChild;if(!f.support.tbody){O=Rb.test(I);K=r==="table"&&!O?X.firstChild&&X.firstChild.childNodes:K[1]==="<table>"&&!O?X.childNodes:[];for(r=K.length-1;r>=0;--r)f.nodeName(K[r],
"tbody")&&!K[r].childNodes.length&&K[r].parentNode.removeChild(K[r])}!f.support.leadingWhitespace&&cb.test(I)&&X.insertBefore(g.createTextNode(cb.exec(I)[0]),X.firstChild);I=X.childNodes}else I=g.createTextNode(I);var ia;if(!f.support.appendChecked)if(I[0]&&typeof(ia=I.length)==="number")for(r=0;r<ia;r++)y(I[r]);else y(I);if(I.nodeType)o.push(I);else o=f.merge(o,I)}}if(k){c=function(la){return!la.type||Tb.test(la.type)};for(B=0;o[B];B++)if(m&&f.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){g=f.grep(o[B].getElementsByTagName("script"),c);o.splice.apply(o,[B+1,0].concat(g))}k.appendChild(o[B])}}return o},cleanData:function(c){for(var g,k,m=f.cache,o=f.expando,r=f.event.special,B=f.support.deleteExpando,I=0,K;(K=c[I])!=null;I++)if(!(K.nodeName&&f.noData[K.nodeName.toLowerCase()]))if(k=K[f.expando]){if((g=m[k]&&m[k][o])&&g.events){for(var O in g.events)r[O]?f.event.remove(K,O):f.removeEvent(K,
O,g.handle);if(g.handle)g.handle.elem=null}if(B)delete K[f.expando];else K.removeAttribute&&K.removeAttribute(f.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;f.fn.css=function(c,g){if(arguments.length===2&&g===b)return this;return f.access(this,c,g,true,function(k,m,o){return o!==b?f.style(k,
m,o):f.css(k,m)})};f.extend({cssHooks:{opacity:{get:function(c,g){if(g){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":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(c,g,k,m){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var o,r=f.camelCase(g),B=c.style,I=f.cssHooks[r];g=f.cssProps[r]||r;if(k!==b){m=typeof k;if(m===
"string"&&(o=Xb.exec(k))){k=+(o[1]+1)*+o[2]+parseFloat(f.css(c,g));m="number"}if(!(k==null||m==="number"&&isNaN(k))){if(m==="number"&&!f.cssNumber[r])k+="px";if(!I||!("set"in I)||(k=I.set(c,k))!==b)try{B[g]=k}catch(K){}}}else{if(I&&"get"in I&&(o=I.get(c,false,m))!==b)return o;return B[g]}}},css:function(c,g,k){var m,o;g=f.camelCase(g);o=f.cssHooks[g];g=f.cssProps[g]||g;if(g==="cssFloat")g="float";if(o&&"get"in o&&(m=o.get(c,true,k))!==b)return m;else if(Pa)return Pa(c,g)},swap:function(c,g,k){var m=
{};for(var o in g){m[o]=c.style[o];c.style[o]=g[o]}k.call(c);for(o in g)c.style[o]=m[o]}});f.curCSS=f.css;f.each(["height","width"],function(c,g){f.cssHooks[g]={get:function(k,m,o){var r;if(m){if(k.offsetWidth!==0)return M(k,g,o);else f.swap(k,Yb,function(){r=M(k,g,o)});return r}},set:function(k,m){if(sb.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!f.support.opacity)f.cssHooks.opacity={get:function(c,g){return Ub.test((g&&c.currentStyle?c.currentStyle.filter:c.style.filter)||
"")?parseFloat(RegExp.$1)/100+"":g?"1":""},set:function(c,g){var k=c.style;c=c.currentStyle;var m=f.isNaN(g)?"":"alpha(opacity="+g*100+")",o=c&&c.filter||k.filter||"";k.zoom=1;if(g>=1&&f.trim(o.replace(db,""))===""){k.removeAttribute("filter");if(c&&!c.filter)return}k.filter=db.test(o)?o.replace(db,m):o+" "+m}};f(function(){if(!f.support.reliableMarginRight)f.cssHooks.marginRight={get:function(c,g){var k;f.swap(c,{display:"inline-block"},function(){k=g?Pa(c,"margin-right","marginRight"):c.style.marginRight});
return k}}});if(C.defaultView&&C.defaultView.getComputedStyle)tb=function(c,g){var k,m;g=g.replace(Vb,"-$1").toLowerCase();if(!(m=c.ownerDocument.defaultView))return b;if(m=m.getComputedStyle(c,null)){k=m.getPropertyValue(g);if(k===""&&!f.contains(c.ownerDocument.documentElement,c))k=f.style(c,g)}return k};if(C.documentElement.currentStyle)ub=function(c,g){var k,m=c.currentStyle&&c.currentStyle[g],o=c.runtimeStyle&&c.runtimeStyle[g],r=c.style;if(!sb.test(m)&&Wb.test(m)){k=r.left;if(o)c.runtimeStyle.left=
c.currentStyle.left;r.left=g==="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(f.expr&&f.expr.filters){f.expr.filters.hidden=function(c){var g=c.offsetHeight;return c.offsetWidth===0&&g===0||!f.support.reliableHiddenOffsets&&(c.style.display||f.css(c,"display"))==="none"};f.expr.filters.visible=function(c){return!f.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=f.fn.load,Ya={},zb={},Na,Oa,Ab=["*/"]+["*"];try{Na=S.href}catch(mc){Na=C.createElement("a");Na.href="";Na=Na.href}Oa=xb.exec(Na.toLowerCase())||[];f.fn.extend({load:function(c,g,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(g)if(f.isFunction(g)){k=g;g=b}else if(typeof g==="object"){g=f.param(g,f.ajaxSettings.traditional);m="POST"}var r=this;f.ajax({url:c,type:m,dataType:"html",data:g,complete:function(B,I,K){K=B.responseText;if(B.isResolved()){B.done(function(O){K=O});r.html(o?f("<div>").append(K.replace(ec,"")).find(o):K)}k&&r.each(k,[K,I,B])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||fc.test(this.nodeName)||bc.test(this.type))}).map(function(c,g){c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(k){return{name:g.name,value:k.replace(vb,"\r\n")}}):{name:g.name,value:c.replace(vb,"\r\n")}}).get()}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,g){f.fn[g]=function(k){return this.bind(g,k)}});f.each(["get","post"],function(c,
g){f[g]=function(k,m,o,r){if(f.isFunction(m)){r=r||o;o=m;m=b}return f.ajax({type:g,url:k,data:m,success:o,dataType:r})}});f.extend({getScript:function(c,g){return f.get(c,b,g,"script")},getJSON:function(c,g,k){return f.get(c,g,k,"json")},ajaxSetup:function(c,g){if(g)T(c,f.ajaxSettings);else{g=c;c=f.ajaxSettings}T(c,g);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":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:q(Ya),ajaxTransport:q(zb),ajax:function(c,g){function k(Q,W,Z,da){if(za!==2){za=2;Ka&&clearTimeout(Ka);
va=b;la=da||"";u.readyState=Q>0?4:0;var ba,ra,Aa;da=W;Z=Z?Y(m,u,Z):b;var ya;if(Q>=200&&Q<300||Q===304){if(m.ifModified){if(ya=u.getResponseHeader("Last-Modified"))f.lastModified[O]=ya;if(ya=u.getResponseHeader("Etag"))f.etag[O]=ya}if(Q===304){da="notmodified";ba=true}else try{ra=ha(m,Z);da="success";ba=true}catch(Da){da="parsererror";Aa=Da}}else{Aa=da;if(!da||Q){da="error";if(Q<0)Q=0}}u.status=Q;u.statusText=""+(W||da);ba?B.resolveWith(o,[ra,da,u]):B.rejectWith(o,[u,da,Aa]);u.statusCode(K);K=b;if(Fa)r.trigger("ajax"+
(ba?"Success":"Error"),[u,m,ba?ra:Aa]);I.resolveWith(o,[u,da]);if(Fa){r.trigger("ajaxComplete",[u,m]);--f.active||f.event.trigger("ajaxStop")}}}if(typeof c==="object"){g=c;c=b}g=g||{};var m=f.ajaxSetup({},g),o=m.context||m,r=o!==m&&(o.nodeType||o instanceof f)?f(o):f.event,B=f.Deferred(),I=f._Deferred(),K=m.statusCode||{},O,X={},ia={},la,oa,va,Ka,za=0,Fa,Ha,u={readyState:0,setRequestHeader:function(Q,W){if(!za){var Z=Q.toLowerCase();Q=ia[Z]=ia[Z]||Q;X[Q]=W}return this},getAllResponseHeaders:function(){return za===
2?la:null},getResponseHeader:function(Q){var W;if(za===2){if(!oa)for(oa={};W=ac.exec(la);)oa[W[1].toLowerCase()]=W[2];W=oa[Q.toLowerCase()]}return W===b?null:W},overrideMimeType:function(Q){if(!za)m.mimeType=Q;return this},abort:function(Q){Q=Q||"abort";va&&va.abort(Q);k(0,Q);return this}};B.promise(u);u.success=u.done;u.error=u.fail;u.complete=I.done;u.statusCode=function(Q){if(Q){var W;if(za<2)for(W in Q)K[W]=[K[W],Q[W]];else{W=Q[u.status];u.then(W,W)}}return this};m.url=((c||m.url)+"").replace($b,
"").replace(dc,Oa[1]+"//");m.dataTypes=f.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=f.param(m.data,m.traditional);v(Ya,m,g,u);if(za===2)return false;Fa=m.global;m.type=m.type.toUpperCase();m.hasContent=!cc.test(m.type);Fa&&f.active++===0&&f.event.trigger("ajaxStart");if(!m.hasContent){if(m.data){m.url+=
(wb.test(m.url)?"&":"?")+m.data;delete m.data}O=m.url;if(m.cache===false){c=f.now();var F=m.url.replace(gc,"$1_="+c);m.url=F+(F===m.url?(wb.test(m.url)?"&":"?")+"_="+c:"")}}if(m.data&&m.hasContent&&m.contentType!==false||g.contentType)u.setRequestHeader("Content-Type",m.contentType);if(m.ifModified){O=O||m.url;f.lastModified[O]&&u.setRequestHeader("If-Modified-Since",f.lastModified[O]);f.etag[O]&&u.setRequestHeader("If-None-Match",f.etag[O])}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||za===2)){u.abort();return false}for(Ha in{success:1,error:1,complete:1})u[Ha](m[Ha]);if(va=v(zb,m,g,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{za=1;va.send(X,k)}catch(R){za<2?k(-1,R):f.error(R)}}else k(-1,"No Transport");
return u},param:function(c,g){var k=[],m=function(r,B){B=f.isFunction(B)?B():B;k[k.length]=encodeURIComponent(r)+"="+encodeURIComponent(B)};if(g===b)g=f.ajaxSettings.traditional;if(f.isArray(c)||c.jquery&&!f.isPlainObject(c))f.each(c,function(){m(this.name,this.value)});else for(var o in c)ca(o,c[o],g,m);return k.join("&").replace(Zb,"+")}});f.extend({active:0,lastModified:{},etag:{}});var hc=f.now(),Va=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+
hc++}});f.ajaxPrefilter("json jsonp",function(c,g,k){g=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==false&&(Va.test(c.url)||g&&Va.test(c.data))){var m,o=c.jsonpCallback=f.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,r=a[o],B=c.url,I=c.data,K="$1"+o+"$2";if(c.jsonp!==false){B=B.replace(Va,K);if(c.url===B){if(g)I=I.replace(Va,K);if(c.data===I)B+=(/\?/.test(B)?"&":"?")+c.jsonp+"="+o}}c.url=B;c.data=I;a[o]=function(O){m=
[O]};k.always(function(){a[o]=r;m&&f.isFunction(r)&&a[o](m[0])});c.converters["script json"]=function(){m||f.error(o+" was not called");return m[0]};c.dataTypes[0]="json";return"script"}});f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){f.globalEval(c);return c}}});f.ajaxPrefilter("script",function(c){if(c.cache===b)c.cache=false;if(c.crossDomain){c.type=
"GET";c.global=false}});f.ajaxTransport("script",function(c){if(c.crossDomain){var g,k=C.head||C.getElementsByTagName("head")[0]||C.documentElement;return{send:function(m,o){g=C.createElement("script");g.async="async";if(c.scriptCharset)g.charset=c.scriptCharset;g.src=c.url;g.onload=g.onreadystatechange=function(r,B){if(B||!g.readyState||/loaded|complete/.test(g.readyState)){g.onload=g.onreadystatechange=null;k&&g.parentNode&&k.removeChild(g);g=b;B||o(200,"success")}};k.insertBefore(g,k.firstChild)},
abort:function(){g&&g.onload(0,1)}}}});var eb=a.ActiveXObject?function(){for(var c in Ra)Ra[c](0,1)}:false,ic=0,Ra;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ma()||pa()}:ma;(function(c){f.extend(f.support,{ajax:!!c,cors:!!c&&"withCredentials"in c})})(f.ajaxSettings.xhr());f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var g;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(I){}o.send(c.hasContent&&c.data||null);g=function(K,O){var X,ia,la,oa,va;try{if(g&&(O||o.readyState===4)){g=b;if(r){o.onreadystatechange=f.noop;eb&&delete Ra[r]}if(O)o.readyState!==4&&o.abort();else{X=o.status;la=o.getAllResponseHeaders();
oa={};if((va=o.responseXML)&&va.documentElement)oa.xml=va;oa.text=o.responseText;try{ia=o.statusText}catch(Ka){ia=""}if(!X&&c.isLocal&&!c.crossDomain)X=oa.text?200:404;else if(X===1223)X=204}}}catch(za){O||m(-1,za)}oa&&m(X,ia,oa,la)};if(!c.async||o.readyState===4)g();else{r=++ic;if(eb){if(!Ra){Ra={};f(a).unload(eb)}Ra[r]=g}o.onreadystatechange=g}},abort:function(){g&&g(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;f.fn.extend({show:function(c,g,k){if(c||c===0)return this.animate(na("show",3),c,g,k);else{k=0;for(var m=this.length;k<m;k++){c=this[k];if(c.style){g=c.style.display;if(!f._data(c,"olddisplay")&&g==="none")g=c.style.display="";g===""&&f.css(c,"display")==="none"&&f._data(c,"olddisplay",w(c.nodeName))}}for(k=0;k<m;k++){c=this[k];if(c.style){g=c.style.display;if(g===""||g==="none")c.style.display=
f._data(c,"olddisplay")||""}}return this}},hide:function(c,g,k){if(c||c===0)return this.animate(na("hide",3),c,g,k);else{c=0;for(g=this.length;c<g;c++)if(this[c].style){k=f.css(this[c],"display");k!=="none"&&!f._data(this[c],"olddisplay")&&f._data(this[c],"olddisplay",k)}for(c=0;c<g;c++)if(this[c].style)this[c].style.display="none";return this}},_toggle:f.fn.toggle,toggle:function(c,g,k){var m=typeof c==="boolean";if(f.isFunction(c)&&f.isFunction(g))this._toggle.apply(this,arguments);else c==null||
m?this.each(function(){var o=m?c:f(this).is(":hidden");f(this)[o?"show":"hide"]()}):this.animate(na("toggle",3),c,g,k);return this},fadeTo:function(c,g,k,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:g},c,k,m)},animate:function(c,g,k,m){var o=f.speed(g,k,m);if(f.isEmptyObject(c))return this.each(o.complete,[false]);c=f.extend({},c);return this[o.queue===false?"each":"queue"](function(){o.queue===false&&f._mark(this);var r=f.extend({},o),B=this.nodeType===1,I=B&&f(this).is(":hidden"),
K,O,X,ia,la;r.animatedProperties={};for(X in c){K=f.camelCase(X);if(X!==K){c[K]=c[X];delete c[X]}O=c[K];if(f.isArray(O)){r.animatedProperties[K]=O[1];O=c[K]=O[0]}else r.animatedProperties[K]=r.specialEasing&&r.specialEasing[K]||r.easing||"swing";if(O==="hide"&&I||O==="show"&&!I)return r.complete.call(this);if(B&&(K==="height"||K==="width")){r.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(f.css(this,"display")==="inline"&&f.css(this,"float")==="none")if(f.support.inlineBlockNeedsLayout){O=
w(this.nodeName);if(O==="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(X in c){B=new f.fx(this,r,X);O=c[X];if(jc.test(O))B[O==="toggle"?I?"show":"hide":O]();else{K=kc.exec(O);ia=B.cur();if(K){O=parseFloat(K[2]);la=K[3]||(f.cssNumber[X]?"":"px");if(la!=="px"){f.style(this,X,(O||1)+la);ia=(O||1)/B.cur()*ia;f.style(this,X,ia+la)}if(K[1])O=(K[1]==="-="?-1:1)*O+ia;
B.custom(ia,O,la)}else B.custom(ia,O,"")}}return true})},stop:function(c,g){c&&this.queue([]);this.each(function(){var k=f.timers,m=k.length;for(g||f._unmark(true,this);m--;)if(k[m].elem===this){g&&k[m](true);k.splice(m,1)}});g||this.dequeue();return this}});f.each({slideDown:na("show",1),slideUp:na("hide",1),slideToggle:na("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,g){f.fn[c]=function(k,m,o){return this.animate(g,k,m,o)}});f.extend({speed:function(c,
g,k){var m=c&&typeof c==="object"?f.extend({},c):{complete:k||!k&&g||f.isFunction(c)&&c,duration:c,easing:k&&g||g&&!f.isFunction(g)&&g};m.duration=f.fx.off?0:typeof m.duration==="number"?m.duration:m.duration in f.fx.speeds?f.fx.speeds[m.duration]:f.fx.speeds._default;m.old=m.complete;m.complete=function(o){f.isFunction(m.old)&&m.old.call(this);if(m.queue!==false)f.dequeue(this);else o!==false&&f._unmark(this)};return m},easing:{linear:function(c,g,k,m){return k+m*c},swing:function(c,g,k,m){return(-Math.cos(c*
Math.PI)/2+0.5)*m+k}},timers:[],fx:function(c,g,k){this.options=g;this.elem=c;this.prop=k;g.orig=g.orig||{}}});f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(f.fx.step[this.prop]||f.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,g=f.css(this.elem,this.prop);return isNaN(c=parseFloat(g))?!g||g==="auto"?0:g:c},custom:function(c,g,k){function m(B){return o.step(B)}
var o=this,r=f.fx;this.startTime=Ta||ea();this.start=c;this.end=g;this.unit=k||this.unit||(f.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;m.elem=this.elem;if(m()&&f.timers.push(m)&&!Wa)Wa=setInterval(r.tick,r.interval)},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);
this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var g=Ta||ea(),k=true,m=this.elem,o=this.options,r;if(c||g>=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&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(I,K){m.style["overflow"+K]=o.overflow[I]});o.hide&&f(m).hide();if(o.hide||o.show)for(var B in o.animatedProperties)f.style(m,
B,o.orig[B]);o.complete.call(m)}return false}else{if(o.duration==Infinity)this.now=g;else{c=g-this.startTime;this.state=c/o.duration;this.pos=f.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}};f.extend(f.fx,{tick:function(){for(var c=f.timers,g=0;g<c.length;++g)c[g]()||c.splice(g--,1);c.length||f.fx.stop()},interval:13,stop:function(){clearInterval(Wa);Wa=null},speeds:{slow:600,fast:200,_default:400},
step:{opacity:function(c){f.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(f.expr&&f.expr.filters)f.expr.filters.animated=function(c){return f.grep(f.timers,function(g){return c===g.elem}).length};var lc=/^t(?:able|d|h)$/i,Bb=/^(?:body|html)$/i;f.fn.offset="getBoundingClientRect"in C.documentElement?function(c){var g=this[0],k;
if(c)return this.each(function(B){f.offset.setOffset(this,c,B)});if(!g||!g.ownerDocument)return null;if(g===g.ownerDocument.body)return f.offset.bodyOffset(g);try{k=g.getBoundingClientRect()}catch(m){}var o=g.ownerDocument,r=o.documentElement;if(!k||!f.contains(r,g))return k?{top:k.top,left:k.left}:{top:0,left:0};g=o.body;o=E(o);return{top:k.top+(o.pageYOffset||f.support.boxModel&&r.scrollTop||g.scrollTop)-(r.clientTop||g.clientTop||0),left:k.left+(o.pageXOffset||f.support.boxModel&&r.scrollLeft||
g.scrollLeft)-(r.clientLeft||g.clientLeft||0)}}:function(c){var g=this[0];if(c)return this.each(function(X){f.offset.setOffset(this,c,X)});if(!g||!g.ownerDocument)return null;if(g===g.ownerDocument.body)return f.offset.bodyOffset(g);f.offset.initialize();var k,m=g.offsetParent,o=g,r=g.ownerDocument,B=r.documentElement,I=r.body;k=(r=r.defaultView)?r.getComputedStyle(g,null):g.currentStyle;for(var K=g.offsetTop,O=g.offsetLeft;(g=g.parentNode)&&g!==I&&g!==B;){if(f.offset.supportsFixedPosition&&k.position===
"fixed")break;k=r?r.getComputedStyle(g,null):g.currentStyle;K-=g.scrollTop;O-=g.scrollLeft;if(g===m){K+=g.offsetTop;O+=g.offsetLeft;if(f.offset.doesNotAddBorder&&!(f.offset.doesAddBorderForTableAndCells&&lc.test(g.nodeName))){K+=parseFloat(k.borderTopWidth)||0;O+=parseFloat(k.borderLeftWidth)||0}o=m;m=g.offsetParent}if(f.offset.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){K+=parseFloat(k.borderTopWidth)||0;O+=parseFloat(k.borderLeftWidth)||0}k=k}if(k.position==="relative"||k.position===
"static"){K+=I.offsetTop;O+=I.offsetLeft}if(f.offset.supportsFixedPosition&&k.position==="fixed"){K+=Math.max(B.scrollTop,I.scrollTop);O+=Math.max(B.scrollLeft,I.scrollLeft)}return{top:K,left:O}};f.offset={initialize:function(){var c=C.body,g=C.createElement("div"),k,m,o,r=parseFloat(f.css(c,"marginTop"))||0;f.extend(g.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});g.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(g,c.firstChild);k=g.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(g);
f.offset.initialize=f.noop},bodyOffset:function(c){var g=c.offsetTop,k=c.offsetLeft;f.offset.initialize();if(f.offset.doesNotIncludeMarginInBodyOffset){g+=parseFloat(f.css(c,"marginTop"))||0;k+=parseFloat(f.css(c,"marginLeft"))||0}return{top:g,left:k}},setOffset:function(c,g,k){var m=f.css(c,"position");if(m==="static")c.style.position="relative";var o=f(c),r=o.offset(),B=f.css(c,"top"),I=f.css(c,"left"),K={},O={};if((m==="absolute"||m==="fixed")&&f.inArray("auto",[B,I])>-1){O=o.position();m=O.top;
I=O.left}else{m=parseFloat(B)||0;I=parseFloat(I)||0}if(f.isFunction(g))g=g.call(c,k,r);if(g.top!=null)K.top=g.top-r.top+m;if(g.left!=null)K.left=g.left-r.left+I;"using"in g?g.using.call(c,K):o.css(K)}};f.fn.extend({position:function(){if(!this[0])return null;var c=this[0],g=this.offsetParent(),k=this.offset(),m=Bb.test(g[0].nodeName)?{top:0,left:0}:g.offset();k.top-=parseFloat(f.css(c,"marginTop"))||0;k.left-=parseFloat(f.css(c,"marginLeft"))||0;m.top+=parseFloat(f.css(g[0],"borderTopWidth"))||0;
m.left+=parseFloat(f.css(g[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||C.body;c&&!Bb.test(c.nodeName)&&f.css(c,"position")==="static";)c=c.offsetParent;return c})}});f.each(["Left","Top"],function(c,g){var k="scroll"+g;f.fn[k]=function(m){var o,r;if(m===b){o=this[0];if(!o)return null;return(r=E(o))?"pageXOffset"in r?r[c?"pageYOffset":"pageXOffset"]:f.support.boxModel&&r.document.documentElement[k]||
r.document.body[k]:o[k]}return this.each(function(){if(r=E(this))r.scrollTo(!c?m:f(r).scrollLeft(),c?m:f(r).scrollTop());else this[k]=m})}});f.each(["Height","Width"],function(c,g){var k=g.toLowerCase();f.fn["inner"+g]=function(){var m=this[0];return m&&m.style?parseFloat(f.css(m,k,"padding")):null};f.fn["outer"+g]=function(m){var o=this[0];return o&&o.style?parseFloat(f.css(o,k,m?"margin":"border")):null};f.fn[k]=function(m){var o=this[0];if(!o)return m==null?null:this;if(f.isFunction(m))return this.each(function(I){var K=
f(this);K[k](m.call(this,I,K[k]()))});if(f.isWindow(o)){var r=o.document.documentElement["client"+g],B=o.document.body;return o.document.compatMode==="CSS1Compat"&&r||B&&B["client"+g]||r}else if(o.nodeType===9)return Math.max(o.documentElement["client"+g],o.body["scroll"+g],o.documentElement["scroll"+g],o.body["offset"+g],o.documentElement["offset"+g]);else if(m===b){o=f.css(o,k);r=parseFloat(o);return f.isNaN(r)?o:r}else return this.css(k,typeof m==="string"?m:m+"px")}});a.jQuery=a.$=f})(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(){function a(w,E,C){if(w===E)return w!==0||1/w==1/E;if(w==null||E==null)return w===E;if(w._chain)w=w._wrapped;if(E._chain)E=E._wrapped;if(w.isEqual&&v.isFunction(w.isEqual))return w.isEqual(E);if(E.isEqual&&v.isFunction(E.isEqual))return E.isEqual(w);var U=x.call(w);if(U!=x.call(E))return false;switch(U){case "[object String]":return w==String(E);case "[object Number]":return w!=+w?E!=+E:w==0?1/w==1/E:w==+E;case "[object Date]":case "[object Boolean]":return+w==+E;case "[object RegExp]":return w.source==
E.source&&w.global==E.global&&w.multiline==E.multiline&&w.ignoreCase==E.ignoreCase}if(typeof w!="object"||typeof E!="object")return false;for(var S=C.length;S--;)if(C[S]==w)return true;C.push(w);S=0;var f=true;if(U=="[object Array]"){S=w.length;if(f=S==E.length)for(;S--;)if(!(f=S in w==S in E&&a(w[S],E[S],C)))break}else{if("constructor"in w!="constructor"in E||w.constructor!=E.constructor)return false;for(var P in w)if(v.has(w,P)){S++;if(!(f=v.has(E,P)&&a(w[P],E[P],C)))break}if(f){for(P in E)if(v.has(E,
P)&&!S--)break;f=!S}}C.pop();return f}var b=this,d=b._,e={},h=Array.prototype,j=Object.prototype,l=h.slice,p=h.unshift,x=j.toString,z=j.hasOwnProperty,H=h.forEach,L=h.map,A=h.reduce,s=h.reduceRight,D=h.filter,J=h.every,V=h.some,y=h.indexOf,N=h.lastIndexOf;j=Array.isArray;var M=Object.keys,q=Function.prototype.bind,v=function(w){return new ea(w)};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports)exports=module.exports=v;exports._=v}else b._=v;v.VERSION="1.3.1";var T=v.each=
v.forEach=function(w,E,C){if(w!=null)if(H&&w.forEach===H)w.forEach(E,C);else if(w.length===+w.length)for(var U=0,S=w.length;U<S;U++){if(U in w&&E.call(C,w[U],U,w)===e)return}else for(U in w)if(v.has(w,U))if(E.call(C,w[U],U,w)===e)return};v.map=v.collect=function(w,E,C){var U=[];if(w==null)return U;if(L&&w.map===L)return w.map(E,C);T(w,function(S,f,P){U[U.length]=E.call(C,S,f,P)});if(w.length===+w.length)U.length=w.length;return U};v.reduce=v.foldl=v.inject=function(w,E,C,U){var S=arguments.length>
2;if(w==null)w=[];if(A&&w.reduce===A){if(U)E=v.bind(E,U);return S?w.reduce(E,C):w.reduce(E)}T(w,function(f,P,aa){if(S)C=E.call(U,C,f,P,aa);else{C=f;S=true}});if(!S)throw new TypeError("Reduce of empty array with no initial value");return C};v.reduceRight=v.foldr=function(w,E,C,U){var S=arguments.length>2;if(w==null)w=[];if(s&&w.reduceRight===s){if(U)E=v.bind(E,U);return S?w.reduceRight(E,C):w.reduceRight(E)}var f=v.toArray(w).reverse();if(U&&!S)E=v.bind(E,U);return S?v.reduce(f,E,C,U):v.reduce(f,
E)};v.find=v.detect=function(w,E,C){var U;ca(w,function(S,f,P){if(E.call(C,S,f,P)){U=S;return true}});return U};v.filter=v.select=function(w,E,C){var U=[];if(w==null)return U;if(D&&w.filter===D)return w.filter(E,C);T(w,function(S,f,P){if(E.call(C,S,f,P))U[U.length]=S});return U};v.reject=function(w,E,C){var U=[];if(w==null)return U;T(w,function(S,f,P){E.call(C,S,f,P)||(U[U.length]=S)});return U};v.every=v.all=function(w,E,C){var U=true;if(w==null)return U;if(J&&w.every===J)return w.every(E,C);T(w,
function(S,f,P){if(!(U=U&&E.call(C,S,f,P)))return e});return U};var ca=v.some=v.any=function(w,E,C){E||(E=v.identity);var U=false;if(w==null)return U;if(V&&w.some===V)return w.some(E,C);T(w,function(S,f,P){if(U||(U=E.call(C,S,f,P)))return e});return!!U};v.include=v.contains=function(w,E){var C=false;if(w==null)return C;if(y&&w.indexOf===y)return w.indexOf(E)!=-1;return C=ca(w,function(U){return U===E})};v.invoke=function(w,E){var C=l.call(arguments,2);return v.map(w,function(U){return(v.isFunction(E)?
E||U:U[E]).apply(U,C)})};v.pluck=function(w,E){return v.map(w,function(C){return C[E]})};v.max=function(w,E,C){if(!E&&v.isArray(w))return Math.max.apply(Math,w);if(!E&&v.isEmpty(w))return-Infinity;var U={computed:-Infinity};T(w,function(S,f,P){f=E?E.call(C,S,f,P):S;f>=U.computed&&(U={value:S,computed:f})});return U.value};v.min=function(w,E,C){if(!E&&v.isArray(w))return Math.min.apply(Math,w);if(!E&&v.isEmpty(w))return Infinity;var U={computed:Infinity};T(w,function(S,f,P){f=E?E.call(C,S,f,P):S;f<
U.computed&&(U={value:S,computed:f})});return U.value};v.shuffle=function(w){var E=[],C;T(w,function(U,S){if(S==0)E[0]=U;else{C=Math.floor(Math.random()*(S+1));E[S]=E[C];E[C]=U}});return E};v.sortBy=function(w,E,C){return v.pluck(v.map(w,function(U,S,f){return{value:U,criteria:E.call(C,U,S,f)}}).sort(function(U,S){U=U.criteria;S=S.criteria;return U<S?-1:U>S?1:0}),"value")};v.groupBy=function(w,E){var C={},U=v.isFunction(E)?E:function(S){return S[E]};T(w,function(S,f){f=U(S,f);(C[f]||(C[f]=[])).push(S)});
return C};v.sortedIndex=function(w,E,C){C||(C=v.identity);for(var U=0,S=w.length;U<S;){var f=U+S>>1;C(w[f])<C(E)?(U=f+1):(S=f)}return U};v.toArray=function(w){if(!w)return[];if(w.toArray)return w.toArray();if(v.isArray(w))return l.call(w);if(v.isArguments(w))return l.call(w);return v.values(w)};v.size=function(w){return v.toArray(w).length};v.first=v.head=function(w,E,C){return E!=null&&!C?l.call(w,0,E):w[0]};v.initial=function(w,E,C){return l.call(w,0,w.length-(E==null||C?1:E))};v.last=function(w,
E,C){return E!=null&&!C?l.call(w,Math.max(w.length-E,0)):w[w.length-1]};v.rest=v.tail=function(w,E,C){return l.call(w,E==null||C?1:E)};v.compact=function(w){return v.filter(w,function(E){return!!E})};v.flatten=function(w,E){return v.reduce(w,function(C,U){if(v.isArray(U))return C.concat(E?U:v.flatten(U));C[C.length]=U;return C},[])};v.without=function(w){return v.difference(w,l.call(arguments,1))};v.uniq=v.unique=function(w,E,C){C=C?v.map(w,C):w;var U=[];v.reduce(C,function(S,f,P){if(0==P||(E===true?
v.last(S)!=f:!v.include(S,f))){S[S.length]=f;U[U.length]=w[P]}return S},[]);return U};v.union=function(){return v.uniq(v.flatten(arguments,true))};v.intersection=v.intersect=function(w){var E=l.call(arguments,1);return v.filter(v.uniq(w),function(C){return v.every(E,function(U){return v.indexOf(U,C)>=0})})};v.difference=function(w){var E=v.flatten(l.call(arguments,1));return v.filter(w,function(C){return!v.include(E,C)})};v.zip=function(){for(var w=l.call(arguments),E=v.max(v.pluck(w,"length")),C=
new Array(E),U=0;U<E;U++)C[U]=v.pluck(w,""+U);return C};v.indexOf=function(w,E,C){if(w==null)return-1;var U;if(C){C=v.sortedIndex(w,E);return w[C]===E?C:-1}if(y&&w.indexOf===y)return w.indexOf(E);C=0;for(U=w.length;C<U;C++)if(C in w&&w[C]===E)return C;return-1};v.lastIndexOf=function(w,E){if(w==null)return-1;if(N&&w.lastIndexOf===N)return w.lastIndexOf(E);for(var C=w.length;C--;)if(C in w&&w[C]===E)return C;return-1};v.range=function(w,E,C){if(arguments.length<=1){E=w||0;w=0}C=arguments[2]||1;for(var U=
Math.max(Math.ceil((E-w)/C),0),S=0,f=new Array(U);S<U;){f[S++]=w;w+=C}return f};var Y=function(){};v.bind=function(w,E){var C,U;if(w.bind===q&&q)return q.apply(w,l.call(arguments,1));if(!v.isFunction(w))throw new TypeError;U=l.call(arguments,2);return C=function(){if(!(this instanceof C))return w.apply(E,U.concat(l.call(arguments)));Y.prototype=w.prototype;var S=new Y,f=w.apply(S,U.concat(l.call(arguments)));if(Object(f)===f)return f;return S}};v.bindAll=function(w){var E=l.call(arguments,1);if(E.length==
0)E=v.functions(w);T(E,function(C){w[C]=v.bind(w[C],w)});return w};v.memoize=function(w,E){var C={};E||(E=v.identity);return function(){var U=E.apply(this,arguments);return v.has(C,U)?C[U]:(C[U]=w.apply(this,arguments))}};v.delay=function(w,E){var C=l.call(arguments,2);return setTimeout(function(){return w.apply(w,C)},E)};v.defer=function(w){return v.delay.apply(v,[w,1].concat(l.call(arguments,1)))};v.throttle=function(w,E){var C,U,S,f,P,aa=v.debounce(function(){P=f=false},E);return function(){C=
this;U=arguments;var ka=function(){S=null;P&&w.apply(C,U);aa()};S||(S=setTimeout(ka,E));if(f)P=true;else w.apply(C,U);aa();f=true}};v.debounce=function(w,E){var C;return function(){var U=this,S=arguments;clearTimeout(C);C=setTimeout(function(){C=null;w.apply(U,S)},E)}};v.once=function(w){var E=false,C;return function(){if(E)return C;E=true;return C=w.apply(this,arguments)}};v.wrap=function(w,E){return function(){var C=[w].concat(l.call(arguments,0));return E.apply(this,C)}};v.compose=function(){var w=
arguments;return function(){for(var E=arguments,C=w.length-1;C>=0;C--)E=[w[C].apply(this,E)];return E[0]}};v.after=function(w,E){if(w<=0)return E();return function(){if(--w<1)return E.apply(this,arguments)}};v.keys=M||function(w){if(w!==Object(w))throw new TypeError("Invalid object");var E=[];for(var C in w)if(v.has(w,C))E[E.length]=C;return E};v.values=function(w){return v.map(w,v.identity)};v.functions=v.methods=function(w){var E=[];for(var C in w)v.isFunction(w[C])&&E.push(C);return E.sort()};
v.extend=function(w){T(l.call(arguments,1),function(E){for(var C in E)w[C]=E[C]});return w};v.defaults=function(w){T(l.call(arguments,1),function(E){for(var C in E)if(w[C]==null)w[C]=E[C]});return w};v.clone=function(w){if(!v.isObject(w))return w;return v.isArray(w)?w.slice():v.extend({},w)};v.tap=function(w,E){E(w);return w};v.isEqual=function(w,E){return a(w,E,[])};v.isEmpty=function(w){if(v.isArray(w)||v.isString(w))return w.length===0;for(var E in w)if(v.has(w,E))return false;return true};v.isElement=
function(w){return!!(w&&w.nodeType==1)};v.isArray=j||function(w){return x.call(w)=="[object Array]"};v.isObject=function(w){return w===Object(w)};v.isArguments=function(w){return x.call(w)=="[object Arguments]"};if(!v.isArguments(arguments))v.isArguments=function(w){return!!(w&&v.has(w,"callee"))};v.isFunction=function(w){return x.call(w)=="[object Function]"};v.isString=function(w){return x.call(w)=="[object String]"};v.isNumber=function(w){return x.call(w)=="[object Number]"};v.isNaN=function(w){return w!==
w};v.isBoolean=function(w){return w===true||w===false||x.call(w)=="[object Boolean]"};v.isDate=function(w){return x.call(w)=="[object Date]"};v.isRegExp=function(w){return x.call(w)=="[object RegExp]"};v.isNull=function(w){return w===null};v.isUndefined=function(w){return w===void 0};v.has=function(w,E){return z.call(w,E)};v.noConflict=function(){b._=d;return this};v.identity=function(w){return w};v.times=function(w,E,C){for(var U=0;U<w;U++)E.call(C,U)};v.escape=function(w){return(""+w).replace(/&/g,
"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")};v.mixin=function(w){T(v.functions(w),function(E){na(E,v[E]=w[E])})};var ha=0;v.uniqueId=function(w){var E=ha++;return w?w+E:E};v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ma=/.^/,pa=function(w){return w.replace(/\\\\/g,"\\").replace(/\\'/g,"'")};v.template=function(w,E){var C=v.templateSettings;w="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+
w.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(C.escape||ma,function(S,f){return"',_.escape("+pa(f)+"),'"}).replace(C.interpolate||ma,function(S,f){return"',"+pa(f)+",'"}).replace(C.evaluate||ma,function(S,f){return"');"+pa(f).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";var U=new Function("obj","_",w);if(E)return U(E,v);return function(S){return U.call(this,S,v)}};v.chain=function(w){return v(w).chain()};var ea=
function(w){this._wrapped=w};v.prototype=ea.prototype;var ja=function(w,E){return E?v(w).chain():w},na=function(w,E){ea.prototype[w]=function(){var C=l.call(arguments);p.call(C,this._wrapped);return ja(E.apply(v,C),this._chain)}};v.mixin(v);T(["pop","push","reverse","shift","sort","splice","unshift"],function(w){var E=h[w];ea.prototype[w]=function(){var C=this._wrapped;E.apply(C,arguments);var U=C.length;if((w=="shift"||w=="splice")&&U===0)delete C[0];return ja(C,this._chain)}});T(["concat","join",
"slice"],function(w){var E=h[w];ea.prototype[w]=function(){return ja(E.apply(this._wrapped,arguments),this._chain)}});ea.prototype.chain=function(){this._chain=true;return this};ea.prototype.value=function(){return this._wrapped}}).call(this);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 d=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(d.length){jQuery(a.input).val(jQuery(b).children(":first").text());d.val(jQuery(b).find(".autocompleteId").text());d.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 d={maxItemsToShow:20,onFindValue:WikispacesAutocomplete.findValue,onEmptyValue:WikispacesAutocomplete.emptyValue,formatItem:WikispacesAutocomplete.formatInstanceItem,onItemSelect:WikispacesAutocomplete.selectItem,id:WikispacesAutocomplete.idCounter++},e;if(b.is(".autocompleteInstance")||b.is(".autocompleteSpace")){e=jQuery("<input>").attr({name:b.attr("name"),type:"text"}).addClass("autocompleteData").hide();b.after(e);
b.attr("name","wsautocomplete_"+b.attr("name"));if(b.data("value")){e.val(b.data("value"));e.data(WikispacesAutocomplete.DATA_SEARCH,b.val())}else e.val(b.val());d.minChars=3}var h,j=255;if(b.is(".autocompleteSpace")){d.formatItem=WikispacesAutocomplete.formatSpaceItem;h=WikispacesCommon.pathFor("space","autocomplete","space")}if(b.is(".autocompleteInstance")){d.formatItem=WikispacesAutocomplete.formatInstanceItem;h=WikispacesCommon.pathFor("space","autocomplete","instance")}if(b.is(".autocompleteTag")){d.formatItem=
WikispacesAutocomplete.formatTagItem;h=WikispacesCommon.pathFor("space","autocomplete","tag")}if(b.is(".autocompletePage")){d.formatItem=WikispacesAutocomplete.formatPageItem;h=WikispacesCommon.pathFor("space","autocomplete","page")}if(b.is(".autocompleteUser")){d.formatItem=WikispacesAutocomplete.formatUserItem;h=WikispacesCommon.pathFor("space","autocomplete","user");j=32}if(b.is(".autocompleteLink")){d.formatItem=WikispacesAutocomplete.formatLinkItem;var l=jQuery("input.linkWiki").val();l||(l=
wikispaces_wikiName);h=WikispacesCommon.pathFor("space","autocompletepage",l,"P")}if(b.is(".autocompleteFile")){d.formatItem=WikispacesAutocomplete.formatFileItem;(l=jQuery("input.linkWiki").val())||(l=wikispaces_wikiName);h=WikispacesCommon.pathFor("space","autocompletepage",l,"F")}b.autocomplete(h,d).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);e&&e.data(WikispacesAutocomplete.DATA_SEARCH,null)}});b.val()&&!b.data("value")&&a.autocompleter.findValue();if(e&&e.data(WikispacesAutocomplete.DATA_SEARCH)==
b.val()){d=jQuery("<li>").append(jQuery('<span class="autocompleteId">').text(e.val()));WikispacesAutocomplete.findValue(a.autocompleter,d)}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),d=b.nextAll("input.autocompleteData:first").eq(0);if(d.length){var e=d.data(WikispacesAutocomplete.DATA_SEARCH);b.val()!=e&&d.val(b.val())}})};
WikispacesAutocomplete.searchValue=function(a){clearTimeout(WikispacesAutocomplete.searchHandle[a.options.id]);delete WikispacesAutocomplete.searchHandle[a.options.id];var b=a.input.value,d=WikispacesAutocomplete.getValue(a),e=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!=d&&!l.hasClass("novalidate")){WikispacesAutocomplete.selectItem(a,
this);e=true}else if(h==b&&j==d&&!l.hasClass("novalidate")){jQuery(a.input).addClass("ac_match").removeClass("ac_nomatch");e=true}});if(e==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,d){var e=jQuery(a).closest("form").attr("action","/site/bulk");jQuery("<input>").attr({type:"hidden",name:"operation",value:b}).appendTo(e);jQuery.each(d,function(j,l){if(typeof l=="function")l=l.call(e);jQuery("<input>").attr({type:"hidden",name:"params["+j+"]",value:l}).appendTo(e)});for(var h in WikispacesCOB.cobChecks)jQuery("<input>").attr("type","hidden").addClass("cobId").attr("name","cobCheck[]").val(h).appendTo(e);if(!e.find(".cobId").length){alert("Please select at least one item from the list to continue.");
return false}e.find('input:hidden[name="goto"]').length==0&&jQuery("<input>").attr("type","hidden").attr("name","goto").val(document.location.href).appendTo(e);e.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,d){d=d||WikispacesCOB.defaultCallback;return function(e){var h=jQuery("#"+a);d(h,e);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")});e=(e=/[?&]tag=([^&]+)/.exec(b))?decodeURIComponent(e[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:e})}};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 d=this;this.showTagSpinner=function(){};this.hideTagSpinner=function(){};this.showPage=function(e){this.showTagSpinner();var h=(e-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(){d.showPage(e)},3E3,function(){d.options.sessionFailCallback(d)})},success:function(p){WikispacesSession.reloadSessionSuccess();d.loadTagData(p);d.hideTagSpinner();d.options.tagPageChangeCallback(d)}})};this.tagChange=function(){false!=this.options.tagChangeCallback(this)&&this.showPage(1)};this.displayTag=function(e){var h=jQuery("<li>");h.attr("title",e).text(WikispacesCommon.truncate(e,
28)).addClass("bit-box");jQuery("<a>").attr({"class":"closebutton",href:"#"}).appendTo(h).click(function(j){d.removeTag(this);j.preventDefault()});this.filter.find(".tagFilterActive").show().append(h)};this.addTag=function(e){this.displayTag(e);this.tagChange()};this.removeTag=function(e){jQuery(e).parent().remove();this.tagChange();this.filter.find(".tagFilterActive li").length||this.filter.find(".tagFilterActive").hide()};this.getTags=function(){var e=[];this.filter.find(".tagFilterActive li").each(function(){e.push(jQuery(this).attr("title"))});
return e.join()};this.loadTagData=function(e){var h=this.filter.find(".tagFilterList");if(e.tags.length){this.filter.find(".filterTagSection").removeClass("hidden");h.empty().show()}else h.hide().empty();jQuery.each(e.tags,function(j,l){jQuery("<li>").attr("title",l.name).text(WikispacesCommon.truncate(l.name,28)+" ("+l.count+")").click(function(){d.addTag(l.name)}).appendTo(h)});e.pagedata.current!=1&&jQuery('<li class="upTagPageLink"></li>').click(function(){d.showPage(e.pagedata.current-1)}).prependTo(h);
e.pagedata.islastpage||jQuery('<li class="downTagPageLink"></li>').click(function(){d.showPage(e.pagedata.current+1)}).appendTo(h)};this.setMode=function(e){this.options.mode=e};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(e,h){d.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 e=this.autocompleter.options.onItemSelect;this.autocompleter.options.onItemSelect=function(h,j){e.call(this,h,j);jQuery(h.input).val("").removeClass("ac_match").removeClass("ac_nomatch");var l=jQuery(j).find(".autocompleteId").text();h=d.getTags().split(",");for(var p in h)if(h[p]==l){d.filter.find(".tagFilterActive li").each(function(){jQuery(this).attr("title")==
l&&jQuery(this).effect("highlight",{},3E3)});return}d.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 d={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},e={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({},d,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({},d,a,e,b))};
WikispacesEditor.loadEditorPlugins=function(){var a="?_="+(new Date).valueOf(),b=function(){};jQuery.each(["wikispaces","subeditor","reference"].reverse(),function(d,e){var h=b;b=function(){tinymce.ThemeManager.load(e,"/s/js/editor/themes/"+e+"/editor_template_src.js"+a,h)}});jQuery.each(["wscleanup"].concat(WikispacesEditor.corePlugins,WikispacesEditor.mainPlugins).reverse(),function(d,e){var h="";this.match(/^ws/)||(h="-lib");var j=b;b=function(){tinymce.PluginManager.load(e,"/s/js/editor"+h+"/plugins/"+
e+"/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(d){log(d);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(d){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,d,e){jQuery("#WikispacesGettingStartedContent").html(b);WikispacesSession.reloadSessionSuccess()},error:function(b,d,e){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 d="";if(a.indexOf("#")>0){d=a.substr(a.indexOf("#")+1);a=a.substr(0,a.indexOf("#"))}if(a==helpStack[helpStack.length])d?jQuery("#WikispacesHelpContent").scrollTo(jQuery("#WikispacesHelpContent a[name='"+d+"']")):jQuery("#WikispacesHelpContent").scrollTop(0);else jQuery.ajaxq("help",{url:"/site/helpcontent/"+
a,cache:false,type:"GET",dataType:"html",success:function(e){WikispacesSession.reloadSessionSuccess();jQuery("#WikispacesHelpContent").html(e);fixHelpContent(jQuery("#WikispacesHelpContent"));generateHelpToc(jQuery("#WikispacesHelpContent"));helpStack.push(a);showBreadcrumbs();jQuery("#WikispacesHelpBreadcrumbSpinner").html("");d?jQuery("#WikispacesHelpContent").scrollTo(jQuery("#WikispacesHelpContent a[name='"+d+"']")):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],d=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+"');\">"+d+"</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],d=helpStack.length;d>a;d--)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 d=jQuery('<a href="#">'+jQuery(this).text()+"</a>"),e=jQuery(this);d.click(function(j){jQuery("#WikispacesHelpContent").scrollTo(e,300);j.preventDefault();return false});var h=jQuery('<div style="margin-left: '+this.tagName.substr(1,2)+'em;"></div>');h.append(d);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(d,e){return b+e});jQuery(a).find('a[href^="/"]').attr("href",function(d,e){return b+e});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 d=jQuery(this);if(!(!d.attr("href")||b!=d.attr("href").substr(0,b.length))){d.unbind();
d.click(function(e){if(loadHelp(d.attr("href").substr(b.length))){e.preventDefault();return false}})}})}
jQuery.effects||function(a,b){function d(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 e(A,s){var D;do{D=a.curCSS(A,s);if(D!=""&&D!="transparent"||a.nodeName(A,"body"))break;s="backgroundColor"}while(A=A.parentNode);return d(D)}function h(){var A=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
s={},D,J;if(A&&A.length&&A[0]&&A[A[0]])for(var V=A.length;V--;){D=A[V];if(typeof A[D]=="string"){J=D.replace(/\-(\w)/g,function(y,N){return N.toUpperCase()});s[J]=A[D]}}else for(D in A)if(typeof A[D]==="string")s[D]=A[D];return s}function j(A){var s,D;for(s in A){D=A[s];if(D==null||a.isFunction(D)||s in L||/scrollbar/.test(s)||!/color/i.test(s)&&isNaN(parseFloat(D)))delete A[s]}return A}function l(A,s){var D={_:0},J;for(J in s)if(A[J]!=s[J])D[J]=s[J];return D}function p(A,s,D,J){if(typeof A=="object"){J=
s;D=null;s=A;A=s.effect}if(a.isFunction(s)){J=s;D=null;s={}}if(typeof s=="number"||a.fx.speeds[s]){J=D;D=s;s={}}if(a.isFunction(D)){J=D;D=null}s=s||{};D=D||s.duration;D=a.fx.off?0:typeof D=="number"?D:D in a.fx.speeds?a.fx.speeds[D]:a.fx.speeds._default;J=J||s.complete;return[A,s,D,J]}function x(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(D){if(!D.colorInit){D.start=e(D.elem,s);D.end=d(D.end);D.colorInit=true}D.elem.style[s]="rgb("+Math.max(Math.min(parseInt(D.pos*(D.end[0]-D.start[0])+D.start[0],10),255),0)+","+Math.max(Math.min(parseInt(D.pos*(D.end[1]-D.start[1])+D.start[1],10),255),0)+","+Math.max(Math.min(parseInt(D.pos*(D.end[2]-D.start[2])+D.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]},H=["add","remove","toggle"],L={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(A,s,D,
J){if(a.isFunction(D)){J=D;D=null}return this.queue(function(){var V=a(this),y=V.attr("style")||" ",N=j(h.call(this)),M,q=V.attr("class");a.each(H,function(v,T){A[T]&&V[T+"Class"](A[T])});M=j(h.call(this));V.attr("class",q);V.animate(l(N,M),{queue:false,duration:s,easing:D,complete:function(){a.each(H,function(v,T){A[T]&&V[T+"Class"](A[T])});if(typeof V.attr("style")=="object"){V.attr("style").cssText="";V.attr("style").cssText=y}else V.attr("style",y);J&&J.apply(this,arguments);a.dequeue(this)}})})};
a.fn.extend({_addClass:a.fn.addClass,addClass:function(A,s,D,J){return s?a.effects.animateClass.apply(this,[{add:A},s,D,J]):this._addClass(A)},_removeClass:a.fn.removeClass,removeClass:function(A,s,D,J){return s?a.effects.animateClass.apply(this,[{remove:A},s,D,J]):this._removeClass(A)},_toggleClass:a.fn.toggleClass,toggleClass:function(A,s,D,J,V){return typeof s=="boolean"||s===b?D?a.effects.animateClass.apply(this,[s?{add:A}:{remove:A},D,J,V]):this._toggleClass(A,s):a.effects.animateClass.apply(this,
[{toggle:A},s,D,J])},switchClass:function(A,s,D,J,V){return a.effects.animateClass.apply(this,[{add:s,remove:A},D,J,V])}});a.extend(a.effects,{version:"@VERSION",save:function(A,s){for(var D=0;D<s.length;D++)s[D]!==null&&A.data("ec.storage."+s[D],A[0].style[s[D]])},restore:function(A,s){for(var D=0;D<s.length;D++)s[D]!==null&&A.css(s[D],A.data("ec.storage."+s[D]))},setMode:function(A,s){if(s=="toggle")s=A.is(":hidden")?"show":"hide";return s},getBaseline:function(A,s){var D;switch(A[0]){case "top":D=
0;break;case "middle":D=0.5;break;case "bottom":D=1;break;default:D=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:D}},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")},D=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),
J=document.activeElement;A.wrap(D);if(A[0]===J||a.contains(A[0],J))a(J).focus();D=A.parent();if(A.css("position")=="static"){D.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(V,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 D.css(s).show()},removeWrapper:function(A){var s,D=document.activeElement;
if(A.parent().is(".ui-effects-wrapper")){s=A.parent().replaceWith(A);if(A[0]===D||a.contains(A[0],D))a(D).focus();return s}return A},setTransition:function(A,s,D,J){J=J||{};a.each(s,function(V,y){unit=A.cssUnit(y);if(unit[0]>0)J[y]=unit[0]*D+unit[1]});return J}});a.fn.extend({effect:function(A){var s=p.apply(this,arguments),D={options:s[1],duration:s[2],callback:s[3]};s=D.options.mode;var J=a.effects[A];if(a.fx.off||!J)return s?this[s](D.duration,D.callback):this.each(function(){D.callback&&D.callback.call(this)});
return J.call(this,D)},_show:a.fn.show,show:function(A){if(x(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(x(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(x(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),D=[];a.each(["em","px","%","pt"],function(J,V){if(s.indexOf(V)>0)D=[parseFloat(s),V]});return D}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(A,s,D,J,V){return a.easing[a.easing.def](A,s,D,J,V)},easeInQuad:function(A,s,D,J,V){return J*(s/=V)*s+D},easeOutQuad:function(A,s,D,J,V){return-J*(s/=V)*(s-2)+D},easeInOutQuad:function(A,s,D,J,V){if((s/=V/2)<1)return J/
2*s*s+D;return-J/2*(--s*(s-2)-1)+D},easeInCubic:function(A,s,D,J,V){return J*(s/=V)*s*s+D},easeOutCubic:function(A,s,D,J,V){return J*((s=s/V-1)*s*s+1)+D},easeInOutCubic:function(A,s,D,J,V){if((s/=V/2)<1)return J/2*s*s*s+D;return J/2*((s-=2)*s*s+2)+D},easeInQuart:function(A,s,D,J,V){return J*(s/=V)*s*s*s+D},easeOutQuart:function(A,s,D,J,V){return-J*((s=s/V-1)*s*s*s-1)+D},easeInOutQuart:function(A,s,D,J,V){if((s/=V/2)<1)return J/2*s*s*s*s+D;return-J/2*((s-=2)*s*s*s-2)+D},easeInQuint:function(A,s,D,
J,V){return J*(s/=V)*s*s*s*s+D},easeOutQuint:function(A,s,D,J,V){return J*((s=s/V-1)*s*s*s*s+1)+D},easeInOutQuint:function(A,s,D,J,V){if((s/=V/2)<1)return J/2*s*s*s*s*s+D;return J/2*((s-=2)*s*s*s*s+2)+D},easeInSine:function(A,s,D,J,V){return-J*Math.cos(s/V*(Math.PI/2))+J+D},easeOutSine:function(A,s,D,J,V){return J*Math.sin(s/V*(Math.PI/2))+D},easeInOutSine:function(A,s,D,J,V){return-J/2*(Math.cos(Math.PI*s/V)-1)+D},easeInExpo:function(A,s,D,J,V){return s==0?D:J*Math.pow(2,10*(s/V-1))+D},easeOutExpo:function(A,
s,D,J,V){return s==V?D+J:J*(-Math.pow(2,-10*s/V)+1)+D},easeInOutExpo:function(A,s,D,J,V){if(s==0)return D;if(s==V)return D+J;if((s/=V/2)<1)return J/2*Math.pow(2,10*(s-1))+D;return J/2*(-Math.pow(2,-10*--s)+2)+D},easeInCirc:function(A,s,D,J,V){return-J*(Math.sqrt(1-(s/=V)*s)-1)+D},easeOutCirc:function(A,s,D,J,V){return J*Math.sqrt(1-(s=s/V-1)*s)+D},easeInOutCirc:function(A,s,D,J,V){if((s/=V/2)<1)return-J/2*(Math.sqrt(1-s*s)-1)+D;return J/2*(Math.sqrt(1-(s-=2)*s)+1)+D},easeInElastic:function(A,s,D,
J,V){A=1.70158;var y=0,N=J;if(s==0)return D;if((s/=V)==1)return D+J;y||(y=V*0.3);if(N<Math.abs(J)){N=J;A=y/4}else A=y/(2*Math.PI)*Math.asin(J/N);return-(N*Math.pow(2,10*(s-=1))*Math.sin((s*V-A)*2*Math.PI/y))+D},easeOutElastic:function(A,s,D,J,V){A=1.70158;var y=0,N=J;if(s==0)return D;if((s/=V)==1)return D+J;y||(y=V*0.3);if(N<Math.abs(J)){N=J;A=y/4}else A=y/(2*Math.PI)*Math.asin(J/N);return N*Math.pow(2,-10*s)*Math.sin((s*V-A)*2*Math.PI/y)+J+D},easeInOutElastic:function(A,s,D,J,V){A=1.70158;var y=
0,N=J;if(s==0)return D;if((s/=V/2)==2)return D+J;y||(y=V*0.3*1.5);if(N<Math.abs(J)){N=J;A=y/4}else A=y/(2*Math.PI)*Math.asin(J/N);if(s<1)return-0.5*N*Math.pow(2,10*(s-=1))*Math.sin((s*V-A)*2*Math.PI/y)+D;return N*Math.pow(2,-10*(s-=1))*Math.sin((s*V-A)*2*Math.PI/y)*0.5+J+D},easeInBack:function(A,s,D,J,V,y){if(y==b)y=1.70158;return J*(s/=V)*s*((y+1)*s-y)+D},easeOutBack:function(A,s,D,J,V,y){if(y==b)y=1.70158;return J*((s=s/V-1)*s*((y+1)*s+y)+1)+D},easeInOutBack:function(A,s,D,J,V,y){if(y==b)y=1.70158;
if((s/=V/2)<1)return J/2*s*s*(((y*=1.525)+1)*s-y)+D;return J/2*((s-=2)*s*(((y*=1.525)+1)*s+y)+2)+D},easeInBounce:function(A,s,D,J,V){return J-a.easing.easeOutBounce(A,V-s,0,J,V)+D},easeOutBounce:function(A,s,D,J,V){return(s/=V)<1/2.75?J*7.5625*s*s+D:s<2/2.75?J*(7.5625*(s-=1.5/2.75)*s+0.75)+D:s<2.5/2.75?J*(7.5625*(s-=2.25/2.75)*s+0.9375)+D:J*(7.5625*(s-=2.625/2.75)*s+0.984375)+D},easeInOutBounce:function(A,s,D,J,V){if(s<V/2)return a.easing.easeInBounce(A,s*2,0,J,V)*0.5+D;return a.easing.easeOutBounce(A,
s*2-V,0,J,V)*0.5+J*0.5+D}})}(jQuery);
(function(a,b){function d(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&&e(h)}return(/input|select|textarea|button|object/.test(l)?!h.disabled:"a"==l?h.href||j:j)&&e(h)}function e(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(H,L,A,s){a.each(p,function(){L-=parseFloat(a.curCSS(H,"padding"+this,true))||0;if(A)L-=parseFloat(a.curCSS(H,"border"+this+"Width",true))||0;if(s)L-=parseFloat(a.curCSS(H,"margin"+this,true))||0});return L}var p=j==="Width"?["Left","Right"]:["Top","Bottom"],x=j.toLowerCase(),z={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,
outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+j]=function(H){if(H===b)return z["inner"+j].call(this);return this.each(function(){a(this).css(x,l(this,H)+"px")})};a.fn["outer"+j]=function(H,L){if(typeof H!=="number")return z["outer"+j].call(this,H);return this.each(function(){a(this).css(x,l(this,H,true,L)+"px")})}});a.extend(a.expr[":"],{data:function(h,j,l){return!!a.data(h,l[3])},focusable:function(h){return d(h,!isNaN(a.attr(h,"tabindex")))},tabbable:function(h){var j=a.attr(h,
"tabindex"),l=isNaN(j);return(l||j>=0)&&d(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,x,z){return a.ui.isOverAxis(h,l,x)&&
a.ui.isOverAxis(j,p,z)}})}})(jQuery);
(function(a,b){if(a.cleanData){var d=a.cleanData;a.cleanData=function(h){for(var j=0,l;(l=h[j])!=null;j++)try{a(l).triggerHandler("remove")}catch(p){}d(h)}}else{var e=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 e.call(a(this),h,j)})}}a.widget=function(h,j,l){var p=h.split(".")[0],x;h=h.split(".")[1];x=p+"-"+h;if(!l){l=j;j=a.Widget}a.expr[":"][x]=
function(z){return!!a.data(z,h)};a[p]=a[p]||{};a[p][h]=function(z,H){arguments.length&&this._createWidget(z,H)};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:x},l);a.widget.bridge(h,a[p][h])};a.widget.bridge=function(h,j){a.fn[h]=function(l){var p=typeof l==="string",x=Array.prototype.slice.call(arguments,1),z=this;l=!p&&x.length?a.extend.apply(null,[true,l].concat(x)):
l;if(p&&l.charAt(0)==="_")return z;p?this.each(function(){var H=a.data(this,h),L=H&&a.isFunction(H[l])?H[l].apply(H,x):H;if(L!==H&&L!==b){z=L;return false}}):this.each(function(){var H=a.data(this,h);H?H.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 x;h;){x=a.event.props[--h];j[x]=j.originalEvent[x]}}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 d=a(this),e=["backgroundImage","backgroundColor","opacity"],h=a.effects.setMode(d,b.options.mode||"show"),j={backgroundColor:d.css("backgroundColor")};if(h=="hide")j.opacity=0;a.effects.save(d,e);d.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){h=="hide"&&d.hide();a.effects.restore(d,e);h=="show"&&!a.support.opacity&&
this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);d.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 d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===a.data(e.target,d.widgetName+".preventClickEvent")){a.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(d){if(!b){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var e=this,h=d.which==1,j=typeof this.options.cancel=="string"&&d.target.nodeName?a(d.target).closest(this.options.cancel).length:false;if(!h||j||!this._mouseCapture(d))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=
this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}true===a.data(d.target,this.widgetName+".preventClickEvent")&&a.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(l){return e._mouseMove(l)};this._mouseUpDelegate=function(l){return e._mouseUp(l)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return b=true}},_mouseMove:function(d){if(a.browser.msie&&
!(document.documentMode>=9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;d.target==this._mouseDownEvent.target&&a.data(d.target,this.widgetName+".preventClickEvent",true);this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.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 d=a(this),e=a(b.options.to),h=e.offset();e={top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth()};h=d.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:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(e,b.duration,b.options.easing,function(){j.remove();b.callback&&b.callback.apply(d[0],arguments);
d.dequeue()})})}})(jQuery);
(function(a){var b,d,e,h,j=function(){var p=a(this).find(":ui-button");setTimeout(function(){p.button("refresh")},1)},l=function(p){var x=p.name,z=p.form,H=a([]);if(x)H=z?a(z).find("[name='"+x+"']"):a("[name='"+x+"']",p.ownerDocument).filter(function(){return!this.form});return H};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,x=this.options,z=this.type==="checkbox"||this.type==="radio",H="ui-state-hover"+(!z?" ui-state-active":"");if(x.label===null)x.label=this.buttonElement.html();if(this.element.is(":disabled"))x.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!x.disabled){a(this).addClass("ui-state-hover");
this===b&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){x.disabled||a(this).removeClass(H)}).bind("click.button",function(L){if(x.disabled){L.preventDefault();L.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(L){if(!x.disabled){h=
false;d=L.pageX;e=L.pageY}}).bind("mouseup.button",function(L){if(!x.disabled)if(d!==L.pageX||e!==L.pageY)h=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(x.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(x.disabled||h)return false;a(this).addClass("ui-state-active");p.buttonElement.attr("aria-pressed","true");
var L=p.element[0];l(L).not(L).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(x.disabled)return false;a(this).addClass("ui-state-active");b=this;a(document).one("mouseup",function(){b=null})}).bind("mouseup.button",function(){if(x.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(L){if(x.disabled)return false;if(L.keyCode==a.ui.keyCode.SPACE||
L.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(L){L.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",x.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"),x="label[for='"+this.element.attr("id")+"']";this.buttonElement=p.find(x);if(!this.buttonElement.length){p=p.length?p.siblings():this.element.siblings();this.buttonElement=p.filter(x);if(!this.buttonElement.length)this.buttonElement=p.find(x)}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,x){a.Widget.prototype._setOption.apply(this,arguments);if(p==="disabled")x?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"),
x=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(p.empty()).text(),z=this.options.icons,H=z.primary&&z.secondary,L=[];if(z.primary||z.secondary){if(this.options.text)L.push("ui-button-text-icon"+(H?"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){L.push(H?"ui-button-icons-only":
"ui-button-icon-only");this.hasTitle||p.attr("title",x)}}else L.push("ui-button-text-only");p.addClass(L.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,x){p==="disabled"&&this.buttons.button("option",p,x);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 d={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},e={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;",x=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":x}).mousedown(function(A){j.moveToTop(false,A)});j.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(z);var H=(j.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(z),
L=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){L.addClass("ui-state-hover")},function(){L.removeClass("ui-state-hover")}).focus(function(){L.addClass("ui-state-focus")}).blur(function(){L.removeClass("ui-state-focus")}).click(function(A){j.close(A);return false}).appendTo(H);(j.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(l.closeText).appendTo(L);a("<span></span>").addClass("ui-dialog-title").attr("id",
x).html(p).prependTo(H);if(a.isFunction(l.beforeclose)&&!a.isFunction(l.beforeClose))l.beforeClose=l.beforeclose;H.find("*").add(H).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,x;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]){x=a(this).css("z-index");isNaN(x)||(p=Math.max(p,x))}});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 x=a(":tabbable",this),z=x.filter(":first");x=x.filter(":last");if(p.target===x[0]&&!p.shiftKey){z.focus(1);
return false}else if(p.target===z[0]&&p.shiftKey){x.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,x=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),z=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(x);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(H,L){L=a.isFunction(L)?{click:L,text:H}:L;var A=a('<button type="button"></button>').click(function(){L.click.apply(l.element[0],arguments)}).appendTo(z);a.each(L,function(s,D){if(s!=="click")s in h?A[s](D):A.attr(s,D)});a.fn.button&&A.button()});x.appendTo(l.uiDialog)}},_makeDraggable:function(){function j(H){return{position:H.position,offset:H.offset}}var l=this,p=l.options,x=a(document),z;l.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(H,L){z=p.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");l._trigger("dragStart",H,j(L))},drag:function(H,L){l._trigger("drag",H,j(L))},stop:function(H,L){p.position=[L.position.left-x.scrollLeft(),L.position.top-x.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(z);l._trigger("dragStop",H,j(L));a.ui.dialog.overlay.resize()}})},_makeResizable:function(j){function l(H){return{originalPosition:H.originalPosition,
originalSize:H.originalSize,position:H.position,size:H.size}}j=j===b?this.options.resizable:j;var p=this,x=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:x.maxWidth,maxHeight:x.maxHeight,minWidth:x.minWidth,minHeight:p._minHeight(),handles:j,start:function(H,L){a(this).addClass("ui-dialog-resizing");p._trigger("resizeStart",H,l(L))},resize:function(H,L){p._trigger("resize",
H,l(L))},stop:function(H,L){a(this).removeClass("ui-dialog-resizing");x.height=a(this).height();x.width=a(this).width();p._trigger("resizeStop",H,l(L));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],x;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,H){if(+l[z]===l[z]){p[z]=l[z];l[z]=H}});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;(x=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},j));x||this.uiDialog.hide()},_setOptions:function(j){var l=this,p={},x=false;a.each(j,function(z,H){l._setOption(z,H);
if(z in d)x=true;if(z in e)p[z]=H});x&&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 x=p.is(":data(draggable)");x&&!l&&p.draggable("destroy");!x&&l&&this._makeDraggable();break;case "position":this._position(l);break;case "resizable":(x=p.is(":data(resizable)"))&&!l&&p.resizable("destroy");x&&typeof l==="string"&&p.resizable("option","handles",l);!x&&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,x=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();x||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 d=
this.options;if(this.helper||d.disabled||a(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);if(!this.handle)return false;if(d.iframeFix)a(d.iframeFix===true?"iframe":d.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 d=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;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!d.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,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();if(this._trigger("drag",b,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(b){var d=
false;if(a.ui.ddmanager&&!this.options.dropBehaviour)d=a.ui.ddmanager.drop(this,b);if(this.dropped){d=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
10),function(){e._trigger("stop",b)!==false&&e._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 d=!this.options.handle||
!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target)d=true});return d},_createHelper:function(b){var d=this.options;b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[b])):d.helper=="clone"?this.element.clone().removeAttr("id"):this.element;b.parents("body").length||b.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.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 d=b[0];if(d){b.offset();var e=a(d).css("overflow")!=
"hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),
10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=b}}else if(b.containment.constructor==Array)this.containment=b.containment},_convertPositionTo:function(b,d){if(!d)d=this.position;b=b=="absolute"?1:-1;var e=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(e[0].tagName);return{top:d.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:e.scrollTop())*b),left:d.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:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=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(e[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(d.grid){l=d.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/d.grid[1])*d.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-d.grid[1]:l+d.grid[1]:l;j=d.grid[0]?this.originalPageX+Math.round((j-this.originalPageX)/
d.grid[0])*d.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-d.grid[0]:j+d.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:e.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:e.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,d,e){e=e||this._uiHash();a.ui.plugin.call(this,b,[d,e]);if(b=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,b,d,
e)},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,d){var e=a(this).data("draggable"),h=e.options,j=a.extend({},d,{item:e.element});e.sortables=[];a(h.connectToSortable).each(function(){var l=a.data(this,"sortable");if(l&&!l.options.disabled){e.sortables.push({instance:l,shouldRevert:l.options.revert});
l.refreshPositions();l._trigger("activate",b,j)}})},stop:function(b,d){var e=a(this).data("draggable"),h=a.extend({},d,{item:e.element});a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.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;e.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,d){var e=a(this).data("draggable"),h=this;a.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.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 d.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;
e._trigger("toSortable",b);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}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();e._trigger("fromSortable",b);e.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),d=a(this).data("draggable").options;if(b.css("cursor"))d._cursor=b.css("cursor");b.css("cursor",d.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,d){b=a(d.helper);d=a(this).data("draggable").options;if(b.css("opacity"))d._opacity=
b.css("opacity");b.css("opacity",d.opacity)},stop:function(b,d){b=a(this).data("draggable").options;b._opacity&&a(d.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 d=a(this).data("draggable"),e=d.options,h=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!=
"x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity)d.scrollParent[0].scrollTop=h=d.scrollParent[0].scrollTop+e.scrollSpeed;else if(b.pageY-d.overflowOffset.top<e.scrollSensitivity)d.scrollParent[0].scrollTop=h=d.scrollParent[0].scrollTop-e.scrollSpeed;if(!e.axis||e.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity)d.scrollParent[0].scrollLeft=h=d.scrollParent[0].scrollLeft+e.scrollSpeed;else if(b.pageX-d.overflowOffset.left<
e.scrollSensitivity)d.scrollParent[0].scrollLeft=h=d.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(!e.axis||e.axis!="x")if(b.pageY-a(document).scrollTop()<e.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed);else if(a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity)h=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed);if(!e.axis||e.axis!="y")if(b.pageX-a(document).scrollLeft()<e.scrollSensitivity)h=a(document).scrollLeft(a(document).scrollLeft()-
e.scrollSpeed);else if(a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity)h=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)}h!==false&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,b)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),d=b.options;b.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var e=a(this),h=e.offset();this!=b.element[0]&&b.snapElements.push({item:this,
width:e.outerWidth(),height:e.outerHeight(),top:h.top,left:h.left})})},drag:function(b,d){for(var e=a(this).data("draggable"),h=e.options,j=h.snapTolerance,l=d.offset.left,p=l+e.helperProportions.width,x=d.offset.top,z=x+e.helperProportions.height,H=e.snapElements.length-1;H>=0;H--){var L=e.snapElements[H].left,A=L+e.snapElements[H].width,s=e.snapElements[H].top,D=s+e.snapElements[H].height;if(L-j<l&&l<A+j&&s-j<x&&x<D+j||L-j<l&&l<A+j&&s-j<z&&z<D+j||L-j<p&&p<A+j&&s-j<x&&x<D+j||L-j<p&&p<A+j&&s-j<z&&
z<D+j){if(h.snapMode!="inner"){var J=Math.abs(s-z)<=j,V=Math.abs(D-x)<=j,y=Math.abs(L-p)<=j,N=Math.abs(A-l)<=j;if(J)d.position.top=e._convertPositionTo("relative",{top:s-e.helperProportions.height,left:0}).top-e.margins.top;if(V)d.position.top=e._convertPositionTo("relative",{top:D,left:0}).top-e.margins.top;if(y)d.position.left=e._convertPositionTo("relative",{top:0,left:L-e.helperProportions.width}).left-e.margins.left;if(N)d.position.left=e._convertPositionTo("relative",{top:0,left:A}).left-e.margins.left}var M=
J||V||y||N;if(h.snapMode!="outer"){J=Math.abs(s-x)<=j;V=Math.abs(D-z)<=j;y=Math.abs(L-l)<=j;N=Math.abs(A-p)<=j;if(J)d.position.top=e._convertPositionTo("relative",{top:s,left:0}).top-e.margins.top;if(V)d.position.top=e._convertPositionTo("relative",{top:D-e.helperProportions.height,left:0}).top-e.margins.top;if(y)d.position.left=e._convertPositionTo("relative",{top:0,left:L}).left-e.margins.left;if(N)d.position.left=e._convertPositionTo("relative",{top:0,left:A-e.helperProportions.width}).left-e.margins.left}if(!e.snapElements[H].snapping&&
(J||V||y||N||M))e.options.snap.snap&&e.options.snap.snap.call(e.element,b,a.extend(e._uiHash(),{snapItem:e.snapElements[H].item}));e.snapElements[H].snapping=J||V||y||N||M}else{e.snapElements[H].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,b,a.extend(e._uiHash(),{snapItem:e.snapElements[H].item}));e.snapElements[H].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(e,h){return(parseInt(a(e).css("zIndex"),
10)||0)-(parseInt(a(h).css("zIndex"),10)||0)});if(b.length){var d=parseInt(b[0].style.zIndex)||0;a(b).each(function(e){this.style.zIndex=d+e});this[0].style.zIndex=d+b.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(b,d){b=a(d.helper);d=a(this).data("draggable").options;if(b.css("zIndex"))d._zIndex=b.css("zIndex");b.css("zIndex",d.zIndex)},stop:function(b,d){b=a(this).data("draggable").options;b._zIndex&&a(d.helper).css("zIndex",b._zIndex)}})})(jQuery);
(function(a){a.ui=a.ui||{};var b=/left|center|right/,d=/top|center|bottom/,e=a.fn.position,h=a.fn.offset;a.fn.position=function(j){if(!j||!j.of)return e.apply(this,arguments);j=a.extend({},j);var l=a(j.of),p=l[0],x=(j.collision||"flip").split(" "),z=j.offset?j.offset.split(" "):[0,0],H,L,A;if(p.nodeType===9){H=l.width();L=l.height();A={top:0,left:0}}else if(p.setTimeout){H=l.width();L=l.height();A={top:l.scrollTop(),left:l.scrollLeft()}}else if(p.preventDefault){j.at="left top";H=L=0;A={top:j.of.pageY,
left:j.of.pageX}}else{H=l.outerWidth();L=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"]):d.test(s[0])?["center"].concat(s):["center","center"];s[0]=b.test(s[0])?s[0]:"center";s[1]=d.test(s[1])?s[1]:"center";j[this]=s});if(x.length===1)x[1]=x[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+=H;else if(j.at[0]==="center")A.left+=H/2;if(j.at[1]==="bottom")A.top+=
L;else if(j.at[1]==="center")A.top+=L/2;A.left+=z[0];A.top+=z[1];return this.each(function(){var s=a(this),D=s.outerWidth(),J=s.outerHeight(),V=parseInt(a.curCSS(this,"marginLeft",true))||0,y=parseInt(a.curCSS(this,"marginTop",true))||0,N=D+V+(parseInt(a.curCSS(this,"marginRight",true))||0),M=J+y+(parseInt(a.curCSS(this,"marginBottom",true))||0),q=a.extend({},A),v;if(j.my[0]==="right")q.left-=D;else if(j.my[0]==="center")q.left-=D/2;if(j.my[1]==="bottom")q.top-=J;else if(j.my[1]==="center")q.top-=
J/2;q.left=Math.round(q.left);q.top=Math.round(q.top);v={left:q.left-V,top:q.top-y};a.each(["left","top"],function(T,ca){a.ui.position[x[T]]&&a.ui.position[x[T]][ca](q,{targetWidth:H,targetHeight:L,elemWidth:D,elemHeight:J,collisionPosition:v,collisionWidth:N,collisionHeight:M,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 x=l.my[0]==="left"?-l.elemWidth:l.my[0]==="right"?l.elemWidth:0,z=l.at[0]==="left"?l.targetWidth:-l.targetWidth,H=-2*l.offset[0];j.left+=
l.collisionPosition.left<0?x+z+H:p>0?x+z+H: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 x=l.my[1]==="top"?-l.elemHeight:l.my[1]==="bottom"?l.elemHeight:0,z=l.at[1]==="top"?l.targetHeight:-l.targetHeight,H=-2*l.offset[1];j.top+=l.collisionPosition.top<0?x+z+H:p>0?x+z+H: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),
x=p.offset(),z=parseInt(a.curCSS(j,"top",true),10)||0,H=parseInt(a.curCSS(j,"left",true),10)||0;x={top:l.top-x.top+z,left:l.left-x.left+H};"using"in l?l.using.call(j,x):p.css(x)};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(d){if(d===b)return this._value();this._setOption("value",d);return this},_setOption:function(d,e){if(d==="value"){this.options.value=e;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var d=this.options.value;if(typeof d!=="number")d=0;return Math.min(this.options.max,Math.max(this.min,d))},_percentage:function(){return 100*
this._value()/this.options.max},_refreshValue:function(){var d=this.value(),e=this._percentage();if(this.oldValue!==d){this.oldValue=d;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",d===this.options.max).width(e.toFixed(0)+"%");this.element.attr("aria-valuenow",d)}});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 e=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]),x=a('<div class="ui-resizable-handle '+("ui-resizable-"+p)+'"></div>');/sw|se|ne|nw/.test(p)&&x.css({zIndex:++h.zIndex});"se"==p&&x.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[p]=".ui-resizable-"+p;this.element.append(x)}}this._renderAxis=function(z){z=z||this.element;for(var H in this.handles){if(this.handles[H].constructor==
String)this.handles[H]=a(this.handles[H],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var L=a(this.handles[H],this.element),A=0;A=/sw|ne|nw|se|n|s/.test(H)?L.outerHeight():L.outerWidth();L=["padding",/ne|nw|n/.test(H)?"Top":/se|sw|s/.test(H)?"Bottom":/^e$/.test(H)?"Right":"Left"].join("");z.css(L,A);this._proportionallyResize()}a(this.handles[H])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!e.resizing){if(this.className)var z=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.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");e._handles.show()}},function(){if(!h.disabled)if(!e.resizing){a(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();
var e=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){e(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);e(this.originalElement);return this},_mouseCapture:function(e){var h=
false;for(var j in this.handles)if(a(this.handles[j])[0]==e.target)h=true;return!this.options.disabled&&h},_mouseStart:function(e){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:e.pageX,top:e.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",e);return true},_mouseDrag:function(e){var h=this.helper,j=this.originalMousePosition,l=this._change[this.axis];
if(!l)return false;j=l.apply(this,[e,e.pageX-j.left||0,e.pageY-j.top||0]);this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey)j=this._updateRatio(j,e);j=this._respectSize(j,e);this._propagate("resize",e);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",e,this.ui());return false},
_mouseStop:function(e){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",e);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(e){var h=this.options,j,l,p;h={minWidth:d(h.minWidth)?h.minWidth:0,maxWidth:d(h.maxWidth)?h.maxWidth:Infinity,minHeight:d(h.minHeight)?h.minHeight:
0,maxHeight:d(h.maxHeight)?h.maxHeight:Infinity};if(this._aspectRatio||e){e=h.minHeight*this.aspectRatio;l=h.minWidth/this.aspectRatio;j=h.maxHeight*this.aspectRatio;p=h.maxWidth/this.aspectRatio;if(e>h.minWidth)h.minWidth=e;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(e){this.offset=this.helper.offset();if(d(e.left))this.position.left=e.left;if(d(e.top))this.position.top=e.top;if(d(e.height))this.size.height=
e.height;if(d(e.width))this.size.width=e.width},_updateRatio:function(e){var h=this.position,j=this.size,l=this.axis;if(d(e.height))e.width=e.height*this.aspectRatio;else if(d(e.width))e.height=e.width/this.aspectRatio;if(l=="sw"){e.left=h.left+(j.width-e.width);e.top=null}if(l=="nw"){e.top=h.top+(j.height-e.height);e.left=h.left+(j.width-e.width)}return e},_respectSize:function(e){var h=this._vBoundaries,j=this.axis,l=d(e.width)&&h.maxWidth&&h.maxWidth<e.width,p=d(e.height)&&h.maxHeight&&h.maxHeight<
e.height,x=d(e.width)&&h.minWidth&&h.minWidth>e.width,z=d(e.height)&&h.minHeight&&h.minHeight>e.height;if(x)e.width=h.minWidth;if(z)e.height=h.minHeight;if(l)e.width=h.maxWidth;if(p)e.height=h.maxHeight;var H=this.originalPosition.left+this.originalSize.width,L=this.position.top+this.size.height,A=/sw|nw|w/.test(j);j=/nw|ne|n/.test(j);if(x&&A)e.left=H-h.minWidth;if(l&&A)e.left=H-h.maxWidth;if(z&&j)e.top=L-h.minHeight;if(p&&j)e.top=L-h.maxHeight;if((h=!e.width&&!e.height)&&!e.left&&e.top)e.top=null;
else if(h&&!e.top&&e.left)e.left=null;return e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e=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(x,z){x=parseInt(x,10)||0;z=parseInt(p[z],10)||0;return x+z})}a.browser.msie&&(a(e).is(":hidden")||a(e).parents(":hidden").length)||j.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=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:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,h){return{width:this.originalSize.width+h}},w:function(e,h){return{left:this.originalPosition.left+h,width:this.originalSize.width-h}},n:function(e,h,j){return{top:this.originalPosition.top+j,height:this.originalSize.height-j}},s:function(e,h,j){return{height:this.originalSize.height+
j}},se:function(e,h,j){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,h,j]))},sw:function(e,h,j){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,h,j]))},ne:function(e,h,j){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,h,j]))},nw:function(e,h,j){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,h,j]))}},_propagate:function(e,h){a.ui.plugin.call(this,e,[h,this.ui()]);
e!="resize"&&this._trigger(e,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 e=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 e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];h(e.alsoResize)}else a.each(e.alsoResize,function(j){h(j)});else h(e.alsoResize)},resize:function(e,h){var j=a(this).data("resizable");e=j.options;var l=j.originalSize,p=j.originalPosition,x={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(H,L){a(H).each(function(){var A=a(this),s=a(this).data("resizable-alsoresize"),D={},J=L&&L.length?L:A.parents(h.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(J,function(V,y){if((V=(s[y]||0)+(x[y]||0))&&V>=0)D[y]=V||null});if(a.browser.opera&&/relative/.test(A.css("position"))){j._revertToRelativePosition=true;A.css({position:"absolute",top:"auto",left:"auto"})}A.css(D)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?
a.each(e.alsoResize,function(H,L){z(H,L)}):z(e.alsoResize)},stop:function(){var e=a(this).data("resizable"),h=e.options,j=function(l){a(l).each(function(){var p=a(this);p.css({position:p.data("resizable-alsoresize").position})})};if(e._revertToRelativePosition){e._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(e){var h=
a(this).data("resizable"),j=h.options,l=h._proportionallyResizeElements,p=l.length&&/textarea/i.test(l[0].nodeName),x=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-x};x=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&&x?{top:z,left:x}:{}),{duration:j.animateDuration,easing:j.animateEasing,
step:function(){var H={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:H.width,height:H.height});h._updateCache(H);h._propagate("resize",e)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var e=a(this).data("resizable"),h=e.element,j=e.options.containment;if(h=j instanceof a?j.get(0):/parent/.test(j)?h.parent().get(0):j){e.containerElement=
a(h);if(/document/.test(j)||j==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.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(H,L){p[H]=b(l.css("padding"+L))});e.containerOffset=l.offset();e.containerPosition=l.position();e.containerSize={height:l.innerHeight()-p[3],width:l.innerWidth()-p[1]};j=e.containerOffset;
var x=e.containerSize.height,z=e.containerSize.width;z=a.ui.hasScroll(h,"left")?h.scrollWidth:z;x=a.ui.hasScroll(h)?h.scrollHeight:x;e.parentData={element:h,left:j.left,top:j.top,width:z,height:x}}}},resize:function(e){var h=a(this).data("resizable"),j=h.options,l=h.containerOffset,p=h.position;e=h._aspectRatio||e.shiftKey;var x={top:0,left:0},z=h.containerElement;if(z[0]!=document&&/static/.test(z.css("position")))x=l;if(p.left<(h._helper?l.left:0)){h.size.width+=h._helper?h.position.left-l.left:
h.position.left-x.left;if(e)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(e)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-x.left:h.offset.left-x.left)+h.sizeDiff.width);l=Math.abs((h._helper?h.offset.top-x.top:h.offset.top-
l.top)+h.sizeDiff.height);p=h.containerElement.get(0)==h.element.parent().get(0);x=/relative|absolute/.test(h.containerElement.css("position"));if(p&&x)j-=h.parentData.left;if(j+h.size.width>=h.parentData.width){h.size.width=h.parentData.width-j;if(e)h.size.height=h.size.width/h.aspectRatio}if(l+h.size.height>=h.parentData.height){h.size.height=h.parentData.height-l;if(e)h.size.width=h.size.height*h.aspectRatio}},stop:function(){var e=a(this).data("resizable"),h=e.options,j=e.containerOffset,l=e.containerPosition,
p=e.containerElement,x=a(e.helper),z=x.offset(),H=x.outerWidth()-e.sizeDiff.width;x=x.outerHeight()-e.sizeDiff.height;e._helper&&!h.animate&&/relative/.test(p.css("position"))&&a(this).css({left:z.left-l.left-j.left,width:H,height:x});e._helper&&!h.animate&&/static/.test(p.css("position"))&&a(this).css({left:z.left-l.left-j.left,width:H,height:x})}});a.ui.plugin.add("resizable","ghost",{start:function(){var e=a(this).data("resizable"),h=e.options,j=e.size;e.ghost=e.originalElement.clone();e.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:"");e.ghost.appendTo(e.helper)},resize:function(){var e=a(this).data("resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=a(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var e=
a(this).data("resizable"),h=e.options,j=e.size,l=e.originalSize,p=e.originalPosition,x=e.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(x)){e.size.width=l.width+z;e.size.height=l.height+h}else if(/^(ne)$/.test(x)){e.size.width=l.width+z;e.size.height=l.height+h;e.position.top=p.top-h}else{if(/^(sw)$/.test(x)){e.size.width=l.width+z;e.size.height=
l.height+h}else{e.size.width=l.width+z;e.size.height=l.height+h;e.position.top=p.top-h}e.position.left=p.left-z}}});var b=function(e){return parseInt(e,10)||0},d=function(e){return!isNaN(parseInt(e,10))}})(jQuery);
(function(a,b){function d(){return++h}function e(){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+d()},_sanitizeSelector:function(l){return l.replace(/:/g,"\\:")},_cookie:function(){var l=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+e());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(N,M){N.css("display","");!a.support.opacity&&M.opacity&&N[0].style.removeAttribute("filter")}var x=this,z=this.options,H=/^#.+/;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(N,M){var q=a(M).attr("href"),v=q.split("#")[0],T;if(v&&(v===location.toString().split("#")[0]||
(T=a("base")[0])&&v===T.href)){q=M.hash;M.href=q}if(H.test(q))x.panels=x.panels.add(x.element.find(x._sanitizeSelector(q)));else if(q&&q!=="#"){a.data(M,"href.tabs",q);a.data(M,"load.tabs",q.replace(/#.*$/,""));q=x._tabId(M);M.href="#"+q;M=x.element.find("#"+q);if(!M.length){M=a(z.panelTemplate).attr("id",q).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(x.panels[N-1]||x.list);M.data("destroy.tabs",true)}x.panels=x.panels.add(M)}else z.disabled.push(N)});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(N,M){if(M.hash==location.hash){z.selected=N;return false}});if(typeof z.selected!=="number"&&z.cookie)z.selected=parseInt(x._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(N){return x.lis.index(N)}))).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){x.element.find(x._sanitizeSelector(x.anchors[z.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(z.selected).addClass("ui-tabs-selected ui-state-active");x.element.queue("tabs",function(){x._trigger("show",null,x._ui(x.anchors[z.selected],x.element.find(x._sanitizeSelector(x.anchors[z.selected].hash))[0]))});this.load(z.selected)}a(window).bind("unload",function(){x.lis.add(x.anchors).unbind(".tabs");x.lis=x.anchors=x.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 L;L=this.lis[l];l++)a(L)[a.inArray(l,z.disabled)!=-1&&!a(L).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(N,M){M.is(":not(.ui-state-disabled)")&&M.addClass("ui-state-"+N)},s=function(N,M){M.removeClass("ui-state-"+
N)};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 D,J;if(z.fx)if(a.isArray(z.fx)){D=z.fx[0];J=z.fx[1]}else D=J=z.fx;var V=J?function(N,M){a(N).closest("li").addClass("ui-tabs-selected ui-state-active");M.hide().removeClass("ui-tabs-hide").animate(J,J.duration||"normal",
function(){p(M,J);x._trigger("show",null,x._ui(N,M[0]))})}:function(N,M){a(N).closest("li").addClass("ui-tabs-selected ui-state-active");M.removeClass("ui-tabs-hide");x._trigger("show",null,x._ui(N,M[0]))},y=D?function(N,M){M.animate(D,D.duration||"normal",function(){x.lis.removeClass("ui-tabs-selected ui-state-active");M.addClass("ui-tabs-hide");p(M,D);x.element.dequeue("tabs")})}:function(N,M){x.lis.removeClass("ui-tabs-selected ui-state-active");M.addClass("ui-tabs-hide");x.element.dequeue("tabs")};
this.anchors.bind(z.event+".tabs",function(){var N=this,M=a(N).closest("li"),q=x.panels.filter(":not(.ui-tabs-hide)"),v=x.element.find(x._sanitizeSelector(N.hash));if(M.hasClass("ui-tabs-selected")&&!z.collapsible||M.hasClass("ui-state-disabled")||M.hasClass("ui-state-processing")||x.panels.filter(":animated").length||x._trigger("select",null,x._ui(this,v[0]))===false){this.blur();return false}z.selected=x.anchors.index(this);x.abort();if(z.collapsible)if(M.hasClass("ui-tabs-selected")){z.selected=
-1;z.cookie&&x._cookie(z.selected,z.cookie);x.element.queue("tabs",function(){y(N,q)}).dequeue("tabs");this.blur();return false}else if(!q.length){z.cookie&&x._cookie(z.selected,z.cookie);x.element.queue("tabs",function(){V(N,v)});x.load(x.anchors.index(this));this.blur();return false}z.cookie&&x._cookie(z.selected,z.cookie);if(v.length){q.length&&x.element.queue("tabs",function(){y(N,q)});x.element.queue("tabs",function(){V(N,v)});x.load(x.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 x=a(this).unbind(".tabs");a.each(["href","load","cache"],function(z,H){x.removeData(H+".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,x){if(x===b)x=this.anchors.length;var z=this,H=this.options;p=a(H.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 L=z.element.find("#"+l);L.length||(L=a(H.panelTemplate).attr("id",l).data("destroy.tabs",true));L.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(x>=this.lis.length){p.appendTo(this.list);L.appendTo(this.list[0].parentNode)}else{p.insertBefore(this.lis[x]);
L.insertBefore(this.panels[x])}H.disabled=a.map(H.disabled,function(A){return A>=x?++A:A});this._tabify();if(this.anchors.length==1){H.selected=0;p.addClass("ui-tabs-selected ui-state-active");L.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[x],this.panels[x]));return this},remove:function(l){l=this._getIndex(l);var p=this.options,x=this.lis.eq(l).remove(),z=this.panels.eq(l).remove();
if(x.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(H){return H!=l}),function(H){return H>=l?--H:H});this._tabify();this._trigger("remove",null,this._ui(x.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(x){return x!=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,x=this.options,z=this.anchors.eq(l)[0],H=a.data(z,"load.tabs");this.abort();if(!H||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(x.spinner){var L=a("span",z);L.data("label.tabs",L.html()).html(x.spinner)}this.xhr=a.ajax(a.extend({},x.ajaxOptions,{url:H,success:function(A,s){p.element.find(p._sanitizeSelector(z.hash)).html(A);p._cleanup();x.cache&&a.data(z,
"cache.tabs",true);p._trigger("load",null,p._ui(p.anchors[l],p.panels[l]));try{x.ajaxOptions.success(A,s)}catch(D){}},error:function(A,s){p._cleanup();p._trigger("load",null,p._ui(p.anchors[l],p.panels[l]));try{x.ajaxOptions.error(A,s,l,z)}catch(D){}}}));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 x=this,z=this.options,H=x._rotate||(x._rotate=function(L){clearTimeout(x.rotation);x.rotation=setTimeout(function(){var A=z.selected;x.select(++A<x.anchors.length?A:0)},l);L&&L.stopPropagation()});p=x._unrotate||(x._unrotate=!p?function(L){L.clientX&&
x.rotate(null)}:function(){t=z.selected;H()});if(l){this.element.bind("tabsshow",H);this.anchors.bind(z.event+".tabs",p);H()}else{clearTimeout(x.rotation);this.element.unbind("tabsshow",H);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 d={};for(var e in b)d[e]=b[e];b=d;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,d){if(b===
"disabled"){this.options[b]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,d){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(b);var e=null,h=this;a(b.target).parents().each(function(){if(a.data(this,"sortable-item")==h){e=a(this);return false}});if(a.data(b.target,"sortable-item")==h)e=a(b.target);if(!e)return false;if(this.options.handle&&
!d){var j=false;a(this.options.handle,e).find("*").andSelf().each(function(){if(this==b.target)j=true});if(!j)return false}this.currentItem=e;this._removeCurrentsFromItems();return true},_mouseStart:function(b,d,e){d=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;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=
document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!d.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 d=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(b.pageY-this.overflowOffset.top<
d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(b.pageX-this.overflowOffset.left<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(b.pageY-a(document).scrollTop()<d.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-
d.scrollSpeed);else if(a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed);if(b.pageX-a(document).scrollLeft()<d.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed);else if(a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)}e!==false&&a.ui.ddmanager&&!d.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(d=this.items.length-1;d>=0;d--){e=this.items[d];var h=e.item[0],j=this._intersectsWithPointer(e);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(e))this._rearrange(b,e);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,d){if(b){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;d=e.placeholder.offset();
e.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,d);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 d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};a(d).each(function(){var h=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);if(h)e.push((b.key||h[1]+"[]")+"="+(b.key&&b.expression?h[1]:h[2]))});!e.length&&b.key&&e.push(b.key+"=");return e.join("&")},
toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),e=[];b=b||{};d.each(function(){e.push(a(b.item||this).attr(b.attribute||"id")||"")});return e},_intersectsWith:function(b){var d=this.positionAbs.left,e=d+this.helperProportions.width,h=this.positionAbs.top,j=h+this.helperProportions.height,l=b.left,p=l+b.width,x=b.top,z=x+b.height,H=this.offset.click.top,L=this.offset.click.left;H=h+H>x&&h+H<z&&d+L>l&&d+L<p;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?H:l<d+this.helperProportions.width/2&&e-this.helperProportions.width/2<p&&x<h+this.helperProportions.height/2&&j-this.helperProportions.height/2<z},_intersectsWithPointer:function(b){var d=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);d=d&&b;b=this._getDragVerticalDirection();
var e=this._getDragHorizontalDirection();if(!d)return false;return this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1)},_intersectsWithSides:function(b){var d=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 e=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h=="right"&&b||h=="left"&&!b:e&&(e=="down"&&d||e=="up"&&!d)},
_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 d=[],e=[],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)e.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])}e.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=e.length-1;b>=0;b--)e[b][0].each(function(){d.push(this)});return a(d)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++)for(var e=0;e<b.length;e++)b[e]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(b){this.items=[];this.containers=[this];var d=this.items,e=[[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 x=a.data(l[p],"sortable");if(x&&x!=this&&!x.options.disabled){e.push([a.isFunction(x.options.items)?x.options.items.call(x.element[0],b,{item:this.currentItem}):a(x.options.items,x.element),x]);this.containers.push(x)}}for(j=e.length-1;j>=0;j--){b=e[j][1];h=e[j][0];p=0;for(l=h.length;p<l;p++){x=a(h[p]);x.data("sortable-item",b);d.push({item:x,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 d=this.items.length-1;d>=0;d--){var e=this.items[d];if(!(e.instance!=this.currentContainer&&this.currentContainer&&e.item[0]!=this.currentItem[0])){var h=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=h.outerWidth();e.height=h.outerHeight()}h=h.offset();e.left=h.left;e.top=h.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=
this.containers.length-1;d>=0;d--){h=this.containers[d].element.offset();this.containers[d].containerCache.left=h.left;this.containers[d].containerCache.top=h.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(b){var d=b||this,e=d.options;if(!e.placeholder||e.placeholder.constructor==String){var h=e.placeholder;e.placeholder={element:function(){var j=
a(document.createElement(d.currentItem[0].nodeName)).addClass(h||d.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&&!e.forcePlaceholderSize)){l.height()||l.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));l.width()||l.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||
0,10))}}}}d.placeholder=a(e.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);e.placeholder.update(d,d.placeholder)},_contactContainers:function(b){for(var d=null,e=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(!(d&&a.ui.contains(this.containers[h].element[0],d.element[0]))){d=this.containers[h];e=h}}else if(this.containers[h].containerCache.over){this.containers[h]._trigger("out",
b,this._uiHash(this));this.containers[h].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){d=1E4;h=null;for(var j=this.positionAbs[this.containers[e].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(a.ui.contains(this.containers[e].element[0],this.items[l].item[0])){var p=this.items[l][this.containers[e].floating?"left":"top"];if(Math.abs(p-
j)<d){d=Math.abs(p-j);h=this.items[l]}}if(h||this.options.dropOnEmpty){this.currentContainer=this.containers[e];h?this._rearrange(b,h,null,true):this._rearrange(b,null,this.containers[e].element,true);this._trigger("change",b,this._uiHash());this.containers[e]._trigger("change",b,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",b,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(b){var d=
this.options;b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[b,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;b.parents("body").length||a(d.appendTo!="parent"?d.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==
""||d.forceHelperSize)b.width(this.currentItem.width());if(b[0].style.height==""||d.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 d=a(b.containment)[0];b=a(b.containment).offset();var e=a(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(d).css("borderTopWidth"),
10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,d){if(!d)d=
this.position;b=b=="absolute"?1:-1;var e=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(e[0].tagName);return{top:d.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:e.scrollTop())*b),left:d.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:e.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,e=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(e[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(d.grid){l=this.originalPageY+Math.round((l-
this.originalPageY)/d.grid[1])*d.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-d.grid[1]:l+d.grid[1]:l;j=this.originalPageX+Math.round((j-this.originalPageX)/d.grid[0])*d.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-d.grid[0]:j+d.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:e.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:e.scrollLeft())}},_rearrange:function(b,d,e,h){e?e[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],
this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var j=this,l=this.counter;window.setTimeout(function(){l==j.counter&&j.refreshPositions(!h)},0)},_clear:function(b,d){this.reverting=false;var e=[];!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&&!d&&e.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])&&!d)e.push(function(j){this._trigger("update",j,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){d||e.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])&&!d){e.push(function(j){return function(l){j._trigger("receive",l,this._uiHash(this))}}.call(this,this.containers[h]));e.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--){d||e.push(function(j){return function(l){j._trigger("deactivate",l,this._uiHash(this))}}.call(this,
this.containers[h]));if(this.containers[h].containerCache.over){e.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(!d){this._trigger("beforeStop",
b,this._uiHash());for(h=0;h<e.length;h++)e[h].call(this,b);this._trigger("stop",b,this._uiHash())}return false}d||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(!d){for(h=0;h<e.length;h++)e[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 d=b||this;return{helper:d.helper,placeholder:d.placeholder||a([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:b?b.element:null}}});a.extend(a.ui.sortable,{version:"@VERSION"})})(jQuery);
(function(a){function b(e,h){return typeof e=="function"?e.call(h):e}function d(e,h){this.$element=a(e);this.options=h;this.enabled=true;this.fixTitle()}d.prototype={show:function(){var e=this.getTitle();if(e&&this.enabled){var h=this.tip();h.find(".tipsy-inner")[this.options.html?"html":"text"](e);h[0].className="tipsy";h.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);e=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]),x;switch(p.charAt(0)){case "n":x={top:e.top+e.height+this.options.offset,left:e.left+e.width/2-j/2};break;case "s":x={top:e.top-l-this.options.offset,left:e.left+e.width/2-j/2};break;case "e":x={top:e.top+e.height/2-l/2,left:e.left-j-this.options.offset};break;case "w":x={top:e.top+e.height/2-l/2,left:e.left+e.width+this.options.offset};break}if(p.length==2)x.left=p.charAt(1)=="w"?e.left+e.width/2-15:e.left+e.width/
2-j+15;h.css(x).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 e=
this.$element;if(e.attr("title")||typeof e.attr("original-title")!="string")e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var e,h=this.$element,j=this.options;this.fixTitle();j=this.options;if(typeof j.title=="string")e=h.attr(j.title=="title"?"original-title":j.title);else if(typeof j.title=="function")e=j.title.call(h[0]);return(e=(""+e).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(e){function h(z){var H=a.data(z,"tipsy");if(!H){H=new d(z,a.fn.tipsy.elementOptions(z,e));a.data(z,"tipsy",H)}return H}function j(){var z=h(this);z.hoverState="in";if(e.delayIn==0)z.show();else{z.fixTitle();setTimeout(function(){z.hoverState==
"in"&&z.show()},e.delayIn)}}function l(){var z=h(this);z.hoverState="out";e.delayOut==0?z.hide():setTimeout(function(){z.hoverState=="out"&&z.hide()},e.delayOut)}if(e===true)return this.data("tipsy");else if(typeof e=="string"){var p=this.data("tipsy");p&&p[e]();return this}e=a.extend({},a.fn.tipsy.defaults,e);e.live||this.each(function(){h(this)});if(e.trigger!="manual"){p=e.live?"live":"bind";var x=e.trigger=="hover"?"mouseleave":"blur";this[p](e.trigger=="hover"?"mouseenter":"focus",j)[p](x,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(e,h){return a.metadata?a.extend({},h,a(e).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(e,h){return function(){var j={ns:h[0],ew:h.length>1?h[1]:false},l=a(document).scrollTop()+e,p=a(document).scrollLeft()+e,x=a(this);if(x.offset().top<l)j.ns="n";if(x.offset().left<p)j.ew="w";if(a(window).width()+a(document).scrollLeft()-x.offset().left<e)j.ew="e";if(a(window).height()+a(document).scrollTop()-x.offset().top<e)j.ns="s";return j.ns+(j.ew?j.ew:"")}}})(jQuery);
(function(a){jQuery.autocomplete=function(b,d){function e(){ea={};ea.data={};ea.length=0}function h(){if(na==46||na>8&&na<32)return Y.hide();var f=T.val();if(f!=ma){ma=f;if(f.length>=d.minChars){T.addClass(d.loadingClass);V(f)}else{T.removeClass(d.loadingClass);Y.hide()}}}function j(f){var P=a("li",ca);if(P){pa+=f;if(pa<0)pa=0;else if(pa>=P.size())pa=P.size()-1;P.removeClass("ac_over");a(P[pa]).addClass("ac_over")}}function l(){var f=a("li.ac_over",ca)[0];if(!f){var P=a("li",ca);if(d.selectOnly){if(P.length==
1)f=P[0]}else if(d.selectFirst)f=P[0]}if(f){p(f);return true}else return false}function p(f){var P=T.get(0).autocompleter;if(!f){f=document.createElement("li");f.extra=[];f.selectValue=""}var aa=a.trim(f.selectValue?f.selectValue:f.innerHTML);f=jQuery(f).clone().get(0);ma=b.lastSelected=aa;Y.html("");T.val(aa);A();d.onItemSelect&&setTimeout(function(){d.onItemSelect(P,f)},1)}function x(f,P){var aa=T.get(0);if(aa.createTextRange){var ka=aa.createTextRange();ka.collapse(true);ka.moveStart("character",
f);ka.moveEnd("character",P);ka.select()}else if(aa.setSelectionRange)aa.setSelectionRange(f,P);else if(aa.selectionStart){aa.selectionStart=f;aa.selectionEnd=P}aa.focus()}function z(f){if(na!=8){T.val(T.val()+f.substring(ma.length));x(ma.length,f.length)}}function H(){for(var f=b,P=0;f.tagName.toUpperCase()!="BODY";)if(a(f).css("z-index")!="auto"){P=a(f).css("z-index");break}else f=f.parentNode;f=jQuery(b).offsetParent().css("position")=="fixed"?"fixed":"absolute";var aa=v(b),ka=d.width>0?d.width:
T.width();Y.css({zIndex:P,width:parseInt(ka)+"px",top:aa.y+b.offsetHeight+"px",left:aa.x+"px",position:f}).show()}function L(){ha&&clearTimeout(ha);ha=setTimeout(A,200)}function A(){ha&&clearTimeout(ha);T.removeClass(d.loadingClass);Y.is(":visible")&&Y.hide();d.mustMatch&&T.val()!=b.lastSelected&&p(null)}function s(f,P){if(P){T.removeClass(d.loadingClass);ca.innerHTML="";if(!ja||P.length==0)return A();a.browser.msie&&Y.append(document.createElement("iframe"));ca.appendChild(J(P));d.autoFill&&T.val().toLowerCase()==
f.toLowerCase()&&z(P[0][0]);H()}else A()}function D(f){if(!f)return null;var P=[];f=f.split(d.lineSeparator);for(var aa=0;aa<f.length;aa++){var ka=a.trim(f[aa]);if(ka)P[P.length]=ka.split(d.cellSeparator)}return P}function J(f){var P=document.createElement("ul"),aa=f.length;if(d.maxItemsToShow>0&&d.maxItemsToShow<aa)aa=d.maxItemsToShow;for(var ka=0;ka<aa;ka++){var ua=f[ka];if(ua){var wa=document.createElement("li");wa.innerHTML=d.formatItem?d.formatItem(ua,ka,aa):ua[0];wa.selectValue=ua[0];var qa=
null;if(ua.length>1){qa=[];for(var Ea=1;Ea<ua.length;Ea++)qa[qa.length]=ua[Ea]}wa.extra=qa;P.appendChild(wa);a(wa).hover(function(){a("li",P).removeClass("ac_over");a(this).addClass("ac_over");pa=a("li",P).indexOf(a(this).get(0))},function(){a(this).removeClass("ac_over")}).click(function(Ja){Ja.preventDefault();Ja.stopPropagation();p(this)})}}return P}function V(f){d.matchCase||(f=f.toLowerCase());var P=d.cacheLength?N(f):null;if(P)s(f,P);else if(typeof d.url=="string"&&d.url.length>0){a.ajaxq("autocomplete"+
d.id);a.ajaxq("autocomplete"+d.id,{type:"GET",url:y(f),success:function(aa,ka,ua){if(ua.status==0)WikispacesSession.reloadSession(function(){V(f)},3E3);else{WikispacesSession.reloadSessionSuccess();aa=D(aa);q(f,aa);s(f,aa)}},error:function(){WikispacesSession.reloadSession(function(){V(f)},3E3)}})}else T.removeClass(d.loadingClass)}function y(f){f=d.url+"?q="+encodeURIComponent(f);for(var P in d.extraParams)f+="&"+P+"="+encodeURIComponent(d.extraParams[P]);return f}function N(f){if(!f)return null;
if(ea.data[f])return ea.data[f];if(d.matchSubset)for(var P=f.length-1;P>=d.minChars;P--){var aa=f.substr(0,P);if(aa=ea.data[aa]){P=[];for(var ka=0;ka<aa.length;ka++){var ua=aa[ka];if(M(ua[0],f))P[P.length]=ua}return P}}return null}function M(f,P){d.matchCase||(f=f.toLowerCase());f=f.indexOf(P);if(f==-1)return false;return f==0||d.matchContains}function q(f,P){if(!(!P||!f||!d.cacheLength)){if(!ea.length||ea.length>d.cacheLength){e();ea.length++}else ea[f]||ea.length++;ea.data[f]=P}}function v(f){var P=
a(f).offset();if(a(f).offsetParent().css("position")=="fixed"){f=P.left-jQuery(document).scrollLeft();P=P.top-jQuery(document).scrollTop()}else{f=P.left;P=P.top}return{x:f,y:P}}this.options=d;this.input=b;var T=a(b).attr("autocomplete","off");d.inputClass&&T.addClass(d.inputClass);var ca=document.createElement("div"),Y=a(ca);Y.hide().addClass(d.resultsClass).css("position","absolute");d.width>0&&Y.css("width",d.width);a("body").append(ca);b.autocompleter=this;var ha=null,ma="",pa=-1,ea={},ja=false,
na=null;e();if(d.data!=null){var w="",E={},C=[];if(typeof d.url!="string")d.cacheLength=1;for(var U=0;U<d.data.length;U++){C=typeof d.data[U]=="string"?[d.data[U]]:d.data[U];if(C[0].length>0){w=C[0].substring(0,1).toLowerCase();E[w]||(E[w]=[]);E[w].push(C)}}for(var S in E){d.cacheLength++;q(S,E[S])}}T.keydown(function(f){na=f.keyCode;switch(f.keyCode){case 38:f.preventDefault();j(-1);break;case 40:f.preventDefault();j(1);break;case 9:case 13:if(l()){T.get(0).blur();f.preventDefault()}break;case 16:case 17:case 18:case 20:case 45:f.preventDefault();
break;default:pa=-1;ha&&clearTimeout(ha);ha=setTimeout(function(){h()},d.delay);break}}).focus(function(){ja=true}).blur(function(){ja=false;L()});A();this.refreshResults=function(){ha&&clearTimeout(ha);var f=T.val();ma=f;T.addClass(d.loadingClass);V(f)};this.flushCache=function(){e()};this.setExtraParams=function(f){d.extraParams=f};this.findValue=function(){var f=T.val(),P=this;if(f.length){d.matchCase||(f=f.toLowerCase());var aa=d.cacheLength?N(f):null;if(aa)this.findValueCallback(P,f,aa);else if(typeof d.url==
"string"&&d.url.length>0){a.ajaxq("autocomplete"+d.id);a.ajaxq("autocomplete"+d.id,{type:"GET",url:y(f),success:function(ka,ua,wa){if(wa.status==0)WikispacesSession.reloadSession(function(){P.findValue()},3E3);else{WikispacesSession.reloadSessionSuccess();ka=D(ka);q(f,ka);P.findValueCallback(P,f,ka)}},error:function(){WikispacesSession.reloadSession(function(){P.findValue()},3E3)}})}else this.findValueCallback(P,f,null)}else d.onEmptyValue&&setTimeout(function(){d.onEmptyValue(P)},1)};this.findValueCallback=
function(f,P,aa){aa&&T.removeClass(d.loadingClass);for(var ka=aa?aa.length:0,ua=null,wa=0;wa<ka;wa++){var qa=aa[wa];if(qa[0].toLowerCase()==P.toLowerCase()){ua=document.createElement("li");ua.innerHTML=d.formatItem?d.formatItem(qa,wa,ka):qa[0];ua.selectValue=qa[0];var Ea=null;if(qa.length>1){Ea=[];for(var Ja=1;Ja<qa.length;Ja++)Ea[Ea.length]=qa[Ja]}ua.extra=Ea}}d.onFindValue&&setTimeout(function(){d.onFindValue(f,ua)},1)}};jQuery.fn.autocomplete=function(b,d,e){d=d||{};d.url=b;d.data=typeof e=="object"&&
e.constructor==Array?e:null;d.inputClass=d.inputClass||"ac_input";d.resultsClass=d.resultsClass||"ac_results";d.lineSeparator=d.lineSeparator||"\n";d.cellSeparator=d.cellSeparator||"|";d.minChars=d.minChars||1;d.delay=d.delay||400;d.matchCase=d.matchCase||0;d.matchSubset=d.matchSubset||0;d.matchContains=d.matchContains||0;d.cacheLength=d.cacheLength||10;d.mustMatch=d.mustMatch||0;d.extraParams=d.extraParams||{};d.loadingClass=d.loadingClass||"ac_loading";d.selectFirst=d.selectFirst||false;d.selectOnly=
d.selectOnly||false;d.maxItemsToShow=d.maxItemsToShow||-1;d.autoFill=d.autoFill||false;d.width=parseInt(d.width,10)||0;this.each(function(){new jQuery.autocomplete(this,d)});return this};jQuery.fn.autocompleteArray=function(b,d){return this.autocomplete(null,d,b)};jQuery.fn.indexOf=function(b){for(var d=0;d<this.length;d++)if(this[d]==b)return d;return-1}})(jQuery);
(function(a){function b(e){return typeof e=="object"?e:{top:e,left:e}}var d=a.scrollTo=function(e,h,j){a(window).scrollTo(e,h,j)};d.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1};d.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 e=(this.contentWindow||this).document||this.ownerDocument||this;return a.browser.safari||
e.compatMode=="BackCompat"?e.body:e.documentElement})};a.fn.scrollTo=function(e,h,j){if(typeof h=="object"){j=h;h=0}if(typeof j=="function")j={onAfter:j};if(e=="max")e=9E9;j=a.extend({},d.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){x.animate(L,h,j.easing,s&&function(){s.call(this,e,j)})}var p=this,x=a(p),z=e,H,L={},A=x.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)H=(z=a(z)).offset()}a.each(j.axis.split(""),function(s,D){var J=D=="x"?"Left":"Top",V=J.toLowerCase(),y="scroll"+J,N=p[y],M=d.max(p,D);if(H){L[y]=H[V]+(A?0:N-x.offset()[V]);if(j.margin){L[y]-=parseInt(z.css("margin"+J))||0;L[y]-=parseInt(z.css("border"+J+"Width"))||0}L[y]+=j.offset[V]||0;if(j.over[V])L[y]+=z[D=="x"?"width":"height"]()*j.over[V]}else{D=z[V];L[y]=D.slice&&D.slice(-1)=="%"?parseFloat(D)/100*M:D}if(/^\d+$/.test(L[y]))L[y]=L[y]<=0?
0:Math.min(L[y],M);if(!s&&j.queue){N!=L[y]&&l(j.onAfterFirst);delete L[y]}});l(j.onAfter)}).end()};d.max=function(e,h){var j=h=="x"?"Width":"Height";h="scroll"+j;if(!a(e).is("html,body"))return e[h]-a(e)[j.toLowerCase()]();j="client"+j;var l=e.ownerDocument.documentElement;e=e.ownerDocument.body;return Math.max(l[h],e[h])-Math.min(l[j],e[j])}})(jQuery);
(function(a){a.fn.hoverIntent=function(b,d){var e={sensitivity:7,interval:100,timeout:0};e=a.extend(e,d?{over:b,out:d}:b);var h,j,l,p,x=function(L){h=L.pageX;j=L.pageY},z=function(L,A){A.hoverIntent_t=clearTimeout(A.hoverIntent_t);if(Math.abs(l-h)+Math.abs(p-j)<e.sensitivity){a(A).unbind("mousemove",x);A.hoverIntent_s=1;return e.over.apply(A,[L])}else{l=h;p=j;A.hoverIntent_t=setTimeout(function(){z(L,A)},e.interval)}},H=function(L,A){A.hoverIntent_t=clearTimeout(A.hoverIntent_t);A.hoverIntent_s=0;
return e.out.apply(A,[L])};b=function(L){var A=jQuery.extend({},L),s=this;if(s.hoverIntent_t)s.hoverIntent_t=clearTimeout(s.hoverIntent_t);if(L.type=="mouseenter"){l=A.pageX;p=A.pageY;a(s).bind("mousemove",x);if(s.hoverIntent_s!=1)s.hoverIntent_t=setTimeout(function(){z(A,s)},e.interval)}else{a(s).unbind("mousemove",x);if(s.hoverIntent_s==1)s.hoverIntent_t=setTimeout(function(){H(A,s)},e.timeout)}};return this.bind("mouseenter",b).bind("mouseleave",b)}})(jQuery);
jQuery(function(a){a.fn.fcbkcomplete=function(b){return this.each(function(){function d(){e();l();j();h();D()}function e(){C.hide();C.attr("multiple","multiple");C.attr("name").indexOf("[]")==-1&&C.attr("name",C.attr("name")+"[]");q=a("<ul/>").attr("class","holder");C.after(q);T=a("<div/>").addClass("facebook-auto");T.append('<div class="default">'+M.complete_text+"</div>");if(na){T.append('<iframe class="ie6fix" scrolling="no" frameborder="0"></iframe>');w=T.children(".ie6fix")}v=a("<ul/>").attr("id",
U+"_feed");T.prepend(v);q.after(T)}function h(){C.children("option").not(E).removeAttr("selected").removeClass("selected");q.empty();a(E).attr("selected","selected").addClass("selected").each(function(S,f){f=a(f);p(f.text(),f.val(),true)});z(0);T.children(".default").show()}function j(){E=[];C.children("option.selected").each(function(){E[E.length]=this})}function l(){var S=M.filter_case?"":"i";C.children("option").each(function(f,P){P=a(P);if(!(new RegExp(ma+"\\d+:"+WikispacesCommon.escapeRegExp(P.text())+
ma,"g"+S)).exec(pa)){Y.push({caption:P.text(),value:P.val(),count:P.attr("count")});pa+=""+(Y.length-1)+":"+P.text()+ma}})}function p(S,f,P){S=a.trim(S);S=f=a.trim(f);if(!S||!f)return false;a("<div/>").text(f).html();var aa=q.find("li").filter(function(){return(a(this).attr("rel")||"").toLowerCase()==f.toLowerCase()});if(aa.length){a(aa).effect("highlight",{},3E3);a("#"+U+"_annoninput").children(".maininput").val("")}else{aa=a("<a/>").attr({"class":"closebutton",href:"#"}).click(function(){a(this).parent("li").fadeOut("fast",
function(){x(a(this))});return false});a("<li/>").attr({"class":"bit-box",rel:f}).text(S).append(aa).appendTo(q);if(!P){a("#"+U+"_annoninput").remove();z(1);aa=C.children("option").filter(function(){return a(this).val().toLowerCase()==f.toLowerCase()});if(aa.length){S=aa;S.attr("selected","selected");S.hasClass("selected")||S.addClass("selected")}else S=a("<option/>").attr("value",f).attr("selected","selected").addClass("selected").text(S).appendTo(C);M.onselect.length&&V(M.onselect,S)}q.children("li.bit-box.deleted").removeClass("deleted");
v.hide();na&&w.hide()}}function x(S){if(M.onremove.length){var f=C.children("option").filter(function(){return jQuery(this).val()==S.attr("rel")});V(M.onremove,f)}C.children("option").filter(function(){return jQuery(this).val()==S.attr("rel")}).removeAttr("selected").removeClass("selected");S.remove();ja=0}function z(S){var f=a("<li/>").attr({"class":"bit-input",id:U+"_annoninput"}),P=a("<input/>").attr({type:"text","class":"maininput",size:"1",maxlength:M.maxlength});q.append(f.append(P));P.focus(function(){T.fadeIn("fast")});
P.blur(function(){T.fadeOut("fast")});q.click(function(){P.focus();if(v.length&&P.val().length){v.show();T.children(".default").hide()}else{v.hide();na&&w.hide();T.children(".default").show()}});P.keypress(function(aa){if(aa.keyCode==13)return false;P.attr("size",P.val().length+1)});D();P.keyup(function(aa){var ka=N(P.val());if(!(aa.keyCode==40||aa.keyCode==38||aa.keyCode==188&&!aa.shiftKey&&M.comma_is_enter))if(ka.length!=0){ca=0;if(M.json_url)if(M.cache&&ha){H(ka);D()}else{a.ajaxq("fcbkcomplete");
a.ajaxq("fcbkcomplete",{url:M.json_url+"?tag="+encodeURIComponent(ka),data:null,dataType:"json",type:"GET",success:function(ua){H(ka,ua);ha=true;D()}})}else{H(ka);D()}T.children(".default").hide();v.show()}else{v.hide();na&&w.hide();T.children(".default").show()}});S&&setTimeout(function(){P.focus();T.children(".default").show()},1)}function H(S,f){v.html("");ea=null;var P=M.filter_case?"":"i";if(!M.cache){Y=[];pa=ma}J(S);f!=null&&f.length&&a.each(f,function(hb,La){if(!(new RegExp(ma+"\\d+:"+WikispacesCommon.escapeRegExp(La.caption)+
ma,"g"+P)).exec(pa)){Y.push({caption:La.caption,value:La.value,count:La.count});pa+=""+(Y.length-1)+":"+La.caption+ma}});var aa,ka;try{aa=new RegExp(ma+"(\\d+):[^"+ma+"]*?"+WikispacesCommon.escapeRegExp(S)+"[^"+ma+"]*","g"+P);ka=aa.exec(pa)}catch(ua){}S=L(a("<div/>").text(S).html());f=M.maxshownitems<Y.length?M.maxshownitems:Y.length;for(var wa="";ka!=null&&f>0;){var qa=Y[ka[1]],Ea=false,Ja=qa.value;ka=C.children("option").filter(function(){return a(this).val()==Ja});if(M.filter_case&&M.filter_selected&&
ka.hasClass("selected"))Ea=true;else!M.filter_case&&M.filter_selected&&C.find("option").each(function(){if(this.value.toLowerCase()==qa.value.toLowerCase()&&a(this).hasClass("selected"))Ea=true});if(!Ea){wa+='<li rel="'+a("<div/>").text(qa.value).html().replace(/"/g,"&quot;")+'">'+S(a("<div/>").text(qa.caption).html())+(qa.count!=null?" ("+qa.count+")":"")+"</li>";ca++;f--}ka=aa.exec(pa)}v.append(wa);if(M.firstselected){ea=v.children("li:visible:first");ea.addClass("auto-focus")}if(ca>M.height){v.css({height:M.height*
24+"px",overflow:"auto"});na&&w.css({height:M.height*24+"px",width:v.width()+"px"}).show()}else{v.css("height","auto");na&&w.css({height:v.height()+"px",width:v.width()+"px"}).show()}}function L(S){var f=M.filter_case?"":"i",P=new RegExp("("+WikispacesCommon.escapeRegExp(S)+")",f);return function(aa){return aa.replace(P,"<em>$1</em>")}}function A(){v.children("li").mouseover(function(){v.children("li.auto-focus").removeClass("auto-focus");a(this).addClass("auto-focus");ea=a(this)}).mouseout(function(){a(this).removeClass("auto-focus");
ea=null})}function s(){v.children("li").unbind("mouseover").unbind("mouseout");v.mousemove(function(){v.unbind("mousemove");A()})}function D(){var S=a("#"+U+"_annoninput").children(".maininput");v.mousemove(function(){A();v.unbind("mousemove")});v.children("li").unbind("mousedown");v.children("li").mousedown(function(){var f=a(this);p(f.text(),f.attr("rel"));v.hide();na&&w.hide();T.hide()});S.unbind("keydown");S.keydown(function(f){f.keyCode!=8&&q.children("li.bit-box.deleted").removeClass("deleted");
var P=a.trim(S.val());if(f.keyCode==8&&P.length==0){v.hide();if(q.children("li.bit-box.deleted").length==0){q.children("li.bit-box:last").addClass("deleted");return false}else{if(ja)return;ja=1;q.children("li.bit-box.deleted").fadeOut("fast",function(){x(a(this));return false})}}if((f.keyCode==13||M.comma_is_enter&&f.keyCode==188&&!f.shiftKey)&&y()){P=ea;p(P.text(),P.attr("rel"));T.hide();f.preventDefault();ea=null;return false}if((f.keyCode==13||M.comma_is_enter&&f.keyCode==188&&!f.shiftKey)&&!y()){if(M.newel){P=
N(a(this).val());p(P,P);T.hide();f.preventDefault();ea=null}return false}if(f.keyCode==40){s();if(ea==null||ea.length==0){ea=v.children("li:visible:first");v.get(0).scrollTop=0}else{ea.removeClass("auto-focus");ea=ea.nextAll("li:visible:first");P=parseInt(ea.prevAll("li:visible").length,10);var aa=parseInt(ea.nextAll("li:visible").length,10);if((P>Math.round(M.height/2)||aa<=Math.round(M.height/2))&&typeof ea.get(0)!="undefined")v.get(0).scrollTop=parseInt(ea.get(0).scrollHeight,10)*(P-Math.round(M.height/
2))}v.children("li").removeClass("auto-focus");ea.addClass("auto-focus")}if(f.keyCode==38){s();if(ea==null||ea.length==0){ea=v.children("li:visible:last");v.get(0).scrollTop=parseInt(ea.get(0).scrollHeight,10)*(parseInt(v.children("li:visible").length,10)-Math.round(M.height/2))}else{ea.removeClass("auto-focus");ea=ea.prevAll("li:visible:first");P=parseInt(ea.prevAll("li:visible").length,10);aa=parseInt(ea.nextAll("li:visible").length,10);if((aa>Math.round(M.height/2)||P<=Math.round(M.height/2))&&
typeof ea.get(0)!="undefined")v.get(0).scrollTop=parseInt(ea.get(0).scrollHeight,10)*(P-Math.round(M.height/2))}v.children("li").removeClass("auto-focus");ea.addClass("auto-focus")}})}function J(S){if(M.newel){v.children("li[fckb=1]").remove();if(S.length!=0){a("<li/>").attr({rel:S,fckb:"1"}).text(S).prependTo(v);ca++}}}function V(S,f){var P="";for(i=0;i<f.get(0).attributes.length;i++)if(f.get(0).attributes[i].nodeValue!=null)P+='"_'+f.get(0).attributes[i].nodeName+'": "'+f.get(0).attributes[i].nodeValue+
'",';P="{"+P+" notinuse: 0}";try{eval(S+"("+P+")")}catch(aa){}}function y(){if(ea==null)return false;if(ea.length==0)return false;return true}function N(S){return jQuery.trim(S)}a(this).bind("addItem",function(S,f){p(f.title,f.value)});var M=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,v=null,T=null,ca=0,Y=[],
ha=false,ma=",",pa=ma,ea=null,ja=0,na=false,w,E=[],C=a(this),U=C.attr("id");this.addFinalItem=function(){var S=a("#"+U+"_annoninput").children(".maininput");(S=a.trim(S.val()))&&p(S,S)};this.reset=h;this.updateSelected=j;d();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 d=jssm.zerolength;d<jssm.stack.length;d++)a===jssm.stack[d]&&b.push(d);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 d=jssm.iframe.contentWindow.document;d.open("javascript:'<html></html>'");d.write('<html><head><script type="text/javascript">window.parent.jssm.iframeEvent("'+b+'");<\/script></head><body>'+b+"</body></html>");d.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("#"),d=a.indexOf("?"),e="",h="";if(b!=-1){if(d!=-1&&d<b)e=a.substring(d,b);h=a.substring(b)}else if(d>=0)e=a.substring(d);if(b!=-1&&d!=-1)a=a.substring(0,Math.min(b,d));else if(b!=-1)a=a.substring(0,b);else if(d!=-1)a=a.substring(0,d);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(e);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,d){if(a==b&&b.indexOf("?")==-1)return this.getCurrentPage(b);a=this.getPathTokens(a);b=this.getPathTokens(b);if(((d=d||false)||b[1])&&a[1]!==b[1])return false;if((d||b[2])&&a[2]!==b[2])return false;if(a[3]!==b[3]){if(d)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="";if(!a[5].length||!b[4])d+=b[5].join("/")+"/"+(b[6]?b[6]:"");else{var e=0;if(a[5].length&&b[5].length){for(e=0;e<a[5].length;e++)if(a[5][e]==b[5][e]){a[5].shift();b[5].shift();e--}else break;for(e=0;e<a[5].length;e++)d+="../";d+=b[5].join("/")+(b[5].length?"/":"")+(b[6]?b[6]:"")}else{for(e=0;e<a[5].length;e++)d+="../";d+=b[6]?b[6]:""}}if(b[7])d+=b[7];if(b[8])d+=b[8];return d},getRootRelativePath:function(a,b,d){if(arguments.length==1){var e=jssm.getPathTokens(a);
return"/"+e[5].join("/")+"/"+(e[6]?e[6]:"")}a=this.getPathTokens(a);b=this.getPathTokens(b);if(((d=d||false)||b[1])&&a[1]!==b[1])return false;if((d||b[2])&&a[2]!==b[2])return false;if(a[3]!==b[3]){if(d)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="/";b[4]||(e+=a[5].join("/")+"/");if(b[5].length)e+=b[5].join("/")+"/";if(b[6])e+=b[6];if(b[7])e+=b[7];if(b[8])e+=b[8];return e},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 d="",e="";if(a=="submit"&&this.action){d=jQuery('<a href="'+this.action+'"></a>').get(0).href;e="&"+jQuery(this).serialize()}else if(this.href)d=this.href;d=jssm.getRelativePath(jssm.getHref(),d);if(d!==false){d=d+(d.indexOf("?")>=0?"&":"?")+"rid="+jssm.rid++ +e;jssm.setHash(d)}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 d(y,N,M){N={bottomright:[[0,0],[N,M],[N,0]],bottomleft:[[0,0],[N,0],[0,M]],topright:[[0,M],[N,0],[N,M]],
topleft:[[0,0],[0,M],[N,M]],topcenter:[[0,M],[N/2,0],[N,M]],bottomcenter:[[0,0],[N,0],[N/2,M]],rightcenter:[[0,0],[N,M/2],[0,M]],leftcenter:[[N,0],[N,M],[0,M/2]]};N.lefttop=N.bottomright;N.righttop=N.bottomleft;N.leftbottom=N.topright;N.rightbottom=N.topleft;return N[y]}function e(y){var N;if(a("<canvas />").get(0).getContext)N={topLeft:[y,y],topRight:[0,y],bottomLeft:[y,0],bottomRight:[0,0]};else if(a.browser.msie)N={topLeft:[-90,90,0],topRight:[-90,90,-y],bottomLeft:[90,270,0],bottomRight:[90,270,
-y]};return N}function h(y,N){var M;y=a.extend(true,{},y);for(M in y)if(N===true&&/(tip|classes)/i.test(M))delete y[M];else!N&&/(width|border|tip|title|classes|user)/i.test(M)&&delete y[M];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,N;N=[true,{}];for(y=0;y<arguments.length;y++)N.push(arguments[y]);for(y=[a.extend.apply(a,N)];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);N=a.browser.msie?1:0;y.tip.size.width+=N;y.tip.size.height+=N;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,N,M,q){y=y.get(0).getContext("2d");y.fillStyle=q;y.beginPath();y.arc(N[0],
N[1],M,0,Math.PI*2,false);y.fill()}function x(){var y,N,M,q,v,T,ca,Y,ha;y=this;y.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();M=y.options.style.border.width;q=y.options.style.border.radius;v=y.options.style.border.color||y.options.style.tip.color;T=e(q);ca={};for(N in T){ca[N]='<div rel="'+N+'" style="'+(/Left/.test(N)?"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[N]+=
'<canvas height="'+q+'" width="'+q+'" style="vertical-align: top"></canvas>';else if(a.browser.msie){Y=q*2+3;ca[N]+='<v:arc stroked="false" fillcolor="'+v+'" startangle="'+T[N][0]+'" endangle="'+T[N][1]+'" style="width:'+Y+"px; height:"+Y+"px; margin-top:"+(/bottom/.test(N)?-2:-1)+"px; margin-left:"+(/Right/.test(N)?T[N][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}ca[N]+="</div>"}N=y.getDimensions().width-Math.max(M,q)*2;N='<div class="qtip-betweenCorners" style="height:'+
q+"px; width:"+N+"px; overflow:hidden; background-color:"+v+'; 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+N);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+N);if(a("<canvas />").get(0).getContext)y.elements.wrapper.find("canvas").each(function(){ha=
T[a(this).parent("[rel]:first").attr("rel")];p.call(y,a(this),ha,q,v)});else a.browser.msie&&y.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>');ca=Math.max(q,q+(M-q));M=Math.max(M-q,0);y.elements.contentWrapper.css({border:"0px solid "+v,borderWidth:M+"px "+ca+"px"})}function z(y,N,M){y=y.get(0).getContext("2d");y.fillStyle=M;y.beginPath();y.moveTo(N[0][0],N[0][1]);y.lineTo(N[1][0],N[1][1]);y.lineTo(N[2][0],N[2][1]);y.fill()}function H(y){var N,M;if(!(this.options.style.tip.corner===
false||!this.elements.tip)){y||(y=new b(this.elements.tip.attr("rel")));N=M=a.browser.msie?1:0;this.elements.tip.css(y[y.precedance],0);if(y.precedance==="y"){if(a.browser.msie)M=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-N}):this.elements.tip.css({right:this.options.style.border.radius+
N});y.y==="top"?this.elements.tip.css({top:-M}):this.elements.tip.css({bottom:M})}else{if(a.browser.msie)M=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-N}):this.elements.tip.css({bottom:this.options.style.border.radius+N});y.x==="left"?this.elements.tip.css({left:-M}):this.elements.tip.css({right:M})}N=
"padding-"+y[y.precedance];y=this.options.style.tip.size[y.precedance==="x"?"width":"height"];this.elements.tooltip.css("padding",0).css(N,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 L(y){var N,M,q,v;this.elements.tip!==null&&this.elements.tip.remove();N=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));M=d(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;v="m"+M[0][0]+","+M[0][1];v+=" l"+M[1][0]+","+M[1][1];v+=" "+M[2][0]+","+M[2][1];v+=" xe";q='<v:shape fillcolor="'+N+'" stroked="false" filled="true" path="'+v+'" 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"),M,N);y.y==="top"&&a.browser.msie&&parseInt(a.browser.version.charAt(0),10)===6&&this.elements.tip.css({marginTop:-4});H.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(N){y.status.disabled||y.hide(N)})}function s(){function y(Y){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(Y)},
q.options.hide.delay)}}function N(Y){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(Y)},q.options.show.delay);else q.show(Y)}}function M(Y){if(q.status.disabled!==true){if(q.options.hide.fixed===true&&/mouse(out|leave)/i.test(q.options.hide.when.event)&&
a(Y.relatedTarget).parents('div.qtip[id^="qtip"]').length>0){Y.stopPropagation();Y.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(Y)},q.options.hide.delay)}}var q,v,T,ca;q=this;v=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"&&v.bind("mousemove.qtip",function(Y){q.cache.mouse={left:Y.pageX,top:Y.pageY};q.status.disabled===false&&q.options.position.adjust.mouse===true&&q.options.position.type!=="static"&&q.elements.tooltip.css("display")!=="none"&&q.updatePosition(Y)});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;v.bind(q.options.show.when.event+".qtip",function(Y){q.cache.toggle===0?N(Y):M(Y)})}else{v.bind(q.options.show.when.event+".qtip",N);q.options.hide.when.event!=="inactive"&&T.bind(q.options.hide.when.event+".qtip",M)}/(fixed|absolute)/.test(q.options.position.type)&&q.elements.tooltip.bind("mouseover.qtip",q.focus)}function D(){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 J(){var y,N,M;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?x.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&&L.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;N=this.options.content.data;M=this.options.content.method||
"get";this.loadContent(y,N,M)}this.status.rendered=true;this.onRender.call(this)}function V(y,N,M){var q=this;q.id=M;q.options=N;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(v){function T(){q.elements.tooltip.attr("aria-hidden",
true);q.options.position.type!=="static"&&q.focus();q.onShow.call(q,v);if(a.browser.msie){var Y=q.elements.tooltip.get(0).style;Y.removeAttribute("filter");Y.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,v)===false)return q;q.cache.toggle=1;q.options.position.type!=="static"&&q.updatePosition(v,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(v,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(v){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,v)}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,v)===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(v,T){T=/boolean|number/.test(typeof T)?T:!q.elements.tooltip.is(":visible");q[T?"show":"hide"](v);return q},updatePosition:function(v,T){if(!q.status.rendered)return false;var ca=N.position,Y=a(ca.target),
ha=q.elements.tooltip.outerWidth(),ma=q.elements.tooltip.outerHeight(),pa,ea,ja,na=ca.corner.tooltip,w=ca.corner.target,E,C,U={left:function(){var S=a(window).scrollLeft(),f=a(window).width()+a(window).scrollLeft(),P=na.x==="center"?ha/2:ha,aa=na.x==="center"?pa/2:pa,ka=(na.x==="center"?1:2)*q.options.style.border.radius,ua=-2*ca.adjust.x,wa=ja.left+ha,qa;if(wa>f){qa=ua-P-aa+ka;if(ja.left+qa>S||S-(ja.left+qa)<wa-f)return{adjust:qa,tip:"right"}}if(ja.left<S){qa=ua+P+aa-ka;if(wa+qa<f||wa+qa-f<S-ja.left)return{adjust:qa,
tip:"left"}}return{adjust:0,tip:na.x}},top:function(){var S=a(window).scrollTop(),f=a(window).height()+a(window).scrollTop(),P=na.y==="center"?ma/2:ma,aa=na.y==="center"?ea/2:ea,ka=(na.y==="center"?1:2)*q.options.style.border.radius,ua=-2*ca.adjust.y,wa=ja.top+ma,qa;if(wa>f){qa=ua-P-aa+ka;if(ja.top+qa>S||S-(ja.top+qa)<wa-f)return{adjust:qa,tip:"bottom"}}if(ja.top<S){qa=ua+P+aa-ka;if(wa+qa<f||wa+qa-f<S-ja.top)return{adjust:qa,tip:"top"}}return{adjust:0,tip:na.y}}};if(v&&N.position.target==="mouse"){w=
{x:"left",y:"top"};pa=ea=0;ja=v.pageX?{top:v.pageY,left:v.pageX}:q.cache.mouse}else{if(Y[0]===document){pa=Y.width();ea=Y.height();ja={top:0,left:0}}else if(Y[0]===window){pa=Y.width();ea=Y.height();ja={top:Y.scrollTop(),left:Y.scrollLeft()}}else if(Y.is("area")){Y=q.options.position.target.attr("coords").split(",");for(E=0;E<Y.length;E++)Y[E]=parseInt(Y[E],10);E=q.options.position.target.parent("map").attr("name");C=a('img[usemap="#'+E+'"]:first').offset();ja={left:Math.floor(C.left+Y[0]),top:Math.floor(C.top+
Y[1])};switch(q.options.position.target.attr("shape").toLowerCase()){case "rect":pa=Math.ceil(Math.abs(Y[2]-Y[0]));ea=Math.ceil(Math.abs(Y[3]-Y[1]));break;case "circle":pa=Y[2]+1;ea=Y[2]+1;break;case "poly":pa=Y[0];ea=Y[1];for(E=0;E<Y.length;E++)if(E%2===0){if(Y[E]>pa)pa=Y[E];if(Y[E]<Y[0])ja.left=Math.floor(C.left+Y[E])}else{if(Y[E]>ea)ea=Y[E];if(Y[E]<Y[1])ja.top=Math.floor(C.top+Y[E])}pa-=ja.left-C.left;ea-=ja.top-C.top;break}pa-=2;ea-=2}else{pa=Y.outerWidth();ea=Y.outerHeight();q.elements.tooltip.is(":visible")||
q.elements.tooltip.css({left:"-10000000em"}).show();if(q.elements.tooltip.offsetParent()[0]===document.body)ja=Y.offset();else{ja=Y.position();ja.top+=Y.offsetParent().scrollTop();ja.left+=Y.offsetParent().scrollLeft()}}ja.left+=w.x==="right"?pa:w.x==="center"?pa/2:0;ja.top+=w.y==="bottom"?ea:w.y==="center"?ea/2:0}ja.left+=ca.adjust.x+(na.x==="right"?-ha:na.x==="center"?-ha/2:0);ja.top+=ca.adjust.y+(na.y==="bottom"?-ma:na.y==="center"?-ma/2:0);if(q.options.style.border.radius>0){if(na.x==="left")ja.left-=
q.options.style.border.radius;else if(na.x==="right")ja.left+=q.options.style.border.radius;if(na.y==="top")ja.top-=q.options.style.border.radius;else if(na.y==="bottom")ja.top+=q.options.style.border.radius}ca.adjust.screen&&function(){var S={x:0,y:0},f={x:U.left(),y:U.top()},P=new b(N.style.tip.corner);if(q.elements.tip&&P){if(f.y.adjust!==0){ja.top+=f.y.adjust;P.y=S.y=f.y.tip}if(f.x.adjust!==0){ja.left+=f.x.adjust;P.x=S.x=f.x.tip}q.cache.overflow={left:S.x===false,top:S.y===false};q.elements.tip.attr("rel")!==
P.string()&&L.call(q,P)}}();!q.elements.bgiframe&&a.browser.msie&&parseInt(a.browser.version.charAt(0),10)===6&&D.call(q);if(q.beforePositionUpdate.call(q,v)===false)return q;if(N.position.target!=="mouse"&&T===true){q.status.animated=true;q.elements.tooltip.stop().animate(ja,200,"swing",function(){q.status.animated=false})}else q.elements.tooltip.css(ja);q.onPositionUpdate.call(q,v);return q},updateWidth:function(v){if(!q.status.rendered||v&&typeof v!=="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()),Y=q.elements.tooltip,ha=q.options.style.width.max,ma=q.options.style.width.min;if(!v)if(typeof q.options.style.width.value==="number")v=q.options.style.width.value;else{q.elements.tooltip.css({width:"auto"});T.hide();Y.width(v);a.browser.msie&&ca.css({zoom:""});v=q.getDimensions().width;q.options.style.width.value||(v=Math.min(Math.max(v,ma),ha))}if(v%2)v+=1;q.elements.tooltip.width(v);T.show();q.options.style.border.radius&&q.elements.tooltip.find(".qtip-betweenCorners").each(function(){a(this).width(v-
q.options.style.border.radius*2)});if(a.browser.msie){ca.css({zoom:1});q.elements.wrapper.width(v);q.elements.bgiframe&&q.elements.bgiframe.width(v).height(q.getDimensions.height)}return q},updateStyle:function(v){var T,ca,Y,ha;if(!q.status.rendered||typeof v!=="string"||!a.fn.qtip.styles[v])return false;q.options.style=l.call(q,a.fn.qtip.styles[v],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){v=q.elements.tooltip.find(".qtip-tip canvas:first");ca=v.get(0).getContext("2d");ca.clearRect(0,0,300,300);Y=v.parent("div[rel]:first").attr("rel");ha=d(Y,q.options.style.tip.size.width,q.options.style.tip.size.height);z.call(q,v,ha,q.options.style.tip.color||q.options.style.border.color)}else if(a.browser.msie){v=q.elements.tooltip.find('.qtip-tip [nodeName="shape"]');
v.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=e(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);Y=a(this).parent("div[rel]:first").attr("rel");p.call(q,a(this),T[Y],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(v,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&&H.call(q)}}var Y,ha,ma;if(!v)return false;Y=q.beforeContentUpdate.call(q,v);if(typeof Y==="string")v=Y;else if(Y===
false)return;if(q.status.rendered){a.browser.msie&&q.elements.contentWrapper.children().css({zoom:"normal"});v.jquery&&v.length>0?v.clone(true).appendTo(q.elements.content).show():q.elements.content.html(v);ha=q.elements.content.find("img[complete=false]");if(ha.length>0){ma=0;ha.each(function(){a('<img src="'+a(this).attr("src")+'" />').load(function(){++ma===ha.length&&ca()})})}else ca()}else q.options.content.text=v;q.onContentUpdate.call(q);return q},loadContent:function(v,T,ca){function Y(ha){q.onContentLoad.call(q);
q.updateContent(ha)}if(!q.status.rendered)return false;if(q.beforeContentLoad.call(q)===false)return q;ca==="post"?a.post(v,T,Y):a.get(v,T,Y);return q},updateTitle:function(v){if(!q.status.rendered||!v)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(v);q.elements.button&&q.elements.title.prepend(q.elements.button);q.onTitleUpdate.call(q);return q},focus:function(v){var T,ca,Y;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,v);if(T===false)return q;a('div.qtip[id^="qtip"]').not(q.elements.tooltip).each(function(){if(a(this).qtip("api").status.rendered===true){Y=parseInt(a(this).css("z-index"),10);typeof Y==="number"&&Y>-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,v)}return q},disable:function(v){q.status.disabled=v?true:false;return q},destroy:function(){var v,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(v=0;v<T.length-1;v++)T[v].id===q.id&&T.splice(v,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 v,T;if(!q.status.rendered)return false;(v=q.elements.tooltip.css("display")!=="none"?false:true)&&q.elements.tooltip.css({visiblity:"hidden"}).show();T=q.elements.tooltip.offset();v&&q.elements.tooltip.css({visiblity:"visible"}).hide();return T},getDimensions:function(){var v,T;if(!q.status.rendered)return false;(v=!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()};v&&q.elements.tooltip.css({visiblity:"visible"}).hide();return T}})}a(document).ready(function(){var y;a(window).bind("resize scroll",function(N){for(y=0;y<a.fn.qtip.interfaces.length;y++){var M=a.fn.qtip.interfaces[y];if(M&&M.status&&M.status.rendered&&M.options.position.type!=="static"&&M.elements.tooltip.is(":visible")&&(M.options.position.adjust.scroll&&
N.type==="scroll"||M.options.position.adjust.resize&&N.type==="resize"))M.updatePosition(N,true)}});a(document).bind("mouseenter.qtip",function(N){if(a(N.target).parents("div.qtip").length===0){var M=a(".qtipSelector"),q=M.qtip("api");M.is(":visible")&&q&&q.status&&!q.status.disabled&&a(N.target).add(q.elements.target).length>1&&q.hide(N)}})});a.fn.qtip=function(y,N){var M,q,v,T,ca,Y,ha,ma;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 pa=
a(this),ea=false;if(typeof y==="string"){Y=y.toLowerCase();v=a(this).qtip("interfaces");if(typeof v==="object")if(N===true&&Y==="destroy")for(M=v.length-1;M>-1;M--)"object"===typeof v[M]&&v[M].destroy();else{if(N!==true)v=[a(this).qtip("api")];for(M=0;M<v.length;M++)if(Y==="destroy")v[M].destroy();else if(v[M].status.rendered===true)if(Y==="show")v[M].show();else if(Y==="hide")v[M].hide();else if(Y==="focus")v[M].focus();else if(Y==="disable")v[M].disable(true);else if(Y==="enable")v[M].disable(false);
else Y==="update"&&v[M].updatePosition()}}else{ha=a.extend(true,{},T);ha.hide.effect.length=T.hide.effect.length;ha.show.effect.length=T.show.effect.length;if(ha.position.container===false)ha.position.container=a(document.body);if(ha.position.target===false)ha.position.target=a(this);if(ha.show.when.target===false)ha.show.when.target=a(this);if(ha.hide.when.target===false)ha.hide.when.target=a(this);ha.position.corner.tooltip=new b(ha.position.corner.tooltip);ha.position.corner.target=new b(ha.position.corner.target);
ha.content.text.length||a(["title","alt"]).each(function(ja,na){if((ja=pa.attr(na))&&ja.length){ea=[na,ja];pa.data("old"+na,ja).removeAttr(na);ha.content.text=ja.replace(/\n/gi,"<br />");return false}});q=a.fn.qtip.interfaces.length;for(M=0;M<q;M++)if(typeof a.fn.qtip.interfaces[M]==="undefined"){q=M;break}ca=new V(a(this),ha,q);a.fn.qtip.interfaces[q]=ca;ca.cache.attr=ea;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(ha.content.prerender===false&&ha.show.when.event!==false&&ha.show.ready!==true)ha.show.when.target.bind(ha.show.when.event+".qtip-"+q+"-create",{qtip:q},function(ja){ma=a.fn.qtip.interfaces[ja.data.qtip];ma.options.show.when.target.unbind(ma.options.show.when.event+".qtip-"+ja.data.qtip+"-create");ma.cache.mouse={left:ja.pageX,top:ja.pageY};J.call(ma);ma.options.show.when.target.trigger(ma.options.show.when.event)});
else{ca.cache.mouse={left:ha.show.when.target.offset().left,top:ha.show.when.target.offset().top};J.call(ca)}}})};a.fn.qtip.interfaces=[];a.fn.qtip.fn={attr:a.fn.attr};a.fn.attr=function(y){var N=a(this).qtip("api");return arguments.length===1&&/title|alt/i.test(y)&&N.status&&N.status.rendered===true?a(this).data("old"+N.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 d=a('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo("body"),e=a('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo("body");b=d.width()-e.width();d.add(e).remove()}else{d=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-d.width();d.parent().remove()}return b}})(jQuery);
(function(a){a.fn.autogrow=function(){this.filter("textarea").each(function(){var b=a(this),d=b.height();b.css("lineHeight");var e=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/>");e.html(h);a(this).css("height",
Math.max(e.height()+20,d))},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(H){var L=p[H];return typeof L==="string"?L:"\\u"+("0000"+H.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+z+'"'}function d(z,H){var L,A,s=j,D,J=H[z];if(J&&typeof J==="object"&&typeof J.toJSON==="function")J=J.toJSON(z);if(typeof x==="function")J=x.call(H,z,J);switch(typeof J){case "string":return b(J);case "number":return isFinite(J)?String(J):"null";case "boolean":case "null":return String(J);
case "object":if(!J)return"null";j+=l;D=[];if(Object.prototype.toString.apply(J)==="[object Array]"){A=J.length;for(z=0;z<A;z+=1)D[z]=d(z,J)||"null";H=D.length===0?"[]":j?"[\n"+j+D.join(",\n"+j)+"\n"+s+"]":"["+D.join(",")+"]";j=s;return H}if(x&&typeof x==="object"){A=x.length;for(z=0;z<A;z+=1)if(typeof x[z]==="string"){L=x[z];if(H=d(L,J))D.push(b(L)+(j?": ":":")+H)}}else for(L in J)if(Object.prototype.hasOwnProperty.call(J,L))if(H=d(L,J))D.push(b(L)+(j?": ":":")+H);H=D.length===0?"{}":j?"{\n"+j+D.join(",\n"+
j)+"\n"+s+"}":"{"+D.join(",")+"}";j=s;return H}}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 e=/[\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",'"':'\\"',"\\":"\\\\"},x;if(typeof JSON.stringify!=="function")JSON.stringify=function(z,H,L){var A;l=j="";if(typeof L==="number")for(A=0;A<L;A+=1)l+=" ";else if(typeof L==="string")l=L;if((x=H)&&typeof H!=="function"&&(typeof H!=="object"||typeof H.length!=="number"))throw new Error("JSON.stringify");return d("",
{"":z})};if(typeof JSON.parse!=="function")JSON.parse=function(z,H){function L(A,s){var D,J,V=A[s];if(V&&typeof V==="object")for(D in V)if(Object.prototype.hasOwnProperty.call(V,D)){J=L(V,D);if(J!==undefined)V[D]=J;else delete V[D]}return H.call(A,s,V)}z=String(z);e.lastIndex=0;if(e.test(z))z=z.replace(e,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 H==="function"?L({"":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(d,e){e.displayed&&a.hidePanel(d)});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(d,e){b=b||e.displayed});return b};this.showPanel=function(b){if(a.panels[b].loaded){jQuery.each(a.panels,
function(d,e){e.displayed&&a.hidePanel(d,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,d){a.panels[b].displayed=
false;d?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 d=jQuery(window).height()-(b.offset().top-jQuery(window).scrollTop());b.height(d)}};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(d){jQuery(".WikiInternalHeaderNav").append(d);
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,d){jQuery(d.button).click(function(e){d.displayed?
a.hidePanel(b):a.showPanel(b);e.preventDefault();return false})});jQuery(window).resize(function(){jQuery.each(a.panels,function(b,d){d.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,d){log("reloadSession",a,"attempt "+this.sessionReloadAttempt);if(this.sessionReloadAttempt>4)typeof d=="function"&&d.call(this);else this.reloadSessionIframe(a,b)};
WikispacesSession.reloadSessionIframe=function(a,b){var d='<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(d);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 d=this;this.sessionReloadHandle=setTimeout(function(){d.reloadSessionIframe(function(){d.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 d=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[]":d},success:function(){jQuery(a).find(".WikiTagList ul").empty();for(var e=0;e<d.length;e++){var h=jQuery("<a/>").attr("rel",
"tag").attr("href",WikispacesCommon.pathFor("space","content")+"?tag="+encodeURIComponent(d[e])).text(d[e]);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(d){WikispacesTags.save(this);jQuery(".WikiTagsEditLink").show();d.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("-"),d=b.length;if(d==1)return b[0];a=a.charAt(0)=="-"?b[0].charAt(0).toUpperCase()+b[0].substring(1):b[0];for(var e=1;e<d;e++)a+=b[e].charAt(0).toUpperCase()+b[e].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,d){return WikispacesCommon.truncify(a,b,0,d)};WikispacesCommon.truncify=function(a,b,d,e){if(!a)return"";if(null==d)d=10;if(null==e)e="...";if(a.length<=b)return a;return a.substr(0,b-d-e.length)+e+a.substr(a.length-d)};
WikispacesCommon.addUriParams=function(a,b){if(!b||!b.length)return a;a+=a.indexOf("?")==-1?"?":"&";for(var d=[],e=0;e<b.length;++e)_.isUndefined(b[e][1])||d.push(encodeURIComponent(b[e][0])+"="+encodeURIComponent(b[e][1]));return a+d.join("&")};WikispacesCommon.track=function(a,b,d){_gaq=_gaq||[];_gaq.push(["_trackEvent",a,b,d])};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,d){for(var e="",h=-1,j=0;j<a.length;j++)if(a.charCodeAt(j)<=127)e+=a.charAt(j);else{h=b.indexOf(a.charAt(j));e+=h>=0?d.charAt(h):a.charAt(j)}return e};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,d,e){return this.getProjectUrl()+"/"+WikispacesCommon.encodePath(a,b,d,e)};WikispacesCommon.fullTeamPath=function(a,b,d,e,h,j){return"/"+WikispacesCommon.PROJECT_INDICATOR+"/"+WikispacesCommon.encodePath(a,b,d,e,h,j)};
WikispacesCommon.relativePath=function(a,b,d,e){return"/"+WikispacesCommon.encodePath(a,b,d,e)};WikispacesCommon.single_page_regex=/^([:\/]?)([^:\/]+)$/;WikispacesCommon.full_link_regex=/^[:\/]?([^:\/]+)[:\/]([^:\/]+)[:\/]([^:\/]+)$/;WikispacesCommon.pageNameRegex=/[\[\]:|{}$\"#@+]/;WikispacesCommon.projectNameRegex=/[:\[\]\/]/;WikispacesCommon.teamNameRegex=/[:\[\]\/]/;
WikispacesCommon.parseLink=function(a,b,d){var e=a.match(WikispacesCommon.single_page_regex);if(e)return e[1]!="/"?WikispacesCommon.pathFor(b,d,e[2]):WikispacesCommon.relativePath(b,d,e[2]);else return(e=a.match(WikispacesCommon.full_link_regex))?WikispacesCommon.fullTeamPath(e[1],e[2],b,d,e[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,d,e){var h="";if(d!=undefined){h=new Date;h.setTime(h.getTime()+864E5*parseFloat(d));h="; expires="+h.toGMTString()}if(e==undefined)e={path:"/"};return document.cookie=escape(a)+"="+escape(b||"")+(e.path?";path="+e.path:"")+(e.domain?";domain="+e.domain:"")+(e.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 d;d=a.file&&a.file.name?"Could not upload "+a.file.name+": ":"An error occured while uploading: ";if(a.code==plupload.FILE_SIZE_ERROR)d+="the file is larger than your maximum of "+b;else if(a.code==plupload.HTTP_ERROR){d+="an HTTP error occurred. (HTTP status: ";d+=a.status?a.status:"unknown";d+=")"}else d+=a.message;alert(d+" (code: "+-a.code+").")};
function highlightIncludeSection(a,b,d){jQuery(a).toggleClass("includeEditButton",!d).toggleClass("includeEditButtonActive",d);jQuery(".includeBody-"+b.replace(/%/g,"\\%")).toggleClass("includeBody",!d).toggleClass("includeBodyActive",d)}function embed_generic(a,b,d,e){document.writeln('<embed src="'+d+'" type="'+e+'" 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(),d=b.top,e=b.left,h=d+a.outerHeight(),j=e+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(),x=p.top,z=p.left,H=z+l.outerWidth(),L=x+l.outerHeight();l.find("iframe:visible, object:visible, embed:visible, applet:visible").each(function(){var A=
jQuery(this),s=A.offset(),D=s.top;s=s.left;var J=s+A.outerWidth();A=D+A.outerHeight();if(D<x)x=D;if(s<z)z=s;if(A>L)L=A;if(J>H)H=J});if(d<L&&h>x&&e<H&&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:H-z-18,height:L-x-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),d=b.nextAll(".WikiMenu:first");if(d.length==0)d=b.parent().nextAll(".WikiMenu:first");if(!b.data("init")){b.data("init",true);d.hover(function(){return preventMenuClose=true},function(){preventMenuClose=false;setTimeout(function(){hideMenu(d[0])},500);return true});b.hoverIntent({sensitivity:3,interval:200,over:function(){showMenu(d[0])},timeout:500,out:function(){hideMenu(d[0])}});b.click(function(){showMenu(d[0])});
d.find(".WikiMenuEntry").click(function(e){if(jQuery(e.target).children("a").length==1){e=jQuery(e.target).children("a:first");if(e.attr("href")&&e.attr("href")!="#"&&!e.hasClass("WikispacesDialogLink"))window.location=e.attr("href");else jQuery(e).trigger("click")}preventMenuClose=false;hideMenu(d[0])});b.trigger(a)}})}
WikispacesCommon.setInputDefaults=function(a,b,d){!a.val()&&b&&a.addClass(b);d||a.val(a.attr("title"));a.focus(function(){if(a.val()==a.attr("title")||d&&""==a.val()){a.val("");b&&a.removeClass(b)}});a.blur(function(){if(a.val()==""){b&&a.addClass(b);d||a.val(a.attr("title"))}})};WikispacesCommon.resolveName=function(a){if("string"===typeof a){var b=window,d=false;jQuery.each(a.split("."),function(e,h){b=b[h];if(!b)return d=false;d=true});if(d)return b}};
WikispacesCommon.resolveNameToBoundFunction=function(a){if("string"===typeof a){var b=null,d=window,e=false;jQuery.each(a.split("."),function(h,j){b=d;d=b[j];if(!d)return e=false;e=true});if(e&&"function"===typeof d)return function(){return d.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(){d.click()},500,function(){alert("Error: Could Not Display User Details")})}var d=jQuery(this);jQuery(".userMenu").remove();var e=jQuery("<div>");e.addClass("userMenu");jQuery("body").append(e);var h=d.attr("href").substring(d.attr("href").lastIndexOf("/")+1);jQuery.ajax({url:"/user/menu/"+h,type:"GET",dataType:"html",success:function(j){e.html(j);e.fadeIn("slow");e.css("position","absolute");e.css("left",Math.min(d.offset().left-
3,jQuery(window).width()-e.outerWidth()));e.css("top",d.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,d=jQuery(a).offset().top,e=window.innerHeight&&window.innerHeight<jQuery(window).height()?window.innerHeight:jQuery(window).height();return d>b&&jQuery(a).height()+d<b+e}});
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 d=jQuery("#WikispacesNoticeJs div."+b);if(d.length==0)d=jQuery("<div>").addClass("WikispacesNotice").addClass(b).append('<span class="WikispacesNoticeDismiss"><img src="/i/icon/16_close.png"/></span>').append("<ul>").appendTo("#WikispacesNoticeJs");d.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(d,e){e.contentWindow.callFinally&&e.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 d=
jQuery(this).attr("width")-jQuery(".ui-tabs-nav",b).width();jQuery(this).attr("width",d);jQuery(this).closest(".ui-tabs-panel").css("width",d)})};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(d){}WikispacesCommon.closeDialog();var e=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"),x=p.data("dialogwidth"),z=p.data("dialogheight");x&&h.attr("width",x-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(e){e.destroy();e=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,d,e,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:d,autoOpen:false});WikispacesCommon.dialogStack.push(p);var x=jQuery("<div id='tabs'><ul></ul></div>").appendTo(p),z=-1;_(b).each(function(H,L){x.find("ul").append(jQuery('<li><a href="#tabs-'+ ++z+'">'+L+"</a></li>"));var A=jQuery("<iframe>").attr({src:WikispacesCommon.addUriParams(H,
[["f","dialog"]]),frameborder:"no",scrolling:"auto",width:d-40,height:e});jQuery("<div>").attr("id","tabs-"+z).appendTo(x).append(A);z==h&&A.load(function(){$dialogContent=jQuery("#dialogContent",A.get(0).contentWindow.document);if($dialogContent.length==0)window.location=H;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()}})});x.tabs({show:function(H,L){WikispacesCommon.sizeFrameToContent(jQuery("iframe",L.panel));if(jQuery("iframe",L.panel).get(0)){H=jQuery("iframe",L.panel).get(0).contentWindow;_.isFunction(H.callOnTabSelect)&&
H.callOnTabSelect()}},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,d){_(b).each(function(e){WikispacesCommon.addNotice(e,"WikispacesNotice"+ucfirst(d))})})}};
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.pluploadRuntimes=function(){var a=["html5","silverlight","flash","html4"];if(jQuery.browser.msie)a=_(a).without("silverlight");return a};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 d(){this.constructor=a}for(var e in b)if(__hasProp.call(b,e))a[e]=b[e];d.prototype=b.prototype;a.prototype=new d;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,d,e,h;this.comments=[];e=this.spaces;h=[];b=0;for(d=e.length;b<d;b++){a=e[b];h.push(this.removeSpace(a))}return h},retrieveData:function(a){var b,d;b=WikispacesCommon.asyncForm(WikispacesCommon.pathFor("page","listcommentsjson",wikispaces_page),"GET");d=jQuery("#asyncFrame");d.one("load",__bind(function(){this.load(d.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,d,e;if(!((this.collapsed||this.hidden)&&
!a)){e=this.comments;b=0;for(d=e.length;b<d;b++){a=e[b];a.discover(this.spaces)}return this.hidden=this.commentCount()===0}},undiscover:function(){var a,b,d,e,h;e=this.discoveredComments();h=[];b=0;for(d=e.length;b<d;b++){a=e[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,d,e,h;if(jQuery.browser.webkit){e=this.spaces;h=[];b=0;for(d=e.length;b<d;b++){a=e[b];h.push(a.forceWidth())}return h}},drawAll:function(){var a,b,d,e,h;e=this.spaces;h=[];b=0;for(d=e.length;b<d;b++){a=e[b];h.push(a.draw())}return h},redrawAll:function(a){this.rediscover(a);return this.drawAll()},reflowAll:function(){var a,b,d,e,h;e=this.spaces;h=[];b=0;for(d=e.length;b<d;b++){a=e[b];h.push(a.reflow())}return h},deselectAll:function(){var a,
b,d,e,h;e=this.discoveredComments();h=[];b=0;for(d=e.length;b<d;b++){a=e[b];h.push(a.deselect())}return h},markCommentsSaved:function(){var a,b,d,e;e=this.flatComments();b=0;for(d=e.length;b<d;b++){a=e[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,d,e,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(d);this.canvasContainer=jQuery(e);this.drawBehind=jQuery(h||d);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 d,e;d=b.pageX-this.contents.offset().left;e=b.pageY-this.contents.offset().top;if(jQuery.browser.msie&&this.contentContainer.find("iframe").length){d-=jQuery(window).scrollLeft();e-=jQuery(window).scrollTop()}return _(this.comments()).find(function(h){return h.isPointInExtent(d,
e)})};a.prototype.sortedComments=function(){var b;b=this.comments();return _(jQuery("a.range[name^=comment-]",this.contents)).chain().map(function(d){return _(b).find(function(e){return e.opener[0]===d})}).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,d,e,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=[];d=[];l=this.sortedComments();e=0;for(j=l.length;e<j;e++){b=l[e];if(b.isDiscovered()){h=b.height();d.push({comment:b,
y:this.findPosition(b.preferredY(),h)})}else b.hide()}j=this.contentContainer.height();d=_(d).sortBy(function(x){return x.y});l=b=0;for(p=d.length;l<p;l++){e=d[l];e.comment.draw(e.y,this.canvas,b%2===1);j=Math.max(j,e.y+h);b+=1}this.column.css("min-height",j);return this.contentContainer.css("min-height",j)}};a.prototype.findPosition=function(b,d){var e,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(e=null;!e;){if(j>=
h&&this.isPositionClear(j,d))e=j;else if(this.isPositionClear(b,d))e=b;j-=POSITION_SEARCH_INCREMENT;b+=POSITION_SEARCH_INCREMENT}this.reservedPositions.push([e-COMMENT_MARGIN,e+d+COMMENT_MARGIN]);return e};a.prototype.isPositionClear=function(b,d){return _(this.reservedPositions).all(__bind(function(e){return!this.isBetween(b,e[0],e[1])&&!this.isBetween(b+d,e[0],e[1])&&!this.isBetween(e[0],b,b+d)},this))};a.prototype.isBetween=function(b,d,e){return d<b&&b<e};return a}();
window.WikispacesComment=Comment=function(){function a(b,d){var e,h;if(!b||_(b).isString()){this.commentId=d||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;d=0;for(e=h.length;d<e;d++){b=h[d];this.addReply(new CommentReply(b))}}}a.prototype.insertInto=function(b){var d,e,h,j,l;this.space=b;this.div.appendTo(b.column);d=this.div.find("img").not(function(){return this.complete}).load(__bind(function(){if(--d===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));e=this.div.find(".commentMenu").css("z-index",MENU_Z_INDEX);this.div.find(".commentMenuControl").click(__bind(function(){var p;e.toggle();if(e.is(":visible")){p=true;return e.hover(function(){return p=true},function(){p=false;
return setTimeout(function(){if(!p)return e.hide()},500)})}},this));this.div.find(".commentMonitorCommand").click(__bind(function(){e.hide();return this.toggleMonitor()},this));this.div.find(".commentLockCommand").click(__bind(function(){e.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 d,e,h,j;this.opener=this.closer=null;e=0;for(h=b.length;e<h;e++){d=b[e];this.opener=jQuery(d.contents).find(this.openSelector());this.closer=jQuery(d.contents).find(this.closeSelector());if(this.opener.length===0&&this.closer.length===0)this.space===d&&this.undiscover();else{if(!this.isDiscovered()&&((j=d.editor)!=null?j.selection.isCollapsed():void 0))if(this.opener.length===0){d.editor.selection.setContent(this.openerHtml());this.opener=jQuery(d.contents).find(this.openSelector())}else if(this.closer.length===
0){d.editor.selection.setContent(this.closerHtml());this.closer=jQuery(d.contents).find(this.closeSelector())}if((b=jQuery("a[name="+this.opener.attr("name")+"], a[name="+this.closer.attr("name")+"]",d.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()}d!==this.space&&this.insertInto(d);return true}}};a.prototype.undiscover=function(){var b,d,e,h;this.stopComposing();h=this.replies;
d=0;for(e=h.length;d<e;d++){b=h[d];b.stopComposing()}this.deselect();if((b=this.extent)!=null)b.remove();this.div.remove();return this.space=null};a.prototype.isDiscovered=function(){var b,d;return((b=this.opener)!=null?b.length:void 0)>0&&((d=this.closer)!=null?d.length:void 0)>0};a.prototype.isContentBetween=function(b,d){for(b=b!=null?b.nextSibling:void 0;b&&b!==d;){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,d,e){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(e?"commentZebra":"");if((b=this.extent)!=null)b.remove();this.extent=d.makeExtent(this.opener.get(0),this.closer.get(0));this.div.hasClass("selected")&&this.extent.addClass("selected");if(e)return this.extent.addClass("commentZebra")};
a.prototype.hide=function(){this.deselect();this.div.hide();return this.extent.hide()};a.prototype.compose=function(b){var d,e,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();d="comment-editor-"+this.commentId;this.div.find("textarea").attr("id",d).show();commentManager.expand();e={height:EDITOR_HEIGHT,theme:"-subeditor"};
h=_(tinymce.mainEditor.plugins.wssubeditor.plugins.split(",")).without("-wscommentspace","-autoresize").join();tinymce.mainEditor.plugins.wssubeditor.create(d,e,h);return _.defer(__bind(function(){var j;this.editor=tinymce.editors[d];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,d){if(this.extent==
null)return false;return _(this.extent).any(__bind(function(e){var h,j,l;h=jQuery(e).position().left;j=h+jQuery(e).width();l=jQuery(e).position().top;e=l+jQuery(e).height();return h<=b&&b<=j&&l<=d&&d<=e},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,d,e,h){this.targetDiv=b;this.locatorPattern=e;this.locatorSource=h;jQuery(this.targetDiv).css({position:"relative",zIndex:CANVAS_Z_INDEX});jQuery(d).css({position:"relative",zIndex:CANVAS_Z_INDEX});e=parseInt(this.targetDiv.css("padding-top"))+parseInt(d.css("padding-top"));b=parseInt(this.targetDiv.css("padding-left"))+parseInt(d.css("padding-left"));this.canvasDiv=jQuery("<div>").addClass("div-canvas").css({position:"absolute",top:e,left:b}).prependTo(d);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,d,e,h){return jQuery("<div>").addClass("commentExtent").css({top:b,left:d,width:e,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,d){var e;e=[];for(b=b.nextSibling;b!==d;){if(!b)return[];b.nodeType===1&&e.push(b);b=b.nextSibling}return e};a.prototype.makeExtent=function(b,d){var e,h,j,l,p,x,z,H;e=[];jQuery(this.elemsBetween(b,d)).filter("img").each(__bind(function(L,A){return e.push(this.makeImageFrame(A))},
this));p=ElemFinder.top(b);j=ElemFinder.left(b);h=ElemFinder.height(b);H=ElemFinder.top(d);z=ElemFinder.left(d);x=ElemFinder.height(d);l=jQuery(b).closest("table.wiki_table td");d=jQuery(d).closest("table.wiki_table td");if(l.length&&l.get(0)===d.get(0)){d=l.position().left;l=d+l.innerWidth()}else{d=0;l=this.canvasDiv.width()}if(Math.abs(p-H)<10){b=z-j;e.push(this.makeExtentDiv(p,j,b,h))}else if(this.isRtl(b)){j-d>=MINIMUM_MULTILINE_STARTING_EXTENT_WIDTH&&e.push(this.makeExtentDiv(p,d,j-d,h));H-p-
h>=MINIMUM_MIDDLE_EXTENT_HEIGHT&&e.push(this.makeExtentDiv(p+h,d,l-d,H-p-h));e.push(this.makeExtentDiv(H,z,l-z,x))}else{l-j>=MINIMUM_MULTILINE_STARTING_EXTENT_WIDTH&&e.push(this.makeExtentDiv(p,j,l-j,h));H-p-h>=MINIMUM_MIDDLE_EXTENT_HEIGHT&&e.push(this.makeExtentDiv(p+h,d,l-d,H-p-h));e.push(this.makeExtentDiv(H,d,z-d,x))}return jQuery(e).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,d,e;if(jQuery("#content_view a.range[name^=comment-]:first").size()>0){commentManager.readOnly=true;if(a=window.location.hash.match(/#comment-(\d+)-open/))e=a[1];b=false;d=function(){return commentManager.retrieveData(function(){var h;new WikispacesCommentSpace("#content_view",".commentContainer",".commentContainer");_.defer(function(){return commentManager.expand()});if((h=commentManager.commentById(e))!=null)h.select().scrollTo();return b=true})};a=jQuery(".MenuBar .CommentButton").not(".disabled");
if(Cookie.get(EXPANDED_COOKIE_NAME)>0||WikispacesCommon.getURLParameter("showComments")>0||e){a.addClass("Current");d()}return a.click(function(h){if(jQuery(this).hasClass("Current")){commentManager.collapse();jQuery(this).removeClass("Current")}else{b?commentManager.expand():d();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"),d=Cookie.get(b);a.closest(".WikispacesNavbarEntryHeader").children("img.WikispacesNavbarToggleImg").toggle();a.closest(".WikispacesNavbarEntryHeader").nextAll().slideToggle("fast");Cookie.set(b,!d,365)};
WikispacesNavbar.seeMore=function(a,b){var d=a.find("span.WikispacesNavbarEntryId").text();b||(b=a.find("span.WikispacesNavbarNum").text());a.load("/navbar/fetch/"+d,{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(d){b=="A"&&jQuery("div#WikispacesNavbarAllPagesList").html(d).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(d){jQuery.ajaxq("navbartag");jQuery("#submitTag").attr("src",b);jQuery("div#WikispacesNavbarTags").append(d);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(),d=[];a.find("span").each(function(){d.push(jQuery(this).text())});jQuery.ajax({url:"/navbar/pagereorder/"+b,type:"POST",data:{"pages[]":d},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:"878ed8522a3d775db5d4b6e0f58885e5"});

