/* jslint:disable */
﻿

/* jquery-1.3.2.min.js */
if(!("jQuery" in window)&&!("$" in window)){(function(){var W=this,AB,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(B,A){return new T.fn.init(B,A);
},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,AC=/^.[^:#\[\.,]*$/;
T.fn=T.prototype={init:function(a,B){a=a||document;
if(a.nodeType){this[0]=a;
this.length=1;
this.context=a;
return this;
}if(typeof a==="string"){var C=M.exec(a);
if(C&&(C[1]||!B)){if(C[1]){a=T.clean([C[1]],B);
}else{var A=document.getElementById(C[3]);
if(A&&A.id!=C[3]){return T().find(a);
}var D=T(A||[]);
D.context=document;
D.selector=a;
return D;
}}else{return T(B).find(a);
}}else{if(T.isFunction(a)){return T(document).ready(a);
}}if(a.selector&&a.context){this.selector=a.selector;
this.context=a.context;
}return this.setArray(T.isArray(a)?a:T.makeArray(a));
},selector:"",jquery:"1.3.2",size:function(){return this.length;
},get:function(A){return A===AB?Array.prototype.slice.call(this):this[A];
},pushStack:function(C,A,D){var B=T(C);
B.prevObject=this;
B.context=this.context;
if(A==="find"){B.selector=this.selector+(this.selector?" ":"")+D;
}else{if(A){B.selector=this.selector+"."+A+"("+D+")";
}}return B;
},setArray:function(A){this.length=0;
Array.prototype.push.apply(this,A);
return this;
},each:function(A,B){return T.each(this,A,B);
},index:function(A){return T.inArray(A&&A.jquery?A[0]:A,this);
},attr:function(C,A,B){var D=C;
if(typeof C==="string"){if(A===AB){return this[0]&&T[B||"attr"](this[0],C);
}else{D={};
D[C]=A;
}}return this.each(function(a){for(C in D){T.attr(B?this.style:this,C,T.prop(this,D[C],B,a,C));
}});
},css:function(B,A){if((B=="width"||B=="height")&&parseFloat(A)<0){A=AB;
}return this.attr(B,A,"curCSS");
},text:function(A){if(typeof A!=="object"&&A!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(A));
}var B="";
T.each(A||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){B+=this.nodeType!=1?this.nodeValue:T.fn.text([this]);
}});
});
return B;
},wrapAll:function(B){if(this[0]){var A=T(B,this[0].ownerDocument).clone();
if(this[0].parentNode){A.insertBefore(this[0]);
}A.map(function(){var C=this;
while(C.firstChild){C=C.firstChild;
}return C;
}).append(this);
}return this;
},wrapInner:function(A){return this.each(function(){T(this).contents().wrapAll(A);
});
},wrap:function(A){return this.each(function(){T(this).wrapAll(A);
});
},append:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.appendChild(A);
}});
},prepend:function(){return this.domManip(arguments,true,function(A){if(this.nodeType==1){this.insertBefore(A,this.firstChild);
}});
},before:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this);
});
},after:function(){return this.domManip(arguments,false,function(A){this.parentNode.insertBefore(A,this.nextSibling);
});
},end:function(){return this.prevObject||T([]);
},push:[].push,sort:[].sort,splice:[].splice,find:function(B){if(this.length===1){var A=this.pushStack([],"find",B);
A.length=0;
T.find(B,this[0],A);
return A;
}else{return this.pushStack(T.unique(T.map(this,function(C){return T.find(B,C);
})),"find",B);
}},clone:function(B){var D=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var b=this.outerHTML;
if(!b){var a=this.ownerDocument.createElement("div");
a.appendChild(this.cloneNode(true));
b=a.innerHTML;
}return T.clean([b.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];
}else{return this.cloneNode(true);
}});
if(B===true){var A=this.find("*").andSelf(),C=0;
D.find("*").andSelf().each(function(){if(this.nodeName!==A[C].nodeName){return ;
}var c=T.data(A[C],"events");
for(var a in c){for(var b in c[a]){T.event.add(this,a,c[a][b],c[a][b].data);
}}C++;
});
}return D;
},filter:function(A){return this.pushStack(T.isFunction(A)&&T.grep(this,function(B,C){return A.call(B,C);
})||T.multiFilter(A,T.grep(this,function(B){return B.nodeType===1;
})),"filter",A);
},closest:function(C){var A=T.expr.match.POS.test(C)?T(C):null,B=0;
return this.map(function(){var D=this;
while(D&&D.ownerDocument){if(A?A.index(D)>-1:T(D).is(C)){T.data(D,"closest",B);
return D;
}D=D.parentNode;
B++;
}});
},not:function(B){if(typeof B==="string"){if(AC.test(B)){return this.pushStack(T.multiFilter(B,this,true),"not",B);
}else{B=T.multiFilter(B,this);
}}var A=B.length&&B[B.length-1]!==AB&&!B.nodeType;
return this.filter(function(){return A?T.inArray(this,B)<0:this!=B;
});
},add:function(A){return this.pushStack(T.unique(T.merge(this.get(),typeof A==="string"?T(A):T.makeArray(A))));
},is:function(A){return !!A&&T.multiFilter(A,this).length>0;
},hasClass:function(A){return !!A&&this.is("."+A);
},val:function(C){if(C===AB){var e=this[0];
if(e){if(T.nodeName(e,"option")){return(e.attributes.value||{}).specified?e.value:e.text;
}if(T.nodeName(e,"select")){var a=e.selectedIndex,B=[],A=e.options,b=e.type=="select-one";
if(a<0){return null;
}for(var d=b?a:0,D=b?a+1:A.length;
d<D;
d++){var c=A[d];
if(c.selected){C=T(c).val();
if(b){return C;
}B.push(C);
}}return B;
}return(e.value||"").replace(/\r/g,"");
}return AB;
}if(typeof C==="number"){C+="";
}return this.each(function(){if(this.nodeType!=1){return ;
}if(T.isArray(C)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,C)>=0||T.inArray(this.name,C)>=0);
}else{if(T.nodeName(this,"select")){var f=T.makeArray(C);
T("option",this).each(function(){this.selected=(T.inArray(this.value,f)>=0||T.inArray(this.text,f)>=0);
});
if(!f.length){this.selectedIndex=-1;
}}else{this.value=C;
}}});
},html:function(A){return A===AB?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(A);
},replaceWith:function(A){return this.after(A).remove();
},eq:function(A){return this.slice(A,+A+1);
},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));
},map:function(A){return this.pushStack(T.map(this,function(B,C){return A.call(B,C,B);
}));
},andSelf:function(){return this.add(this.prevObject);
},domManip:function(D,A,B){if(this[0]){var a=(this[0].ownerDocument||this[0]).createDocumentFragment(),d=T.clean(D,(this[0].ownerDocument||this[0]),a),b=a.firstChild;
if(b){for(var c=0,e=this.length;
c<e;
c++){B.call(C(this[c],b),this.length>1||c>0?a.cloneNode(true):a);
}}if(d){T.each(d,E);
}}return this;
function C(g,f){return A&&T.nodeName(g,"table")&&T.nodeName(f,"tr")?(g.getElementsByTagName("tbody")[0]||g.appendChild(g.ownerDocument.createElement("tbody"))):g;
}}};
T.fn.init.prototype=T.fn;
function E(B,A){if(A.src){T.ajax({url:A.src,async:false,dataType:"script"});
}else{T.globalEval(A.text||A.textContent||A.innerHTML||"");
}if(A.parentNode){A.parentNode.removeChild(A);
}}function AD(){return +new Date;
}T.extend=T.fn.extend=function(){var C=arguments[0]||{},a=1,D=arguments.length,d=false,b;
if(typeof C==="boolean"){d=C;
C=arguments[1]||{};
a=2;
}if(typeof C!=="object"&&!T.isFunction(C)){C={};
}if(D==a){C=this;
--a;
}for(;
a<D;
a++){if((b=arguments[a])!=null){for(var c in b){var B=C[c],A=b[c];
if(C===A){continue;
}if(d&&A&&typeof A==="object"&&!A.nodeType){C[c]=T.extend(d,B||(A.length!=null?[]:{}),A);
}else{if(A!==AB){C[c]=A;
}}}}}return C;
};
var AG=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;
T.extend({noConflict:function(A){W.$=S;
if(A){W.jQuery=F;
}return T;
},isFunction:function(A){return L.call(A)==="[object Function]";
},isArray:function(A){return L.call(A)==="[object Array]";
},isXMLDoc:function(A){return A.nodeType===9&&A.documentElement.nodeName!=="HTML"||!!A.ownerDocument&&T.isXMLDoc(A.ownerDocument);
},globalEval:function(A){if(A&&/\S/.test(A)){var B=document.getElementsByTagName("head")[0]||document.documentElement,C=document.createElement("script");
C.type="text/javascript";
if(T.support.scriptEval){C.appendChild(document.createTextNode(A));
}else{C.text=A;
}B.insertBefore(C,B.firstChild);
B.removeChild(C);
}},nodeName:function(A,B){return A.nodeName&&A.nodeName.toUpperCase()==B.toUpperCase();
},each:function(a,A,b){var c,D=0,C=a.length;
if(b){if(C===AB){for(c in a){if(A.apply(a[c],b)===false){break;
}}}else{for(;
D<C;
){if(A.apply(a[D++],b)===false){break;
}}}}else{if(C===AB){for(c in a){if(A.call(a[c],c,a[c])===false){break;
}}}else{for(var B=a[0];
D<C&&A.call(B,D,B)!==false;
B=a[++D]){}}}return a;
},prop:function(B,A,C,D,a){if(T.isFunction(A)){A=A.call(B,D);
}return typeof A==="number"&&C=="curCSS"&&!AG.test(a)?A+"px":A;
},className:{add:function(B,A){T.each((A||"").split(/\s+/),function(D,C){if(B.nodeType==1&&!T.className.has(B.className,C)){B.className+=(B.className?" ":"")+C;
}});
},remove:function(B,A){if(B.nodeType==1){B.className=A!==AB?T.grep(B.className.split(/\s+/),function(C){return !T.className.has(A,C);
}).join(" "):"";
}},has:function(A,B){return A&&T.inArray(B,(A.className||A).toString().split(/\s+/))>-1;
}},swap:function(B,C,A){var a={};
for(var D in C){a[D]=B.style[D];
B.style[D]=C[D];
}A.call(B);
for(var D in C){B.style[D]=a[D];
}},css:function(a,c,C,d){if(c=="width"||c=="height"){var A,b={position:"absolute",visibility:"hidden",display:"block"},B=c=="width"?["Left","Right"]:["Top","Bottom"];
function D(){A=c=="width"?a.offsetWidth:a.offsetHeight;
if(d==="border"){return ;
}T.each(B,function(){if(!d){A-=parseFloat(T.curCSS(a,"padding"+this,true))||0;
}if(d==="margin"){A+=parseFloat(T.curCSS(a,"margin"+this,true))||0;
}else{A-=parseFloat(T.curCSS(a,"border"+this+"Width",true))||0;
}});
}if(a.offsetWidth!==0){D();
}else{T.swap(a,b,D);
}return Math.max(0,Math.round(A));
}return T.curCSS(a,c,C);
},curCSS:function(a,d,c){var B,e=a.style;
if(d=="opacity"&&!T.support.opacity){B=T.attr(e,"opacity");
return B==""?"1":B;
}if(d.match(/float/i)){d=H;
}if(!c&&e&&e[d]){B=e[d];
}else{if(Q.getComputedStyle){if(d.match(/float/i)){d="float";
}d=d.replace(/([A-Z])/g,"-$1").toLowerCase();
var A=Q.getComputedStyle(a,null);
if(A){B=A.getPropertyValue(d);
}if(d=="opacity"&&B==""){B="1";
}}else{if(a.currentStyle){var D=d.replace(/\-(\w)/g,function(g,f){return f.toUpperCase();
});
B=a.currentStyle[d]||a.currentStyle[D];
if(!/^\d+(px)?$/i.test(B)&&/^\d/.test(B)){var b=e.left,C=a.runtimeStyle.left;
a.runtimeStyle.left=a.currentStyle.left;
e.left=B||0;
B=e.pixelLeft+"px";
e.left=b;
a.runtimeStyle.left=C;
}}}}return B;
},clean:function(c,B,D){B=B||document;
if(typeof B.createElement==="undefined"){B=B.ownerDocument||B[0]&&B[0].ownerDocument||document;
}if(!D&&c.length===1&&typeof c[0]==="string"){var a=/^<(\w+)\s*\/?>$/.exec(c[0]);
if(a){return[B.createElement(a[1])];
}}var b=[],d=[],A=B.createElement("div");
T.each(c,function(h,e){if(typeof e==="number"){e+="";
}if(!e){return ;
}if(typeof e==="string"){e=e.replace(/(<(\w+)[^>]*?)\/>/g,function(m,l,n){return n.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?m:l+"></"+n+">";
});
var i=e.replace(/^\s+/,"").substring(0,10).toLowerCase();
var g=!i.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!i.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||i.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!i.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!i.indexOf("<td")||!i.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!i.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
A.innerHTML=g[1]+e+g[2];
while(g[0]--){A=A.lastChild;
}if(!T.support.tbody){var f=/<tbody/i.test(e),j=!i.indexOf("<table")&&!f?A.firstChild&&A.firstChild.childNodes:g[1]=="<table>"&&!f?A.childNodes:[];
for(var k=j.length-1;
k>=0;
--k){if(T.nodeName(j[k],"tbody")&&!j[k].childNodes.length){j[k].parentNode.removeChild(j[k]);
}}}if(!T.support.leadingWhitespace&&/^\s/.test(e)){A.insertBefore(B.createTextNode(e.match(/^\s*/)[0]),A.firstChild);
}e=T.makeArray(A.childNodes);
}if(e.nodeType){b.push(e);
}else{b=T.merge(b,e);
}});
if(D){for(var C=0;
b[C];
C++){if(T.nodeName(b[C],"script")&&(!b[C].type||b[C].type.toLowerCase()==="text/javascript")){d.push(b[C].parentNode?b[C].parentNode.removeChild(b[C]):b[C]);
}else{if(b[C].nodeType===1){b.splice.apply(b,[C+1,0].concat(T.makeArray(b[C].getElementsByTagName("script"))));
}D.appendChild(b[C]);
}}return d;
}return b;
},attr:function(C,b,B){if(!C||C.nodeType==3||C.nodeType==8){return AB;
}var a=!T.isXMLDoc(C),A=B!==AB;
b=a&&T.props[b]||b;
if(C.tagName){var c=/href|src|style/.test(b);
if(b=="selected"&&C.parentNode){C.parentNode.selectedIndex;
}if(b in C&&a&&!c){if(A){if(b=="type"&&T.nodeName(C,"input")&&C.parentNode){throw"type property can't be changed";
}C[b]=B;
}if(T.nodeName(C,"form")&&C.getAttributeNode(b)){return C.getAttributeNode(b).nodeValue;
}if(b=="tabIndex"){var D=C.getAttributeNode("tabIndex");
return D&&D.specified?D.value:C.nodeName.match(/(button|input|object|select|textarea)/i)?0:C.nodeName.match(/^(a|area)$/i)&&C.href?0:AB;
}return C[b];
}if(!T.support.style&&a&&b=="style"){return T.attr(C.style,"cssText",B);
}if(A){C.setAttribute(b,""+B);
}var d=!T.support.hrefNormalized&&a&&c?C.getAttribute(b,2):C.getAttribute(b);
return d===null?AB:d;
}if(!T.support.opacity&&b=="opacity"){if(A){C.zoom=1;
C.filter=(C.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(B)+""=="NaN"?"":"alpha(opacity="+B*100+")");
}return C.filter&&C.filter.indexOf("opacity=")>=0?(parseFloat(C.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";
}b=b.replace(/-([a-z])/ig,function(f,e){return e.toUpperCase();
});
if(A){C[b]=B;
}return C[b];
},trim:function(A){return(A||"").replace(/^\s+|\s+$/g,"");
},makeArray:function(A){var C=[];
if(A!=null){var B=A.length;
if(B==null||typeof A==="string"||T.isFunction(A)||A.setInterval){C[0]=A;
}else{while(B){C[--B]=A[B];
}}}return C;
},inArray:function(B,A){for(var D=0,C=A.length;
D<C;
D++){if(A[D]===B){return D;
}}return -1;
},merge:function(B,a){var D=0,C,A=B.length;
if(!T.support.getAll){while((C=a[D++])!=null){if(C.nodeType!=8){B[A++]=C;
}}}else{while((C=a[D++])!=null){B[A++]=C;
}}return B;
},unique:function(A){var b=[],c={};
try{for(var a=0,D=A.length;
a<D;
a++){var B=T.data(A[a]);
if(!c[B]){c[B]=true;
b.push(A[a]);
}}}catch(C){b=A;
}return b;
},grep:function(a,A,b){var D=[];
for(var C=0,B=a.length;
C<B;
C++){if(!b!=!A(a[C],C)){D.push(a[C]);
}}return D;
},map:function(b,A){var a=[];
for(var D=0,C=b.length;
D<C;
D++){var B=A(b[D],D);
if(B!=null){a[a.length]=B;
}}return a.concat.apply([],a);
}});
var O=navigator.userAgent.toLowerCase();
T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};
T.each({parent:function(A){return A.parentNode;
},parents:function(A){return T.dir(A,"parentNode");
},next:function(A){return T.nth(A,2,"nextSibling");
},prev:function(A){return T.nth(A,2,"previousSibling");
},nextAll:function(A){return T.dir(A,"nextSibling");
},prevAll:function(A){return T.dir(A,"previousSibling");
},siblings:function(A){return T.sibling(A.parentNode.firstChild,A);
},children:function(A){return T.sibling(A.firstChild);
},contents:function(A){return T.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:T.makeArray(A.childNodes);
}},function(B,A){T.fn[B]=function(D){var C=T.map(this,A);
if(D&&typeof D=="string"){C=T.multiFilter(D,C);
}return this.pushStack(T.unique(C),B,D);
};
});
T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(B,A){T.fn[B]=function(d){var a=[],C=T(d);
for(var D=0,c=C.length;
D<c;
D++){var b=(D>0?this.clone(true):this).get();
T.fn[A].apply(T(C[D]),b);
a=a.concat(b);
}return this.pushStack(a,B,d);
};
});
T.each({removeAttr:function(A){T.attr(this,A,"");
if(this.nodeType==1){this.removeAttribute(A);
}},addClass:function(A){T.className.add(this,A);
},removeClass:function(A){T.className.remove(this,A);
},toggleClass:function(A,B){if(typeof B!=="boolean"){B=!T.className.has(this,A);
}T.className[B?"add":"remove"](this,A);
},remove:function(A){if(!A||T.filter(A,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);
T.removeData(this);
});
if(this.parentNode){this.parentNode.removeChild(this);
}}},empty:function(){T(this).children().remove();
while(this.firstChild){this.removeChild(this.firstChild);
}}},function(B,A){T.fn[B]=function(){return this.each(A,arguments);
};
});
function Y(B,A){return B[0]&&parseInt(T.curCSS(B[0],A,true),10)||0;
}var AA="jQuery"+AD(),I=0,R={};
T.extend({cache:{},data:function(C,D,B){C=C==W?R:C;
var A=C[AA];
if(!A){A=C[AA]=++I;
}if(D&&!T.cache[A]){T.cache[A]={};
}if(B!==AB){T.cache[A][D]=B;
}return D?T.cache[A][D]:A;
},removeData:function(C,D){C=C==W?R:C;
var A=C[AA];
if(D){if(T.cache[A]){delete T.cache[A][D];
D="";
for(D in T.cache[A]){break;
}if(!D){T.removeData(C);
}}}else{try{delete C[AA];
}catch(B){if(C.removeAttribute){C.removeAttribute(AA);
}}delete T.cache[A];
}},queue:function(C,D,A){if(C){D=(D||"fx")+"queue";
var B=T.data(C,D);
if(!B||T.isArray(A)){B=T.data(C,D,T.makeArray(A));
}else{if(A){B.push(A);
}}}return B;
},dequeue:function(A,B){var D=T.queue(A,B),C=D.shift();
if(!B||B==="fx"){C=D[0];
}if(C!==AB){C.call(A);
}}});
T.fn.extend({data:function(D,B){var A=D.split(".");
A[1]=A[1]?"."+A[1]:"";
if(B===AB){var C=this.triggerHandler("getData"+A[1]+"!",[A[0]]);
if(C===AB&&this.length){C=T.data(this[0],D);
}return C===AB&&A[1]?this.data(A[0]):C;
}else{return this.trigger("setData"+A[1]+"!",[A[0],B]).each(function(){T.data(this,D,B);
});
}},removeData:function(A){return this.each(function(){T.removeData(this,A);
});
},queue:function(B,A){if(typeof B!=="string"){A=B;
B="fx";
}if(A===AB){return T.queue(this[0],B);
}return this.each(function(){var C=T.queue(this,B,A);
if(B=="fx"&&C.length==1){C[0].call(this);
}});
},dequeue:function(A){return this.each(function(){T.dequeue(this,A);
});
}});
(function(){var B=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,d=0,h=Object.prototype.toString;
var j=function(n,r,AI,z){AI=AI||[];
r=r||document;
if(r.nodeType!==1&&r.nodeType!==9){return[];
}if(!n||typeof n!=="string"){return AI;
}var m=[],p,w,t,s,y,q,o=true;
B.lastIndex=0;
while((p=B.exec(n))!==null){m.push(p[1]);
if(p[2]){q=RegExp.rightContext;
break;
}}if(m.length>1&&c.exec(n)){if(m.length===2&&g.relative[m[0]]){w=f(m[0]+m[1],r);
}else{w=g.relative[m[0]]?[r]:j(m.shift(),r);
while(m.length){n=m.shift();
if(g.relative[n]){n+=m.shift();
}w=f(n,w);
}}}else{var x=z?{expr:m.pop(),set:k(z)}:j.find(m.pop(),m.length===1&&r.parentNode?r.parentNode:r,C(r));
w=j.filter(x.expr,x.set);
if(m.length>0){t=k(w);
}else{o=false;
}while(m.length){var u=m.pop(),v=u;
if(!g.relative[u]){u="";
}else{v=m.pop();
}if(v==null){v=r;
}g.relative[u](t,v,C(r));
}}if(!t){t=w;
}if(!t){throw"Syntax error, unrecognized expression: "+(u||n);
}if(h.call(t)==="[object Array]"){if(!o){AI.push.apply(AI,t);
}else{if(r.nodeType===1){for(var l=0;
t[l]!=null;
l++){if(t[l]&&(t[l]===true||t[l].nodeType===1&&e(r,t[l]))){AI.push(w[l]);
}}}else{for(var l=0;
t[l]!=null;
l++){if(t[l]&&t[l].nodeType===1){AI.push(w[l]);
}}}}}else{k(t,AI);
}if(q){j(q,r,AI,z);
if(i){hasDuplicate=false;
AI.sort(i);
if(hasDuplicate){for(var l=1;
l<AI.length;
l++){if(AI[l]===AI[l-1]){AI.splice(l--,1);
}}}}}return AI;
};
j.matches=function(m,l){return j(m,null,null,l);
};
j.find=function(l,s,t){var m,o;
if(!l){return[];
}for(var p=0,q=g.order.length;
p<q;
p++){var n=g.order[p],o;
if((o=g.match[n].exec(l))){var r=RegExp.leftContext;
if(r.substr(r.length-1)!=="\\"){o[1]=(o[1]||"").replace(/\\/g,"");
m=g.find[n](o,s,t);
if(m!=null){l=l.replace(g.match[n],"");
break;
}}}}if(!m){m=s.getElementsByTagName("*");
}return{set:m,expr:l};
};
j.filter=function(y,z,v,p){var q=y,t=[],l=z,n,s,m=z&&z[0]&&C(z[0]);
while(y&&z.length){for(var AI in g.filter){if((n=g.match[AI].exec(y))!=null){var r=g.filter[AI],u,w;
s=false;
if(l==t){t=[];
}if(g.preFilter[AI]){n=g.preFilter[AI](n,l,v,t,p,m);
if(!n){s=u=true;
}else{if(n===true){continue;
}}}if(n){for(var o=0;
(w=l[o])!=null;
o++){if(w){u=r(w,n,o,l);
var x=p^!!u;
if(v&&u!=null){if(x){s=true;
}else{l[o]=false;
}}else{if(x){t.push(w);
s=true;
}}}}}if(u!==AB){if(!v){l=t;
}y=y.replace(g.match[AI],"");
if(!s){return[];
}break;
}}}if(y==q){if(s==null){throw"Syntax error, unrecognized expression: "+y;
}else{break;
}}q=y;
}return l;
};
var g=j.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(l){return l.getAttribute("href");
}},relative:{"+":function(l,s,m){var o=typeof s==="string",t=o&&!/\W/.test(s),n=o&&!t;
if(t&&!m){s=s.toUpperCase();
}for(var p=0,q=l.length,r;
p<q;
p++){if((r=l[p])){while((r=r.previousSibling)&&r.nodeType!==1){}l[p]=n||r&&r.nodeName===s?r||false:r===s;
}}if(n){j.filter(s,l,true);
}},">":function(q,n,p){var s=typeof n==="string";
if(s&&!/\W/.test(n)){n=p?n:n.toUpperCase();
for(var m=0,o=q.length;
m<o;
m++){var r=q[m];
if(r){var l=r.parentNode;
q[m]=l.nodeName===n?l:false;
}}}else{for(var m=0,o=q.length;
m<o;
m++){var r=q[m];
if(r){q[m]=s?r.parentNode:r.parentNode===n;
}}if(s){j.filter(n,q,true);
}}},"":function(l,n,p){var m=d++,o=A;
if(!n.match(/\W/)){var q=n=p?n:n.toUpperCase();
o=D;
}o("parentNode",n,m,l,q,p);
},"~":function(l,n,p){var m=d++,o=A;
if(typeof n==="string"&&!n.match(/\W/)){var q=n=p?n:n.toUpperCase();
o=D;
}o("previousSibling",n,m,l,q,p);
}},find:{ID:function(n,m,l){if(typeof m.getElementById!=="undefined"&&!l){var o=m.getElementById(n[1]);
return o?[o]:[];
}},NAME:function(m,q,p){if(typeof q.getElementsByName!=="undefined"){var n=[],r=q.getElementsByName(m[1]);
for(var l=0,o=r.length;
l<o;
l++){if(r[l].getAttribute("name")===m[1]){n.push(r[l]);
}}return n.length===0?null:n;
}},TAG:function(m,l){return l.getElementsByTagName(m[1]);
}},preFilter:{CLASS:function(l,n,m,o,q,p){l=" "+l[1].replace(/\\/g,"")+" ";
if(p){return l;
}for(var s=0,r;
(r=n[s])!=null;
s++){if(r){if(q^(r.className&&(" "+r.className+" ").indexOf(l)>=0)){if(!m){o.push(r);
}}else{if(m){n[s]=false;
}}}}return false;
},ID:function(l){return l[1].replace(/\\/g,"");
},TAG:function(m,n){for(var l=0;
n[l]===false;
l++){}return n[l]&&C(n[l])?m[1]:m[1].toUpperCase();
},CHILD:function(m){if(m[1]=="nth"){var l=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[2]=="even"&&"2n"||m[2]=="odd"&&"2n+1"||!/\D/.test(m[2])&&"0n+"+m[2]||m[2]);
m[2]=(l[1]+(l[2]||1))-0;
m[3]=l[3]-0;
}m[0]=d++;
return m;
},ATTR:function(r,n,m,o,q,p){var l=r[1].replace(/\\/g,"");
if(!p&&g.attrMap[l]){r[1]=g.attrMap[l];
}if(r[2]==="~="){r[4]=" "+r[4]+" ";
}return r;
},PSEUDO:function(q,n,m,o,p){if(q[1]==="not"){if(q[3].match(B).length>1||/^\w/.test(q[3])){q[3]=j(q[3],null,null,n);
}else{var l=j.filter(q[3],n,m,true^p);
if(!m){o.push.apply(o,l);
}return false;
}}else{if(g.match.POS.test(q[0])||g.match.CHILD.test(q[0])){return true;
}}return q;
},POS:function(l){l.unshift(true);
return l;
}},filters:{enabled:function(l){return l.disabled===false&&l.type!=="hidden";
},disabled:function(l){return l.disabled===true;
},checked:function(l){return l.checked===true;
},selected:function(l){l.parentNode.selectedIndex;
return l.selected===true;
},parent:function(l){return !!l.firstChild;
},empty:function(l){return !l.firstChild;
},has:function(l,m,n){return !!j(n[3],l).length;
},header:function(l){return/h\d/i.test(l.nodeName);
},text:function(l){return"text"===l.type;
},radio:function(l){return"radio"===l.type;
},checkbox:function(l){return"checkbox"===l.type;
},file:function(l){return"file"===l.type;
},password:function(l){return"password"===l.type;
},submit:function(l){return"submit"===l.type;
},image:function(l){return"image"===l.type;
},reset:function(l){return"reset"===l.type;
},button:function(l){return"button"===l.type||l.nodeName.toUpperCase()==="BUTTON";
},input:function(l){return/input|select|textarea|button/i.test(l.nodeName);
}},setFilters:{first:function(l,m){return m===0;
},last:function(m,n,o,l){return n===l.length-1;
},even:function(l,m){return m%2===0;
},odd:function(l,m){return m%2===1;
},lt:function(l,m,n){return m<n[3]-0;
},gt:function(l,m,n){return m>n[3]-0;
},nth:function(l,m,n){return n[3]-0==m;
},eq:function(l,m,n){return n[3]-0==m;
}},filter:{PSEUDO:function(q,m,l,p){var n=m[1],s=g.filters[n];
if(s){return s(q,l,m,p);
}else{if(n==="contains"){return(q.textContent||q.innerText||"").indexOf(m[3])>=0;
}else{if(n==="not"){var r=m[3];
for(var l=0,o=r.length;
l<o;
l++){if(r[l]===q){return false;
}}return true;
}}}},CHILD:function(s,p){var m=p[1],r=s;
switch(m){case"only":case"first":while(r=r.previousSibling){if(r.nodeType===1){return false;
}}if(m=="first"){return true;
}r=s;
case"last":while(r=r.nextSibling){if(r.nodeType===1){return false;
}}return true;
case"nth":var q=p[2],t=p[3];
if(q==1&&t==0){return true;
}var n=p[0],u=s.parentNode;
if(u&&(u.sizcache!==n||!s.nodeIndex)){var o=0;
for(r=u.firstChild;
r;
r=r.nextSibling){if(r.nodeType===1){r.nodeIndex=++o;
}}u.sizcache=n;
}var l=s.nodeIndex-t;
if(q==0){return l==0;
}else{return(l%q==0&&l/q>=0);
}}},ID:function(l,m){return l.nodeType===1&&l.getAttribute("id")===m;
},TAG:function(l,m){return(m==="*"&&l.nodeType===1)||l.nodeName===m;
},CLASS:function(l,m){return(" "+(l.className||l.getAttribute("class"))+" ").indexOf(m)>-1;
},ATTR:function(q,l){var m=l[1],o=g.attrHandle[m]?g.attrHandle[m](q):q[m]!=null?q[m]:q.getAttribute(m),p=o+"",r=l[2],n=l[4];
return o==null?r==="!=":r==="="?p===n:r==="*="?p.indexOf(n)>=0:r==="~="?(" "+p+" ").indexOf(n)>=0:!n?p&&o!==false:r==="!="?p!=n:r==="^="?p.indexOf(n)===0:r==="$="?p.substr(p.length-n.length)===n:r==="|="?p===n||p.substr(0,n.length+1)===n+"-":false;
},POS:function(q,n,m,p){var o=n[2],l=g.setFilters[o];
if(l){return l(q,m,n,p);
}}}};
var c=g.match.POS;
for(var a in g.match){g.match[a]=RegExp(g.match[a].source+/(?![^\[]*\])(?![^\(]*\))/.source);
}var k=function(l,m){l=Array.prototype.slice.call(l);
if(m){m.push.apply(m,l);
return m;
}return l;
};
try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(b){k=function(p,l){var n=l||[];
if(h.call(p)==="[object Array]"){Array.prototype.push.apply(n,p);
}else{if(typeof p.length==="number"){for(var m=0,o=p.length;
m<o;
m++){n.push(p[m]);
}}else{for(var m=0;
p[m];
m++){n.push(p[m]);
}}}return n;
};
}var i;
if(document.documentElement.compareDocumentPosition){i=function(m,n){var l=m.compareDocumentPosition(n)&4?-1:m===n?0:1;
if(l===0){hasDuplicate=true;
}return l;
};
}else{if("sourceIndex" in document.documentElement){i=function(m,n){var l=m.sourceIndex-n.sourceIndex;
if(l===0){hasDuplicate=true;
}return l;
};
}else{if(document.createRange){i=function(l,n){var m=l.ownerDocument.createRange(),o=n.ownerDocument.createRange();
m.selectNode(l);
m.collapse(true);
o.selectNode(n);
o.collapse(true);
var p=m.compareBoundaryPoints(Range.START_TO_END,o);
if(p===0){hasDuplicate=true;
}return p;
};
}}}(function(){var m=document.createElement("form"),l="script"+(new Date).getTime();
m.innerHTML="<input name='"+l+"'/>";
var n=document.documentElement;
n.insertBefore(m,n.firstChild);
if(!!document.getElementById(l)){g.find.ID=function(r,q,p){if(typeof q.getElementById!=="undefined"&&!p){var o=q.getElementById(r[1]);
return o?o.id===r[1]||typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id").nodeValue===r[1]?[o]:AB:[];
}};
g.filter.ID=function(p,o){var q=typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id");
return p.nodeType===1&&q&&q.nodeValue===o;
};
}n.removeChild(m);
})();
(function(){var l=document.createElement("div");
l.appendChild(document.createComment(""));
if(l.getElementsByTagName("*").length>0){g.find.TAG=function(o,p){var q=p.getElementsByTagName(o[1]);
if(o[1]==="*"){var m=[];
for(var n=0;
q[n];
n++){if(q[n].nodeType===1){m.push(q[n]);
}}q=m;
}return q;
};
}l.innerHTML="<a href='#'></a>";
if(l.firstChild&&typeof l.firstChild.getAttribute!=="undefined"&&l.firstChild.getAttribute("href")!=="#"){g.attrHandle.href=function(m){return m.getAttribute("href",2);
};
}})();
if(document.querySelectorAll){(function(){var m=j,l=document.createElement("div");
l.innerHTML="<p class='TEST'></p>";
if(l.querySelectorAll&&l.querySelectorAll(".TEST").length===0){return ;
}j=function(q,r,o,n){r=r||document;
if(!n&&r.nodeType===9&&!C(r)){try{return k(r.querySelectorAll(q),o);
}catch(p){}}return m(q,r,o,n);
};
j.find=m.find;
j.filter=m.filter;
j.selectors=m.selectors;
j.matches=m.matches;
})();
}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var l=document.createElement("div");
l.innerHTML="<div class='test e'></div><div class='test'></div>";
if(l.getElementsByClassName("e").length===0){return ;
}l.lastChild.className="e";
if(l.getElementsByClassName("e").length===1){return ;
}g.order.splice(1,0,"CLASS");
g.find.CLASS=function(o,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m){return n.getElementsByClassName(o[1]);
}};
})();
}function D(r,m,n,t,l,u){var v=r=="previousSibling"&&!u;
for(var p=0,q=t.length;
p<q;
p++){var s=t[p];
if(s){if(v&&s.nodeType===1){s.sizcache=n;
s.sizset=p;
}s=s[r];
var o=false;
while(s){if(s.sizcache===n){o=t[s.sizset];
break;
}if(s.nodeType===1&&!u){s.sizcache=n;
s.sizset=p;
}if(s.nodeName===m){o=s;
break;
}s=s[r];
}t[p]=o;
}}}function A(r,m,n,t,l,u){var v=r=="previousSibling"&&!u;
for(var p=0,q=t.length;
p<q;
p++){var s=t[p];
if(s){if(v&&s.nodeType===1){s.sizcache=n;
s.sizset=p;
}s=s[r];
var o=false;
while(s){if(s.sizcache===n){o=t[s.sizset];
break;
}if(s.nodeType===1){if(!u){s.sizcache=n;
s.sizset=p;
}if(typeof m!=="string"){if(s===m){o=true;
break;
}}else{if(j.filter(m,[s]).length>0){o=s;
break;
}}}s=s[r];
}t[p]=o;
}}}var e=document.compareDocumentPosition?function(l,m){return l.compareDocumentPosition(m)&16;
}:function(l,m){return l!==m&&(l.contains?l.contains(m):true);
};
var C=function(l){return l.nodeType===9&&l.documentElement.nodeName!=="HTML"||!!l.ownerDocument&&C(l.ownerDocument);
};
var f=function(o,q){var l=[],s="",r,m=q.nodeType?[q]:q;
while((r=g.match.PSEUDO.exec(o))){s+=r[0];
o=o.replace(g.match.PSEUDO,"");
}o=g.relative[o]?o+"*":o;
for(var p=0,n=m.length;
p<n;
p++){j(o,m[p],l);
}return j.filter(s,l);
};
T.find=j;
T.filter=j.filter;
T.expr=j.selectors;
T.expr[":"]=T.expr.filters;
j.selectors.filters.hidden=function(l){return l.offsetWidth===0||l.offsetHeight===0;
};
j.selectors.filters.visible=function(l){return l.offsetWidth>0||l.offsetHeight>0;
};
j.selectors.filters.animated=function(l){return T.grep(T.timers,function(m){return l===m.elem;
}).length;
};
T.multiFilter=function(l,n,m){if(m){l=":not("+l+")";
}return j.matches(l,n);
};
T.dir=function(m,n){var o=[],l=m[n];
while(l&&l!=document){if(l.nodeType==1){o.push(l);
}l=l[n];
}return o;
};
T.nth=function(p,o,m,l){o=o||1;
var n=0;
for(;
p;
p=p[m]){if(p.nodeType==1&&++n==o){break;
}}return p;
};
T.sibling=function(l,m){var n=[];
for(;
l;
l=l.nextSibling){if(l.nodeType==1&&l!=m){n.push(l);
}}return n;
};
return ;
W.Sizzle=j;
})();
T.event={add:function(C,b,D,A){if(C.nodeType==3||C.nodeType==8){return ;
}if(C.setInterval&&C!=W){C=W;
}if(!D.guid){D.guid=this.guid++;
}if(A!==AB){var a=D;
D=this.proxy(a);
D.data=A;
}var c=T.data(C,"events")||T.data(C,"events",{}),B=T.data(C,"handle")||T.data(C,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):AB;
});
B.elem=C;
T.each(b.split(/\s+/),function(g,f){var e=f.split(".");
f=e.shift();
D.type=e.slice().sort().join(".");
var d=c[f];
if(T.event.specialAll[f]){T.event.specialAll[f].setup.call(C,A,e);
}if(!d){d=c[f]={};
if(!T.event.special[f]||T.event.special[f].setup.call(C,A,e)===false){if(C.addEventListener){C.addEventListener(f,B,false);
}else{if(C.attachEvent){C.attachEvent("on"+f,B);
}}}}d[D.guid]=D;
T.event.global[f]=true;
});
C=null;
},guid:1,global:{},remove:function(B,a,C){if(B.nodeType==3||B.nodeType==8){return ;
}var b=T.data(B,"events"),c,d;
if(b){if(a===AB||(typeof a==="string"&&a.charAt(0)==".")){for(var D in b){this.remove(B,D+(a||""));
}}else{if(a.type){C=a.handler;
a=a.type;
}T.each(a.split(/\s+/),function(i,g){var e=g.split(".");
g=e.shift();
var h=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");
if(b[g]){if(C){delete b[g][C.guid];
}else{for(var f in b[g]){if(h.test(b[g][f].type)){delete b[g][f];
}}}if(T.event.specialAll[g]){T.event.specialAll[g].teardown.call(B,e);
}for(c in b[g]){break;
}if(!c){if(!T.event.special[g]||T.event.special[g].teardown.call(B,e)===false){if(B.removeEventListener){B.removeEventListener(g,T.data(B,"handle"),false);
}else{if(B.detachEvent){B.detachEvent("on"+g,T.data(B,"handle"));
}}}c=null;
delete b[g];
}}});
}for(c in b){break;
}if(!c){var A=T.data(B,"handle");
if(A){A.elem=null;
}T.removeData(B,"events");
T.removeData(B,"handle");
}}},trigger:function(D,B,a,d){var b=D.type||D;
if(!d){D=typeof D==="object"?D[AA]?D:T.extend(T.Event(b),D):T.Event(b);
if(b.indexOf("!")>=0){D.type=b=b.slice(0,-1);
D.exclusive=true;
}if(!a){D.stopPropagation();
if(this.global[b]){T.each(T.cache,function(){if(this.events&&this.events[b]){T.event.trigger(D,B,this.handle.elem);
}});
}}if(!a||a.nodeType==3||a.nodeType==8){return AB;
}D.result=AB;
D.target=a;
B=T.makeArray(B);
B.unshift(D);
}D.currentTarget=a;
var C=T.data(a,"handle");
if(C){C.apply(a,B);
}if((!a[b]||(T.nodeName(a,"a")&&b=="click"))&&a["on"+b]&&a["on"+b].apply(a,B)===false){D.result=false;
}if(!d&&a[b]&&!D.isDefaultPrevented()&&!(T.nodeName(a,"a")&&b=="click")){this.triggered=true;
try{a[b]();
}catch(A){}}this.triggered=false;
if(!D.isPropagationStopped()){var c=a.parentNode||a.ownerDocument;
if(c){T.event.trigger(D,B,c,true);
}}},handle:function(B){var C,d;
B=arguments[0]=T.event.fix(B||W.event);
B.currentTarget=this;
var A=B.type.split(".");
B.type=A.shift();
C=!A.length&&!B.exclusive;
var D=RegExp("(^|\\.)"+A.slice().sort().join(".*\\.")+"(\\.|$)");
d=(T.data(this,"events")||{})[B.type];
for(var b in d){var a=d[b];
if(C||D.test(a.type)){B.handler=a;
B.data=a.data;
var c=a.apply(this,arguments);
if(c!==AB){B.result=c;
if(c===false){B.preventDefault();
B.stopPropagation();
}}if(B.isImmediatePropagationStopped()){break;
}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(C){if(C[AA]){return C;
}var a=C;
C=T.Event(a);
for(var D=this.props.length,A;
D;
){A=this.props[--D];
C[A]=a[A];
}if(!C.target){C.target=C.srcElement||document;
}if(C.target.nodeType==3){C.target=C.target.parentNode;
}if(!C.relatedTarget&&C.fromElement){C.relatedTarget=C.fromElement==C.target?C.toElement:C.fromElement;
}if(C.pageX==null&&C.clientX!=null){var B=document.documentElement,b=document.body;
C.pageX=C.clientX+(B&&B.scrollLeft||b&&b.scrollLeft||0)-(B.clientLeft||0);
C.pageY=C.clientY+(B&&B.scrollTop||b&&b.scrollTop||0)-(B.clientTop||0);
}if(!C.which&&((C.charCode||C.charCode===0)?C.charCode:C.keyCode)){C.which=C.charCode||C.keyCode;
}if(!C.metaKey&&C.ctrlKey){C.metaKey=C.ctrlKey;
}if(!C.which&&C.button){C.which=(C.button&1?1:(C.button&2?3:(C.button&4?2:0)));
}return C;
},proxy:function(A,B){B=B||function(){return A.apply(this,arguments);
};
B.guid=A.guid=A.guid||B.guid||this.guid++;
return B;
},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(B,A){T.event.add(this,A[0],AF);
},teardown:function(A){if(A.length){var C=0,B=RegExp("(^|\\.)"+A[0]+"(\\.|$)");
T.each((T.data(this,"events").live||{}),function(){if(B.test(this.type)){C++;
}});
if(C<1){T.event.remove(this,A[0],AF);
}}}}}};
T.Event=function(A){if(!this.preventDefault){return new T.Event(A);
}if(A&&A.type){this.originalEvent=A;
this.type=A.type;
}else{this.type=A;
}this.timeStamp=AD();
this[AA]=true;
};
function X(){return false;
}function J(){return true;
}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;
var A=this.originalEvent;
if(!A){return ;
}if(A.preventDefault){A.preventDefault();
}A.returnValue=false;
},stopPropagation:function(){this.isPropagationStopped=J;
var A=this.originalEvent;
if(!A){return ;
}if(A.stopPropagation){A.stopPropagation();
}A.cancelBubble=true;
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;
this.stopPropagation();
},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};
var AH=function(B){var C=B.relatedTarget;
while(C&&C!=this){try{C=C.parentNode;
}catch(A){C=this;
}}if(C!=this){B.type=B.data;
T.event.handle.apply(this,arguments);
}};
T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(A,B){T.event.special[B]={setup:function(){T.event.add(this,A,AH,B);
},teardown:function(){T.event.remove(this,A,AH);
}};
});
T.fn.extend({bind:function(B,A,C){return B=="unload"?this.one(B,A,C):this.each(function(){T.event.add(this,B,C||A,C&&A);
});
},one:function(B,A,C){var D=T.event.proxy(C||A,function(a){T(this).unbind(a,D);
return(C||A).apply(this,arguments);
});
return this.each(function(){T.event.add(this,B,D,C&&A);
});
},unbind:function(A,B){return this.each(function(){T.event.remove(this,A,B);
});
},trigger:function(B,A){return this.each(function(){T.event.trigger(B,A,this);
});
},triggerHandler:function(C,A){if(this[0]){var B=T.Event(C);
B.preventDefault();
B.stopPropagation();
T.event.trigger(B,A,this[0]);
return B.result;
}},toggle:function(A){var C=arguments,B=1;
while(B<C.length){T.event.proxy(A,C[B++]);
}return this.click(T.event.proxy(A,function(D){this.lastToggle=(this.lastToggle||0)%B;
D.preventDefault();
return C[this.lastToggle++].apply(this,arguments)||false;
}));
},hover:function(B,A){return this.mouseenter(B).mouseleave(A);
},ready:function(A){P();
if(T.isReady){A.call(document,T);
}else{T.readyList.push(A);
}return this;
},live:function(A,B){var C=T.event.proxy(B);
C.guid+=this.selector+A;
T(document).bind(Z(A,this.selector),this.selector,C);
return this;
},die:function(A,B){T(document).unbind(Z(A,this.selector),B?{guid:B.guid+this.selector+A}:null);
return this;
}});
function AF(A){var D=RegExp("(^|\\.)"+A.type+"(\\.|$)"),B=true,C=[];
T.each(T.data(this,"events").live||[],function(c,b){if(D.test(b.type)){var a=T(A.target).closest(b.data)[0];
if(a){C.push({elem:a,fn:b});
}}});
C.sort(function(a,b){return T.data(a.elem,"closest")-T.data(b.elem,"closest");
});
T.each(C,function(){if(this.fn.call(this.elem,A,this.fn.data)===false){return(B=false);
}});
return B;
}function Z(A,B){return["live",A,B.replace(/\./g,"`").replace(/ /g,"|")].join(".");
}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;
if(T.readyList){T.each(T.readyList,function(){this.call(document,T);
});
T.readyList=null;
}T(document).triggerHandler("ready");
}}});
var G=false;
function P(){if(G){return ;
}G=true;
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
T.ready();
},false);
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
T.ready();
}});
if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return ;
}try{document.documentElement.doScroll("left");
}catch(A){setTimeout(arguments.callee,0);
return ;
}T.ready();
})();
}}}T.event.add(W,"load",T.ready);
}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(A,B){T.fn[B]=function(C){return C?this.bind(B,C):this.trigger(B);
};
});
T(W).bind("unload",function(){for(var A in T.cache){if(A!=1&&T.cache[A].handle){T.event.remove(T.cache[A].handle.elem);
}}});
(function(){T.support={};
var b=document.documentElement,a=document.createElement("script"),A=document.createElement("div"),B="script"+(new Date).getTime();
A.style.display="none";
A.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var D=A.getElementsByTagName("*"),c=A.getElementsByTagName("a")[0];
if(!D||!D.length||!c){return ;
}T.support={leadingWhitespace:A.firstChild.nodeType==3,tbody:!A.getElementsByTagName("tbody").length,objectAll:!!A.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!A.getElementsByTagName("link").length,style:/red/.test(c.getAttribute("style")),hrefNormalized:c.getAttribute("href")==="/a",opacity:c.style.opacity==="0.5",cssFloat:!!c.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
a.type="text/javascript";
try{a.appendChild(document.createTextNode("window."+B+"=1;"));
}catch(C){}b.insertBefore(a,b.firstChild);
if(W[B]){T.support.scriptEval=true;
delete W[B];
}b.removeChild(a);
if(A.attachEvent&&A.fireEvent){A.attachEvent("onclick",function(){T.support.noCloneEvent=false;
A.detachEvent("onclick",arguments.callee);
});
A.cloneNode(true).fireEvent("onclick");
}T(function(){var d=document.createElement("div");
d.style.width=d.style.paddingLeft="1px";
document.body.appendChild(d);
T.boxModel=T.support.boxModel=d.offsetWidth===2;
document.body.removeChild(d).style.display="none";
});
})();
var H=T.support.cssFloat?"cssFloat":"styleFloat";
T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
T.fn.extend({_load:T.fn.load,load:function(a,B,A){if(typeof a!=="string"){return this._load(a);
}var C=a.indexOf(" ");
if(C>=0){var c=a.slice(C,a.length);
a=a.slice(0,C);
}var D="GET";
if(B){if(T.isFunction(B)){A=B;
B=null;
}else{if(typeof B==="object"){B=T.param(B);
D="POST";
}}}var b=this;
T.ajax({url:a,type:D,dataType:"html",data:B,complete:function(e,d){if(d=="success"||d=="notmodified"){b.html(c?T("<div/>").append(e.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(c):e.responseText);
}if(A){b.each(A,[e.responseText,d,e]);
}}});
return this;
},serialize:function(){return T.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this;
}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));
}).map(function(C,B){var A=T(this).val();
return A==null?null:T.isArray(A)?T.map(A,function(D,a){return{name:B.name,value:D};
}):{name:B.name,value:A};
}).get();
}});
T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(B,A){T.fn[A]=function(C){return this.bind(A,C);
};
});
var N=AD();
T.extend({get:function(D,B,A,C){if(T.isFunction(B)){A=B;
B=null;
}return T.ajax({type:"GET",url:D,data:B,success:A,dataType:C});
},getScript:function(B,A){return T.get(B,null,A,"script");
},getJSON:function(C,B,A){return T.get(C,B,A,"json");
},post:function(D,B,A,C){if(T.isFunction(B)){A=B;
B={};
}return T.ajax({type:"POST",url:D,data:B,success:A,dataType:C});
},ajaxSetup:function(A){T.extend(T.ajaxSettings,A);
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(g){g=T.extend(true,g,T.extend(true,{},T.ajaxSettings,g));
var A,n=/=\?(&|$)/g,b,B,m=g.type.toUpperCase();
if(g.data&&g.processData&&typeof g.data!=="string"){g.data=T.param(g.data);
}if(g.dataType=="jsonp"){if(m=="GET"){if(!g.url.match(n)){g.url+=(g.url.match(/\?/)?"&":"?")+(g.jsonp||"callback")+"=?";
}}else{if(!g.data||!g.data.match(n)){g.data=(g.data?g.data+"&":"")+(g.jsonp||"callback")+"=?";
}}g.dataType="json";
}if(g.dataType=="json"&&(g.data&&g.data.match(n)||g.url.match(n))){A="jsonp"+N++;
if(g.data){g.data=(g.data+"").replace(n,"="+A+"$1");
}g.url=g.url.replace(n,"="+A+"$1");
g.dataType="script";
W[A]=function(q){B=q;
k();
h();
W[A]=AB;
try{delete W[A];
}catch(p){}if(l){l.removeChild(D);
}};
}if(g.dataType=="script"&&g.cache==null){g.cache=false;
}if(g.cache===false&&m=="GET"){var o=AD();
var C=g.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+o+"$2");
g.url=C+((C==g.url)?(g.url.match(/\?/)?"&":"?")+"_="+o:"");
}if(g.data&&m=="GET"){g.url+=(g.url.match(/\?/)?"&":"?")+g.data;
g.data=null;
}if(g.global&&!T.active++){T.event.trigger("ajaxStart");
}var c=/^(\w+:)?\/\/([^\/?#]+)/.exec(g.url);
if(g.dataType=="script"&&m=="GET"&&c&&(c[1]&&c[1]!=location.protocol||c[2]!=location.host)){var l=document.getElementsByTagName("head")[0];
var D=document.createElement("script");
D.src=g.url;
if(g.scriptCharset){D.charset=g.scriptCharset;
}if(!A){var e=false;
D.onload=D.onreadystatechange=function(){if(!e&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){e=true;
k();
h();
D.onload=D.onreadystatechange=null;
l.removeChild(D);
}};
}l.appendChild(D);
return AB;
}var i=false;
var j=g.xhr();
if(g.username){j.open(m,g.url,g.async,g.username,g.password);
}else{j.open(m,g.url,g.async);
}try{if(g.data){j.setRequestHeader("Content-Type",g.contentType);
}if(g.ifModified){j.setRequestHeader("If-Modified-Since",T.lastModified[g.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}j.setRequestHeader("X-Requested-With","XMLHttpRequest");
j.setRequestHeader("Accept",g.dataType&&g.accepts[g.dataType]?g.accepts[g.dataType]+", */*":g.accepts._default);
}catch(a){}if(g.beforeSend&&g.beforeSend(j,g)===false){if(g.global&&!--T.active){T.event.trigger("ajaxStop");
}j.abort();
return false;
}if(g.global){T.event.trigger("ajaxSend",[j,g]);
}var f=function(r){if(j.readyState==0){if(d){clearInterval(d);
d=null;
if(g.global&&!--T.active){T.event.trigger("ajaxStop");
}}}else{if(!i&&j&&(j.readyState==4||r=="timeout")){i=true;
if(d){clearInterval(d);
d=null;
}b=r=="timeout"?"timeout":!T.httpSuccess(j)?"error":g.ifModified&&T.httpNotModified(j,g.url)?"notmodified":"success";
if(b=="success"){try{B=T.httpData(j,g.dataType,g);
}catch(p){b="parsererror";
}}if(b=="success"){var q;
try{q=j.getResponseHeader("Last-Modified");
}catch(p){}if(g.ifModified&&q){T.lastModified[g.url]=q;
}if(!A){k();
}}else{T.handleError(g,j,b);
}h();
if(r){j.abort();
}if(g.async){j=null;
}}}};
if(g.async){var d=setInterval(f,13);
if(g.timeout>0){setTimeout(function(){if(j&&!i){f("timeout");
}},g.timeout);
}}try{j.send(g.data);
}catch(a){T.handleError(g,j,null,a);
}if(!g.async){f();
}function k(){if(g.success){g.success(B,b);
}if(g.global){T.event.trigger("ajaxSuccess",[j,g]);
}}function h(){if(g.complete){g.complete(j,b);
}if(g.global){T.event.trigger("ajaxComplete",[j,g]);
}if(g.global&&!--T.active){T.event.trigger("ajaxStop");
}}return j;
},handleError:function(C,A,D,B){if(C.error){C.error(A,D,B);
}if(C.global){T.event.trigger("ajaxError",[A,C,B]);
}},active:0,httpSuccess:function(A){try{return !A.status&&location.protocol=="file:"||(A.status>=200&&A.status<300)||A.status==304||A.status==1223;
}catch(B){}return false;
},httpNotModified:function(B,D){try{var A=B.getResponseHeader("Last-Modified");
return B.status==304||A==T.lastModified[D];
}catch(C){}return false;
},httpData:function(A,C,D){var a=A.getResponseHeader("content-type"),b=C=="xml"||!C&&a&&a.indexOf("xml")>=0,B=b?A.responseXML:A.responseText;
if(b&&B.documentElement.tagName=="parsererror"){throw"parsererror";
}if(D&&D.dataFilter){B=D.dataFilter(B,C);
}if(typeof B==="string"){if(C=="script"){T.globalEval(B);
}if(C=="json"){B=W["eval"]("("+B+")");
}}return B;
},param:function(D){var B=[];
function A(b,a){B[B.length]=encodeURIComponent(b)+"="+encodeURIComponent(a);
}if(T.isArray(D)||D.jquery){T.each(D,function(){A(this.name,this.value);
});
}else{for(var C in D){if(T.isArray(D[C])){T.each(D[C],function(){A(C,this);
});
}else{A(C,T.isFunction(D[C])?D[C]():D[C]);
}}}return B.join("&").replace(/%20/g,"+");
}});
var V={},U,AE=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function K(B,C){var A={};
T.each(AE.concat.apply([],AE.slice(0,C)),function(){A[this]=B;
});
return A;
}T.fn.extend({show:function(C,A){if(C){return this.animate(K("show",3),C,A);
}else{for(var a=0,c=this.length;
a<c;
a++){var d=T.data(this[a],"olddisplay");
this[a].style.display=d||"";
if(T.css(this[a],"display")==="none"){var b=this[a].tagName,B;
if(V[b]){B=V[b];
}else{var D=T("<"+b+" />").appendTo("body");
B=D.css("display");
if(B==="none"){B="block";
}D.remove();
V[b]=B;
}T.data(this[a],"olddisplay",B);
}}for(var a=0,c=this.length;
a<c;
a++){this[a].style.display=T.data(this[a],"olddisplay")||"";
}return this;
}},hide:function(B,A){if(B){return this.animate(K("hide",3),B,A);
}else{for(var C=0,D=this.length;
C<D;
C++){var a=T.data(this[C],"olddisplay");
if(!a&&a!=="none"){T.data(this[C],"olddisplay",T.css(this[C],"display"));
}}for(var C=0,D=this.length;
C<D;
C++){this[C].style.display="none";
}return this;
}},_toggle:T.fn.toggle,toggle:function(A,B){var C=typeof A==="boolean";
return T.isFunction(A)&&T.isFunction(B)?this._toggle.apply(this,arguments):A==null||C?this.each(function(){var D=C?A:T(this).is(":hidden");
T(this)[D?"show":"hide"]();
}):this.animate(K("toggle",3),A,B);
},fadeTo:function(C,A,B){return this.animate({opacity:A},C,B);
},animate:function(A,D,B,C){var a=T.speed(D,B,C);
return this[a.queue===false?"each":"queue"](function(){var c=T.extend({},a),e,b=this.nodeType==1&&T(this).is(":hidden"),d=this;
for(e in A){if(A[e]=="hide"&&b||A[e]=="show"&&!b){return c.complete.call(this);
}if((e=="height"||e=="width")&&this.style){c.display=T.css(this,"display");
c.overflow=this.style.overflow;
}}if(c.overflow!=null){this.style.overflow="hidden";
}c.curAnim=T.extend({},A);
T.each(A,function(k,g){var h=new T.fx(d,c,k);
if(/toggle|show|hide/.test(g)){h[g=="toggle"?b?"show":"hide":g](A);
}else{var i=g.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),f=h.cur(true)||0;
if(i){var l=parseFloat(i[2]),j=i[3]||"px";
if(j!="px"){d.style[k]=(l||1)+j;
f=((l||1)/h.cur(true))*f;
d.style[k]=f+j;
}if(i[1]){l=((i[1]=="-="?-1:1)*l)+f;
}h.custom(f,l,j);
}else{h.custom(f,g,"");
}}});
return true;
});
},stop:function(B,C){var A=T.timers;
if(B){this.queue([]);
}this.each(function(){for(var D=A.length-1;
D>=0;
D--){if(A[D].elem==this){if(C){A[D](true);
}A.splice(D,1);
}}});
if(!C){this.dequeue();
}return this;
}});
T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(B,A){T.fn[B]=function(D,C){return this.animate(A,D,C);
};
});
T.extend({speed:function(B,A,C){var D=typeof B==="object"?B:{complete:C||!C&&A||T.isFunction(B)&&B,duration:B,easing:C&&A||A&&!T.isFunction(A)&&A};
D.duration=T.fx.off?0:typeof D.duration==="number"?D.duration:T.fx.speeds[D.duration]||T.fx.speeds._default;
D.old=D.complete;
D.complete=function(){if(D.queue!==false){T(this).dequeue();
}if(T.isFunction(D.old)){D.old.call(this);
}};
return D;
},easing:{linear:function(B,A,D,C){return D+C*B;
},swing:function(B,A,D,C){return((-Math.cos(B*Math.PI)/2)+0.5)*C+D;
}},timers:[],fx:function(B,C,A){this.options=C;
this.elem=B;
this.prop=A;
if(!C.orig){C.orig={};
}}});
T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);
}(T.fx.step[this.prop]||T.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];
}var B=parseFloat(T.css(this.elem,this.prop,A));
return B&&B>-10000?B:parseFloat(T.curCSS(this.elem,this.prop))||0;
},custom:function(A,B,C){this.startTime=AD();
this.start=A;
this.end=B;
this.unit=C||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var a=this;
function D(b){return a.step(b);
}D.elem=this.elem;
if(D()&&T.timers.push(D)&&!U){U=setInterval(function(){var b=T.timers;
for(var c=0;
c<b.length;
c++){if(!b[c]()){b.splice(c--,1);
}}if(!b.length){clearInterval(U);
U=AB;
}},13);
}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
T(this.elem).show();
},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0);
},step:function(C){var D=AD();
if(C||D>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var b=true;
for(var a in this.options.curAnim){if(this.options.curAnim[a]!==true){b=false;
}}if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(T.css(this.elem,"display")=="none"){this.elem.style.display="block";
}}if(this.options.hide){T(this.elem).hide();
}if(this.options.hide||this.options.show){for(var B in this.options.curAnim){T.attr(this.elem.style,B,this.options.orig[B]);
}}this.options.complete.call(this.elem);
}return false;
}else{var A=D-this.startTime;
this.state=A/this.options.duration;
this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,A,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);
this.update();
}return true;
}};
T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){T.attr(A.elem.style,"opacity",A.now);
},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=A.now+A.unit;
}else{A.elem[A.prop]=A.now;
}}}});
if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0]);
}var b=this[0].getBoundingClientRect(),C=this[0].ownerDocument,c=C.body,d=C.documentElement,A=d.clientTop||c.clientTop||0,B=d.clientLeft||c.clientLeft||0,D=b.top+(self.pageYOffset||T.boxModel&&d.scrollTop||c.scrollTop)-A,a=b.left+(self.pageXOffset||T.boxModel&&d.scrollLeft||c.scrollLeft)-B;
return{top:D,left:a};
};
}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0]);
}T.offset.initialized||T.offset.initialize();
var b=this[0],e=b.offsetParent,f=b,A=b.ownerDocument,C,d=A.documentElement,a=A.body,D=A.defaultView,g=D.getComputedStyle(b,null),B=b.offsetTop,c=b.offsetLeft;
while((b=b.parentNode)&&b!==a&&b!==d){C=D.getComputedStyle(b,null);
B-=b.scrollTop,c-=b.scrollLeft;
if(b===e){B+=b.offsetTop,c+=b.offsetLeft;
if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName))){B+=parseInt(C.borderTopWidth,10)||0,c+=parseInt(C.borderLeftWidth,10)||0;
}f=e,e=b.offsetParent;
}if(T.offset.subtractsBorderForOverflowNotVisible&&C.overflow!=="visible"){B+=parseInt(C.borderTopWidth,10)||0,c+=parseInt(C.borderLeftWidth,10)||0;
}g=C;
}if(g.position==="relative"||g.position==="static"){B+=a.offsetTop,c+=a.offsetLeft;
}if(g.position==="fixed"){B+=Math.max(d.scrollTop,a.scrollTop),c+=Math.max(d.scrollLeft,a.scrollLeft);
}return{top:B,left:c};
};
}T.offset={initialize:function(){if(this.initialized){return ;
}var C=document.body,e=document.createElement("div"),c,d,A,b,B,f,a=C.style.marginTop,D='<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>';
B={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
for(f in B){e.style[f]=B[f];
}e.innerHTML=D;
C.insertBefore(e,C.firstChild);
c=e.firstChild,d=c.firstChild,b=c.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=(d.offsetTop!==5);
this.doesAddBorderForTableAndCells=(b.offsetTop===5);
c.style.overflow="hidden",c.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(d.offsetTop===-5);
C.style.marginTop="1px";
this.doesNotIncludeMarginInBodyOffset=(C.offsetTop===0);
C.style.marginTop=a;
C.removeChild(e);
this.initialized=true;
},bodyOffset:function(C){T.offset.initialized||T.offset.initialize();
var A=C.offsetTop,B=C.offsetLeft;
if(T.offset.doesNotIncludeMarginInBodyOffset){A+=parseInt(T.curCSS(C,"marginTop",true),10)||0,B+=parseInt(T.curCSS(C,"marginLeft",true),10)||0;
}return{top:A,left:B};
}};
T.fn.extend({position:function(){var B=0,C=0,a;
if(this[0]){var D=this.offsetParent(),A=this.offset(),b=/^body|html$/i.test(D[0].tagName)?{top:0,left:0}:D.offset();
A.top-=Y(this,"marginTop");
A.left-=Y(this,"marginLeft");
b.top+=Y(D,"borderTopWidth");
b.left+=Y(D,"borderLeftWidth");
a={top:A.top-b.top,left:A.left-b.left};
}return a;
},offsetParent:function(){var A=this[0].offsetParent||document.body;
while(A&&(!/^body|html$/i.test(A.tagName)&&T.css(A,"position")=="static")){A=A.offsetParent;
}return T(A);
}});
T.each(["Left","Top"],function(B,C){var A="scroll"+C;
T.fn[A]=function(D){if(!this[0]){return null;
}return D!==AB?this.each(function(){this==W||this==document?W.scrollTo(!B?D:T(W).scrollLeft(),B?D:T(W).scrollTop()):this[A]=D;
}):this[0]==W||this[0]==document?self[B?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[A]||document.body[A]:this[0][A];
};
});
T.each(["Height","Width"],function(B,D){var b=B?"Left":"Top",C=B?"Right":"Bottom",a=D.toLowerCase();
T.fn["inner"+D]=function(){return this[0]?T.css(this[0],a,false,"padding"):null;
};
T.fn["outer"+D]=function(c){return this[0]?T.css(this[0],a,false,c?"margin":"border"):null;
};
var A=D.toLowerCase();
T.fn[A]=function(c){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+D]||document.body["client"+D]:this[0]==document?Math.max(document.documentElement["client"+D],document.body["scroll"+D],document.documentElement["scroll"+D],document.body["offset"+D],document.documentElement["offset"+D]):c===AB?(this.length?T.css(this[0],A):null):this.css(A,typeof c==="string"?c:c+"px");
};
});
})();
}

/* 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:"simile.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;
}};
})();


/* 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();
}return(A=="iso8601"||A=="iso 8601")?SimileAjax.DateTime.parseIso8601DateTime:SimileAjax.DateTime.parseGregorianDateTime;
};
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");
}};
