assets/scripts/api.simile-widgets.org/ajax/2.2.2/simile-ajax-bundle.js (3,350 lines of code) (raw):
/* jquery-1.4.2.min.js */
(function(An,v){function Az(){if(!AF.isReady){try{x.documentElement.doScroll("left");
}catch(A){setTimeout(Az,1);
return ;
}AF.ready();
}}function t(F,A){A.src?AF.ajax({url:A.src,async:false,dataType:"script"}):AF.globalEval(A.text||A.textContent||A.innerHTML||"");
A.parentNode&&A.parentNode.removeChild(A);
}function AN(F,A,O,K,L,G){var J=F.length;
if(typeof A==="object"){for(var N in A){AN(F,N,A[N],K,L,O);
}return F;
}if(O!==v){K=!G&&K&&AF.isFunction(O);
for(N=0;
N<J;
N++){L(F[N],A,K?O.call(F[N],N,L(F[N],A)):O,G);
}return F;
}return J?L(F[0],A):v;
}function Ae(){return(new Date).getTime();
}function AM(){return false;
}function AK(){return true;
}function Aj(F,A,G){G[0].type=F;
return AF.event.handle.apply(A,G);
}function AE(R){var Q,P=[],N=[],O=arguments,K,L,F,J,G,A;
L=AF.data(this,"events");
if(!(R.liveFired===this||!L||!L.live||R.button&&R.type==="click")){R.liveFired=this;
var T=L.live.slice(0);
for(J=0;
J<T.length;
J++){L=T[J];
L.origType.replace(AW,"")===R.type?N.push(L.selector):T.splice(J--,1);
}K=AF(R.target).closest(N,R.currentTarget);
G=0;
for(A=K.length;
G<A;
G++){for(J=0;
J<T.length;
J++){L=T[J];
if(K[G].selector===L.selector){F=K[G].elem;
N=null;
if(L.preType==="mouseenter"||L.preType==="mouseleave"){N=AF(R.relatedTarget).closest(L.selector)[0];
}if(!N||N!==F){P.push({elem:F,handleObj:L});
}}}}G=0;
for(A=P.length;
G<A;
G++){K=P[G];
R.currentTarget=K.elem;
R.data=K.handleObj.data;
R.handleObj=K.handleObj;
if(K.handleObj.origHandler.apply(K.elem,O)===false){Q=false;
break;
}}return Q;
}}function o(F,A){return"live."+(F&&F!=="*"?F+".":"")+A.replace(/\./g,"`").replace(/ /g,"&");
}function b(A){return !A||!A.parentNode||A.parentNode.nodeType===11;
}function BG(F,A){var G=0;
A.each(function(){if(this.nodeName===(F[G]&&F[G].nodeName)){var L=AF.data(F[G++]),N=AF.data(this,L);
if(L=L&&L.events){delete N.handle;
N.events={};
for(var J in L){for(var K in L[J]){AF.event.add(this,J,L[J][K],L[J][K].data);
}}}}});
}function A2(F,A,L){var J,K,G;
A=A&&A[0]?A[0].ownerDocument||A[0]:x;
if(F.length===1&&typeof F[0]==="string"&&F[0].length<512&&A===x&&!Ao.test(F[0])&&(AF.support.checkClone||!AI.test(F[0]))){K=true;
if(G=AF.fragments[F[0]]){if(G!==1){J=G;
}}}if(!J){J=A.createDocumentFragment();
AF.clean(F,A,J,L);
}if(K){AF.fragments[F[0]]=G?J:1;
}return{fragment:J,cacheable:K};
}function AZ(F,A){var G={};
AF.each(r.concat.apply([],r.slice(0,A)),function(){G[this]=F;
});
return G;
}function f(A){return"scrollTo" in A&&A.document?A:A.nodeType===9?A.defaultView||A.parentWindow:false;
}var AF=function(F,A){return new AF.fn.init(F,A);
},g=An.jQuery,D=An.$,x=An.document,AQ,A6=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,As=/^.[^:#\[\.,]*$/,AL=/\S/,u=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,h=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,AU=navigator.userAgent,C=false,AS=[],AY,A0=Object.prototype.toString,Au=Object.prototype.hasOwnProperty,AV=Array.prototype.push,AR=Array.prototype.slice,A5=Array.prototype.indexOf;
AF.fn=AF.prototype={init:function(F,A){var J,G;
if(!F){return this;
}if(F.nodeType){this.context=this[0]=F;
this.length=1;
return this;
}if(F==="body"&&!A){this.context=x;
this[0]=x.body;
this.selector="body";
this.length=1;
return this;
}if(typeof F==="string"){if((J=A6.exec(F))&&(J[1]||!A)){if(J[1]){G=A?A.ownerDocument||A:x;
if(F=h.exec(F)){if(AF.isPlainObject(A)){F=[x.createElement(F[1])];
AF.fn.attr.call(F,A,true);
}else{F=[G.createElement(F[1])];
}}else{F=A2([J[1]],[G]);
F=(F.cacheable?F.fragment.cloneNode(true):F.fragment).childNodes;
}return AF.merge(this,F);
}else{if(A=x.getElementById(J[2])){if(A.id!==J[2]){return AQ.find(F);
}this.length=1;
this[0]=A;
}this.context=x;
this.selector=F;
return this;
}}else{if(!A&&/^\w+$/.test(F)){this.selector=F;
this.context=x;
F=x.getElementsByTagName(F);
return AF.merge(this,F);
}else{return !A||A.jquery?(A||AQ).find(F):AF(A).find(F);
}}}else{if(AF.isFunction(F)){return AQ.ready(F);
}}if(F.selector!==v){this.selector=F.selector;
this.context=F.context;
}return AF.makeArray(F,this);
},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length;
},toArray:function(){return AR.call(this,0);
},get:function(A){return A==null?this.toArray():A<0?this.slice(A)[0]:this[A];
},pushStack:function(F,A,J){var G=AF();
AF.isArray(F)?AV.apply(G,F):AF.merge(G,F);
G.prevObject=this;
G.context=this.context;
if(A==="find"){G.selector=this.selector+(this.selector?" ":"")+J;
}else{if(A){G.selector=this.selector+"."+A+"("+J+")";
}}return G;
},each:function(F,A){return AF.each(this,F,A);
},ready:function(A){AF.bindReady();
if(AF.isReady){A.call(x,AF);
}else{AS&&AS.push(A);
}return this;
},eq:function(A){return A===-1?this.slice(A):this.slice(A,+A+1);
},first:function(){return this.eq(0);
},last:function(){return this.eq(-1);
},slice:function(){return this.pushStack(AR.apply(this,arguments),"slice",AR.call(arguments).join(","));
},map:function(A){return this.pushStack(AF.map(this,function(F,G){return A.call(F,G,F);
}));
},end:function(){return this.prevObject||AF(null);
},push:AV,sort:[].sort,splice:[].splice};
AF.fn.init.prototype=AF.fn;
AF.extend=AF.fn.extend=function(){var F=arguments[0]||{},A=1,O=arguments.length,K=false,L,G,J,N;
if(typeof F==="boolean"){K=F;
F=arguments[1]||{};
A=2;
}if(typeof F!=="object"&&!AF.isFunction(F)){F={};
}if(O===A){F=this;
--A;
}for(;
A<O;
A++){if((L=arguments[A])!=null){for(G in L){J=F[G];
N=L[G];
if(F!==N){if(K&&N&&(AF.isPlainObject(N)||AF.isArray(N))){J=J&&(AF.isPlainObject(J)||AF.isArray(J))?J:AF.isArray(N)?[]:{};
F[G]=AF.extend(K,J,N);
}else{if(N!==v){F[G]=N;
}}}}}}return F;
};
AF.extend({noConflict:function(A){An.$=D;
if(A){An.jQuery=g;
}return AF;
},isReady:false,ready:function(){if(!AF.isReady){if(!x.body){return setTimeout(AF.ready,13);
}AF.isReady=true;
if(AS){for(var F,A=0;
F=AS[A++];
){F.call(x,AF);
}AS=null;
}AF.fn.triggerHandler&&AF(x).triggerHandler("ready");
}},bindReady:function(){if(!C){C=true;
if(x.readyState==="complete"){return AF.ready();
}if(x.addEventListener){x.addEventListener("DOMContentLoaded",AY,false);
An.addEventListener("load",AF.ready,false);
}else{if(x.attachEvent){x.attachEvent("onreadystatechange",AY);
An.attachEvent("onload",AF.ready);
var F=false;
try{F=An.frameElement==null;
}catch(A){}x.documentElement.doScroll&&F&&Az();
}}}},isFunction:function(A){return A0.call(A)==="[object Function]";
},isArray:function(A){return A0.call(A)==="[object Array]";
},isPlainObject:function(F){if(!F||A0.call(F)!=="[object Object]"||F.nodeType||F.setInterval){return false;
}if(F.constructor&&!Au.call(F,"constructor")&&!Au.call(F.constructor.prototype,"isPrototypeOf")){return false;
}var A;
for(A in F){}return A===v||Au.call(F,A);
},isEmptyObject:function(F){for(var A in F){return false;
}return true;
},error:function(A){throw A;
},parseJSON:function(A){if(typeof A!=="string"||!A){return null;
}A=AF.trim(A);
if(/^[\],:{}\s]*$/.test(A.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return An.JSON&&An.JSON.parse?An.JSON.parse(A):(new Function("return "+A))();
}else{AF.error("Invalid JSON: "+A);
}},noop:function(){},globalEval:function(F){if(F&&AL.test(F)){var A=x.getElementsByTagName("head")[0]||x.documentElement,G=x.createElement("script");
G.type="text/javascript";
if(AF.support.scriptEval){G.appendChild(x.createTextNode(F));
}else{G.text=F;
}A.insertBefore(G,A.firstChild);
A.removeChild(G);
}},nodeName:function(F,A){return F.nodeName&&F.nodeName.toUpperCase()===A.toUpperCase();
},each:function(F,A,N){var K,L=0,G=F.length,J=G===v||AF.isFunction(F);
if(N){if(J){for(K in F){if(A.apply(F[K],N)===false){break;
}}}else{for(;
L<G;
){if(A.apply(F[L++],N)===false){break;
}}}}else{if(J){for(K in F){if(A.call(F[K],K,F[K])===false){break;
}}}else{for(N=F[0];
L<G&&A.call(N,L,N)!==false;
N=F[++L]){}}}return F;
},trim:function(A){return(A||"").replace(u,"");
},makeArray:function(F,A){A=A||[];
if(F!=null){F.length==null||typeof F==="string"||AF.isFunction(F)||typeof F!=="function"&&F.setInterval?AV.call(A,F):AF.merge(A,F);
}return A;
},inArray:function(F,A){if(A.indexOf){return A.indexOf(F);
}for(var J=0,G=A.length;
J<G;
J++){if(A[J]===F){return J;
}}return -1;
},merge:function(F,A){var K=F.length,G=0;
if(typeof A.length==="number"){for(var J=A.length;
G<J;
G++){F[K++]=A[G];
}}else{for(;
A[G]!==v;
){F[K++]=A[G++];
}}F.length=K;
return F;
},grep:function(F,A,L){for(var J=[],K=0,G=F.length;
K<G;
K++){!L!==!A(F[K],K)&&J.push(F[K]);
}return J;
},map:function(F,A,N){for(var K=[],L,G=0,J=F.length;
G<J;
G++){L=A(F[G],G,N);
if(L!=null){K[K.length]=L;
}}return K.concat.apply([],K);
},guid:1,proxy:function(F,A,G){if(arguments.length===2){if(typeof A==="string"){G=F;
F=G[A];
A=v;
}else{if(A&&!AF.isFunction(A)){G=A;
A=v;
}}}if(!A&&F){A=function(){return F.apply(G||this,arguments);
};
}if(F){A.guid=F.guid=F.guid||A.guid||AF.guid++;
}return A;
},uaMatch:function(A){A=A.toLowerCase();
A=/(webkit)[ \/]([\w.]+)/.exec(A)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(A)||/(msie) ([\w.]+)/.exec(A)||!/compatible/.test(A)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(A)||[];
return{browser:A[1]||"",version:A[2]||"0"};
},browser:{}});
AU=AF.uaMatch(AU);
if(AU.browser){AF.browser[AU.browser]=true;
AF.browser.version=AU.version;
}if(AF.browser.webkit){AF.browser.safari=true;
}if(A5){AF.inArray=function(F,A){return A5.call(A,F);
};
}AQ=AF(x);
if(x.addEventListener){AY=function(){x.removeEventListener("DOMContentLoaded",AY,false);
AF.ready();
};
}else{if(x.attachEvent){AY=function(){if(x.readyState==="complete"){x.detachEvent("onreadystatechange",AY);
AF.ready();
}};
}}(function(){AF.support={};
var P=x.documentElement,O=x.createElement("script"),N=x.createElement("div"),K="script"+Ae();
N.style.display="none";
N.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var L=N.getElementsByTagName("*"),G=N.getElementsByTagName("a")[0];
if(!(!L||!L.length||!G)){AF.support={leadingWhitespace:N.firstChild.nodeType===3,tbody:!N.getElementsByTagName("tbody").length,htmlSerialize:!!N.getElementsByTagName("link").length,style:/red/.test(G.getAttribute("style")),hrefNormalized:G.getAttribute("href")==="/a",opacity:/^0.55$/.test(G.style.opacity),cssFloat:!!G.style.cssFloat,checkOn:N.getElementsByTagName("input")[0].value==="on",optSelected:x.createElement("select").appendChild(x.createElement("option")).selected,parentNode:N.removeChild(N.appendChild(x.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};
O.type="text/javascript";
try{O.appendChild(x.createTextNode("window."+K+"=1;"));
}catch(J){}P.insertBefore(O,P.firstChild);
if(An[K]){AF.support.scriptEval=true;
delete An[K];
}try{delete O.test;
}catch(A){AF.support.deleteExpando=false;
}P.removeChild(O);
if(N.attachEvent&&N.fireEvent){N.attachEvent("onclick",function F(){AF.support.noCloneEvent=false;
N.detachEvent("onclick",F);
});
N.cloneNode(true).fireEvent("onclick");
}N=x.createElement("div");
N.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
P=x.createDocumentFragment();
P.appendChild(N.firstChild);
AF.support.checkClone=P.cloneNode(true).cloneNode(true).lastChild.checked;
AF(function(){var Q=x.createElement("div");
Q.style.width=Q.style.paddingLeft="1px";
x.body.appendChild(Q);
AF.boxModel=AF.support.boxModel=Q.offsetWidth===2;
x.body.removeChild(Q).style.display="none";
});
P=function(Q){var T=x.createElement("div");
Q="on"+Q;
var R=Q in T;
if(!R){T.setAttribute(Q,"return;");
R=typeof T[Q]==="function";
}return R;
};
AF.support.submitBubbles=P("submit");
AF.support.changeBubbles=P("change");
P=O=N=L=G=null;
}})();
AF.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};
var Ag="jQuery"+Ae(),E=0,Ar={};
AF.extend({cache:{},expando:Ag,noData:{embed:true,object:true,applet:true},data:function(F,A,K){if(!(F.nodeName&&AF.noData[F.nodeName.toLowerCase()])){F=F==An?Ar:F;
var G=F[Ag],J=AF.cache;
if(!G&&typeof A==="string"&&K===v){return null;
}G||(G=++E);
if(typeof A==="object"){F[Ag]=G;
J[G]=AF.extend(true,{},A);
}else{if(!J[G]){F[Ag]=G;
J[G]={};
}}F=J[G];
if(K!==v){F[A]=K;
}return typeof A==="string"?F[A]:F;
}},removeData:function(F,A){if(!(F.nodeName&&AF.noData[F.nodeName.toLowerCase()])){F=F==An?Ar:F;
var K=F[Ag],G=AF.cache,J=G[K];
if(A){if(J){delete J[A];
AF.isEmptyObject(J)&&AF.removeData(F);
}}else{if(AF.support.deleteExpando){delete F[AF.expando];
}else{F.removeAttribute&&F.removeAttribute(AF.expando);
}delete G[K];
}}}});
AF.fn.extend({data:function(F,A){if(typeof F==="undefined"&&this.length){return AF.data(this[0]);
}else{if(typeof F==="object"){return this.each(function(){AF.data(this,F);
});
}}var J=F.split(".");
J[1]=J[1]?"."+J[1]:"";
if(A===v){var G=this.triggerHandler("getData"+J[1]+"!",[J[0]]);
if(G===v&&this.length){G=AF.data(this[0],F);
}return G===v&&J[1]?this.data(J[0]):G;
}else{return this.trigger("setData"+J[1]+"!",[J[0],A]).each(function(){AF.data(this,F,A);
});
}},removeData:function(A){return this.each(function(){AF.removeData(this,A);
});
}});
AF.extend({queue:function(F,A,J){if(F){A=(A||"fx")+"queue";
var G=AF.data(F,A);
if(!J){return G||[];
}if(!G||AF.isArray(J)){G=AF.data(F,A,AF.makeArray(J));
}else{G.push(J);
}return G;
}},dequeue:function(F,A){A=A||"fx";
var J=AF.queue(F,A),G=J.shift();
if(G==="inprogress"){G=J.shift();
}if(G){A==="fx"&&J.unshift("inprogress");
G.call(F,function(){AF.dequeue(F,A);
});
}}});
AF.fn.extend({queue:function(F,A){if(typeof F!=="string"){A=F;
F="fx";
}if(A===v){return AF.queue(this[0],F);
}return this.each(function(){var G=AF.queue(this,F,A);
F==="fx"&&G[0]!=="inprogress"&&AF.dequeue(this,F);
});
},dequeue:function(A){return this.each(function(){AF.dequeue(this,A);
});
},delay:function(F,A){F=AF.fx?AF.fx.speeds[F]||F:F;
A=A||"fx";
return this.queue(A,function(){var G=this;
setTimeout(function(){AF.dequeue(G,A);
},F);
});
},clearQueue:function(A){return this.queue(A||"fx",[]);
}});
var BB=/[\n\t]/g,z=/\s+/,A7=/\r/g,Al=/href|src|style/,At=/(button|input)/i,AT=/(button|input|object|select|textarea)/i,y=/^(a|area)$/i,Ax=/radio|checkbox/;
AF.fn.extend({attr:function(F,A){return AN(this,F,A,true,AF.attr);
},removeAttr:function(A){return this.each(function(){AF.attr(this,A,"");
this.nodeType===1&&this.removeAttribute(A);
});
},addClass:function(P){if(AF.isFunction(P)){return this.each(function(R){var Q=AF(this);
Q.addClass(P.call(this,R,Q.attr("class")));
});
}if(P&&typeof P==="string"){for(var O=(P||"").split(z),N=0,K=this.length;
N<K;
N++){var L=this[N];
if(L.nodeType===1){if(L.className){for(var G=" "+L.className+" ",J=L.className,A=0,F=O.length;
A<F;
A++){if(G.indexOf(" "+O[A]+" ")<0){J+=" "+O[A];
}}L.className=AF.trim(J);
}else{L.className=P;
}}}}return this;
},removeClass:function(F){if(AF.isFunction(F)){return this.each(function(P){var Q=AF(this);
Q.removeClass(F.call(this,P,Q.attr("class")));
});
}if(F&&typeof F==="string"||F===v){for(var A=(F||"").split(z),O=0,K=this.length;
O<K;
O++){var L=this[O];
if(L.nodeType===1&&L.className){if(F){for(var G=(" "+L.className+" ").replace(BB," "),J=0,N=A.length;
J<N;
J++){G=G.replace(" "+A[J]+" "," ");
}L.className=AF.trim(G);
}else{L.className="";
}}}}return this;
},toggleClass:function(F,A){var J=typeof F,G=typeof A==="boolean";
if(AF.isFunction(F)){return this.each(function(L){var K=AF(this);
K.toggleClass(F.call(this,L,K.attr("class"),A),A);
});
}return this.each(function(){if(J==="string"){for(var O,L=0,N=AF(this),P=A,K=F.split(z);
O=K[L++];
){P=G?P:!N.hasClass(O);
N[P?"addClass":"removeClass"](O);
}}else{if(J==="undefined"||J==="boolean"){this.className&&AF.data(this,"__className__",this.className);
this.className=this.className||F===false?"":AF.data(this,"__className__")||"";
}}});
},hasClass:function(F){F=" "+F+" ";
for(var A=0,G=this.length;
A<G;
A++){if((" "+this[A].className+" ").replace(BB," ").indexOf(F)>-1){return true;
}}return false;
},val:function(F){if(F===v){var A=this[0];
if(A){if(AF.nodeName(A,"option")){return(A.attributes.value||{}).specified?A.value:A.text;
}if(AF.nodeName(A,"select")){var O=A.selectedIndex,K=[],L=A.options;
A=A.type==="select-one";
if(O<0){return null;
}var G=A?O:0;
for(O=A?O+1:L.length;
G<O;
G++){var J=L[G];
if(J.selected){F=AF(J).val();
if(A){return F;
}K.push(F);
}}return K;
}if(Ax.test(A.type)&&!AF.support.checkOn){return A.getAttribute("value")===null?"on":A.value;
}return(A.value||"").replace(A7,"");
}return v;
}var N=AF.isFunction(F);
return this.each(function(P){var T=AF(this),R=F;
if(this.nodeType===1){if(N){R=F.call(this,P,T.val());
}if(typeof R==="number"){R+="";
}if(AF.isArray(R)&&Ax.test(this.type)){this.checked=AF.inArray(T.val(),R)>=0;
}else{if(AF.nodeName(this,"select")){var Q=AF.makeArray(R);
AF("option",this).each(function(){this.selected=AF.inArray(AF(this).val(),Q)>=0;
});
if(!Q.length){this.selectedIndex=-1;
}}else{this.value=R;
}}}});
}});
AF.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(F,A,L,J){if(!F||F.nodeType===3||F.nodeType===8){return v;
}if(J&&A in AF.attrFn){return AF(F)[A](L);
}J=F.nodeType!==1||!AF.isXMLDoc(F);
var K=L!==v;
A=J&&AF.props[A]||A;
if(F.nodeType===1){var G=Al.test(A);
if(A in F&&J&&!G){if(K){A==="type"&&At.test(F.nodeName)&&F.parentNode&&AF.error("type property can't be changed");
F[A]=L;
}if(AF.nodeName(F,"form")&&F.getAttributeNode(A)){return F.getAttributeNode(A).nodeValue;
}if(A==="tabIndex"){return(A=F.getAttributeNode("tabIndex"))&&A.specified?A.value:AT.test(F.nodeName)||y.test(F.nodeName)&&F.href?0:v;
}return F[A];
}if(!AF.support.style&&J&&A==="style"){if(K){F.style.cssText=""+L;
}return F.style.cssText;
}K&&F.setAttribute(A,""+L);
F=!AF.support.hrefNormalized&&J&&G?F.getAttribute(A,2):F.getAttribute(A);
return F===null?v:F;
}return AF.style(F,A,L);
}});
var AW=/\.(.*)$/,i=function(A){return A.replace(/[^\w\s\.\|`]/g,function(F){return"\\"+F;
});
};
AF.event={add:function(T,R,P,N){if(!(T.nodeType===3||T.nodeType===8)){if(T.setInterval&&T!==An&&!T.frameElement){T=An;
}var O,K;
if(P.handler){O=P;
P=O.handler;
}if(!P.guid){P.guid=AF.guid++;
}if(K=AF.data(T)){var L=K.events=K.events||{},F=K.handle;
if(!F){K.handle=F=function(){return typeof AF!=="undefined"&&!AF.event.triggered?AF.event.handle.apply(F.elem,arguments):v;
};
}F.elem=T;
R=R.split(" ");
for(var J,G=0,A;
J=R[G++];
){K=O?AF.extend({},O):{handler:P,data:N};
if(J.indexOf(".")>-1){A=J.split(".");
J=A.shift();
K.namespace=A.slice(0).sort().join(".");
}else{A=[];
K.namespace="";
}K.type=J;
K.guid=P.guid;
var V=L[J],Q=AF.event.special[J]||{};
if(!V){V=L[J]=[];
if(!Q.setup||Q.setup.call(T,N,A,F)===false){if(T.addEventListener){T.addEventListener(J,F,false);
}else{T.attachEvent&&T.attachEvent("on"+J,F);
}}}if(Q.add){Q.add.call(T,K);
if(!K.handler.guid){K.handler.guid=P.guid;
}}V.push(K);
AF.event.global[J]=true;
}T=null;
}}},global:{},remove:function(W,V,R,P){if(!(W.nodeType===3||W.nodeType===8)){var Q,N=0,O,J,L,K,A,X,T=AF.data(W),F=T&&T.events;
if(T&&F){if(V&&V.type){R=V.handler;
V=V.type;
}if(!V||typeof V==="string"&&V.charAt(0)==="."){V=V||"";
for(Q in F){AF.event.remove(W,Q+V);
}}else{for(V=V.split(" ");
Q=V[N++];
){K=Q;
O=Q.indexOf(".")<0;
J=[];
if(!O){J=Q.split(".");
Q=J.shift();
L=new RegExp("(^|\\.)"+AF.map(J.slice(0).sort(),i).join("\\.(?:.*\\.)?")+"(\\.|$)");
}if(A=F[Q]){if(R){K=AF.event.special[Q]||{};
for(G=P||0;
G<A.length;
G++){X=A[G];
if(R.guid===X.guid){if(O||L.test(X.namespace)){P==null&&A.splice(G--,1);
K.remove&&K.remove.call(W,X);
}if(P!=null){break;
}}}if(A.length===0||P!=null&&A.length===1){if(!K.teardown||K.teardown.call(W,J)===false){Af(W,Q,T.handle);
}delete F[Q];
}}else{for(var G=0;
G<A.length;
G++){X=A[G];
if(O||L.test(X.namespace)){AF.event.remove(W,K,X.handler,G);
A.splice(G--,1);
}}}}}if(AF.isEmptyObject(F)){if(V=T.handle){V.elem=null;
}delete T.events;
delete T.handle;
AF.isEmptyObject(T)&&AF.removeData(W);
}}}}},trigger:function(Q,P,O,L){var N=Q.type||Q;
if(!L){Q=typeof Q==="object"?Q[Ag]?Q:AF.extend(AF.Event(N),Q):AF.Event(N);
if(N.indexOf("!")>=0){Q.type=N=N.slice(0,-1);
Q.exclusive=true;
}if(!O){Q.stopPropagation();
AF.event.global[N]&&AF.each(AF.cache,function(){this.events&&this.events[N]&&AF.event.trigger(Q,P,this.handle.elem);
});
}if(!O||O.nodeType===3||O.nodeType===8){return v;
}Q.result=v;
Q.target=O;
P=AF.makeArray(P);
P.unshift(Q);
}Q.currentTarget=O;
(L=AF.data(O,"handle"))&&L.apply(O,P);
L=O.parentNode||O.ownerDocument;
try{if(!(O&&O.nodeName&&AF.noData[O.nodeName.toLowerCase()])){if(O["on"+N]&&O["on"+N].apply(O,P)===false){Q.result=false;
}}}catch(J){}if(!Q.isPropagationStopped()&&L){AF.event.trigger(Q,P,L,true);
}else{if(!Q.isDefaultPrevented()){L=Q.target;
var K,A=AF.nodeName(L,"a")&&N==="click",G=AF.event.special[N]||{};
if((!G._default||G._default.call(O,Q)===false)&&!A&&!(L&&L.nodeName&&AF.noData[L.nodeName.toLowerCase()])){try{if(L[N]){if(K=L["on"+N]){L["on"+N]=null;
}AF.event.triggered=true;
L[N]();
}}catch(F){}if(K){L["on"+N]=K;
}AF.event.triggered=false;
}}}},handle:function(F){var A,N,K,L;
F=arguments[0]=AF.event.fix(F||An.event);
F.currentTarget=this;
A=F.type.indexOf(".")<0&&!F.exclusive;
if(!A){N=F.type.split(".");
F.type=N.shift();
K=new RegExp("(^|\\.)"+N.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");
}L=AF.data(this,"events");
N=L[F.type];
if(L&&N){N=N.slice(0);
L=0;
for(var G=N.length;
L<G;
L++){var J=N[L];
if(A||K.test(J.namespace)){F.handler=J.handler;
F.data=J.data;
F.handleObj=J;
J=J.handler.apply(this,arguments);
if(J!==v){F.result=J;
if(J===false){F.preventDefault();
F.stopPropagation();
}}if(F.isImmediatePropagationStopped()){break;
}}}}return F.result;
},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(F){if(F[Ag]){return F;
}var A=F;
F=AF.Event(A);
for(var J=this.props.length,G;
J;
){G=this.props[--J];
F[G]=A[G];
}if(!F.target){F.target=F.srcElement||x;
}if(F.target.nodeType===3){F.target=F.target.parentNode;
}if(!F.relatedTarget&&F.fromElement){F.relatedTarget=F.fromElement===F.target?F.toElement:F.fromElement;
}if(F.pageX==null&&F.clientX!=null){A=x.documentElement;
J=x.body;
F.pageX=F.clientX+(A&&A.scrollLeft||J&&J.scrollLeft||0)-(A&&A.clientLeft||J&&J.clientLeft||0);
F.pageY=F.clientY+(A&&A.scrollTop||J&&J.scrollTop||0)-(A&&A.clientTop||J&&J.clientTop||0);
}if(!F.which&&(F.charCode||F.charCode===0?F.charCode:F.keyCode)){F.which=F.charCode||F.keyCode;
}if(!F.metaKey&&F.ctrlKey){F.metaKey=F.ctrlKey;
}if(!F.which&&F.button!==v){F.which=F.button&1?1:F.button&2?3:F.button&4?2:0;
}return F;
},guid:100000000,proxy:AF.proxy,special:{ready:{setup:AF.bindReady,teardown:AF.noop},live:{add:function(A){AF.event.add(this,A.origType,AF.extend({},A,{handler:AE}));
},remove:function(F){var A=true,G=F.origType.replace(AW,"");
AF.each(AF.data(this,"events").live||[],function(){if(G===this.origType.replace(AW,"")){return A=false;
}});
A&&AF.event.remove(this,F.origType,AE);
}},beforeunload:{setup:function(F,A,G){if(this.setInterval){this.onbeforeunload=G;
}return false;
},teardown:function(F,A){if(this.onbeforeunload===A){this.onbeforeunload=null;
}}}}};
var Af=x.removeEventListener?function(F,A,G){F.removeEventListener(A,G,false);
}:function(F,A,G){F.detachEvent("on"+A,G);
};
AF.Event=function(A){if(!this.preventDefault){return new AF.Event(A);
}if(A&&A.type){this.originalEvent=A;
this.type=A.type;
}else{this.type=A;
}this.timeStamp=Ae();
this[Ag]=true;
};
AF.Event.prototype={preventDefault:function(){this.isDefaultPrevented=AK;
var A=this.originalEvent;
if(A){A.preventDefault&&A.preventDefault();
A.returnValue=false;
}},stopPropagation:function(){this.isPropagationStopped=AK;
var A=this.originalEvent;
if(A){A.stopPropagation&&A.stopPropagation();
A.cancelBubble=true;
}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=AK;
this.stopPropagation();
},isDefaultPrevented:AM,isPropagationStopped:AM,isImmediatePropagationStopped:AM};
var AC=function(F){var A=F.relatedTarget;
try{for(;
A&&A!==this;
){A=A.parentNode;
}if(A!==this){F.type=F.data;
AF.event.handle.apply(this,arguments);
}}catch(G){}},m=function(A){A.type=A.data;
AF.event.handle.apply(this,arguments);
};
AF.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(F,A){AF.event.special[F]={setup:function(G){AF.event.add(this,A,G&&G.selector?m:AC,F);
},teardown:function(G){AF.event.remove(this,A,G&&G.selector?m:AC);
}};
});
if(!AF.support.submitBubbles){AF.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){AF.event.add(this,"click.specialSubmit",function(F){var A=F.target,G=A.type;
if((G==="submit"||G==="image")&&AF(A).closest("form").length){return Aj("submit",this,arguments);
}});
AF.event.add(this,"keypress.specialSubmit",function(F){var A=F.target,G=A.type;
if((G==="text"||G==="password")&&AF(A).closest("form").length&&F.keyCode===13){return Aj("submit",this,arguments);
}});
}else{return false;
}},teardown:function(){AF.event.remove(this,".specialSubmit");
}};
}if(!AF.support.changeBubbles){var j=/textarea|input|select/i,I,U=function(F){var A=F.type,G=F.value;
if(A==="radio"||A==="checkbox"){G=F.checked;
}else{if(A==="select-multiple"){G=F.selectedIndex>-1?AF.map(F.options,function(J){return J.selected;
}).join("-"):"";
}else{if(F.nodeName.toLowerCase()==="select"){G=F.selectedIndex;
}}}return G;
},BA=function(F,A){var K=F.target,G,J;
if(!(!j.test(K.nodeName)||K.readOnly)){G=AF.data(K,"_change_data");
J=U(K);
if(F.type!=="focusout"||K.type!=="radio"){AF.data(K,"_change_data",J);
}if(!(G===v||J===G)){if(G!=null||J){F.type="change";
return AF.event.trigger(F,A,K);
}}}};
AF.event.special.change={filters:{focusout:BA,click:function(F){var A=F.target,G=A.type;
if(G==="radio"||G==="checkbox"||A.nodeName.toLowerCase()==="select"){return BA.call(this,F);
}},keydown:function(F){var A=F.target,G=A.type;
if(F.keyCode===13&&A.nodeName.toLowerCase()!=="textarea"||F.keyCode===32&&(G==="checkbox"||G==="radio")||G==="select-multiple"){return BA.call(this,F);
}},beforeactivate:function(A){A=A.target;
AF.data(A,"_change_data",U(A));
}},setup:function(){if(this.type==="file"){return false;
}for(var A in I){AF.event.add(this,A+".specialChange",I[A]);
}return j.test(this.nodeName);
},teardown:function(){AF.event.remove(this,".specialChange");
return j.test(this.nodeName);
}};
I=AF.event.special.change.filters;
}x.addEventListener&&AF.each({focus:"focusin",blur:"focusout"},function(F,A){function G(J){J=AF.event.fix(J);
J.type=A;
return AF.event.handle.call(this,J);
}AF.event.special[A]={setup:function(){this.addEventListener(F,G,true);
},teardown:function(){this.removeEventListener(F,G,true);
}};
});
AF.each(["bind","one"],function(F,A){AF.fn[A]=function(O,K,L){if(typeof O==="object"){for(var G in O){this[A](G,K,O[G],L);
}return this;
}if(AF.isFunction(K)){L=K;
K=v;
}var J=A==="one"?AF.proxy(L,function(P){AF(this).unbind(P,J);
return L.apply(this,arguments);
}):L;
if(O==="unload"&&A!=="one"){this.one(O,K,L);
}else{G=0;
for(var N=this.length;
G<N;
G++){AF.event.add(this[G],O,J,K);
}}return this;
};
});
AF.fn.extend({unbind:function(F,A){if(typeof F==="object"&&!F.preventDefault){for(var J in F){this.unbind(J,F[J]);
}}else{J=0;
for(var G=this.length;
J<G;
J++){AF.event.remove(this[J],F,A);
}}return this;
},delegate:function(F,A,J,G){return this.live(A,J,G,F);
},undelegate:function(F,A,G){return arguments.length===0?this.unbind("live"):this.die(A,null,G,F);
},trigger:function(F,A){return this.each(function(){AF.event.trigger(F,A,this);
});
},triggerHandler:function(F,A){if(this[0]){F=AF.Event(F);
F.preventDefault();
F.stopPropagation();
AF.event.trigger(F,A,this[0]);
return F.result;
}},toggle:function(F){for(var A=arguments,G=1;
G<A.length;
){AF.proxy(F,A[G++]);
}return this.click(AF.proxy(F,function(J){var K=(AF.data(this,"lastToggle"+F.guid)||0)%G;
AF.data(this,"lastToggle"+F.guid,K+1);
J.preventDefault();
return A[K].apply(this,arguments)||false;
}));
},hover:function(F,A){return this.mouseenter(F).mouseleave(A||F);
}});
var BE={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
AF.each(["live","die"],function(F,A){AF.fn[A]=function(R,P,Q,N){var O,J=0,L,K,G=N||this.selector,T=N?this:AF(this.context);
if(AF.isFunction(P)){Q=P;
P=v;
}for(R=(R||"").split(" ");
(O=R[J++])!=null;
){N=AW.exec(O);
L="";
if(N){L=N[0];
O=O.replace(AW,"");
}if(O==="hover"){R.push("mouseenter"+L,"mouseleave"+L);
}else{K=O;
if(O==="focus"||O==="blur"){R.push(BE[O]+L);
O+=L;
}else{O=(BE[O]||O)+L;
}A==="live"?T.each(function(){AF.event.add(this,o(O,G),{data:P,selector:G,handler:Q,origType:O,origHandler:Q,preType:K});
}):T.unbind(o(O,G),Q);
}}return this;
};
});
AF.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(F,A){AF.fn[A]=function(G){return G?this.bind(A,G):this.trigger(A);
};
if(AF.attrFn){AF.attrFn[A]=true;
}});
An.attachEvent&&!An.addEventListener&&An.attachEvent("onunload",function(){for(var F in AF.cache){if(AF.cache[F].handle){try{AF.event.remove(AF.cache[F].handle.elem);
}catch(A){}}}});
(function(){function Z(Ab){for(var Aa="",w,s=0;
Ab[s];
s++){w=Ab[s];
if(w.nodeType===3||w.nodeType===4){Aa+=w.nodeValue;
}else{if(w.nodeType!==8){Aa+=Z(w.childNodes);
}}}return Aa;
}function Y(BJ,BI,Ab,Aa,s,w){s=0;
for(var BL=Aa.length;
s<BL;
s++){var BM=Aa[s];
if(BM){BM=BM[BJ];
for(var BK=false;
BM;
){if(BM.sizcache===Ab){BK=Aa[BM.sizset];
break;
}if(BM.nodeType===1&&!w){BM.sizcache=Ab;
BM.sizset=s;
}if(BM.nodeName.toLowerCase()===BI){BK=BM;
break;
}BM=BM[BJ];
}Aa[s]=BK;
}}}function X(BJ,BI,Ab,Aa,s,w){s=0;
for(var BL=Aa.length;
s<BL;
s++){var BM=Aa[s];
if(BM){BM=BM[BJ];
for(var BK=false;
BM;
){if(BM.sizcache===Ab){BK=Aa[BM.sizset];
break;
}if(BM.nodeType===1){if(!w){BM.sizcache=Ab;
BM.sizset=s;
}if(typeof BI!=="string"){if(BM===BI){BK=true;
break;
}}else{if(Q.filter(BI,[BM]).length>0){BK=BM;
break;
}}}BM=BM[BJ];
}Aa[s]=BK;
}}}var V=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,W=0,R=Object.prototype.toString,T=false,O=true;
[0,0].sort(function(){O=false;
return 0;
});
var Q=function(BL,BK,BI,Ab){BI=BI||[];
var w=BK=BK||x;
if(BK.nodeType!==1&&BK.nodeType!==9){return[];
}if(!BL||typeof BL!=="string"){return BI;
}for(var Aa=[],BQ,BR,BN,BJ,BP=true,BM=F(BK),BO=BL;
(V.exec(""),BQ=V.exec(BO))!==null;
){BO=BQ[3];
Aa.push(BQ[1]);
if(BQ[2]){BJ=BQ[3];
break;
}}if(Aa.length>1&&L.exec(BL)){if(Aa.length===2&&P.relative[Aa[0]]){BR=c(Aa[0]+Aa[1],BK);
}else{for(BR=P.relative[Aa[0]]?[BK]:Q(Aa.shift(),BK);
Aa.length;
){BL=Aa.shift();
if(P.relative[BL]){BL+=Aa.shift();
}BR=c(BL,BR);
}}}else{if(!Ab&&Aa.length>1&&BK.nodeType===9&&!BM&&P.match.ID.test(Aa[0])&&!P.match.ID.test(Aa[Aa.length-1])){BQ=Q.find(Aa.shift(),BK,BM);
BK=BQ.expr?Q.filter(BQ.expr,BQ.set)[0]:BQ.set[0];
}if(BK){BQ=Ab?{expr:Aa.pop(),set:A(Ab)}:Q.find(Aa.pop(),Aa.length===1&&(Aa[0]==="~"||Aa[0]==="+")&&BK.parentNode?BK.parentNode:BK,BM);
BR=BQ.expr?Q.filter(BQ.expr,BQ.set):BQ.set;
if(Aa.length>0){BN=A(BR);
}else{BP=false;
}for(;
Aa.length;
){var s=Aa.pop();
BQ=s;
if(P.relative[s]){BQ=Aa.pop();
}else{s="";
}if(BQ==null){BQ=BK;
}P.relative[s](BN,BQ,BM);
}}else{BN=[];
}}BN||(BN=BR);
BN||Q.error(s||BL);
if(R.call(BN)==="[object Array]"){if(BP){if(BK&&BK.nodeType===1){for(BL=0;
BN[BL]!=null;
BL++){if(BN[BL]&&(BN[BL]===true||BN[BL].nodeType===1&&J(BK,BN[BL]))){BI.push(BR[BL]);
}}}else{for(BL=0;
BN[BL]!=null;
BL++){BN[BL]&&BN[BL].nodeType===1&&BI.push(BR[BL]);
}}}else{BI.push.apply(BI,BN);
}}else{A(BN,BI);
}if(BJ){Q(BJ,w,BI,Ab);
Q.uniqueSort(BI);
}return BI;
};
Q.uniqueSort=function(w){if(N){T=O;
w.sort(N);
if(T){for(var s=1;
s<w.length;
s++){w[s]===w[s-1]&&w.splice(s--,1);
}}}return w;
};
Q.matches=function(w,s){return Q(w,null,null,s);
};
Q.find=function(BJ,BI,Ab){var Aa,s;
if(!BJ){return[];
}for(var w=0,BL=P.order.length;
w<BL;
w++){var BM=P.order[w];
if(s=P.leftMatch[BM].exec(BJ)){var BK=s[1];
s.splice(1,1);
if(BK.substr(BK.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");
Aa=P.find[BM](s,BI,Ab);
if(Aa!=null){BJ=BJ.replace(P.match[BM],"");
break;
}}}}Aa||(Aa=BI.getElementsByTagName("*"));
return{set:Aa,expr:BJ};
};
Q.filter=function(BM,BL,BJ,Ab){for(var w=BM,Aa=[],BS=BL,BT,BP,BK=BL&&BL[0]&&F(BL[0]);
BM&&BL.length;
){for(var BR in P.filter){if((BT=P.leftMatch[BR].exec(BM))!=null&&BT[2]){var BN=P.filter[BR],BQ,s;
s=BT[1];
BP=false;
BT.splice(1,1);
if(s.substr(s.length-1)!=="\\"){if(BS===Aa){Aa=[];
}if(P.preFilter[BR]){if(BT=P.preFilter[BR](BT,BS,BJ,Aa,Ab,BK)){if(BT===true){continue;
}}else{BP=BQ=true;
}}if(BT){for(var BI=0;
(s=BS[BI])!=null;
BI++){if(s){BQ=BN(s,BT,BI,BS);
var BO=Ab^!!BQ;
if(BJ&&BQ!=null){if(BO){BP=true;
}else{BS[BI]=false;
}}else{if(BO){Aa.push(s);
BP=true;
}}}}}if(BQ!==v){BJ||(BS=Aa);
BM=BM.replace(P.match[BR],"");
if(!BP){return[];
}break;
}}}}if(BM===w){if(BP==null){Q.error(BM);
}else{break;
}}w=BM;
}return BS;
};
Q.error=function(s){throw"Syntax error, unrecognized expression: "+s;
};
var P=Q.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(s){return s.getAttribute("href");
}},relative:{"+":function(Ab,Aa){var w=typeof Aa==="string",s=w&&!/\W/.test(Aa);
w=w&&!s;
if(s){Aa=Aa.toLowerCase();
}s=0;
for(var BI=Ab.length,BJ;
s<BI;
s++){if(BJ=Ab[s]){for(;
(BJ=BJ.previousSibling)&&BJ.nodeType!==1;
){}Ab[s]=w||BJ&&BJ.nodeName.toLowerCase()===Aa?BJ||false:BJ===Aa;
}}w&&Q.filter(Aa,Ab,true);
},">":function(Ab,Aa){var w=typeof Aa==="string";
if(w&&!/\W/.test(Aa)){Aa=Aa.toLowerCase();
for(var s=0,BI=Ab.length;
s<BI;
s++){var BJ=Ab[s];
if(BJ){w=BJ.parentNode;
Ab[s]=w.nodeName.toLowerCase()===Aa?w:false;
}}}else{s=0;
for(BI=Ab.length;
s<BI;
s++){if(BJ=Ab[s]){Ab[s]=w?BJ.parentNode:BJ.parentNode===Aa;
}}w&&Q.filter(Aa,Ab,true);
}},"":function(Ab,Aa,w){var s=W++,BI=X;
if(typeof Aa==="string"&&!/\W/.test(Aa)){var BJ=Aa=Aa.toLowerCase();
BI=Y;
}BI("parentNode",Aa,s,Ab,BJ,w);
},"~":function(Ab,Aa,w){var s=W++,BI=X;
if(typeof Aa==="string"&&!/\W/.test(Aa)){var BJ=Aa=Aa.toLowerCase();
BI=Y;
}BI("previousSibling",Aa,s,Ab,BJ,w);
}},find:{ID:function(Aa,w,s){if(typeof w.getElementById!=="undefined"&&!s){return(Aa=w.getElementById(Aa[1]))?[Aa]:[];
}},NAME:function(Ab,Aa){if(typeof Aa.getElementsByName!=="undefined"){var w=[];
Aa=Aa.getElementsByName(Ab[1]);
for(var s=0,BI=Aa.length;
s<BI;
s++){Aa[s].getAttribute("name")===Ab[1]&&w.push(Aa[s]);
}return w.length===0?null:w;
}},TAG:function(w,s){return s.getElementsByTagName(w[1]);
}},preFilter:{CLASS:function(BI,Ab,w,s,BJ,BK){BI=" "+BI[1].replace(/\\/g,"")+" ";
if(BK){return BI;
}BK=0;
for(var Aa;
(Aa=Ab[BK])!=null;
BK++){if(Aa){if(BJ^(Aa.className&&(" "+Aa.className+" ").replace(/[\t\n]/g," ").indexOf(BI)>=0)){w||s.push(Aa);
}else{if(w){Ab[BK]=false;
}}}}return false;
},ID:function(s){return s[1].replace(/\\/g,"");
},TAG:function(s){return s[1].toLowerCase();
},CHILD:function(w){if(w[1]==="nth"){var s=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(w[2]==="even"&&"2n"||w[2]==="odd"&&"2n+1"||!/\D/.test(w[2])&&"0n+"+w[2]||w[2]);
w[2]=s[1]+(s[2]||1)-0;
w[3]=s[3]-0;
}w[0]=W++;
return w;
},ATTR:function(Ab,Aa,w,s,BI,BJ){Aa=Ab[1].replace(/\\/g,"");
if(!BJ&&P.attrMap[Aa]){Ab[1]=P.attrMap[Aa];
}if(Ab[2]==="~="){Ab[4]=" "+Ab[4]+" ";
}return Ab;
},PSEUDO:function(Ab,Aa,w,s,BI){if(Ab[1]==="not"){if((V.exec(Ab[3])||"").length>1||/^\w/.test(Ab[3])){Ab[3]=Q(Ab[3],null,null,Aa);
}else{Ab=Q.filter(Ab[3],Aa,w,true^BI);
w||s.push.apply(s,Ab);
return false;
}}else{if(P.match.POS.test(Ab[0])||P.match.CHILD.test(Ab[0])){return true;
}}return Ab;
},POS:function(s){s.unshift(true);
return s;
}},filters:{enabled:function(s){return s.disabled===false&&s.type!=="hidden";
},disabled:function(s){return s.disabled===true;
},checked:function(s){return s.checked===true;
},selected:function(s){return s.selected===true;
},parent:function(s){return !!s.firstChild;
},empty:function(s){return !s.firstChild;
},has:function(Aa,w,s){return !!Q(s[3],Aa).length;
},header:function(s){return/h\d/i.test(s.nodeName);
},text:function(s){return"text"===s.type;
},radio:function(s){return"radio"===s.type;
},checkbox:function(s){return"checkbox"===s.type;
},file:function(s){return"file"===s.type;
},password:function(s){return"password"===s.type;
},submit:function(s){return"submit"===s.type;
},image:function(s){return"image"===s.type;
},reset:function(s){return"reset"===s.type;
},button:function(s){return"button"===s.type||s.nodeName.toLowerCase()==="button";
},input:function(s){return/input|select|textarea|button/i.test(s.nodeName);
}},setFilters:{first:function(w,s){return s===0;
},last:function(Ab,Aa,w,s){return Aa===s.length-1;
},even:function(w,s){return s%2===0;
},odd:function(w,s){return s%2===1;
},lt:function(Aa,w,s){return w<s[3]-0;
},gt:function(Aa,w,s){return w>s[3]-0;
},nth:function(Aa,w,s){return s[3]-0===w;
},eq:function(Aa,w,s){return s[3]-0===w;
}},filter:{PSEUDO:function(Ab,Aa,w,s){var BI=Aa[1],BJ=P.filters[BI];
if(BJ){return BJ(Ab,w,Aa,s);
}else{if(BI==="contains"){return(Ab.textContent||Ab.innerText||Z([Ab])||"").indexOf(Aa[3])>=0;
}else{if(BI==="not"){Aa=Aa[3];
w=0;
for(s=Aa.length;
w<s;
w++){if(Aa[w]===Ab){return false;
}}return true;
}else{Q.error("Syntax error, unrecognized expression: "+BI);
}}}},CHILD:function(BI,Ab){var w=Ab[1],s=BI;
switch(w){case"only":case"first":for(;
s=s.previousSibling;
){if(s.nodeType===1){return false;
}}if(w==="first"){return true;
}s=BI;
case"last":for(;
s=s.nextSibling;
){if(s.nodeType===1){return false;
}}return true;
case"nth":w=Ab[2];
var BJ=Ab[3];
if(w===1&&BJ===0){return true;
}Ab=Ab[0];
var BK=BI.parentNode;
if(BK&&(BK.sizcache!==Ab||!BI.nodeIndex)){var Aa=0;
for(s=BK.firstChild;
s;
s=s.nextSibling){if(s.nodeType===1){s.nodeIndex=++Aa;
}}BK.sizcache=Ab;
}BI=BI.nodeIndex-BJ;
return w===0?BI===0:BI%w===0&&BI/w>=0;
}},ID:function(w,s){return w.nodeType===1&&w.getAttribute("id")===s;
},TAG:function(w,s){return s==="*"&&w.nodeType===1||w.nodeName.toLowerCase()===s;
},CLASS:function(w,s){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(s)>-1;
},ATTR:function(Ab,Aa){var w=Aa[1];
Ab=P.attrHandle[w]?P.attrHandle[w](Ab):Ab[w]!=null?Ab[w]:Ab.getAttribute(w);
w=Ab+"";
var s=Aa[2];
Aa=Aa[4];
return Ab==null?s==="!=":s==="="?w===Aa:s==="*="?w.indexOf(Aa)>=0:s==="~="?(" "+w+" ").indexOf(Aa)>=0:!Aa?w&&Ab!==false:s==="!="?w!==Aa:s==="^="?w.indexOf(Aa)===0:s==="$="?w.substr(w.length-Aa.length)===Aa:s==="|="?w===Aa||w.substr(0,Aa.length+1)===Aa+"-":false;
},POS:function(Ab,Aa,w,s){var BI=P.setFilters[Aa[2]];
if(BI){return BI(Ab,w,Aa,s);
}}}},L=P.match.POS;
for(var G in P.match){P.match[G]=new RegExp(P.match[G].source+/(?![^\[]*\])(?![^\(]*\))/.source);
P.leftMatch[G]=new RegExp(/(^(?:.|\r|\n)*?)/.source+P.match[G].source.replace(/\\(\d+)/g,function(w,s){return"\\"+(s-0+1);
}));
}var A=function(w,s){w=Array.prototype.slice.call(w,0);
if(s){s.push.apply(s,w);
return s;
}return w;
};
try{Array.prototype.slice.call(x.documentElement.childNodes,0);
}catch(K){A=function(Ab,Aa){Aa=Aa||[];
if(R.call(Ab)==="[object Array]"){Array.prototype.push.apply(Aa,Ab);
}else{if(typeof Ab.length==="number"){for(var w=0,s=Ab.length;
w<s;
w++){Aa.push(Ab[w]);
}}else{for(w=0;
Ab[w];
w++){Aa.push(Ab[w]);
}}}return Aa;
};
}var N;
if(x.documentElement.compareDocumentPosition){N=function(w,s){if(!w.compareDocumentPosition||!s.compareDocumentPosition){if(w==s){T=true;
}return w.compareDocumentPosition?-1:1;
}w=w.compareDocumentPosition(s)&4?-1:w===s?0:1;
if(w===0){T=true;
}return w;
};
}else{if("sourceIndex" in x.documentElement){N=function(w,s){if(!w.sourceIndex||!s.sourceIndex){if(w==s){T=true;
}return w.sourceIndex?-1:1;
}w=w.sourceIndex-s.sourceIndex;
if(w===0){T=true;
}return w;
};
}else{if(x.createRange){N=function(Ab,Aa){if(!Ab.ownerDocument||!Aa.ownerDocument){if(Ab==Aa){T=true;
}return Ab.ownerDocument?-1:1;
}var w=Ab.ownerDocument.createRange(),s=Aa.ownerDocument.createRange();
w.setStart(Ab,0);
w.setEnd(Ab,0);
s.setStart(Aa,0);
s.setEnd(Aa,0);
Ab=w.compareBoundaryPoints(Range.START_TO_END,s);
if(Ab===0){T=true;
}return Ab;
};
}}}(function(){var Aa=x.createElement("div"),w="script"+(new Date).getTime();
Aa.innerHTML="<a name='"+w+"'/>";
var s=x.documentElement;
s.insertBefore(Aa,s.firstChild);
if(x.getElementById(w)){P.find.ID=function(Ab,BI,BJ){if(typeof BI.getElementById!=="undefined"&&!BJ){return(BI=BI.getElementById(Ab[1]))?BI.id===Ab[1]||typeof BI.getAttributeNode!=="undefined"&&BI.getAttributeNode("id").nodeValue===Ab[1]?[BI]:v:[];
}};
P.filter.ID=function(Ab,BI){var BJ=typeof Ab.getAttributeNode!=="undefined"&&Ab.getAttributeNode("id");
return Ab.nodeType===1&&BJ&&BJ.nodeValue===BI;
};
}s.removeChild(Aa);
s=Aa=null;
})();
(function(){var s=x.createElement("div");
s.appendChild(x.createComment(""));
if(s.getElementsByTagName("*").length>0){P.find.TAG=function(Ab,Aa){Aa=Aa.getElementsByTagName(Ab[1]);
if(Ab[1]==="*"){Ab=[];
for(var w=0;
Aa[w];
w++){Aa[w].nodeType===1&&Ab.push(Aa[w]);
}Aa=Ab;
}return Aa;
};
}s.innerHTML="<a href='#'></a>";
if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#"){P.attrHandle.href=function(w){return w.getAttribute("href",2);
};
}s=null;
})();
x.querySelectorAll&&function(){var Aa=Q,w=x.createElement("div");
w.innerHTML="<p class='TEST'></p>";
if(!(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0)){Q=function(Ab,BK,BL,BI){BK=BK||x;
if(!BI&&BK.nodeType===9&&!F(BK)){try{return A(BK.querySelectorAll(Ab),BL);
}catch(BJ){}}return Aa(Ab,BK,BL,BI);
};
for(var s in Aa){Q[s]=Aa[s];
}w=null;
}}();
(function(){var s=x.createElement("div");
s.innerHTML="<div class='test e'></div><div class='test'></div>";
if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";
if(s.getElementsByClassName("e").length!==1){P.order.splice(1,0,"CLASS");
P.find.CLASS=function(Ab,Aa,w){if(typeof Aa.getElementsByClassName!=="undefined"&&!w){return Aa.getElementsByClassName(Ab[1]);
}};
s=null;
}}})();
var J=x.compareDocumentPosition?function(w,s){return !!(w.compareDocumentPosition(s)&16);
}:function(w,s){return w!==s&&(w.contains?w.contains(s):true);
},F=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false;
},c=function(Ab,Aa){var w=[],s="",BI;
for(Aa=Aa.nodeType?[Aa]:Aa;
BI=P.match.PSEUDO.exec(Ab);
){s+=BI[0];
Ab=Ab.replace(P.match.PSEUDO,"");
}Ab=P.relative[Ab]?Ab+"*":Ab;
BI=0;
for(var BJ=Aa.length;
BI<BJ;
BI++){Q(Ab,Aa[BI],w);
}return Q.filter(s,w);
};
AF.find=Q;
AF.expr=Q.selectors;
AF.expr[":"]=AF.expr.filters;
AF.unique=Q.uniqueSort;
AF.text=Z;
AF.isXMLDoc=F;
AF.contains=J;
})();
var H=/Until$/,A8=/^(?:parents|prevUntil|prevAll)/,Av=/,/;
AR=Array.prototype.slice;
var Ak=function(F,A,J){if(AF.isFunction(A)){return AF.grep(F,function(L,K){return !!A.call(L,K,L)===J;
});
}else{if(A.nodeType){return AF.grep(F,function(K){return K===A===J;
});
}else{if(typeof A==="string"){var G=AF.grep(F,function(K){return K.nodeType===1;
});
if(As.test(A)){return AF.filter(A,G,!J);
}else{A=AF.filter(A,G);
}}}}return AF.grep(F,function(K){return AF.inArray(K,A)>=0===J;
});
};
AF.fn.extend({find:function(F){for(var A=this.pushStack("","find",F),N=0,K=0,L=this.length;
K<L;
K++){N=A.length;
AF.find(F,this[K],A);
if(K>0){for(var G=N;
G<A.length;
G++){for(var J=0;
J<N;
J++){if(A[J]===A[G]){A.splice(G--,1);
break;
}}}}}return A;
},has:function(F){var A=AF(F);
return this.filter(function(){for(var J=0,G=A.length;
J<G;
J++){if(AF.contains(this,A[J])){return true;
}}});
},not:function(A){return this.pushStack(Ak(this,A,false),"not",A);
},filter:function(A){return this.pushStack(Ak(this,A,true),"filter",A);
},is:function(A){return !!A&&AF.filter(A,this).length>0;
},closest:function(P,O){if(AF.isArray(P)){var N=[],K=this[0],L,G={},J;
if(K&&P.length){L=0;
for(var A=P.length;
L<A;
L++){J=P[L];
G[J]||(G[J]=AF.expr.match.POS.test(J)?AF(J,O||this.context):J);
}for(;
K&&K.ownerDocument&&K!==O;
){for(J in G){L=G[J];
if(L.jquery?L.index(K)>-1:AF(K).is(L)){N.push({selector:J,elem:K});
delete G[J];
}}K=K.parentNode;
}}return N;
}var F=AF.expr.match.POS.test(P)?AF(P,O||this.context):null;
return this.map(function(R,Q){for(;
Q&&Q.ownerDocument&&Q!==O;
){if(F?F.index(Q)>-1:AF(Q).is(P)){return Q;
}Q=Q.parentNode;
}return null;
});
},index:function(A){if(!A||typeof A==="string"){return AF.inArray(this[0],A?AF(A):this.parent().children());
}return AF.inArray(A.jquery?A[0]:A,this);
},add:function(F,A){F=typeof F==="string"?AF(F,A||this.context):AF.makeArray(F);
A=AF.merge(this.get(),F);
return this.pushStack(b(F[0])||b(A[0])?A:AF.unique(A));
},andSelf:function(){return this.add(this.prevObject);
}});
AF.each({parent:function(A){return(A=A.parentNode)&&A.nodeType!==11?A:null;
},parents:function(A){return AF.dir(A,"parentNode");
},parentsUntil:function(F,A,G){return AF.dir(F,"parentNode",G);
},next:function(A){return AF.nth(A,2,"nextSibling");
},prev:function(A){return AF.nth(A,2,"previousSibling");
},nextAll:function(A){return AF.dir(A,"nextSibling");
},prevAll:function(A){return AF.dir(A,"previousSibling");
},nextUntil:function(F,A,G){return AF.dir(F,"nextSibling",G);
},prevUntil:function(F,A,G){return AF.dir(F,"previousSibling",G);
},siblings:function(A){return AF.sibling(A.parentNode.firstChild,A);
},children:function(A){return AF.sibling(A.firstChild);
},contents:function(A){return AF.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:AF.makeArray(A.childNodes);
}},function(F,A){AF.fn[F]=function(K,G){var J=AF.map(this,A,K);
H.test(F)||(G=K);
if(G&&typeof G==="string"){J=AF.filter(G,J);
}J=this.length>1?AF.unique(J):J;
if((this.length>1||Av.test(G))&&A8.test(F)){J=J.reverse();
}return this.pushStack(J,F,AR.call(arguments).join(","));
};
});
AF.extend({filter:function(F,A,G){if(G){F=":not("+F+")";
}return AF.find.matches(F,A);
},dir:function(F,A,J){var G=[];
for(F=F[A];
F&&F.nodeType!==9&&(J===v||F.nodeType!==1||!AF(F).is(J));
){F.nodeType===1&&G.push(F);
F=F[A];
}return G;
},nth:function(F,A,J){A=A||1;
for(var G=0;
F;
F=F[J]){if(F.nodeType===1&&++G===A){break;
}}return F;
},sibling:function(F,A){for(var G=[];
F;
F=F.nextSibling){F.nodeType===1&&F!==A&&G.push(F);
}return G;
}});
var AG=/ jQuery\d+="(?:\d+|null)"/g,AP=/^\s+/,p=/(<([\w:]+)[^>]*?)\/>/g,Ac=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,d=/<([\w:]+)/,AA=/<tbody/i,k=/<|&#?\w+;/,Ao=/<script|<object|<embed|<option|<style/i,AI=/checked\s*(?:[^=]|=\s*.checked.)/i,BH=function(F,A,G){return Ac.test(G)?F:A+"></"+G+">";
},Ai={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,"",""]};
Ai.optgroup=Ai.option;
Ai.tbody=Ai.tfoot=Ai.colgroup=Ai.caption=Ai.thead;
Ai.th=Ai.td;
if(!AF.support.htmlSerialize){Ai._default=[1,"div<div>","</div>"];
}AF.fn.extend({text:function(A){if(AF.isFunction(A)){return this.each(function(F){var G=AF(this);
G.text(A.call(this,F,G.text()));
});
}if(typeof A!=="object"&&A!==v){return this.empty().append((this[0]&&this[0].ownerDocument||x).createTextNode(A));
}return AF.text(this);
},wrapAll:function(F){if(AF.isFunction(F)){return this.each(function(G){AF(this).wrapAll(F.call(this,G));
});
}if(this[0]){var A=AF(F,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&A.insertBefore(this[0]);
A.map(function(){for(var G=this;
G.firstChild&&G.firstChild.nodeType===1;
){G=G.firstChild;
}return G;
}).append(this);
}return this;
},wrapInner:function(A){if(AF.isFunction(A)){return this.each(function(F){AF(this).wrapInner(A.call(this,F));
});
}return this.each(function(){var F=AF(this),G=F.contents();
G.length?G.wrapAll(A):F.append(A);
});
},wrap:function(A){return this.each(function(){AF(this).wrapAll(A);
});
},unwrap:function(){return this.parent().each(function(){AF.nodeName(this,"body")||AF(this).replaceWith(this.childNodes);
}).end();
},append:function(){return this.domManip(arguments,true,function(A){this.nodeType===1&&this.appendChild(A);
});
},prepend:function(){return this.domManip(arguments,true,function(A){this.nodeType===1&&this.insertBefore(A,this.firstChild);
});
},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this);
});
}else{if(arguments.length){var A=AF(arguments[0]);
A.push.apply(A,this.toArray());
return this.pushStack(A,"before",arguments);
}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this.nextSibling);
});
}else{if(arguments.length){var A=this.pushStack(this,"after",arguments);
A.push.apply(A,AF(arguments[0]).toArray());
return A;
}}},remove:function(F,A){for(var J=0,G;
(G=this[J])!=null;
J++){if(!F||AF.filter(F,[G]).length){if(!A&&G.nodeType===1){AF.cleanData(G.getElementsByTagName("*"));
AF.cleanData([G]);
}G.parentNode&&G.parentNode.removeChild(G);
}}return this;
},empty:function(){for(var F=0,A;
(A=this[F])!=null;
F++){for(A.nodeType===1&&AF.cleanData(A.getElementsByTagName("*"));
A.firstChild;
){A.removeChild(A.firstChild);
}}return this;
},clone:function(F){var A=this.map(function(){if(!AF.support.noCloneEvent&&!AF.isXMLDoc(this)){var J=this.outerHTML,G=this.ownerDocument;
if(!J){J=G.createElement("div");
J.appendChild(this.cloneNode(true));
J=J.innerHTML;
}return AF.clean([J.replace(AG,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(AP,"")],G)[0];
}else{return this.cloneNode(true);
}});
if(F===true){BG(this,A);
BG(this.find("*"),A.find("*"));
}return A;
},html:function(F){if(F===v){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(AG,""):null;
}else{if(typeof F==="string"&&!Ao.test(F)&&(AF.support.leadingWhitespace||!AP.test(F))&&!Ai[(d.exec(F)||["",""])[1].toLowerCase()]){F=F.replace(p,BH);
try{for(var A=0,J=this.length;
A<J;
A++){if(this[A].nodeType===1){AF.cleanData(this[A].getElementsByTagName("*"));
this[A].innerHTML=F;
}}}catch(G){this.empty().append(F);
}}else{AF.isFunction(F)?this.each(function(N){var K=AF(this),L=K.html();
K.empty().append(function(){return F.call(this,N,L);
});
}):this.empty().append(F);
}}return this;
},replaceWith:function(A){if(this[0]&&this[0].parentNode){if(AF.isFunction(A)){return this.each(function(F){var J=AF(this),G=J.html();
J.replaceWith(A.call(this,F,G));
});
}if(typeof A!=="string"){A=AF(A).detach();
}return this.each(function(){var F=this.nextSibling,G=this.parentNode;
AF(this).remove();
F?AF(F).before(A):AF(G).append(A);
});
}else{return this.pushStack(AF(AF.isFunction(A)?A():A),"replaceWith",A);
}},detach:function(A){return this.remove(A,true);
},domManip:function(R,Q,P){function N(T){return AF.nodeName(T,"table")?T.getElementsByTagName("tbody")[0]||T.appendChild(T.ownerDocument.createElement("tbody")):T;
}var O,K,L=R[0],F=[],J;
if(!AF.support.checkClone&&arguments.length===3&&typeof L==="string"&&AI.test(L)){return this.each(function(){AF(this).domManip(R,Q,P,true);
});
}if(AF.isFunction(L)){return this.each(function(T){var V=AF(this);
R[0]=L.call(this,T,Q?V.html():v);
V.domManip(R,Q,P);
});
}if(this[0]){O=L&&L.parentNode;
O=AF.support.parentNode&&O&&O.nodeType===11&&O.childNodes.length===this.length?{fragment:O}:A2(R,this,F);
J=O.fragment;
if(K=J.childNodes.length===1?(J=J.firstChild):J.firstChild){Q=Q&&AF.nodeName(K,"tr");
for(var G=0,A=this.length;
G<A;
G++){P.call(Q?N(this[G],K):this[G],G>0||O.cacheable||this.length>1?J.cloneNode(true):J);
}}F.length&&AF.each(F,t);
}return this;
}});
AF.fragments={};
AF.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,A){AF.fn[F]=function(N){var K=[];
N=AF(N);
var L=this.length===1&&this[0].parentNode;
if(L&&L.nodeType===11&&L.childNodes.length===1&&N.length===1){N[A](this[0]);
return this;
}else{L=0;
for(var G=N.length;
L<G;
L++){var J=(L>0?this.clone(true):this).get();
AF.fn[A].apply(AF(N[L]),J);
K=K.concat(J);
}return this.pushStack(K,F,N.selector);
}};
});
AF.extend({clean:function(R,Q,P,N){Q=Q||x;
if(typeof Q.createElement==="undefined"){Q=Q.ownerDocument||Q[0]&&Q[0].ownerDocument||x;
}for(var O=[],K=0,L;
(L=R[K])!=null;
K++){if(typeof L==="number"){L+="";
}if(L){if(typeof L==="string"&&!k.test(L)){L=Q.createTextNode(L);
}else{if(typeof L==="string"){L=L.replace(p,BH);
var F=(d.exec(L)||["",""])[1].toLowerCase(),J=Ai[F]||Ai._default,G=J[0],A=Q.createElement("div");
for(A.innerHTML=J[1]+L+J[2];
G--;
){A=A.lastChild;
}if(!AF.support.tbody){G=AA.test(L);
F=F==="table"&&!G?A.firstChild&&A.firstChild.childNodes:J[1]==="<table>"&&!G?A.childNodes:[];
for(J=F.length-1;
J>=0;
--J){AF.nodeName(F[J],"tbody")&&!F[J].childNodes.length&&F[J].parentNode.removeChild(F[J]);
}}!AF.support.leadingWhitespace&&AP.test(L)&&A.insertBefore(Q.createTextNode(AP.exec(L)[0]),A.firstChild);
L=A.childNodes;
}}if(L.nodeType){O.push(L);
}else{O=AF.merge(O,L);
}}}if(P){for(K=0;
O[K];
K++){if(N&&AF.nodeName(O[K],"script")&&(!O[K].type||O[K].type.toLowerCase()==="text/javascript")){N.push(O[K].parentNode?O[K].parentNode.removeChild(O[K]):O[K]);
}else{O[K].nodeType===1&&O.splice.apply(O,[K+1,0].concat(AF.makeArray(O[K].getElementsByTagName("script"))));
P.appendChild(O[K]);
}}}return O;
},cleanData:function(P){for(var O,N,K=AF.cache,L=AF.event.special,G=AF.support.deleteExpando,J=0,A;
(A=P[J])!=null;
J++){if(N=A[AF.expando]){O=K[N];
if(O.events){for(var F in O.events){L[F]?AF.event.remove(A,F):Af(A,F,O.handle);
}}if(G){delete A[AF.expando];
}else{A.removeAttribute&&A.removeAttribute(AF.expando);
}delete K[N];
}}}});
var M=/z-?index|font-?weight|opacity|zoom|line-?height/i,A3=/alpha\([^)]*\)/,Ap=/opacity=([^)]*)/,Ad=/float/i,AB=/-([a-z])/ig,BC=/([A-Z])/g,Ay=/^-?\d+(?:px)?$/i,Ah=/^-?\d/,AD={position:"absolute",visibility:"hidden",display:"block"},n=["Left","Right"],a=["Top","Bottom"],BF=x.defaultView&&x.defaultView.getComputedStyle,AJ=AF.support.cssFloat?"cssFloat":"styleFloat",l=function(F,A){return A.toUpperCase();
};
AF.fn.css=function(F,A){return AN(this,F,A,true,function(K,G,J){if(J===v){return AF.curCSS(K,G);
}if(typeof J==="number"&&!M.test(G)){J+="px";
}AF.style(K,G,J);
});
};
AF.extend({style:function(F,A,K){if(!F||F.nodeType===3||F.nodeType===8){return v;
}if((A==="width"||A==="height")&&parseFloat(K)<0){K=v;
}var G=F.style||F,J=K!==v;
if(!AF.support.opacity&&A==="opacity"){if(J){G.zoom=1;
A=parseInt(K,10)+""==="NaN"?"":"alpha(opacity="+K*100+")";
F=G.filter||AF.curCSS(F,"filter")||"";
G.filter=A3.test(F)?F.replace(A3,A):A;
}return G.filter&&G.filter.indexOf("opacity=")>=0?parseFloat(Ap.exec(G.filter)[1])/100+"":"";
}if(Ad.test(A)){A=AJ;
}A=A.replace(AB,l);
if(J){G[A]=K;
}return G[A];
},css:function(F,A,N,K){if(A==="width"||A==="height"){var L,G=A==="width"?n:a;
function J(){L=A==="width"?F.offsetWidth:F.offsetHeight;
K!=="border"&&AF.each(G,function(){K||(L-=parseFloat(AF.curCSS(F,"padding"+this,true))||0);
if(K==="margin"){L+=parseFloat(AF.curCSS(F,"margin"+this,true))||0;
}else{L-=parseFloat(AF.curCSS(F,"border"+this+"Width",true))||0;
}});
}F.offsetWidth!==0?J():AF.swap(F,AD,J);
return Math.max(0,Math.round(L));
}return AF.curCSS(F,A,N);
},curCSS:function(F,A,L){var J,K=F.style;
if(!AF.support.opacity&&A==="opacity"&&F.currentStyle){J=Ap.test(F.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";
return J===""?"1":J;
}if(Ad.test(A)){A=AJ;
}if(!L&&K&&K[A]){J=K[A];
}else{if(BF){if(Ad.test(A)){A="float";
}A=A.replace(BC,"-$1").toLowerCase();
K=F.ownerDocument.defaultView;
if(!K){return null;
}if(F=K.getComputedStyle(F,null)){J=F.getPropertyValue(A);
}if(A==="opacity"&&J===""){J="1";
}}else{if(F.currentStyle){L=A.replace(AB,l);
J=F.currentStyle[A]||F.currentStyle[L];
if(!Ay.test(J)&&Ah.test(J)){A=K.left;
var G=F.runtimeStyle.left;
F.runtimeStyle.left=F.currentStyle.left;
K.left=L==="fontSize"?"1em":J||0;
J=K.pixelLeft+"px";
K.left=A;
F.runtimeStyle.left=G;
}}}}return J;
},swap:function(F,A,K){var G={};
for(var J in A){G[J]=F.style[J];
F.style[J]=A[J];
}K.call(F);
for(J in A){F.style[J]=G[J];
}}});
if(AF.expr&&AF.expr.filters){AF.expr.filters.hidden=function(F){var A=F.offsetWidth,J=F.offsetHeight,G=F.nodeName.toLowerCase()==="tr";
return A===0&&J===0&&!G?true:A>0&&J>0&&!G?false:AF.curCSS(F,"display")==="none";
};
AF.expr.filters.visible=function(A){return !AF.expr.filters.hidden(A);
};
}var A1=Ae(),Am=/<script(.|\s)*?\/script>/gi,AH=/select|textarea/i,q=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,AX=/=\?(&|$)/,S=/\?/,e=/(\?|&)_=.*?(&|$)/,B=/^(\w+:)?\/\/([^\/?#]+)/,A4=/%20/g,Aq=AF.fn.load;
AF.fn.extend({load:function(F,A,L){if(typeof F!=="string"){return Aq.call(this,F);
}else{if(!this.length){return this;
}}var J=F.indexOf(" ");
if(J>=0){var K=F.slice(J,F.length);
F=F.slice(0,J);
}J="GET";
if(A){if(AF.isFunction(A)){L=A;
A=null;
}else{if(typeof A==="object"){A=AF.param(A,AF.ajaxSettings.traditional);
J="POST";
}}}var G=this;
AF.ajax({url:F,type:J,dataType:"html",data:A,complete:function(N,O){if(O==="success"||O==="notmodified"){G.html(K?AF("<div />").append(N.responseText.replace(Am,"")).find(K):N.responseText);
}L&&G.each(L,[N.responseText,O,N]);
}});
return this;
},serialize:function(){return AF.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){return this.elements?AF.makeArray(this.elements):this;
}).filter(function(){return this.name&&!this.disabled&&(this.checked||AH.test(this.nodeName)||q.test(this.type));
}).map(function(F,A){F=AF(this).val();
return F==null?null:AF.isArray(F)?AF.map(F,function(G){return{name:A.name,value:G};
}):{name:A.name,value:F};
}).get();
}});
AF.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(F,A){AF.fn[A]=function(G){return this.bind(A,G);
};
});
AF.extend({get:function(F,A,J,G){if(AF.isFunction(A)){G=G||J;
J=A;
A=null;
}return AF.ajax({type:"GET",url:F,data:A,success:J,dataType:G});
},getScript:function(F,A){return AF.get(F,null,A,"script");
},getJSON:function(F,A,G){return AF.get(F,A,G,"json");
},post:function(F,A,J,G){if(AF.isFunction(A)){G=G||J;
J=A;
A={};
}return AF.ajax({type:"POST",url:F,data:A,success:J,dataType:G});
},ajaxSetup:function(A){AF.extend(AF.ajaxSettings,A);
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:An.XMLHttpRequest&&(An.location.protocol!=="file:"||!An.ActiveXObject)?function(){return new An.XMLHttpRequest;
}:function(){try{return new An.ActiveXObject("Microsoft.XMLHTTP");
}catch(A){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(Aa){function w(){c.success&&c.success.call(T,O,W,F);
c.global&&Z("ajaxSuccess",[F,c]);
}function s(){c.complete&&c.complete.call(T,F,W);
c.global&&Z("ajaxComplete",[F,c]);
c.global&&!--AF.active&&AF.event.trigger("ajaxStop");
}function Z(BI,BJ){(c.context?AF(c.context):AF.event).trigger(BI,BJ);
}var c=AF.extend(true,{},AF.ajaxSettings,Aa),V,W,O,T=Aa&&Aa.context||c,P=c.type.toUpperCase();
if(c.data&&c.processData&&typeof c.data!=="string"){c.data=AF.param(c.data,c.traditional);
}if(c.dataType==="jsonp"){if(P==="GET"){AX.test(c.url)||(c.url+=(S.test(c.url)?"&":"?")+(c.jsonp||"callback")+"=?");
}else{if(!c.data||!AX.test(c.data)){c.data=(c.data?c.data+"&":"")+(c.jsonp||"callback")+"=?";
}}c.dataType="json";
}if(c.dataType==="json"&&(c.data&&AX.test(c.data)||AX.test(c.url))){V=c.jsonpCallback||"jsonp"+A1++;
if(c.data){c.data=(c.data+"").replace(AX,"="+V+"$1");
}c.url=c.url.replace(AX,"="+V+"$1");
c.dataType="script";
An[V]=An[V]||function(BI){O=BI;
w();
s();
An[V]=v;
try{delete An[V];
}catch(BJ){}A&&A.removeChild(K);
};
}if(c.dataType==="script"&&c.cache===null){c.cache=false;
}if(c.cache===false&&P==="GET"){var L=Ae(),G=c.url.replace(e,"$1_="+L+"$2");
c.url=G+(G===c.url?(S.test(c.url)?"&":"?")+"_="+L:"");
}if(c.data&&P==="GET"){c.url+=(S.test(c.url)?"&":"?")+c.data;
}c.global&&!AF.active++&&AF.event.trigger("ajaxStart");
L=(L=B.exec(c.url))&&(L[1]&&L[1]!==location.protocol||L[2]!==location.host);
if(c.dataType==="script"&&P==="GET"&&L){var A=x.getElementsByTagName("head")[0]||x.documentElement,K=x.createElement("script");
K.src=c.url;
if(c.scriptCharset){K.charset=c.scriptCharset;
}if(!V){var N=false;
K.onload=K.onreadystatechange=function(){if(!N&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){N=true;
w();
s();
K.onload=K.onreadystatechange=null;
A&&K.parentNode&&A.removeChild(K);
}};
}A.insertBefore(K,A.firstChild);
return v;
}var J=false,F=c.xhr();
if(F){c.username?F.open(P,c.url,c.async,c.username,c.password):F.open(P,c.url,c.async);
try{if(c.data||Aa&&Aa.contentType){F.setRequestHeader("Content-Type",c.contentType);
}if(c.ifModified){AF.lastModified[c.url]&&F.setRequestHeader("If-Modified-Since",AF.lastModified[c.url]);
AF.etag[c.url]&&F.setRequestHeader("If-None-Match",AF.etag[c.url]);
}L||F.setRequestHeader("X-Requested-With","XMLHttpRequest");
F.setRequestHeader("Accept",c.dataType&&c.accepts[c.dataType]?c.accepts[c.dataType]+", */*":c.accepts._default);
}catch(Ab){}if(c.beforeSend&&c.beforeSend.call(T,F,c)===false){c.global&&!--AF.active&&AF.event.trigger("ajaxStop");
F.abort();
return false;
}c.global&&Z("ajaxSend",[F,c]);
var Y=F.onreadystatechange=function(BJ){if(!F||F.readyState===0||BJ==="abort"){J||s();
J=true;
if(F){F.onreadystatechange=AF.noop;
}}else{if(!J&&F&&(F.readyState===4||BJ==="timeout")){J=true;
F.onreadystatechange=AF.noop;
W=BJ==="timeout"?"timeout":!AF.httpSuccess(F)?"error":c.ifModified&&AF.httpNotModified(F,c.url)?"notmodified":"success";
var BK;
if(W==="success"){try{O=AF.httpData(F,c.dataType,c);
}catch(BI){W="parsererror";
BK=BI;
}}if(W==="success"||W==="notmodified"){V||w();
}else{AF.handleError(c,F,W,BK);
}s();
BJ==="timeout"&&F.abort();
if(c.async){F=null;
}}}};
try{var X=F.abort;
F.abort=function(){F&&X.call(F);
Y("abort");
};
}catch(R){}c.async&&c.timeout>0&&setTimeout(function(){F&&!J&&Y("timeout");
},c.timeout);
try{F.send(P==="POST"||P==="PUT"||P==="DELETE"?c.data:null);
}catch(Q){AF.handleError(c,F,null,Q);
s();
}c.async||Y();
return F;
}},handleError:function(F,A,J,G){if(F.error){F.error.call(F.context||F,A,J,G);
}if(F.global){(F.context?AF(F.context):AF.event).trigger("ajaxError",[A,F,G]);
}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol==="file:"||F.status>=200&&F.status<300||F.status===304||F.status===1223||F.status===0;
}catch(A){}return false;
},httpNotModified:function(F,A){var J=F.getResponseHeader("Last-Modified"),G=F.getResponseHeader("Etag");
if(J){AF.lastModified[A]=J;
}if(G){AF.etag[A]=G;
}return F.status===304||F.status===0;
},httpData:function(F,A,K){var G=F.getResponseHeader("content-type")||"",J=A==="xml"||!A&&G.indexOf("xml")>=0;
F=J?F.responseXML:F.responseText;
J&&F.documentElement.nodeName==="parsererror"&&AF.error("parsererror");
if(K&&K.dataFilter){F=K.dataFilter(F,A);
}if(typeof F==="string"){if(A==="json"||!A&&G.indexOf("json")>=0){F=AF.parseJSON(F);
}else{if(A==="script"||!A&&G.indexOf("javascript")>=0){AF.globalEval(F);
}}}return F;
},param:function(F,A){function L(N,O){if(AF.isArray(O)){AF.each(O,function(P,Q){A||/\[\]$/.test(N)?J(N,Q):L(N+"["+(typeof Q==="object"||AF.isArray(Q)?P:"")+"]",Q);
});
}else{!A&&O!=null&&typeof O==="object"?AF.each(O,function(P,Q){L(N+"["+P+"]",Q);
}):J(N,O);
}}function J(N,O){O=AF.isFunction(O)?O():O;
K[K.length]=encodeURIComponent(N)+"="+encodeURIComponent(O);
}var K=[];
if(A===v){A=AF.ajaxSettings.traditional;
}if(AF.isArray(F)||F.jquery){AF.each(F,function(){J(this.name,this.value);
});
}else{for(var G in F){L(G,F[G]);
}}return K.join("&").replace(A4,"+");
}});
var BD={},A9=/toggle|show|hide/,Aw=/^([+-]=)?([\d+-.]+)(.*)$/,AO,r=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
AF.fn.extend({show:function(F,A){if(F||F===0){return this.animate(AZ("show",3),F,A);
}else{F=0;
for(A=this.length;
F<A;
F++){var K=AF.data(this[F],"olddisplay");
this[F].style.display=K||"";
if(AF.css(this[F],"display")==="none"){K=this[F].nodeName;
var G;
if(BD[K]){G=BD[K];
}else{var J=AF("<"+K+" />").appendTo("body");
G=J.css("display");
if(G==="none"){G="block";
}J.remove();
BD[K]=G;
}AF.data(this[F],"olddisplay",G);
}}F=0;
for(A=this.length;
F<A;
F++){this[F].style.display=AF.data(this[F],"olddisplay")||"";
}return this;
}},hide:function(F,A){if(F||F===0){return this.animate(AZ("hide",3),F,A);
}else{F=0;
for(A=this.length;
F<A;
F++){var G=AF.data(this[F],"olddisplay");
!G&&G!=="none"&&AF.data(this[F],"olddisplay",AF.css(this[F],"display"));
}F=0;
for(A=this.length;
F<A;
F++){this[F].style.display="none";
}return this;
}},_toggle:AF.fn.toggle,toggle:function(F,A){var G=typeof F==="boolean";
if(AF.isFunction(F)&&AF.isFunction(A)){this._toggle.apply(this,arguments);
}else{F==null||G?this.each(function(){var J=G?F:AF(this).is(":hidden");
AF(this)[J?"show":"hide"]();
}):this.animate(AZ("toggle",3),F,A);
}return this;
},fadeTo:function(F,A,G){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:A},F,G);
},animate:function(F,A,K,G){var J=AF.speed(A,K,G);
if(AF.isEmptyObject(F)){return this.each(J.complete);
}return this[J.queue===false?"each":"queue"](function(){var N=AF.extend({},J),O,P=this.nodeType===1&&AF(this).is(":hidden"),L=this;
for(O in F){var Q=O.replace(AB,l);
if(O!==Q){F[Q]=F[O];
delete F[O];
O=Q;
}if(F[O]==="hide"&&P||F[O]==="show"&&!P){return N.complete.call(this);
}if((O==="height"||O==="width")&&this.style){N.display=AF.css(this,"display");
N.overflow=this.style.overflow;
}if(AF.isArray(F[O])){(N.specialEasing=N.specialEasing||{})[O]=F[O][1];
F[O]=F[O][0];
}}if(N.overflow!=null){this.style.overflow="hidden";
}N.curAnim=AF.extend({},F);
AF.each(F,function(T,R){var X=new AF.fx(L,N,T);
if(A9.test(R)){X[R==="toggle"?P?"show":"hide":R](F);
}else{var W=Aw.exec(R),Y=X.cur(true)||0;
if(W){R=parseFloat(W[2]);
var V=W[3]||"px";
if(V!=="px"){L.style[T]=(R||1)+V;
Y=(R||1)/X.cur(true)*Y;
L.style[T]=Y+V;
}if(W[1]){R=(W[1]==="-="?-1:1)*R+Y;
}X.custom(Y,R,V);
}else{X.custom(Y,R,"");
}}});
return true;
});
},stop:function(F,A){var G=AF.timers;
F&&this.queue([]);
this.each(function(){for(var J=G.length-1;
J>=0;
J--){if(G[J].elem===this){A&&G[J](true);
G.splice(J,1);
}}});
A||this.dequeue();
return this;
}});
AF.each({slideDown:AZ("show",1),slideUp:AZ("hide",1),slideToggle:AZ("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,A){AF.fn[F]=function(J,G){return this.animate(A,J,G);
};
});
AF.extend({speed:function(F,A,J){var G=F&&typeof F==="object"?F:{complete:J||!J&&A||AF.isFunction(F)&&F,duration:F,easing:J&&A||A&&!AF.isFunction(A)&&A};
G.duration=AF.fx.off?0:typeof G.duration==="number"?G.duration:AF.fx.speeds[G.duration]||AF.fx.speeds._default;
G.old=G.complete;
G.complete=function(){G.queue!==false&&AF(this).dequeue();
AF.isFunction(G.old)&&G.old.call(this);
};
return G;
},easing:{linear:function(F,A,J,G){return J+G*F;
},swing:function(F,A,J,G){return(-Math.cos(F*Math.PI)/2+0.5)*G+J;
}},timers:[],fx:function(F,A,G){this.options=A;
this.elem=F;
this.prop=G;
if(!A.orig){A.orig={};
}}});
AF.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);
(AF.fx.step[this.prop]||AF.fx.step._default)(this);
if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block";
}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];
}return(A=parseFloat(AF.css(this.elem,this.prop,A)))&&A>-10000?A:parseFloat(AF.curCSS(this.elem,this.prop))||0;
},custom:function(F,A,K){function G(L){return J.step(L);
}this.startTime=Ae();
this.start=F;
this.end=A;
this.unit=K||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var J=this;
G.elem=this.elem;
if(G()&&AF.timers.push(G)&&!AO){AO=setInterval(AF.fx.tick,13);
}},show:function(){this.options.orig[this.prop]=AF.style(this.elem,this.prop);
this.options.show=true;
this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());
AF(this.elem).show();
},hide:function(){this.options.orig[this.prop]=AF.style(this.elem,this.prop);
this.options.hide=true;
this.custom(this.cur(),0);
},step:function(F){var A=Ae(),K=true;
if(F||A>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){K=false;
}}if(K){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
F=AF.data(this.elem,"olddisplay");
this.elem.style.display=F?F:this.options.display;
if(AF.css(this.elem,"display")==="none"){this.elem.style.display="block";
}}this.options.hide&&AF(this.elem).hide();
if(this.options.hide||this.options.show){for(var J in this.options.curAnim){AF.style(this.elem,J,this.options.orig[J]);
}}this.options.complete.call(this.elem);
}return false;
}else{J=A-this.startTime;
this.state=J/this.options.duration;
F=this.options.easing||(AF.easing.swing?"swing":"linear");
this.pos=AF.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||F](this.state,J,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;
this.update();
}return true;
}};
AF.extend(AF.fx,{tick:function(){for(var F=AF.timers,A=0;
A<F.length;
A++){F[A]()||F.splice(A--,1);
}F.length||AF.fx.stop();
},stop:function(){clearInterval(AO);
AO=null;
},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){AF.style(A.elem,"opacity",A.now);
},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=(A.prop==="width"||A.prop==="height"?Math.max(0,A.now):A.now)+A.unit;
}else{A.elem[A.prop]=A.now;
}}}});
if(AF.expr&&AF.expr.filters){AF.expr.filters.animated=function(A){return AF.grep(AF.timers,function(F){return A===F.elem;
}).length;
};
}AF.fn.offset="getBoundingClientRect" in x.documentElement?function(F){var A=this[0];
if(F){return this.each(function(K){AF.offset.setOffset(this,F,K);
});
}if(!A||!A.ownerDocument){return null;
}if(A===A.ownerDocument.body){return AF.offset.bodyOffset(A);
}var J=A.getBoundingClientRect(),G=A.ownerDocument;
A=G.body;
G=G.documentElement;
return{top:J.top+(self.pageYOffset||AF.support.boxModel&&G.scrollTop||A.scrollTop)-(G.clientTop||A.clientTop||0),left:J.left+(self.pageXOffset||AF.support.boxModel&&G.scrollLeft||A.scrollLeft)-(G.clientLeft||A.clientLeft||0)};
}:function(Q){var P=this[0];
if(Q){return this.each(function(R){AF.offset.setOffset(this,Q,R);
});
}if(!P||!P.ownerDocument){return null;
}if(P===P.ownerDocument.body){return AF.offset.bodyOffset(P);
}AF.offset.initialize();
var O=P.offsetParent,L=P,N=P.ownerDocument,J,K=N.documentElement,A=N.body;
L=(N=N.defaultView)?N.getComputedStyle(P,null):P.currentStyle;
for(var G=P.offsetTop,F=P.offsetLeft;
(P=P.parentNode)&&P!==A&&P!==K;
){if(AF.offset.supportsFixedPosition&&L.position==="fixed"){break;
}J=N?N.getComputedStyle(P,null):P.currentStyle;
G-=P.scrollTop;
F-=P.scrollLeft;
if(P===O){G+=P.offsetTop;
F+=P.offsetLeft;
if(AF.offset.doesNotAddBorder&&!(AF.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(P.nodeName))){G+=parseFloat(J.borderTopWidth)||0;
F+=parseFloat(J.borderLeftWidth)||0;
}L=O;
O=P.offsetParent;
}if(AF.offset.subtractsBorderForOverflowNotVisible&&J.overflow!=="visible"){G+=parseFloat(J.borderTopWidth)||0;
F+=parseFloat(J.borderLeftWidth)||0;
}L=J;
}if(L.position==="relative"||L.position==="static"){G+=A.offsetTop;
F+=A.offsetLeft;
}if(AF.offset.supportsFixedPosition&&L.position==="fixed"){G+=Math.max(K.scrollTop,A.scrollTop);
F+=Math.max(K.scrollLeft,A.scrollLeft);
}return{top:G,left:F};
};
AF.offset={initialize:function(){var F=x.body,A=x.createElement("div"),L,J,K,G=parseFloat(AF.curCSS(F,"marginTop",true))||0;
AF.extend(A.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});
A.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>";
F.insertBefore(A,F.firstChild);
L=A.firstChild;
J=L.firstChild;
K=L.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=J.offsetTop!==5;
this.doesAddBorderForTableAndCells=K.offsetTop===5;
J.style.position="fixed";
J.style.top="20px";
this.supportsFixedPosition=J.offsetTop===20||J.offsetTop===15;
J.style.position=J.style.top="";
L.style.overflow="hidden";
L.style.position="relative";
this.subtractsBorderForOverflowNotVisible=J.offsetTop===-5;
this.doesNotIncludeMarginInBodyOffset=F.offsetTop!==G;
F.removeChild(A);
AF.offset.initialize=AF.noop;
},bodyOffset:function(F){var A=F.offsetTop,G=F.offsetLeft;
AF.offset.initialize();
if(AF.offset.doesNotIncludeMarginInBodyOffset){A+=parseFloat(AF.curCSS(F,"marginTop",true))||0;
G+=parseFloat(AF.curCSS(F,"marginLeft",true))||0;
}return{top:A,left:G};
},setOffset:function(F,A,N){if(/static/.test(AF.curCSS(F,"position"))){F.style.position="relative";
}var K=AF(F),L=K.offset(),G=parseInt(AF.curCSS(F,"top",true),10)||0,J=parseInt(AF.curCSS(F,"left",true),10)||0;
if(AF.isFunction(A)){A=A.call(F,N,L);
}N={top:A.top-L.top+G,left:A.left-L.left+J};
"using" in A?A.using.call(F,N):K.css(N);
}};
AF.fn.extend({position:function(){if(!this[0]){return null;
}var F=this[0],A=this.offsetParent(),J=this.offset(),G=/^body|html$/i.test(A[0].nodeName)?{top:0,left:0}:A.offset();
J.top-=parseFloat(AF.curCSS(F,"marginTop",true))||0;
J.left-=parseFloat(AF.curCSS(F,"marginLeft",true))||0;
G.top+=parseFloat(AF.curCSS(A[0],"borderTopWidth",true))||0;
G.left+=parseFloat(AF.curCSS(A[0],"borderLeftWidth",true))||0;
return{top:J.top-G.top,left:J.left-G.left};
},offsetParent:function(){return this.map(function(){for(var A=this.offsetParent||x.body;
A&&!/^body|html$/i.test(A.nodeName)&&AF.css(A,"position")==="static";
){A=A.offsetParent;
}return A;
});
}});
AF.each(["Left","Top"],function(F,A){var G="scroll"+A;
AF.fn[G]=function(K){var L=this[0],J;
if(!L){return null;
}if(K!==v){return this.each(function(){if(J=f(this)){J.scrollTo(!F?K:AF(J).scrollLeft(),F?K:AF(J).scrollTop());
}else{this[G]=K;
}});
}else{return(J=f(L))?"pageXOffset" in J?J[F?"pageYOffset":"pageXOffset"]:AF.support.boxModel&&J.document.documentElement[G]||J.document.body[G]:L[G];
}};
});
AF.each(["Height","Width"],function(F,A){var G=A.toLowerCase();
AF.fn["inner"+A]=function(){return this[0]?AF.css(this[0],G,false,"padding"):null;
};
AF.fn["outer"+A]=function(J){return this[0]?AF.css(this[0],G,false,J?"margin":"border"):null;
};
AF.fn[G]=function(J){var K=this[0];
if(!K){return J==null?null:this;
}if(AF.isFunction(J)){return this.each(function(L){var N=AF(this);
N[G](J.call(this,L,N[G]()));
});
}return"scrollTo" in K&&K.document?K.document.compatMode==="CSS1Compat"&&K.document.documentElement["client"+A]||K.document.body["client"+A]:K.nodeType===9?Math.max(K.documentElement["client"+A],K.body["scroll"+A],K.documentElement["scroll"+A],K.body["offset"+A],K.documentElement["offset"+A]):J===v?AF.css(K,G):this.css(G,typeof J==="string"?J:J+"px");
};
});
An.jQuery=An.$=AF;
})(window);
/* platform.js */
SimileAjax.version="2.2.1";
SimileAjax.jQuery=jQuery.noConflict(true);
if(typeof window["$"]=="undefined"){window.$=SimileAjax.jQuery;
}SimileAjax.Platform.os={isMac:false,isWin:false,isWin32:false,isUnix:false};
SimileAjax.Platform.browser={isIE:false,isNetscape:false,isMozilla:false,isFirefox:false,isOpera:false,isSafari:false,majorVersion:0,minorVersion:0};
(function(){var C=navigator.appName.toLowerCase();
var A=navigator.userAgent.toLowerCase();
SimileAjax.Platform.os.isMac=(A.indexOf("mac")!=-1);
SimileAjax.Platform.os.isWin=(A.indexOf("win")!=-1);
SimileAjax.Platform.os.isWin32=SimileAjax.Platform.isWin&&(A.indexOf("95")!=-1||A.indexOf("98")!=-1||A.indexOf("nt")!=-1||A.indexOf("win32")!=-1||A.indexOf("32bit")!=-1);
SimileAjax.Platform.os.isUnix=(A.indexOf("x11")!=-1);
SimileAjax.Platform.browser.isIE=(C.indexOf("microsoft")!=-1);
SimileAjax.Platform.browser.isNetscape=(C.indexOf("netscape")!=-1);
SimileAjax.Platform.browser.isMozilla=(A.indexOf("mozilla")!=-1);
SimileAjax.Platform.browser.isFirefox=(A.indexOf("firefox")!=-1);
SimileAjax.Platform.browser.isOpera=(C.indexOf("opera")!=-1);
SimileAjax.Platform.browser.isSafari=(C.indexOf("safari")!=-1);
var E=function(G){var F=G.split(".");
SimileAjax.Platform.browser.majorVersion=parseInt(F[0]);
SimileAjax.Platform.browser.minorVersion=parseInt(F[1]);
};
var B=function(H,G,I){var F=H.indexOf(G,I);
return F>=0?F:H.length;
};
if(SimileAjax.Platform.browser.isMozilla){var D=A.indexOf("mozilla/");
if(D>=0){E(A.substring(D+8,B(A," ",D)));
}}if(SimileAjax.Platform.browser.isIE){var D=A.indexOf("msie ");
if(D>=0){E(A.substring(D+5,B(A,";",D)));
}}if(SimileAjax.Platform.browser.isNetscape){var D=A.indexOf("rv:");
if(D>=0){E(A.substring(D+3,B(A,")",D)));
}}if(SimileAjax.Platform.browser.isFirefox){var D=A.indexOf("firefox/");
if(D>=0){E(A.substring(D+8,B(A," ",D)));
}}if(!("localeCompare" in String.prototype)){String.prototype.localeCompare=function(F){if(this<F){return -1;
}else{if(this>F){return 1;
}else{return 0;
}}};
}})();
SimileAjax.Platform.getDefaultLocale=function(){return SimileAjax.Platform.clientLocale;
};
/* ajax.js */
SimileAjax.ListenerQueue=function(A){this._listeners=[];
this._wildcardHandlerName=A;
};
SimileAjax.ListenerQueue.prototype.add=function(A){this._listeners.push(A);
};
SimileAjax.ListenerQueue.prototype.remove=function(C){var B=this._listeners;
for(var A=0;
A<B.length;
A++){if(B[A]==C){B.splice(A,1);
break;
}}};
SimileAjax.ListenerQueue.prototype.fire=function(B,A){var D=[].concat(this._listeners);
for(var C=0;
C<D.length;
C++){var E=D[C];
if(B in E){try{E[B].apply(E,A);
}catch(F){SimileAjax.Debug.exception("Error firing event of name "+B,F);
}}else{if(this._wildcardHandlerName!=null&&this._wildcardHandlerName in E){try{E[this._wildcardHandlerName].apply(E,[B]);
}catch(F){SimileAjax.Debug.exception("Error firing event of name "+B+" to wildcard handler",F);
}}}}};
/* data-structure.js */
SimileAjax.Set=function(A){this._hash={};
this._count=0;
if(A instanceof Array){for(var B=0;
B<A.length;
B++){this.add(A[B]);
}}else{if(A instanceof SimileAjax.Set){this.addSet(A);
}}};
SimileAjax.Set.prototype.add=function(A){if(!(A in this._hash)){this._hash[A]=true;
this._count++;
return true;
}return false;
};
SimileAjax.Set.prototype.addSet=function(B){for(var A in B._hash){this.add(A);
}};
SimileAjax.Set.prototype.remove=function(A){if(A in this._hash){delete this._hash[A];
this._count--;
return true;
}return false;
};
SimileAjax.Set.prototype.removeSet=function(B){for(var A in B._hash){this.remove(A);
}};
SimileAjax.Set.prototype.retainSet=function(B){for(var A in this._hash){if(!B.contains(A)){delete this._hash[A];
this._count--;
}}};
SimileAjax.Set.prototype.contains=function(A){return(A in this._hash);
};
SimileAjax.Set.prototype.size=function(){return this._count;
};
SimileAjax.Set.prototype.toArray=function(){var A=[];
for(var B in this._hash){A.push(B);
}return A;
};
SimileAjax.Set.prototype.visit=function(A){for(var B in this._hash){if(A(B)==true){break;
}}};
SimileAjax.SortedArray=function(B,A){this._a=(A instanceof Array)?A:[];
this._compare=B;
};
SimileAjax.SortedArray.prototype.add=function(C){var A=this;
var B=this.find(function(D){return A._compare(D,C);
});
if(B<this._a.length){this._a.splice(B,0,C);
}else{this._a.push(C);
}};
SimileAjax.SortedArray.prototype.remove=function(C){var A=this;
var B=this.find(function(D){return A._compare(D,C);
});
while(B<this._a.length&&this._compare(this._a[B],C)==0){if(this._a[B]==C){this._a.splice(B,1);
return true;
}else{B++;
}}return false;
};
SimileAjax.SortedArray.prototype.removeAll=function(){this._a=[];
};
SimileAjax.SortedArray.prototype.elementAt=function(A){return this._a[A];
};
SimileAjax.SortedArray.prototype.length=function(){return this._a.length;
};
SimileAjax.SortedArray.prototype.find=function(D){var B=0;
var A=this._a.length;
while(B<A){var C=Math.floor((B+A)/2);
var E=D(this._a[C]);
if(C==B){return E<0?B+1:B;
}else{if(E<0){B=C;
}else{A=C;
}}}return B;
};
SimileAjax.SortedArray.prototype.getFirst=function(){return(this._a.length>0)?this._a[0]:null;
};
SimileAjax.SortedArray.prototype.getLast=function(){return(this._a.length>0)?this._a[this._a.length-1]:null;
};
SimileAjax.EventIndex=function(B){var A=this;
this._unit=(B!=null)?B:SimileAjax.NativeDateUnit;
this._events=new SimileAjax.SortedArray(function(D,C){return A._unit.compare(D.getStart(),C.getStart());
});
this._idToEvent={};
this._indexed=true;
};
SimileAjax.EventIndex.prototype.getUnit=function(){return this._unit;
};
SimileAjax.EventIndex.prototype.getEvent=function(A){return this._idToEvent[A];
};
SimileAjax.EventIndex.prototype.add=function(A){this._events.add(A);
this._idToEvent[A.getID()]=A;
this._indexed=false;
};
SimileAjax.EventIndex.prototype.removeAll=function(){this._events.removeAll();
this._idToEvent={};
this._indexed=false;
};
SimileAjax.EventIndex.prototype.getCount=function(){return this._events.length();
};
SimileAjax.EventIndex.prototype.getIterator=function(A,B){if(!this._indexed){this._index();
}return new SimileAjax.EventIndex._Iterator(this._events,A,B,this._unit);
};
SimileAjax.EventIndex.prototype.getReverseIterator=function(A,B){if(!this._indexed){this._index();
}return new SimileAjax.EventIndex._ReverseIterator(this._events,A,B,this._unit);
};
SimileAjax.EventIndex.prototype.getAllIterator=function(){return new SimileAjax.EventIndex._AllIterator(this._events);
};
SimileAjax.EventIndex.prototype.getEarliestDate=function(){var A=this._events.getFirst();
return(A==null)?null:A.getStart();
};
SimileAjax.EventIndex.prototype.getLatestDate=function(){var A=this._events.getLast();
if(A==null){return null;
}if(!this._indexed){this._index();
}var C=A._earliestOverlapIndex;
var B=this._events.elementAt(C).getEnd();
for(var D=C+1;
D<this._events.length();
D++){B=this._unit.later(B,this._events.elementAt(D).getEnd());
}return B;
};
SimileAjax.EventIndex.prototype._index=function(){var D=this._events.length();
for(var E=0;
E<D;
E++){var C=this._events.elementAt(E);
C._earliestOverlapIndex=E;
}var G=1;
for(var E=0;
E<D;
E++){var C=this._events.elementAt(E);
var B=C.getEnd();
G=Math.max(G,E+1);
while(G<D){var A=this._events.elementAt(G);
var F=A.getStart();
if(this._unit.compare(F,B)<0){A._earliestOverlapIndex=E;
G++;
}else{break;
}}}this._indexed=true;
};
SimileAjax.EventIndex._Iterator=function(B,A,D,C){this._events=B;
this._startDate=A;
this._endDate=D;
this._unit=C;
this._currentIndex=B.find(function(E){return C.compare(E.getStart(),A);
});
if(this._currentIndex-1>=0){this._currentIndex=this._events.elementAt(this._currentIndex-1)._earliestOverlapIndex;
}this._currentIndex--;
this._maxIndex=B.find(function(E){return C.compare(E.getStart(),D);
});
this._hasNext=false;
this._next=null;
this._findNext();
};
SimileAjax.EventIndex._Iterator.prototype={hasNext:function(){return this._hasNext;
},next:function(){if(this._hasNext){var A=this._next;
this._findNext();
return A;
}else{return null;
}},_findNext:function(){var B=this._unit;
while((++this._currentIndex)<this._maxIndex){var A=this._events.elementAt(this._currentIndex);
if(B.compare(A.getStart(),this._endDate)<0&&B.compare(A.getEnd(),this._startDate)>0){this._next=A;
this._hasNext=true;
return ;
}}this._next=null;
this._hasNext=false;
}};
SimileAjax.EventIndex._ReverseIterator=function(B,A,D,C){this._events=B;
this._startDate=A;
this._endDate=D;
this._unit=C;
this._minIndex=B.find(function(E){return C.compare(E.getStart(),A);
});
if(this._minIndex-1>=0){this._minIndex=this._events.elementAt(this._minIndex-1)._earliestOverlapIndex;
}this._maxIndex=B.find(function(E){return C.compare(E.getStart(),D);
});
this._currentIndex=this._maxIndex;
this._hasNext=false;
this._next=null;
this._findNext();
};
SimileAjax.EventIndex._ReverseIterator.prototype={hasNext:function(){return this._hasNext;
},next:function(){if(this._hasNext){var A=this._next;
this._findNext();
return A;
}else{return null;
}},_findNext:function(){var B=this._unit;
while((--this._currentIndex)>=this._minIndex){var A=this._events.elementAt(this._currentIndex);
if(B.compare(A.getStart(),this._endDate)<0&&B.compare(A.getEnd(),this._startDate)>0){this._next=A;
this._hasNext=true;
return ;
}}this._next=null;
this._hasNext=false;
}};
SimileAjax.EventIndex._AllIterator=function(A){this._events=A;
this._index=0;
};
SimileAjax.EventIndex._AllIterator.prototype={hasNext:function(){return this._index<this._events.length();
},next:function(){return this._index<this._events.length()?this._events.elementAt(this._index++):null;
}};
/* date-time.js */
SimileAjax.DateTime=new Object();
SimileAjax.DateTime.MILLISECOND=0;
SimileAjax.DateTime.SECOND=1;
SimileAjax.DateTime.MINUTE=2;
SimileAjax.DateTime.HOUR=3;
SimileAjax.DateTime.DAY=4;
SimileAjax.DateTime.WEEK=5;
SimileAjax.DateTime.MONTH=6;
SimileAjax.DateTime.YEAR=7;
SimileAjax.DateTime.DECADE=8;
SimileAjax.DateTime.CENTURY=9;
SimileAjax.DateTime.MILLENNIUM=10;
SimileAjax.DateTime.EPOCH=-1;
SimileAjax.DateTime.ERA=-2;
SimileAjax.DateTime.gregorianUnitLengths=[];
(function(){var B=SimileAjax.DateTime;
var A=B.gregorianUnitLengths;
A[B.MILLISECOND]=1;
A[B.SECOND]=1000;
A[B.MINUTE]=A[B.SECOND]*60;
A[B.HOUR]=A[B.MINUTE]*60;
A[B.DAY]=A[B.HOUR]*24;
A[B.WEEK]=A[B.DAY]*7;
A[B.MONTH]=A[B.DAY]*31;
A[B.YEAR]=A[B.DAY]*365;
A[B.DECADE]=A[B.YEAR]*10;
A[B.CENTURY]=A[B.YEAR]*100;
A[B.MILLENNIUM]=A[B.YEAR]*1000;
})();
SimileAjax.DateTime._dateRegexp=new RegExp("^(-?)([0-9]{4})("+["(-?([0-9]{2})(-?([0-9]{2}))?)","(-?([0-9]{3}))","(-?W([0-9]{2})(-?([1-7]))?)"].join("|")+")?$");
SimileAjax.DateTime._timezoneRegexp=new RegExp("Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$");
SimileAjax.DateTime._timeRegexp=new RegExp("^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$");
SimileAjax.DateTime.setIso8601Date=function(H,F){var I=F.match(SimileAjax.DateTime._dateRegexp);
if(!I){throw new Error("Invalid date string: "+F);
}var B=(I[1]=="-")?-1:1;
var J=B*I[2];
var G=I[5];
var C=I[7];
var E=I[9];
var A=I[11];
var M=(I[13])?I[13]:1;
H.setUTCFullYear(J);
if(E){H.setUTCMonth(0);
H.setUTCDate(Number(E));
}else{if(A){H.setUTCMonth(0);
H.setUTCDate(1);
var L=H.getUTCDay();
var K=(L)?L:7;
var D=Number(M)+(7*Number(A));
if(K<=4){H.setUTCDate(D+1-K);
}else{H.setUTCDate(D+8-K);
}}else{if(G){H.setUTCDate(1);
H.setUTCMonth(G-1);
}if(C){H.setUTCDate(C);
}}}return H;
};
SimileAjax.DateTime.setIso8601Time=function(F,C){var G=C.match(SimileAjax.DateTime._timeRegexp);
if(!G){SimileAjax.Debug.warn("Invalid time string: "+C);
return false;
}var A=G[1];
var E=Number((G[3])?G[3]:0);
var D=(G[5])?G[5]:0;
var B=G[7]?(Number("0."+G[7])*1000):0;
F.setUTCHours(A);
F.setUTCMinutes(E);
F.setUTCSeconds(D);
F.setUTCMilliseconds(B);
return F;
};
SimileAjax.DateTime.timezoneOffset=new Date().getTimezoneOffset();
SimileAjax.DateTime.setIso8601=function(B,A){var D=null;
var E=(A.indexOf("T")==-1)?A.split(" "):A.split("T");
SimileAjax.DateTime.setIso8601Date(B,E[0]);
if(E.length==2){var C=E[1].match(SimileAjax.DateTime._timezoneRegexp);
if(C){if(C[0]=="Z"){D=0;
}else{D=(Number(C[3])*60)+Number(C[5]);
D*=((C[2]=="-")?1:-1);
}E[1]=E[1].substr(0,E[1].length-C[0].length);
}SimileAjax.DateTime.setIso8601Time(B,E[1]);
}if(D==null){D=B.getTimezoneOffset();
}B.setTime(B.getTime()+D*60000);
return B;
};
SimileAjax.DateTime.parseIso8601DateTime=function(A){try{return SimileAjax.DateTime.setIso8601(new Date(0),A);
}catch(B){return null;
}};
SimileAjax.DateTime.parseGregorianDateTime=function(G){if(G==null){return null;
}else{if(G instanceof Date){return G;
}}var B=G.toString();
if(B.length>0&&B.length<8){var C=B.indexOf(" ");
if(C>0){var A=parseInt(B.substr(0,C));
var E=B.substr(C+1);
if(E.toLowerCase()=="bc"){A=1-A;
}}else{var A=parseInt(B);
}var F=new Date(0);
F.setUTCFullYear(A);
return F;
}try{return new Date(Date.parse(B));
}catch(D){return null;
}};
SimileAjax.DateTime.roundDownToInterval=function(B,G,J,K,A){var D=J*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR];
var I=new Date(B.getTime()+D);
var E=function(L){L.setUTCMilliseconds(0);
L.setUTCSeconds(0);
L.setUTCMinutes(0);
L.setUTCHours(0);
};
var C=function(L){E(L);
L.setUTCDate(1);
L.setUTCMonth(0);
};
switch(G){case SimileAjax.DateTime.MILLISECOND:var H=I.getUTCMilliseconds();
I.setUTCMilliseconds(H-(H%K));
break;
case SimileAjax.DateTime.SECOND:I.setUTCMilliseconds(0);
var H=I.getUTCSeconds();
I.setUTCSeconds(H-(H%K));
break;
case SimileAjax.DateTime.MINUTE:I.setUTCMilliseconds(0);
I.setUTCSeconds(0);
var H=I.getUTCMinutes();
I.setTime(I.getTime()-(H%K)*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.MINUTE]);
break;
case SimileAjax.DateTime.HOUR:I.setUTCMilliseconds(0);
I.setUTCSeconds(0);
I.setUTCMinutes(0);
var H=I.getUTCHours();
I.setUTCHours(H-(H%K));
break;
case SimileAjax.DateTime.DAY:E(I);
break;
case SimileAjax.DateTime.WEEK:E(I);
var F=(I.getUTCDay()+7-A)%7;
I.setTime(I.getTime()-F*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.DAY]);
break;
case SimileAjax.DateTime.MONTH:E(I);
I.setUTCDate(1);
var H=I.getUTCMonth();
I.setUTCMonth(H-(H%K));
break;
case SimileAjax.DateTime.YEAR:C(I);
var H=I.getUTCFullYear();
I.setUTCFullYear(H-(H%K));
break;
case SimileAjax.DateTime.DECADE:C(I);
I.setUTCFullYear(Math.floor(I.getUTCFullYear()/10)*10);
break;
case SimileAjax.DateTime.CENTURY:C(I);
I.setUTCFullYear(Math.floor(I.getUTCFullYear()/100)*100);
break;
case SimileAjax.DateTime.MILLENNIUM:C(I);
I.setUTCFullYear(Math.floor(I.getUTCFullYear()/1000)*1000);
break;
}B.setTime(I.getTime()-D);
};
SimileAjax.DateTime.roundUpToInterval=function(D,F,C,A,B){var E=D.getTime();
SimileAjax.DateTime.roundDownToInterval(D,F,C,A,B);
if(D.getTime()<E){D.setTime(D.getTime()+SimileAjax.DateTime.gregorianUnitLengths[F]*A);
}};
SimileAjax.DateTime.incrementByInterval=function(B,E,A){A=(typeof A=="undefined")?0:A;
var D=A*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR];
var C=new Date(B.getTime()+D);
switch(E){case SimileAjax.DateTime.MILLISECOND:C.setTime(C.getTime()+1);
break;
case SimileAjax.DateTime.SECOND:C.setTime(C.getTime()+1000);
break;
case SimileAjax.DateTime.MINUTE:C.setTime(C.getTime()+SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.MINUTE]);
break;
case SimileAjax.DateTime.HOUR:C.setTime(C.getTime()+SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR]);
break;
case SimileAjax.DateTime.DAY:C.setUTCDate(C.getUTCDate()+1);
break;
case SimileAjax.DateTime.WEEK:C.setUTCDate(C.getUTCDate()+7);
break;
case SimileAjax.DateTime.MONTH:C.setUTCMonth(C.getUTCMonth()+1);
break;
case SimileAjax.DateTime.YEAR:C.setUTCFullYear(C.getUTCFullYear()+1);
break;
case SimileAjax.DateTime.DECADE:C.setUTCFullYear(C.getUTCFullYear()+10);
break;
case SimileAjax.DateTime.CENTURY:C.setUTCFullYear(C.getUTCFullYear()+100);
break;
case SimileAjax.DateTime.MILLENNIUM:C.setUTCFullYear(C.getUTCFullYear()+1000);
break;
}B.setTime(C.getTime()-D);
};
SimileAjax.DateTime.removeTimeZoneOffset=function(B,A){return new Date(B.getTime()+A*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR]);
};
SimileAjax.DateTime.getTimezone=function(){var A=new Date().getTimezoneOffset();
return A/-60;
};
/* debug.js */
SimileAjax.Debug={silent:false};
SimileAjax.Debug.log=function(B){var A;
if("console" in window&&"log" in window.console){A=function(C){console.log(C);
};
}else{A=function(C){if(!SimileAjax.Debug.silent){alert(C);
}};
}SimileAjax.Debug.log=A;
A(B);
};
SimileAjax.Debug.warn=function(B){var A;
if("console" in window&&"warn" in window.console){A=function(C){console.warn(C);
};
}else{A=function(C){if(!SimileAjax.Debug.silent){alert(C);
}};
}SimileAjax.Debug.warn=A;
A(B);
};
SimileAjax.Debug.exception=function(B,D){var A,C=SimileAjax.parseURLParameters();
if(C.errors=="throw"||SimileAjax.params.errors=="throw"){A=function(F,E){throw (F);
};
}else{if("console" in window&&"error" in window.console){A=function(F,E){if(E!=null){console.error(E+" %o",F);
}else{console.error(F);
}throw (F);
};
}else{A=function(F,E){if(!SimileAjax.Debug.silent){alert("Caught exception: "+E+"\n\nDetails: "+("description" in F?F.description:F));
}throw (F);
};
}}SimileAjax.Debug.exception=A;
A(B,D);
};
SimileAjax.Debug.objectToString=function(A){return SimileAjax.Debug._objectToString(A,"");
};
SimileAjax.Debug._objectToString=function(D,A){var C=A+" ";
if(typeof D=="object"){var B="{";
for(E in D){B+=C+E+": "+SimileAjax.Debug._objectToString(D[E],C)+"\n";
}B+=A+"}";
return B;
}else{if(typeof D=="array"){var B="[";
for(var E=0;
E<D.length;
E++){B+=SimileAjax.Debug._objectToString(D[E],C)+"\n";
}B+=A+"]";
return B;
}else{return D;
}}};
/* dom.js */
SimileAjax.DOM=new Object();
SimileAjax.DOM.registerEventWithObject=function(C,A,D,B){SimileAjax.DOM.registerEvent(C,A,function(F,E,G){return D[B].call(D,F,E,G);
});
};
SimileAjax.DOM.registerEvent=function(C,B,D){var A=function(E){E=(E)?E:((event)?event:null);
if(E){var F=(E.target)?E.target:((E.srcElement)?E.srcElement:null);
if(F){F=(F.nodeType==1||F.nodeType==9)?F:F.parentNode;
}return D(C,E,F);
}return true;
};
if(SimileAjax.Platform.browser.isIE){C.attachEvent("on"+B,A);
}else{C.addEventListener(B,A,false);
}};
SimileAjax.DOM.getPageCoordinates=function(B){var E=0;
var D=0;
if(B.nodeType!=1){B=B.parentNode;
}var C=B;
while(C!=null){E+=C.offsetLeft;
D+=C.offsetTop;
C=C.offsetParent;
}var A=document.body;
while(B!=null&&B!=A){if("scrollLeft" in B){E-=B.scrollLeft;
D-=B.scrollTop;
}B=B.parentNode;
}return{left:E,top:D};
};
SimileAjax.DOM.getSize=function(B){var A=this.getStyle(B,"width");
var C=this.getStyle(B,"height");
if(A.indexOf("px")>-1){A=A.replace("px","");
}if(C.indexOf("px")>-1){C=C.replace("px","");
}return{w:A,h:C};
};
SimileAjax.DOM.getStyle=function(B,A){if(B.currentStyle){var C=B.currentStyle[A];
}else{if(window.getComputedStyle){var C=document.defaultView.getComputedStyle(B,null).getPropertyValue(A);
}else{var C="";
}}return C;
};
SimileAjax.DOM.getEventRelativeCoordinates=function(A,B){if(SimileAjax.Platform.browser.isIE){if(A.type=="mousewheel"){var C=SimileAjax.DOM.getPageCoordinates(B);
return{x:A.clientX-C.left,y:A.clientY-C.top};
}else{return{x:A.offsetX,y:A.offsetY};
}}else{var C=SimileAjax.DOM.getPageCoordinates(B);
if((A.type=="DOMMouseScroll")&&SimileAjax.Platform.browser.isFirefox&&(SimileAjax.Platform.browser.majorVersion==2)){return{x:A.screenX-C.left,y:A.screenY-C.top};
}else{return{x:A.pageX-C.left,y:A.pageY-C.top};
}}};
SimileAjax.DOM.getEventPageCoordinates=function(A){if(SimileAjax.Platform.browser.isIE){return{x:A.clientX+document.body.scrollLeft,y:A.clientY+document.body.scrollTop};
}else{return{x:A.pageX,y:A.pageY};
}};
SimileAjax.DOM.hittest=function(A,C,B){return SimileAjax.DOM._hittest(document.body,A,C,B);
};
SimileAjax.DOM._hittest=function(C,L,K,H){var M=C.childNodes;
outer:for(var G=0;
G<M.length;
G++){var A=M[G];
for(var F=0;
F<H.length;
F++){if(A==H[F]){continue outer;
}}if(A.offsetWidth==0&&A.offsetHeight==0){var B=SimileAjax.DOM._hittest(A,L,K,H);
if(B!=A){return B;
}}else{var J=0;
var E=0;
var D=A;
while(D){J+=D.offsetTop;
E+=D.offsetLeft;
D=D.offsetParent;
}if(E<=L&&J<=K&&(L-E)<A.offsetWidth&&(K-J)<A.offsetHeight){return SimileAjax.DOM._hittest(A,L,K,H);
}else{if(A.nodeType==1&&A.tagName=="TR"){var I=SimileAjax.DOM._hittest(A,L,K,H);
if(I!=A){return I;
}}}}}return C;
};
SimileAjax.DOM.cancelEvent=function(A){A.returnValue=false;
A.cancelBubble=true;
if("preventDefault" in A){A.preventDefault();
}};
SimileAjax.DOM.appendClassName=function(C,D){var B=C.className.split(" ");
for(var A=0;
A<B.length;
A++){if(B[A]==D){return ;
}}B.push(D);
C.className=B.join(" ");
};
SimileAjax.DOM.createInputElement=function(A){var B=document.createElement("div");
B.innerHTML="<input type='"+A+"' />";
return B.firstChild;
};
SimileAjax.DOM.createDOMFromTemplate=function(B){var A={};
A.elmt=SimileAjax.DOM._createDOMFromTemplate(B,A,null);
return A;
};
SimileAjax.DOM._createDOMFromTemplate=function(A,I,E){if(A==null){return null;
}else{if(typeof A!="object"){var D=document.createTextNode(A);
if(E!=null){E.appendChild(D);
}return D;
}else{var C=null;
if("tag" in A){var J=A.tag;
if(E!=null){if(J=="tr"){C=E.insertRow(E.rows.length);
}else{if(J=="td"){C=E.insertCell(E.cells.length);
}}}if(C==null){C=J=="input"?SimileAjax.DOM.createInputElement(A.type):document.createElement(J);
if(E!=null){E.appendChild(C);
}}}else{C=A.elmt;
if(E!=null){E.appendChild(C);
}}for(var B in A){var G=A[B];
if(B=="field"){I[G]=C;
}else{if(B=="className"){C.className=G;
}else{if(B=="id"){C.id=G;
}else{if(B=="title"){C.title=G;
}else{if(B=="type"&&C.tagName=="input"){}else{if(B=="style"){for(n in G){var H=G[n];
if(n=="float"){n=SimileAjax.Platform.browser.isIE?"styleFloat":"cssFloat";
}C.style[n]=H;
}}else{if(B=="children"){for(var F=0;
F<G.length;
F++){SimileAjax.DOM._createDOMFromTemplate(G[F],I,C);
}}else{if(B!="tag"&&B!="elmt"){C.setAttribute(B,G);
}}}}}}}}}return C;
}}};
SimileAjax.DOM._cachedParent=null;
SimileAjax.DOM.createElementFromString=function(A){if(SimileAjax.DOM._cachedParent==null){SimileAjax.DOM._cachedParent=document.createElement("div");
}SimileAjax.DOM._cachedParent.innerHTML=A;
return SimileAjax.DOM._cachedParent.firstChild;
};
SimileAjax.DOM.createDOMFromString=function(A,C,D){var B=typeof A=="string"?document.createElement(A):A;
B.innerHTML=C;
var E={elmt:B};
SimileAjax.DOM._processDOMChildrenConstructedFromString(E,B,D!=null?D:{});
return E;
};
SimileAjax.DOM._processDOMConstructedFromString=function(D,A,B){var E=A.id;
if(E!=null&&E.length>0){A.removeAttribute("id");
if(E in B){var C=A.parentNode;
C.insertBefore(B[E],A);
C.removeChild(A);
D[E]=B[E];
return ;
}else{D[E]=A;
}}if(A.hasChildNodes()){SimileAjax.DOM._processDOMChildrenConstructedFromString(D,A,B);
}};
SimileAjax.DOM._processDOMChildrenConstructedFromString=function(E,B,D){var C=B.firstChild;
while(C!=null){var A=C.nextSibling;
if(C.nodeType==1){SimileAjax.DOM._processDOMConstructedFromString(E,C,D);
}C=A;
}};
/* graphics.js */
SimileAjax.Graphics=new Object();
SimileAjax.Graphics.pngIsTranslucent=(!SimileAjax.Platform.browser.isIE)||(SimileAjax.Platform.browser.majorVersion>6);
if(!SimileAjax.Graphics.pngIsTranslucent){SimileAjax.includeCssFile(document,SimileAjax.urlPrefix+"styles/graphics-ie6.css");
}SimileAjax.Graphics._createTranslucentImage1=function(A,C){var B=document.createElement("img");
B.setAttribute("src",A);
if(C!=null){B.style.verticalAlign=C;
}return B;
};
SimileAjax.Graphics._createTranslucentImage2=function(A,C){var B=document.createElement("img");
B.style.width="1px";
B.style.height="1px";
B.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='image')";
B.style.verticalAlign=(C!=null)?C:"middle";
return B;
};
SimileAjax.Graphics.createTranslucentImage=SimileAjax.Graphics.pngIsTranslucent?SimileAjax.Graphics._createTranslucentImage1:SimileAjax.Graphics._createTranslucentImage2;
SimileAjax.Graphics._createTranslucentImageHTML1=function(A,B){return'<img src="'+A+'"'+(B!=null?' style="vertical-align: '+B+';"':"")+" />";
};
SimileAjax.Graphics._createTranslucentImageHTML2=function(A,C){var B="width: 1px; height: 1px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='image');"+(C!=null?" vertical-align: "+C+";":"");
return"<img src='"+A+"' style=\""+B+'" />';
};
SimileAjax.Graphics.createTranslucentImageHTML=SimileAjax.Graphics.pngIsTranslucent?SimileAjax.Graphics._createTranslucentImageHTML1:SimileAjax.Graphics._createTranslucentImageHTML2;
SimileAjax.Graphics.setOpacity=function(B,A){if(SimileAjax.Platform.browser.isIE){B.style.filter="progid:DXImageTransform.Microsoft.Alpha(Style=0,Opacity="+A+")";
}else{var C=(A/100).toString();
B.style.opacity=C;
B.style.MozOpacity=C;
}};
SimileAjax.Graphics.bubbleConfig={containerCSSClass:"simileAjax-bubble-container",innerContainerCSSClass:"simileAjax-bubble-innerContainer",contentContainerCSSClass:"simileAjax-bubble-contentContainer",borderGraphicSize:50,borderGraphicCSSClassPrefix:"simileAjax-bubble-border-",arrowGraphicTargetOffset:33,arrowGraphicLength:100,arrowGraphicWidth:49,arrowGraphicCSSClassPrefix:"simileAjax-bubble-arrow-",closeGraphicCSSClass:"simileAjax-bubble-close",extraPadding:20};
SimileAjax.Graphics.createBubbleForContentAndPoint=function(F,D,C,A,B,E){if(typeof A!="number"){A=300;
}if(typeof E!="number"){E=0;
}F.style.position="absolute";
F.style.left="-5000px";
F.style.top="0px";
F.style.width=A+"px";
document.body.appendChild(F);
window.setTimeout(function(){var J=F.scrollWidth+10;
var G=F.scrollHeight+10;
var I=0;
if(E>0&&G>E){G=E;
I=J-25;
}var H=SimileAjax.Graphics.createBubbleForPoint(D,C,J,G,B);
document.body.removeChild(F);
F.style.position="static";
F.style.left="";
F.style.top="";
if(I>0){var K=document.createElement("div");
F.style.width="";
K.style.width=I+"px";
K.appendChild(F);
H.content.appendChild(K);
}else{F.style.width=J+"px";
H.content.appendChild(F);
}},200);
};
SimileAjax.Graphics.createBubbleForPoint=function(B,A,K,M,D){K=parseInt(K,10);
M=parseInt(M,10);
var E=SimileAjax.Graphics.bubbleConfig;
var N=SimileAjax.Graphics.pngIsTranslucent?"pngTranslucent":"pngNotTranslucent";
var L=K+2*E.borderGraphicSize;
var P=M+2*E.borderGraphicSize;
var O=function(S){return S+" "+S+"-"+N;
};
var H=document.createElement("div");
H.className=O(E.containerCSSClass);
H.style.width=K+"px";
H.style.height=M+"px";
var F=document.createElement("div");
F.className=O(E.innerContainerCSSClass);
H.appendChild(F);
var I=function(){if(!J._closed){document.body.removeChild(J._div);
J._doc=null;
J._div=null;
J._content=null;
J._closed=true;
}};
var J={_closed:false};
var R=SimileAjax.WindowManager.pushLayer(I,true,H);
J._div=H;
J.close=function(){SimileAjax.WindowManager.popLayer(R);
};
var G=function(T){var S=document.createElement("div");
S.className=O(E.borderGraphicCSSClassPrefix+T);
F.appendChild(S);
};
G("top-left");
G("top-right");
G("bottom-left");
G("bottom-right");
G("left");
G("right");
G("top");
G("bottom");
var C=document.createElement("div");
C.className=O(E.contentContainerCSSClass);
F.appendChild(C);
J.content=C;
var Q=document.createElement("div");
Q.className=O(E.closeGraphicCSSClass);
F.appendChild(Q);
SimileAjax.WindowManager.registerEventWithObject(Q,"click",J,"close");
(function(){var Z=SimileAjax.Graphics.getWindowDimensions();
var U=Z.w;
var S=Z.h;
var V=Math.ceil(E.arrowGraphicWidth/2);
var Y=function(a){var b=document.createElement("div");
b.className=O(E.arrowGraphicCSSClassPrefix+"point-"+a);
F.appendChild(b);
return b;
};
if(B-V-E.borderGraphicSize-E.extraPadding>0&&B+V+E.borderGraphicSize+E.extraPadding<U){var X=B-Math.round(K/2);
X=B<(U/2)?Math.max(X,E.extraPadding+E.borderGraphicSize):Math.min(X,U-E.extraPadding-E.borderGraphicSize-K);
if((D&&D=="top")||(!D&&(A-E.arrowGraphicTargetOffset-M-E.borderGraphicSize-E.extraPadding>0))){var T=Y("down");
T.style.left=(B-V-X)+"px";
H.style.left=X+"px";
H.style.top=(A-E.arrowGraphicTargetOffset-M)+"px";
return ;
}else{if((D&&D=="bottom")||(!D&&(A+E.arrowGraphicTargetOffset+M+E.borderGraphicSize+E.extraPadding<S))){var T=Y("up");
T.style.left=(B-V-X)+"px";
H.style.left=X+"px";
H.style.top=(A+E.arrowGraphicTargetOffset)+"px";
return ;
}}}var W=A-Math.round(M/2);
W=A<(S/2)?Math.max(W,E.extraPadding+E.borderGraphicSize):Math.min(W,S-E.extraPadding-E.borderGraphicSize-M);
if((D&&D=="left")||(!D&&(B-E.arrowGraphicTargetOffset-K-E.borderGraphicSize-E.extraPadding>0))){var T=Y("right");
T.style.top=(A-V-W)+"px";
H.style.top=W+"px";
H.style.left=(B-E.arrowGraphicTargetOffset-K)+"px";
}else{var T=Y("left");
T.style.top=(A-V-W)+"px";
H.style.top=W+"px";
H.style.left=(B+E.arrowGraphicTargetOffset)+"px";
}})();
document.body.appendChild(H);
return J;
};
SimileAjax.Graphics.getWindowDimensions=function(){if(typeof window.innerHeight=="number"){return{w:window.innerWidth,h:window.innerHeight};
}else{if(document.documentElement&&document.documentElement.clientHeight){return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};
}else{if(document.body&&document.body.clientHeight){return{w:document.body.clientWidth,h:document.body.clientHeight};
}}}};
SimileAjax.Graphics.createMessageBubble=function(H){var G=H.createElement("div");
if(SimileAjax.Graphics.pngIsTranslucent){var I=H.createElement("div");
I.style.height="33px";
I.style.background="url("+SimileAjax.urlPrefix+"images/message-top-left.png) top left no-repeat";
I.style.paddingLeft="44px";
G.appendChild(I);
var C=H.createElement("div");
C.style.height="33px";
C.style.background="url("+SimileAjax.urlPrefix+"images/message-top-right.png) top right no-repeat";
I.appendChild(C);
var F=H.createElement("div");
F.style.background="url("+SimileAjax.urlPrefix+"images/message-left.png) top left repeat-y";
F.style.paddingLeft="44px";
G.appendChild(F);
var A=H.createElement("div");
A.style.background="url("+SimileAjax.urlPrefix+"images/message-right.png) top right repeat-y";
A.style.paddingRight="44px";
F.appendChild(A);
var D=H.createElement("div");
A.appendChild(D);
var B=H.createElement("div");
B.style.height="55px";
B.style.background="url("+SimileAjax.urlPrefix+"images/message-bottom-left.png) bottom left no-repeat";
B.style.paddingLeft="44px";
G.appendChild(B);
var E=H.createElement("div");
E.style.height="55px";
E.style.background="url("+SimileAjax.urlPrefix+"images/message-bottom-right.png) bottom right no-repeat";
B.appendChild(E);
}else{G.style.border="2px solid #7777AA";
G.style.padding="20px";
G.style.background="white";
SimileAjax.Graphics.setOpacity(G,90);
var D=H.createElement("div");
G.appendChild(D);
}return{containerDiv:G,contentDiv:D};
};
SimileAjax.Graphics.createAnimation=function(B,E,D,C,A){return new SimileAjax.Graphics._Animation(B,E,D,C,A);
};
SimileAjax.Graphics._Animation=function(B,E,D,C,A){this.f=B;
this.cont=(typeof A=="function")?A:function(){};
this.from=E;
this.to=D;
this.current=E;
this.duration=C;
this.start=new Date().getTime();
this.timePassed=0;
};
SimileAjax.Graphics._Animation.prototype.run=function(){var A=this;
window.setTimeout(function(){A.step();
},50);
};
SimileAjax.Graphics._Animation.prototype.step=function(){this.timePassed+=50;
var B=this.timePassed/this.duration;
var A=-Math.cos(B*Math.PI)/2+0.5;
var D=A*(this.to-this.from)+this.from;
try{this.f(D,D-this.current);
}catch(C){}this.current=D;
if(this.timePassed<this.duration){this.run();
}else{this.f(this.to,0);
this["cont"]();
}};
SimileAjax.Graphics.createStructuredDataCopyButton=function(F,D,A,E){var G=document.createElement("div");
G.style.position="relative";
G.style.display="inline";
G.style.width=D+"px";
G.style.height=A+"px";
G.style.overflow="hidden";
G.style.margin="2px";
if(SimileAjax.Graphics.pngIsTranslucent){G.style.background="url("+F+") no-repeat";
}else{G.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+F+"', sizingMethod='image')";
}var C;
if(SimileAjax.Platform.browser.isIE){C="filter:alpha(opacity=0)";
}else{C="opacity: 0";
}G.innerHTML="<textarea rows='1' autocomplete='off' value='none' style='"+C+"' />";
var B=G.firstChild;
B.style.width=D+"px";
B.style.height=A+"px";
B.onmousedown=function(H){H=(H)?H:((event)?event:null);
if(H.button==2){B.value=E();
B.select();
}};
return G;
};
SimileAjax.Graphics.getWidthHeight=function(C){var A,B;
if(C.getBoundingClientRect==null){A=C.offsetWidth;
B=C.offsetHeight;
}else{var D=C.getBoundingClientRect();
A=Math.ceil(D.right-D.left);
B=Math.ceil(D.bottom-D.top);
}return{width:A,height:B};
};
SimileAjax.Graphics.getFontRenderingContext=function(A,B){return new SimileAjax.Graphics._FontRenderingContext(A,B);
};
SimileAjax.Graphics._FontRenderingContext=function(A,B){this._elmt=A;
this._elmt.style.visibility="hidden";
if(typeof B=="string"){this._elmt.style.width=B;
}else{if(typeof B=="number"){this._elmt.style.width=B+"px";
}}};
SimileAjax.Graphics._FontRenderingContext.prototype.dispose=function(){this._elmt=null;
};
SimileAjax.Graphics._FontRenderingContext.prototype.update=function(){this._elmt.innerHTML="A";
this._lineHeight=this._elmt.offsetHeight;
};
SimileAjax.Graphics._FontRenderingContext.prototype.computeSize=function(D,C){var B=this._elmt;
B.innerHTML=D;
B.className=C===undefined?"":C;
var A=SimileAjax.Graphics.getWidthHeight(B);
B.className="";
return A;
};
SimileAjax.Graphics._FontRenderingContext.prototype.getLineHeight=function(){return this._lineHeight;
};
/* history.js */
SimileAjax.History={maxHistoryLength:10,historyFile:"__history__.html",enabled:true,_initialized:false,_listeners:new SimileAjax.ListenerQueue(),_actions:[],_baseIndex:0,_currentIndex:0,_plainDocumentTitle:document.title};
SimileAjax.History.formatHistoryEntryTitle=function(A){return SimileAjax.History._plainDocumentTitle+" {"+A+"}";
};
SimileAjax.History.initialize=function(){if(SimileAjax.History._initialized){return ;
}if(SimileAjax.History.enabled){var A=document.createElement("iframe");
A.id="simile-ajax-history";
A.style.position="absolute";
A.style.width="10px";
A.style.height="10px";
A.style.top="0px";
A.style.left="0px";
A.style.visibility="hidden";
A.src=SimileAjax.History.historyFile+"?0";
document.body.appendChild(A);
SimileAjax.DOM.registerEvent(A,"load",SimileAjax.History._handleIFrameOnLoad);
SimileAjax.History._iframe=A;
}SimileAjax.History._initialized=true;
};
SimileAjax.History.addListener=function(A){SimileAjax.History.initialize();
SimileAjax.History._listeners.add(A);
};
SimileAjax.History.removeListener=function(A){SimileAjax.History.initialize();
SimileAjax.History._listeners.remove(A);
};
SimileAjax.History.addAction=function(A){SimileAjax.History.initialize();
SimileAjax.History._listeners.fire("onBeforePerform",[A]);
window.setTimeout(function(){try{A.perform();
SimileAjax.History._listeners.fire("onAfterPerform",[A]);
if(SimileAjax.History.enabled){SimileAjax.History._actions=SimileAjax.History._actions.slice(0,SimileAjax.History._currentIndex-SimileAjax.History._baseIndex);
SimileAjax.History._actions.push(A);
SimileAjax.History._currentIndex++;
var C=SimileAjax.History._actions.length-SimileAjax.History.maxHistoryLength;
if(C>0){SimileAjax.History._actions=SimileAjax.History._actions.slice(C);
SimileAjax.History._baseIndex+=C;
}try{SimileAjax.History._iframe.contentWindow.location.search="?"+SimileAjax.History._currentIndex;
}catch(B){var D=SimileAjax.History.formatHistoryEntryTitle(A.label);
document.title=D;
}}}catch(B){SimileAjax.Debug.exception(B,"Error adding action {"+A.label+"} to history");
}},0);
};
SimileAjax.History.addLengthyAction=function(C,A,B){SimileAjax.History.addAction({perform:C,undo:A,label:B,uiLayer:SimileAjax.WindowManager.getBaseLayer(),lengthy:true});
};
SimileAjax.History._handleIFrameOnLoad=function(){try{var B=SimileAjax.History._iframe.contentWindow.location.search;
var F=(B.length==0)?0:Math.max(0,parseInt(B.substr(1)));
var E=function(){var G=F-SimileAjax.History._currentIndex;
SimileAjax.History._currentIndex+=G;
SimileAjax.History._baseIndex+=G;
SimileAjax.History._iframe.contentWindow.location.search="?"+F;
};
if(F<SimileAjax.History._currentIndex){SimileAjax.History._listeners.fire("onBeforeUndoSeveral",[]);
window.setTimeout(function(){while(SimileAjax.History._currentIndex>F&&SimileAjax.History._currentIndex>SimileAjax.History._baseIndex){SimileAjax.History._currentIndex--;
var G=SimileAjax.History._actions[SimileAjax.History._currentIndex-SimileAjax.History._baseIndex];
try{G.undo();
}catch(H){SimileAjax.Debug.exception(H,"History: Failed to undo action {"+G.label+"}");
}}SimileAjax.History._listeners.fire("onAfterUndoSeveral",[]);
E();
},0);
}else{if(F>SimileAjax.History._currentIndex){SimileAjax.History._listeners.fire("onBeforeRedoSeveral",[]);
window.setTimeout(function(){while(SimileAjax.History._currentIndex<F&&SimileAjax.History._currentIndex-SimileAjax.History._baseIndex<SimileAjax.History._actions.length){var G=SimileAjax.History._actions[SimileAjax.History._currentIndex-SimileAjax.History._baseIndex];
try{G.perform();
}catch(H){SimileAjax.Debug.exception(H,"History: Failed to redo action {"+G.label+"}");
}SimileAjax.History._currentIndex++;
}SimileAjax.History._listeners.fire("onAfterRedoSeveral",[]);
E();
},0);
}else{var A=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex-1;
var D=(A>=0&&A<SimileAjax.History._actions.length)?SimileAjax.History.formatHistoryEntryTitle(SimileAjax.History._actions[A].label):SimileAjax.History._plainDocumentTitle;
SimileAjax.History._iframe.contentWindow.document.title=D;
document.title=D;
}}}catch(C){}};
SimileAjax.History.getNextUndoAction=function(){try{var A=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex-1;
return SimileAjax.History._actions[A];
}catch(B){return null;
}};
SimileAjax.History.getNextRedoAction=function(){try{var A=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex;
return SimileAjax.History._actions[A];
}catch(B){return null;
}};
/* html.js */
SimileAjax.HTML=new Object();
SimileAjax.HTML._e2uHash={};
(function(){var A=SimileAjax.HTML._e2uHash;
A["nbsp"]="\u00A0[space]";
A["iexcl"]="\u00A1";
A["cent"]="\u00A2";
A["pound"]="\u00A3";
A["curren"]="\u00A4";
A["yen"]="\u00A5";
A["brvbar"]="\u00A6";
A["sect"]="\u00A7";
A["uml"]="\u00A8";
A["copy"]="\u00A9";
A["ordf"]="\u00AA";
A["laquo"]="\u00AB";
A["not"]="\u00AC";
A["shy"]="\u00AD";
A["reg"]="\u00AE";
A["macr"]="\u00AF";
A["deg"]="\u00B0";
A["plusmn"]="\u00B1";
A["sup2"]="\u00B2";
A["sup3"]="\u00B3";
A["acute"]="\u00B4";
A["micro"]="\u00B5";
A["para"]="\u00B6";
A["middot"]="\u00B7";
A["cedil"]="\u00B8";
A["sup1"]="\u00B9";
A["ordm"]="\u00BA";
A["raquo"]="\u00BB";
A["frac14"]="\u00BC";
A["frac12"]="\u00BD";
A["frac34"]="\u00BE";
A["iquest"]="\u00BF";
A["Agrave"]="\u00C0";
A["Aacute"]="\u00C1";
A["Acirc"]="\u00C2";
A["Atilde"]="\u00C3";
A["Auml"]="\u00C4";
A["Aring"]="\u00C5";
A["AElig"]="\u00C6";
A["Ccedil"]="\u00C7";
A["Egrave"]="\u00C8";
A["Eacute"]="\u00C9";
A["Ecirc"]="\u00CA";
A["Euml"]="\u00CB";
A["Igrave"]="\u00CC";
A["Iacute"]="\u00CD";
A["Icirc"]="\u00CE";
A["Iuml"]="\u00CF";
A["ETH"]="\u00D0";
A["Ntilde"]="\u00D1";
A["Ograve"]="\u00D2";
A["Oacute"]="\u00D3";
A["Ocirc"]="\u00D4";
A["Otilde"]="\u00D5";
A["Ouml"]="\u00D6";
A["times"]="\u00D7";
A["Oslash"]="\u00D8";
A["Ugrave"]="\u00D9";
A["Uacute"]="\u00DA";
A["Ucirc"]="\u00DB";
A["Uuml"]="\u00DC";
A["Yacute"]="\u00DD";
A["THORN"]="\u00DE";
A["szlig"]="\u00DF";
A["agrave"]="\u00E0";
A["aacute"]="\u00E1";
A["acirc"]="\u00E2";
A["atilde"]="\u00E3";
A["auml"]="\u00E4";
A["aring"]="\u00E5";
A["aelig"]="\u00E6";
A["ccedil"]="\u00E7";
A["egrave"]="\u00E8";
A["eacute"]="\u00E9";
A["ecirc"]="\u00EA";
A["euml"]="\u00EB";
A["igrave"]="\u00EC";
A["iacute"]="\u00ED";
A["icirc"]="\u00EE";
A["iuml"]="\u00EF";
A["eth"]="\u00F0";
A["ntilde"]="\u00F1";
A["ograve"]="\u00F2";
A["oacute"]="\u00F3";
A["ocirc"]="\u00F4";
A["otilde"]="\u00F5";
A["ouml"]="\u00F6";
A["divide"]="\u00F7";
A["oslash"]="\u00F8";
A["ugrave"]="\u00F9";
A["uacute"]="\u00FA";
A["ucirc"]="\u00FB";
A["uuml"]="\u00FC";
A["yacute"]="\u00FD";
A["thorn"]="\u00FE";
A["yuml"]="\u00FF";
A["quot"]="\u0022";
A["amp"]="\u0026";
A["lt"]="\u003C";
A["gt"]="\u003E";
A["OElig"]="";
A["oelig"]="\u0153";
A["Scaron"]="\u0160";
A["scaron"]="\u0161";
A["Yuml"]="\u0178";
A["circ"]="\u02C6";
A["tilde"]="\u02DC";
A["ensp"]="\u2002";
A["emsp"]="\u2003";
A["thinsp"]="\u2009";
A["zwnj"]="\u200C";
A["zwj"]="\u200D";
A["lrm"]="\u200E";
A["rlm"]="\u200F";
A["ndash"]="\u2013";
A["mdash"]="\u2014";
A["lsquo"]="\u2018";
A["rsquo"]="\u2019";
A["sbquo"]="\u201A";
A["ldquo"]="\u201C";
A["rdquo"]="\u201D";
A["bdquo"]="\u201E";
A["dagger"]="\u2020";
A["Dagger"]="\u2021";
A["permil"]="\u2030";
A["lsaquo"]="\u2039";
A["rsaquo"]="\u203A";
A["euro"]="\u20AC";
A["fnof"]="\u0192";
A["Alpha"]="\u0391";
A["Beta"]="\u0392";
A["Gamma"]="\u0393";
A["Delta"]="\u0394";
A["Epsilon"]="\u0395";
A["Zeta"]="\u0396";
A["Eta"]="\u0397";
A["Theta"]="\u0398";
A["Iota"]="\u0399";
A["Kappa"]="\u039A";
A["Lambda"]="\u039B";
A["Mu"]="\u039C";
A["Nu"]="\u039D";
A["Xi"]="\u039E";
A["Omicron"]="\u039F";
A["Pi"]="\u03A0";
A["Rho"]="\u03A1";
A["Sigma"]="\u03A3";
A["Tau"]="\u03A4";
A["Upsilon"]="\u03A5";
A["Phi"]="\u03A6";
A["Chi"]="\u03A7";
A["Psi"]="\u03A8";
A["Omega"]="\u03A9";
A["alpha"]="\u03B1";
A["beta"]="\u03B2";
A["gamma"]="\u03B3";
A["delta"]="\u03B4";
A["epsilon"]="\u03B5";
A["zeta"]="\u03B6";
A["eta"]="\u03B7";
A["theta"]="\u03B8";
A["iota"]="\u03B9";
A["kappa"]="\u03BA";
A["lambda"]="\u03BB";
A["mu"]="\u03BC";
A["nu"]="\u03BD";
A["xi"]="\u03BE";
A["omicron"]="\u03BF";
A["pi"]="\u03C0";
A["rho"]="\u03C1";
A["sigmaf"]="\u03C2";
A["sigma"]="\u03C3";
A["tau"]="\u03C4";
A["upsilon"]="\u03C5";
A["phi"]="\u03C6";
A["chi"]="\u03C7";
A["psi"]="\u03C8";
A["omega"]="\u03C9";
A["thetasym"]="\u03D1";
A["upsih"]="\u03D2";
A["piv"]="\u03D6";
A["bull"]="\u2022";
A["hellip"]="\u2026";
A["prime"]="\u2032";
A["Prime"]="\u2033";
A["oline"]="\u203E";
A["frasl"]="\u2044";
A["weierp"]="\u2118";
A["image"]="\u2111";
A["real"]="\u211C";
A["trade"]="\u2122";
A["alefsym"]="\u2135";
A["larr"]="\u2190";
A["uarr"]="\u2191";
A["rarr"]="\u2192";
A["darr"]="\u2193";
A["harr"]="\u2194";
A["crarr"]="\u21B5";
A["lArr"]="\u21D0";
A["uArr"]="\u21D1";
A["rArr"]="\u21D2";
A["dArr"]="\u21D3";
A["hArr"]="\u21D4";
A["forall"]="\u2200";
A["part"]="\u2202";
A["exist"]="\u2203";
A["empty"]="\u2205";
A["nabla"]="\u2207";
A["isin"]="\u2208";
A["notin"]="\u2209";
A["ni"]="\u220B";
A["prod"]="\u220F";
A["sum"]="\u2211";
A["minus"]="\u2212";
A["lowast"]="\u2217";
A["radic"]="\u221A";
A["prop"]="\u221D";
A["infin"]="\u221E";
A["ang"]="\u2220";
A["and"]="\u2227";
A["or"]="\u2228";
A["cap"]="\u2229";
A["cup"]="\u222A";
A["int"]="\u222B";
A["there4"]="\u2234";
A["sim"]="\u223C";
A["cong"]="\u2245";
A["asymp"]="\u2248";
A["ne"]="\u2260";
A["equiv"]="\u2261";
A["le"]="\u2264";
A["ge"]="\u2265";
A["sub"]="\u2282";
A["sup"]="\u2283";
A["nsub"]="\u2284";
A["sube"]="\u2286";
A["supe"]="\u2287";
A["oplus"]="\u2295";
A["otimes"]="\u2297";
A["perp"]="\u22A5";
A["sdot"]="\u22C5";
A["lceil"]="\u2308";
A["rceil"]="\u2309";
A["lfloor"]="\u230A";
A["rfloor"]="\u230B";
A["lang"]="\u2329";
A["rang"]="\u232A";
A["loz"]="\u25CA";
A["spades"]="\u2660";
A["clubs"]="\u2663";
A["hearts"]="\u2665";
A["diams"]="\u2666";
})();
SimileAjax.HTML.deEntify=function(C){var D=SimileAjax.HTML._e2uHash;
var B=/&(\w+?);/;
while(B.test(C)){var A=C.match(B);
C=C.replace(B,D[A[1]]);
}return C;
};
/* json.js */
SimileAjax.JSON=new Object();
(function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
var s={array:function(x){var a=["["],b,f,i,l=x.length,v;
for(i=0;
i<l;
i+=1){v=x[i];
f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){if(b){a[a.length]=",";
}a[a.length]=v;
b=true;
}}}a[a.length]="]";
return a.join("");
},"boolean":function(x){return String(x);
},"null":function(x){return"null";
},number:function(x){return isFinite(x)?String(x):"null";
},object:function(x){if(x){if(x instanceof Array){return s.array(x);
}var a=["{"],b,f,i,v;
for(i in x){v=x[i];
f=s[typeof v];
if(f){v=f(v);
if(typeof v=="string"){if(b){a[a.length]=",";
}a.push(s.string(i),":",v);
b=true;
}}}a[a.length]="}";
return a.join("");
}return"null";
},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];
if(c){return c;
}c=b.charCodeAt();
return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);
});
}return'"'+x+'"';
}};
SimileAjax.JSON.toJSONString=function(o){if(o instanceof Object){return s.object(o);
}else{if(o instanceof Array){return s.array(o);
}else{return o.toString();
}}};
SimileAjax.JSON.parseJSON=function(){try{return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+this+")");
}catch(e){return false;
}};
})();
/* remoteLog.js */
SimileAjax.RemoteLog={defaultURL:"http://groups.csail.mit.edu/haystack/facetlog/logger.php",url:null,logActive:false};
SimileAjax.RemoteLog.possiblyLog=function(A){if((SimileAjax.RemoteLog.logActive)&&(SimileAjax.RemoteLog.url!=null)){A["url"]=window.location.href;
try{SimileAjax.jQuery.ajax({type:"POST",url:SimileAjax.RemoteLog.url,data:A});
}catch(B){}}};
/* string.js */
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");
};
String.prototype.startsWith=function(A){return this.length>=A.length&&this.substr(0,A.length)==A;
};
String.prototype.endsWith=function(A){return this.length>=A.length&&this.substr(this.length-A.length)==A;
};
String.substitute=function(B,D){var A="";
var F=0;
while(F<B.length-1){var C=B.indexOf("%",F);
if(C<0||C==B.length-1){break;
}else{if(C>F&&B.charAt(C-1)=="\\"){A+=B.substring(F,C-1)+"%";
F=C+1;
}else{var E=parseInt(B.charAt(C+1));
if(isNaN(E)||E>=D.length){A+=B.substring(F,C+2);
}else{A+=B.substring(F,C)+D[E].toString();
}F=C+2;
}}}if(F<B.length){A+=B.substring(F);
}return A;
};
/* units.js */
SimileAjax.NativeDateUnit=new Object();
SimileAjax.NativeDateUnit.makeDefaultValue=function(){return new Date();
};
SimileAjax.NativeDateUnit.cloneValue=function(A){return new Date(A.getTime());
};
SimileAjax.NativeDateUnit.getParser=function(A){if(typeof A=="string"){A=A.toLowerCase();
}var B=(A=="iso8601"||A=="iso 8601")?SimileAjax.DateTime.parseIso8601DateTime:SimileAjax.DateTime.parseGregorianDateTime;
return function(C){if(typeof C!="undefined"&&typeof C.toUTCString=="function"){return C;
}else{return B(C);
}};
};
SimileAjax.NativeDateUnit.parseFromObject=function(A){return SimileAjax.DateTime.parseGregorianDateTime(A);
};
SimileAjax.NativeDateUnit.toNumber=function(A){return A.getTime();
};
SimileAjax.NativeDateUnit.fromNumber=function(A){return new Date(A);
};
SimileAjax.NativeDateUnit.compare=function(D,C){var B,A;
if(typeof D=="object"){B=D.getTime();
}else{B=Number(D);
}if(typeof C=="object"){A=C.getTime();
}else{A=Number(C);
}return B-A;
};
SimileAjax.NativeDateUnit.earlier=function(B,A){return SimileAjax.NativeDateUnit.compare(B,A)<0?B:A;
};
SimileAjax.NativeDateUnit.later=function(B,A){return SimileAjax.NativeDateUnit.compare(B,A)>0?B:A;
};
SimileAjax.NativeDateUnit.change=function(A,B){return new Date(A.getTime()+B);
};
/* window-manager.js */
SimileAjax.WindowManager={_initialized:false,_listeners:[],_draggedElement:null,_draggedElementCallback:null,_dropTargetHighlightElement:null,_lastCoords:null,_ghostCoords:null,_draggingMode:"",_dragging:false,_layers:[]};
SimileAjax.WindowManager.initialize=function(){if(SimileAjax.WindowManager._initialized){return ;
}SimileAjax.DOM.registerEvent(document.body,"mousedown",SimileAjax.WindowManager._onBodyMouseDown);
SimileAjax.DOM.registerEvent(document.body,"mousemove",SimileAjax.WindowManager._onBodyMouseMove);
SimileAjax.DOM.registerEvent(document.body,"mouseup",SimileAjax.WindowManager._onBodyMouseUp);
SimileAjax.DOM.registerEvent(document,"keydown",SimileAjax.WindowManager._onBodyKeyDown);
SimileAjax.DOM.registerEvent(document,"keyup",SimileAjax.WindowManager._onBodyKeyUp);
SimileAjax.WindowManager._layers.push({index:0});
SimileAjax.WindowManager._historyListener={onBeforeUndoSeveral:function(){},onAfterUndoSeveral:function(){},onBeforeUndo:function(){},onAfterUndo:function(){},onBeforeRedoSeveral:function(){},onAfterRedoSeveral:function(){},onBeforeRedo:function(){},onAfterRedo:function(){}};
SimileAjax.History.addListener(SimileAjax.WindowManager._historyListener);
SimileAjax.WindowManager._initialized=true;
};
SimileAjax.WindowManager.getBaseLayer=function(){SimileAjax.WindowManager.initialize();
return SimileAjax.WindowManager._layers[0];
};
SimileAjax.WindowManager.getHighestLayer=function(){SimileAjax.WindowManager.initialize();
return SimileAjax.WindowManager._layers[SimileAjax.WindowManager._layers.length-1];
};
SimileAjax.WindowManager.registerEventWithObject=function(D,A,E,B,C){SimileAjax.WindowManager.registerEvent(D,A,function(G,F,H){return E[B].call(E,G,F,H);
},C);
};
SimileAjax.WindowManager.registerEvent=function(D,B,E,C){if(C==null){C=SimileAjax.WindowManager.getHighestLayer();
}var A=function(G,F,I){if(SimileAjax.WindowManager._canProcessEventAtLayer(C)){SimileAjax.WindowManager._popToLayer(C.index);
try{E(G,F,I);
}catch(H){SimileAjax.Debug.exception(H);
}}SimileAjax.DOM.cancelEvent(F);
return false;
};
SimileAjax.DOM.registerEvent(D,B,A);
};
SimileAjax.WindowManager.pushLayer=function(C,D,B){var A={onPop:C,index:SimileAjax.WindowManager._layers.length,ephemeral:(D),elmt:B};
SimileAjax.WindowManager._layers.push(A);
return A;
};
SimileAjax.WindowManager.popLayer=function(B){for(var A=1;
A<SimileAjax.WindowManager._layers.length;
A++){if(SimileAjax.WindowManager._layers[A]==B){SimileAjax.WindowManager._popToLayer(A-1);
break;
}}};
SimileAjax.WindowManager.popAllLayers=function(){SimileAjax.WindowManager._popToLayer(0);
};
SimileAjax.WindowManager.registerForDragging=function(B,C,A){SimileAjax.WindowManager.registerEvent(B,"mousedown",function(E,D,F){SimileAjax.WindowManager._handleMouseDown(E,D,C);
},A);
};
SimileAjax.WindowManager._popToLayer=function(C){while(C+1<SimileAjax.WindowManager._layers.length){try{var A=SimileAjax.WindowManager._layers.pop();
if(A.onPop!=null){A.onPop();
}}catch(B){}}};
SimileAjax.WindowManager._canProcessEventAtLayer=function(B){if(B.index==(SimileAjax.WindowManager._layers.length-1)){return true;
}for(var A=B.index+1;
A<SimileAjax.WindowManager._layers.length;
A++){if(!SimileAjax.WindowManager._layers[A].ephemeral){return false;
}}return true;
};
SimileAjax.WindowManager.cancelPopups=function(A){var F=(A)?SimileAjax.DOM.getEventPageCoordinates(A):{x:-1,y:-1};
var E=SimileAjax.WindowManager._layers.length-1;
while(E>0&&SimileAjax.WindowManager._layers[E].ephemeral){var D=SimileAjax.WindowManager._layers[E];
if(D.elmt!=null){var C=D.elmt;
var B=SimileAjax.DOM.getPageCoordinates(C);
if(F.x>=B.left&&F.x<(B.left+C.offsetWidth)&&F.y>=B.top&&F.y<(B.top+C.offsetHeight)){break;
}}E--;
}SimileAjax.WindowManager._popToLayer(E);
};
SimileAjax.WindowManager._onBodyMouseDown=function(B,A,C){if(!("eventPhase" in A)||A.eventPhase==A.BUBBLING_PHASE){SimileAjax.WindowManager.cancelPopups(A);
}};
SimileAjax.WindowManager._handleMouseDown=function(B,A,C){SimileAjax.WindowManager._draggedElement=B;
SimileAjax.WindowManager._draggedElementCallback=C;
SimileAjax.WindowManager._lastCoords={x:A.clientX,y:A.clientY};
SimileAjax.DOM.cancelEvent(A);
return false;
};
SimileAjax.WindowManager._onBodyKeyDown=function(C,A,D){if(SimileAjax.WindowManager._dragging){if(A.keyCode==27){SimileAjax.WindowManager._cancelDragging();
}else{if((A.keyCode==17||A.keyCode==16)&&SimileAjax.WindowManager._draggingMode!="copy"){SimileAjax.WindowManager._draggingMode="copy";
var B=SimileAjax.Graphics.createTranslucentImage(SimileAjax.urlPrefix+"images/copy.png");
B.style.position="absolute";
B.style.left=(SimileAjax.WindowManager._ghostCoords.left-16)+"px";
B.style.top=(SimileAjax.WindowManager._ghostCoords.top)+"px";
document.body.appendChild(B);
SimileAjax.WindowManager._draggingModeIndicatorElmt=B;
}}}};
SimileAjax.WindowManager._onBodyKeyUp=function(B,A,C){if(SimileAjax.WindowManager._dragging){if(A.keyCode==17||A.keyCode==16){SimileAjax.WindowManager._draggingMode="";
if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){document.body.removeChild(SimileAjax.WindowManager._draggingModeIndicatorElmt);
SimileAjax.WindowManager._draggingModeIndicatorElmt=null;
}}}};
SimileAjax.WindowManager._onBodyMouseMove=function(A,N,H){if(SimileAjax.WindowManager._draggedElement!=null){var P=SimileAjax.WindowManager._draggedElementCallback;
var E=SimileAjax.WindowManager._lastCoords;
var M=N.clientX-E.x;
var J=N.clientY-E.y;
if(!SimileAjax.WindowManager._dragging){if(Math.abs(M)>5||Math.abs(J)>5){try{if("onDragStart" in P){P.onDragStart();
}if("ghost" in P&&P.ghost){var K=SimileAjax.WindowManager._draggedElement;
SimileAjax.WindowManager._ghostCoords=SimileAjax.DOM.getPageCoordinates(K);
SimileAjax.WindowManager._ghostCoords.left+=M;
SimileAjax.WindowManager._ghostCoords.top+=J;
var O=K.cloneNode(true);
O.style.position="absolute";
O.style.left=SimileAjax.WindowManager._ghostCoords.left+"px";
O.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";
O.style.zIndex=1000;
SimileAjax.Graphics.setOpacity(O,50);
document.body.appendChild(O);
P._ghostElmt=O;
}SimileAjax.WindowManager._dragging=true;
SimileAjax.WindowManager._lastCoords={x:N.clientX,y:N.clientY};
document.body.focus();
}catch(G){SimileAjax.Debug.exception("WindowManager: Error handling mouse down",G);
SimileAjax.WindowManager._cancelDragging();
}}}else{try{SimileAjax.WindowManager._lastCoords={x:N.clientX,y:N.clientY};
if("onDragBy" in P){P.onDragBy(M,J);
}if("_ghostElmt" in P){var O=P._ghostElmt;
SimileAjax.WindowManager._ghostCoords.left+=M;
SimileAjax.WindowManager._ghostCoords.top+=J;
O.style.left=SimileAjax.WindowManager._ghostCoords.left+"px";
O.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";
if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){var I=SimileAjax.WindowManager._draggingModeIndicatorElmt;
I.style.left=(SimileAjax.WindowManager._ghostCoords.left-16)+"px";
I.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";
}if("droppable" in P&&P.droppable){var L=SimileAjax.DOM.getEventPageCoordinates(N);
var H=SimileAjax.DOM.hittest(L.x,L.y,[SimileAjax.WindowManager._ghostElmt,SimileAjax.WindowManager._dropTargetHighlightElement]);
H=SimileAjax.WindowManager._findDropTarget(H);
if(H!=SimileAjax.WindowManager._potentialDropTarget){if(SimileAjax.WindowManager._dropTargetHighlightElement!=null){document.body.removeChild(SimileAjax.WindowManager._dropTargetHighlightElement);
SimileAjax.WindowManager._dropTargetHighlightElement=null;
SimileAjax.WindowManager._potentialDropTarget=null;
}var F=false;
if(H!=null){if((!("canDropOn" in P)||P.canDropOn(H))&&(!("canDrop" in H)||H.canDrop(SimileAjax.WindowManager._draggedElement))){F=true;
}}if(F){var C=4;
var D=SimileAjax.DOM.getPageCoordinates(H);
var B=document.createElement("div");
B.style.border=C+"px solid yellow";
B.style.backgroundColor="yellow";
B.style.position="absolute";
B.style.left=D.left+"px";
B.style.top=D.top+"px";
B.style.width=(H.offsetWidth-C*2)+"px";
B.style.height=(H.offsetHeight-C*2)+"px";
SimileAjax.Graphics.setOpacity(B,30);
document.body.appendChild(B);
SimileAjax.WindowManager._potentialDropTarget=H;
SimileAjax.WindowManager._dropTargetHighlightElement=B;
}}}}}catch(G){SimileAjax.Debug.exception("WindowManager: Error handling mouse move",G);
SimileAjax.WindowManager._cancelDragging();
}}SimileAjax.DOM.cancelEvent(N);
return false;
}};
SimileAjax.WindowManager._onBodyMouseUp=function(B,A,C){if(SimileAjax.WindowManager._draggedElement!=null){try{if(SimileAjax.WindowManager._dragging){var E=SimileAjax.WindowManager._draggedElementCallback;
if("onDragEnd" in E){E.onDragEnd();
}if("droppable" in E&&E.droppable){var D=false;
var C=SimileAjax.WindowManager._potentialDropTarget;
if(C!=null){if((!("canDropOn" in E)||E.canDropOn(C))&&(!("canDrop" in C)||C.canDrop(SimileAjax.WindowManager._draggedElement))){if("onDropOn" in E){E.onDropOn(C);
}C.ondrop(SimileAjax.WindowManager._draggedElement,SimileAjax.WindowManager._draggingMode);
D=true;
}}if(!D){}}}}finally{SimileAjax.WindowManager._cancelDragging();
}SimileAjax.DOM.cancelEvent(A);
return false;
}};
SimileAjax.WindowManager._cancelDragging=function(){var B=SimileAjax.WindowManager._draggedElementCallback;
if("_ghostElmt" in B){var A=B._ghostElmt;
document.body.removeChild(A);
delete B._ghostElmt;
}if(SimileAjax.WindowManager._dropTargetHighlightElement!=null){document.body.removeChild(SimileAjax.WindowManager._dropTargetHighlightElement);
SimileAjax.WindowManager._dropTargetHighlightElement=null;
}if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){document.body.removeChild(SimileAjax.WindowManager._draggingModeIndicatorElmt);
SimileAjax.WindowManager._draggingModeIndicatorElmt=null;
}SimileAjax.WindowManager._draggedElement=null;
SimileAjax.WindowManager._draggedElementCallback=null;
SimileAjax.WindowManager._potentialDropTarget=null;
SimileAjax.WindowManager._dropTargetHighlightElement=null;
SimileAjax.WindowManager._lastCoords=null;
SimileAjax.WindowManager._ghostCoords=null;
SimileAjax.WindowManager._draggingMode="";
SimileAjax.WindowManager._dragging=false;
};
SimileAjax.WindowManager._findDropTarget=function(A){while(A!=null){if("ondrop" in A&&(typeof A.ondrop)=="function"){break;
}A=A.parentNode;
}return A;
};
/* xmlhttp.js */
SimileAjax.XmlHttp=new Object();
SimileAjax.XmlHttp._onReadyStateChange=function(A,D,B){switch(A.readyState){case 4:try{if(A.status==0||A.status==200){if(B){B(A);
}}else{if(D){D(A.statusText,A.status,A);
}}}catch(C){SimileAjax.Debug.exception("XmlHttp: Error handling onReadyStateChange",C);
}break;
}};
SimileAjax.XmlHttp._createRequest=function(){if(SimileAjax.Platform.browser.isIE){var A=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
for(var B=0;
B<A.length;
B++){try{var C=A[B];
var D=function(){return new ActiveXObject(C);
};
var F=D();
SimileAjax.XmlHttp._createRequest=D;
return F;
}catch(E){}}}try{var D=function(){return new XMLHttpRequest();
};
var F=D();
SimileAjax.XmlHttp._createRequest=D;
return F;
}catch(E){throw new Error("Failed to create an XMLHttpRequest object");
}};
SimileAjax.XmlHttp.get=function(A,D,C){var B=SimileAjax.XmlHttp._createRequest();
B.open("GET",A,true);
B.onreadystatechange=function(){SimileAjax.XmlHttp._onReadyStateChange(B,D,C);
};
B.send(null);
};
SimileAjax.XmlHttp.post=function(B,A,E,D){var C=SimileAjax.XmlHttp._createRequest();
C.open("POST",B,true);
C.onreadystatechange=function(){SimileAjax.XmlHttp._onReadyStateChange(C,E,D);
};
C.send(A);
};
SimileAjax.XmlHttp._forceXML=function(A){try{A.overrideMimeType("text/xml");
}catch(B){A.setrequestheader("Content-Type","text/xml");
}};