(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")
}
})
})();jQuery.ui||(function(G){var A=G.fn.remove,F=G.browser.mozilla&&(parseFloat(G.browser.version)<1.9);
G.ui={version:"1.7.1",plugin:{add:function(L,K,N){var J=G.ui[L].prototype;
for(var M in N){J.plugins[M]=J.plugins[M]||[];
J.plugins[M].push([K,N[M]])
}},call:function(M,K,L){var N=M.plugins[K];
if(!N||!M.element[0].parentNode){return 
}for(var J=0;
J<N.length;
J++){if(M.options[N[J][0]]){N[J][1].apply(M.element,L)
}}}},contains:function(J,K){return document.compareDocumentPosition?J.compareDocumentPosition(K)&16:J!==K&&J.contains(K)
},hasScroll:function(J,L){if(G(J).css("overflow")=="hidden"){return false
}var M=(L&&L=="left")?"scrollLeft":"scrollTop",K=false;
if(J[M]>0){return true
}J[M]=1;
K=(J[M]>0);
J[M]=0;
return K
},isOverAxis:function(K,L,J){return(K>L)&&(K<(L+J))
},isOver:function(N,L,O,J,M,K){return G.ui.isOverAxis(N,O,M)&&G.ui.isOverAxis(L,J,K)
},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};
if(F){var D=G.attr,E=G.fn.removeAttr,B="http://www.w3.org/2005/07/aaa",I=/^aria-/,H=/^wairole:/;
G.attr=function(L,M,K){var J=K!==undefined;
return(M=="role"?(J?D.call(this,L,M,"wairole:"+K):(D.apply(this,arguments)||"").replace(H,"")):(I.test(M)?(J?L.setAttributeNS(B,M.replace(I,"aaa:"),K):D.call(this,L,M.replace(I,"aaa:"))):D.apply(this,arguments)))
};
G.fn.removeAttr=function(J){return(I.test(J)?this.each(function(){this.removeAttributeNS(B,J.replace(I,""))
}):E.call(this,J))
}
}G.fn.extend({remove:function(){G("*",this).add(this).each(function(){G(this).triggerHandler("remove")
});
return A.apply(this,arguments)
},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")
},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false
})
},scrollParent:function(){var J;
if((G.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(G.curCSS(this,"position",1))&&(/(auto|scroll)/).test(G.curCSS(this,"overflow",1)+G.curCSS(this,"overflow-y",1)+G.curCSS(this,"overflow-x",1))
}).eq(0)
}else{J=this.parents().filter(function(){return(/(auto|scroll)/).test(G.curCSS(this,"overflow",1)+G.curCSS(this,"overflow-y",1)+G.curCSS(this,"overflow-x",1))
}).eq(0)
}return(/fixed/).test(this.css("position"))||!J.length?G(document):J
}});
G.extend(G.expr[":"],{data:function(J,K,L){return !!G.data(J,L[3])
},focusable:function(K){var J=K.nodeName.toLowerCase(),L=G.attr(K,"tabindex");
return(/input|select|textarea|button|object/.test(J)?!K.disabled:"a"==J||"area"==J?K.href||!isNaN(L):!isNaN(L))&&!G(K)["area"==J?"parents":"closest"](":hidden").length
},tabbable:function(J){var K=G.attr(J,"tabindex");
return(isNaN(K)||K>=0)&&G(J).is(":focusable")
}});
function C(J,O,N,K){function L(P){var Q=G[J][O][P]||[];
return(typeof Q=="string"?Q.split(/,?\s+/):Q)
}var M=L("getter");
if(K.length==1&&typeof K[0]=="string"){M=M.concat(L("getterSetter"))
}return(G.inArray(N,M)!=-1)
}G.widget=function(K,L){var J=K.split(".")[0];
K=K.split(".")[1];
G.fn[K]=function(N){var P=(typeof N=="string"),O=Array.prototype.slice.call(arguments,1);
if(P&&N.substring(0,1)=="_"){return this
}if(P&&C(J,K,N,O)){var M=G.data(this[0],K);
return(M?M[N].apply(M,O):undefined)
}return this.each(function(){var Q=G.data(this,K);
(!Q&&!P&&G.data(this,K,new G[J][K](this,N))._init());
(Q&&P&&G.isFunction(Q[N])&&Q[N].apply(Q,O))
})
};
G[J]=G[J]||{};
G[J][K]=function(N,O){var M=this;
this.namespace=J;
this.widgetName=K;
this.widgetEventPrefix=G[J][K].eventPrefix||K;
this.widgetBaseClass=J+"-"+K;
this.options=G.extend({},G.widget.defaults,G[J][K].defaults,G.metadata&&G.metadata.get(N)[K],O);
this.element=G(N).bind("setData."+K,function(Q,R,P){if(Q.target==N){return M._setData(R,P)
}}).bind("getData."+K,function(P,Q){if(P.target==N){return M._getData(Q)
}}).bind("remove",function(){return M.destroy()
})
};
G[J][K].prototype=G.extend({},G.widget.prototype,L);
G[J][K].getterSetter="option"
};
G.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")
},option:function(K,J){var L=K,M=this;
if(typeof K=="string"){if(J===undefined){return this._getData(K)
}L={};
L[K]=J
}G.each(L,function(O,N){M._setData(O,N)
})
},_getData:function(J){return this.options[J]
},_setData:function(K,J){this.options[K]=J;
if(K=="disabled"){this.element[J?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",J)
}},enable:function(){this._setData("disabled",false)
},disable:function(){this._setData("disabled",true)
},_trigger:function(K,J,P){var N=this.options[K],M=(K==this.widgetEventPrefix?K:this.widgetEventPrefix+K);
J=G.Event(J);
J.type=M;
if(J.originalEvent){for(var L=G.event.props.length,O;
L;
){O=G.event.props[--L];
J[O]=J.originalEvent[O]
}}this.element.trigger(J,P);
return !(G.isFunction(N)&&N.call(this.element[0],J,P)===false||J.isDefaultPrevented())
}};
G.widget.defaults={disabled:false};
G.ui.mouse={_mouseInit:function(){var J=this;
this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)
}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;
K.stopImmediatePropagation();
return false
}});
if(G.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");
this.element.attr("unselectable","on")
}this.started=false
},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
(G.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))
},_mouseDown:function(K){K.originalEvent=K.originalEvent||{};
if(K.originalEvent.mouseHandled){return 
}(this._mouseStarted&&this._mouseUp(K));
this._mouseDownEvent=K;
var L=this,J=(K.which==1),M=(typeof this.options.cancel=="string"?G(K.target).parents().add(K.target).filter(this.options.cancel).length:false);
if(!J||M||!this._mouseCapture(K)){return true
}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){L.mouseDelayMet=true
},this.options.delay)
}if(this._mouseDistanceMet(K)&&this._mouseDelayMet(K)){this._mouseStarted=(this._mouseStart(K)!==false);
if(!this._mouseStarted){K.preventDefault();
return true
}}this._mouseMoveDelegate=function(N){return L._mouseMove(N)
};
this._mouseUpDelegate=function(N){return L._mouseUp(N)
};
G(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
(G.browser.safari||K.preventDefault());
K.originalEvent.mouseHandled=true;
return true
},_mouseMove:function(J){if(G.browser.msie&&!J.button){return this._mouseUp(J)
}if(this._mouseStarted){this._mouseDrag(J);
return J.preventDefault()
}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);
(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))
}return !this._mouseStarted
},_mouseUp:function(J){G(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;
this._preventClickEvent=(J.target==this._mouseDownEvent.target);
this._mouseStop(J)
}return false
},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)
},_mouseDelayMet:function(J){return this.mouseDelayMet
},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true
}};
G.ui.mouse.defaults={cancel:null,distance:1,delay:0}
})(jQuery);
jQuery.effects||(function(D){D.effects={version:"1.7.1",save:function(G,F){for(var H=0;
H<F.length;
H++){if(F[H]!==null){G.data("ec.storage."+F[H],G[0].style[F[H]])
}}},restore:function(G,F){for(var H=0;
H<F.length;
H++){if(F[H]!==null){G.css(F[H],G.data("ec.storage."+F[H]))
}}},setMode:function(G,F){if(F=="toggle"){F=G.is(":hidden")?"show":"hide"
}return F
},getBaseline:function(H,G){var F,I;
switch(H[0]){case"top":F=0;
break;
case"middle":F=0.5;
break;
case"bottom":F=1;
break;
default:F=H[0]/G.height
}switch(H[1]){case"left":I=0;
break;
case"center":I=0.5;
break;
case"right":I=1;
break;
default:I=H[1]/G.width
}return{x:I,y:F}
},createWrapper:function(J){if(J.parent().is(".ui-effects-wrapper")){return J.parent()
}var I={width:J.outerWidth(true),height:J.outerHeight(true),"float":J.css("float")};
J.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
var F=J.parent();
if(J.css("position")=="static"){F.css({position:"relative"});
J.css({position:"relative"})
}else{var G=J.css("top");
if(isNaN(parseInt(G,10))){G="auto"
}var H=J.css("left");
if(isNaN(parseInt(H,10))){H="auto"
}F.css({position:J.css("position"),top:G,left:H,zIndex:J.css("z-index")}).show();
J.css({position:"relative",top:0,left:0})
}F.css(I);
return F
},removeWrapper:function(F){if(F.parent().is(".ui-effects-wrapper")){return F.parent().replaceWith(F)
}return F
},setTransition:function(H,F,I,G){G=G||{};
D.each(F,function(J,K){unit=H.cssUnit(K);
if(unit[0]>0){G[K]=unit[0]*I+unit[1]
}});
return G
},animateClass:function(I,H,F,G){var K=(typeof F=="function"?F:(G?G:null));
var J=(typeof F=="string"?F:null);
return this.each(function(){var O={};
var Q=D(this);
var P=Q.attr("style")||"";
if(typeof P=="object"){P=P.cssText
}if(I.toggle){Q.hasClass(I.toggle)?I.remove=I.toggle:I.add=I.toggle
}var M=D.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));
if(I.add){Q.addClass(I.add)
}if(I.remove){Q.removeClass(I.remove)
}var L=D.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));
if(I.add){Q.removeClass(I.add)
}if(I.remove){Q.addClass(I.remove)
}for(var N in L){if(typeof L[N]!="function"&&L[N]&&N.indexOf("Moz")==-1&&N.indexOf("length")==-1&&L[N]!=M[N]&&(N.match(/color/i)||(!N.match(/color/i)&&!isNaN(parseInt(L[N],10))))&&(M.position!="static"||(M.position=="static"&&!N.match(/left|top|bottom|right/)))){O[N]=L[N]
}}Q.animate(O,H,J,function(){if(typeof D(this).attr("style")=="object"){D(this).attr("style")["cssText"]="";
D(this).attr("style")["cssText"]=P
}else{D(this).attr("style",P)
}if(I.add){D(this).addClass(I.add)
}if(I.remove){D(this).removeClass(I.remove)
}if(K){K.apply(this,arguments)
}})
})
}};
function E(I,J){var G=I[1]&&I[1].constructor==Object?I[1]:{};
if(J){G.mode=J
}var H=I[1]&&I[1].constructor!=Object?I[1]:(G.duration?G.duration:I[2]);
H=D.fx.off?0:typeof H==="number"?H:D.fx.speeds[H]||D.fx.speeds._default;
var F=G.callback||(D.isFunction(I[1])&&I[1])||(D.isFunction(I[2])&&I[2])||(D.isFunction(I[3])&&I[3]);
return[I[0],G,H,F]
}D.fn.extend({_show:D.fn.show,_hide:D.fn.hide,__toggle:D.fn.toggle,_addClass:D.fn.addClass,_removeClass:D.fn.removeClass,_toggleClass:D.fn.toggleClass,effect:function(H,I,G,F){return D.effects[H]?D.effects[H].call(this,{method:H,options:I||{},duration:G,callback:F}):null
},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)
}else{return this.effect.apply(this,E(arguments,"show"))
}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)
}else{return this.effect.apply(this,E(arguments,"hide"))
}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)
}else{return this.effect.apply(this,E(arguments,"toggle"))
}},addClass:function(H,I,F,G){return I?D.effects.animateClass.apply(this,[{add:H},I,F,G]):this._addClass(H)
},removeClass:function(H,I,F,G){return I?D.effects.animateClass.apply(this,[{remove:H},I,F,G]):this._removeClass(H)
},toggleClass:function(H,I,F,G){return((typeof I!=="boolean")&&I)?D.effects.animateClass.apply(this,[{toggle:H},I,F,G]):this._toggleClass(H,I)
},morph:function(J,H,I,F,G){return D.effects.animateClass.apply(this,[{add:H,remove:J},I,F,G])
},switchClass:function(){return this.morph.apply(this,arguments)
},cssUnit:function(H){var G=this.css(H),F=[];
D.each(["em","px","%","pt"],function(J,I){if(G.indexOf(I)>0){F=[parseFloat(G),I]
}});
return F
}});
D.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,G){D.fx.step[G]=function(H){if(H.state==0){H.start=C(H.elem,G);
H.end=A(H.end)
}H.elem.style[G]="rgb("+[Math.max(Math.min(parseInt((H.pos*(H.end[0]-H.start[0]))+H.start[0],10),255),0),Math.max(Math.min(parseInt((H.pos*(H.end[1]-H.start[1]))+H.start[1],10),255),0),Math.max(Math.min(parseInt((H.pos*(H.end[2]-H.start[2]))+H.start[2],10),255),0)].join(",")+")"
}
});
function A(F){var G;
if(F&&F.constructor==Array&&F.length==3){return F
}if(G=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return[parseInt(G[1],10),parseInt(G[2],10),parseInt(G[3],10)]
}if(G=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return[parseFloat(G[1])*2.55,parseFloat(G[2])*2.55,parseFloat(G[3])*2.55]
}if(G=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return[parseInt(G[1],16),parseInt(G[2],16),parseInt(G[3],16)]
}if(G=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return[parseInt(G[1]+G[1],16),parseInt(G[2]+G[2],16),parseInt(G[3]+G[3],16)]
}if(G=/rgba\(0, 0, 0, 0\)/.exec(F)){return B.transparent
}return B[D.trim(F).toLowerCase()]
}function C(F,H){var G;
do{G=D.curCSS(F,H);
if(G!=""&&G!="transparent"||D.nodeName(F,"body")){break
}H="backgroundColor"
}while(F=F.parentNode);
return A(G)
}var B={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};
D.easing.jswing=D.easing.swing;
D.extend(D.easing,{def:"easeOutQuad",swing:function(I,H,J,F,G){return D.easing[D.easing.def](I,H,J,F,G)
},easeInQuad:function(I,H,J,F,G){return F*(H/=G)*H+J
},easeOutQuad:function(I,H,J,F,G){return -F*(H/=G)*(H-2)+J
},easeInOutQuad:function(I,H,J,F,G){if((H/=G/2)<1){return F/2*H*H+J
}return -F/2*((--H)*(H-2)-1)+J
},easeInCubic:function(I,H,J,F,G){return F*(H/=G)*H*H+J
},easeOutCubic:function(I,H,J,F,G){return F*((H=H/G-1)*H*H+1)+J
},easeInOutCubic:function(I,H,J,F,G){if((H/=G/2)<1){return F/2*H*H*H+J
}return F/2*((H-=2)*H*H+2)+J
},easeInQuart:function(I,H,J,F,G){return F*(H/=G)*H*H*H+J
},easeOutQuart:function(I,H,J,F,G){return -F*((H=H/G-1)*H*H*H-1)+J
},easeInOutQuart:function(I,H,J,F,G){if((H/=G/2)<1){return F/2*H*H*H*H+J
}return -F/2*((H-=2)*H*H*H-2)+J
},easeInQuint:function(I,H,J,F,G){return F*(H/=G)*H*H*H*H+J
},easeOutQuint:function(I,H,J,F,G){return F*((H=H/G-1)*H*H*H*H+1)+J
},easeInOutQuint:function(I,H,J,F,G){if((H/=G/2)<1){return F/2*H*H*H*H*H+J
}return F/2*((H-=2)*H*H*H*H+2)+J
},easeInSine:function(I,H,J,F,G){return -F*Math.cos(H/G*(Math.PI/2))+F+J
},easeOutSine:function(I,H,J,F,G){return F*Math.sin(H/G*(Math.PI/2))+J
},easeInOutSine:function(I,H,J,F,G){return -F/2*(Math.cos(Math.PI*H/G)-1)+J
},easeInExpo:function(I,H,J,F,G){return(H==0)?J:F*Math.pow(2,10*(H/G-1))+J
},easeOutExpo:function(I,H,J,F,G){return(H==G)?J+F:F*(-Math.pow(2,-10*H/G)+1)+J
},easeInOutExpo:function(I,H,J,F,G){if(H==0){return J
}if(H==G){return J+F
}if((H/=G/2)<1){return F/2*Math.pow(2,10*(H-1))+J
}return F/2*(-Math.pow(2,-10*--H)+2)+J
},easeInCirc:function(I,H,J,F,G){return -F*(Math.sqrt(1-(H/=G)*H)-1)+J
},easeOutCirc:function(I,H,J,F,G){return F*Math.sqrt(1-(H=H/G-1)*H)+J
},easeInOutCirc:function(I,H,J,F,G){if((H/=G/2)<1){return -F/2*(Math.sqrt(1-H*H)-1)+J
}return F/2*(Math.sqrt(1-(H-=2)*H)+1)+J
},easeInElastic:function(L,J,M,F,G){var I=1.70158;
var H=0;
var K=F;
if(J==0){return M
}if((J/=G)==1){return M+F
}if(!H){H=G*0.3
}if(K<Math.abs(F)){K=F;
var I=H/4
}else{var I=H/(2*Math.PI)*Math.asin(F/K)
}return -(K*Math.pow(2,10*(J-=1))*Math.sin((J*G-I)*(2*Math.PI)/H))+M
},easeOutElastic:function(L,J,M,F,G){var I=1.70158;
var H=0;
var K=F;
if(J==0){return M
}if((J/=G)==1){return M+F
}if(!H){H=G*0.3
}if(K<Math.abs(F)){K=F;
var I=H/4
}else{var I=H/(2*Math.PI)*Math.asin(F/K)
}return K*Math.pow(2,-10*J)*Math.sin((J*G-I)*(2*Math.PI)/H)+F+M
},easeInOutElastic:function(L,J,M,F,G){var I=1.70158;
var H=0;
var K=F;
if(J==0){return M
}if((J/=G/2)==2){return M+F
}if(!H){H=G*(0.3*1.5)
}if(K<Math.abs(F)){K=F;
var I=H/4
}else{var I=H/(2*Math.PI)*Math.asin(F/K)
}if(J<1){return -0.5*(K*Math.pow(2,10*(J-=1))*Math.sin((J*G-I)*(2*Math.PI)/H))+M
}return K*Math.pow(2,-10*(J-=1))*Math.sin((J*G-I)*(2*Math.PI)/H)*0.5+F+M
},easeInBack:function(J,I,K,F,G,H){if(H==undefined){H=1.70158
}return F*(I/=G)*I*((H+1)*I-H)+K
},easeOutBack:function(J,I,K,F,G,H){if(H==undefined){H=1.70158
}return F*((I=I/G-1)*I*((H+1)*I+H)+1)+K
},easeInOutBack:function(J,I,K,F,G,H){if(H==undefined){H=1.70158
}if((I/=G/2)<1){return F/2*(I*I*(((H*=(1.525))+1)*I-H))+K
}return F/2*((I-=2)*I*(((H*=(1.525))+1)*I+H)+2)+K
},easeInBounce:function(I,H,J,F,G){return F-D.easing.easeOutBounce(I,G-H,0,F,G)+J
},easeOutBounce:function(I,H,J,F,G){if((H/=G)<(1/2.75)){return F*(7.5625*H*H)+J
}else{if(H<(2/2.75)){return F*(7.5625*(H-=(1.5/2.75))*H+0.75)+J
}else{if(H<(2.5/2.75)){return F*(7.5625*(H-=(2.25/2.75))*H+0.9375)+J
}else{return F*(7.5625*(H-=(2.625/2.75))*H+0.984375)+J
}}}},easeInOutBounce:function(I,H,J,F,G){if(H<G/2){return D.easing.easeInBounce(I,H*2,0,F,G)*0.5+J
}return D.easing.easeOutBounce(I,H*2-G,0,F,G)*0.5+F*0.5+J
}})
})(jQuery);
(function(A){A.effects.blind=function(B){return this.queue(function(){var I=A(this),J=["position","top","left"];
var E=A.effects.setMode(I,B.options.mode||"hide");
var F=B.options.direction||"vertical";
A.effects.save(I,J);
I.show();
var C=A.effects.createWrapper(I).css({overflow:"hidden"});
var H=(F=="vertical")?"height":"width";
var D=(F=="vertical")?C.height():C.width();
if(E=="show"){C.css(H,0)
}var G={};
G[H]=E=="show"?D:0;
C.animate(G,B.duration,B.options.easing,function(){if(E=="hide"){I.hide()
}A.effects.restore(I,J);
A.effects.removeWrapper(I);
if(B.callback){B.callback.apply(I[0],arguments)
}I.dequeue()
})
})
}
})(jQuery);
(function(A){A.effects.bounce=function(B){return this.queue(function(){var M=A(this),G=["position","top","left"];
var H=A.effects.setMode(M,B.options.mode||"effect");
var E=B.options.direction||"up";
var O=B.options.distance||20;
var N=B.options.times||5;
var K=B.duration||250;
if(/show|hide/.test(H)){G.push("opacity")
}A.effects.save(M,G);
M.show();
A.effects.createWrapper(M);
var L=(E=="up"||E=="down")?"top":"left";
var C=(E=="up"||E=="left")?"pos":"neg";
var O=B.options.distance||(L=="top"?M.outerHeight({margin:true})/3:M.outerWidth({margin:true})/3);
if(H=="show"){M.css("opacity",0).css(L,C=="pos"?-O:O)
}if(H=="hide"){O=O/(N*2)
}if(H!="hide"){N--
}if(H=="show"){var J={opacity:1};
J[L]=(C=="pos"?"+=":"-=")+O;
M.animate(J,K/2,B.options.easing);
O=O/2;
N--
}for(var I=0;
I<N;
I++){var D={},F={};
D[L]=(C=="pos"?"-=":"+=")+O;
F[L]=(C=="pos"?"+=":"-=")+O;
M.animate(D,K/2,B.options.easing).animate(F,K/2,B.options.easing);
O=(H=="hide")?O*2:O/2
}if(H=="hide"){var J={opacity:0};
J[L]=(C=="pos"?"-=":"+=")+O;
M.animate(J,K/2,B.options.easing,function(){M.hide();
A.effects.restore(M,G);
A.effects.removeWrapper(M);
if(B.callback){B.callback.apply(this,arguments)
}})
}else{var D={},F={};
D[L]=(C=="pos"?"-=":"+=")+O;
F[L]=(C=="pos"?"+=":"-=")+O;
M.animate(D,K/2,B.options.easing).animate(F,K/2,B.options.easing,function(){A.effects.restore(M,G);
A.effects.removeWrapper(M);
if(B.callback){B.callback.apply(this,arguments)
}})
}M.queue("fx",function(){M.dequeue()
});
M.dequeue()
})
}
})(jQuery);
(function(A){A.effects.clip=function(B){return this.queue(function(){var H=A(this),D=["position","top","left","height","width"];
var E=A.effects.setMode(H,B.options.mode||"hide");
var C=B.options.direction||"vertical";
A.effects.save(H,D);
H.show();
var K=A.effects.createWrapper(H).css({overflow:"hidden"});
var I=H[0].tagName=="IMG"?K:H;
var G={size:(C=="vertical")?"height":"width",position:(C=="vertical")?"top":"left"};
var J=(C=="vertical")?I.height():I.width();
if(E=="show"){I.css(G.size,0);
I.css(G.position,J/2)
}var F={};
F[G.size]=E=="show"?J:0;
F[G.position]=E=="show"?0:J/2;
I.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(E=="hide"){H.hide()
}A.effects.restore(H,D);
A.effects.removeWrapper(H);
if(B.callback){B.callback.apply(H[0],arguments)
}H.dequeue()
}})
})
}
})(jQuery);
(function(A){A.effects.drop=function(B){return this.queue(function(){var H=A(this),I=["position","top","left","opacity"];
var D=A.effects.setMode(H,B.options.mode||"hide");
var E=B.options.direction||"left";
A.effects.save(H,I);
H.show();
A.effects.createWrapper(H);
var G=(E=="up"||E=="down")?"top":"left";
var J=(E=="up"||E=="left")?"pos":"neg";
var C=B.options.distance||(G=="top"?H.outerHeight({margin:true})/2:H.outerWidth({margin:true})/2);
if(D=="show"){H.css("opacity",0).css(G,J=="pos"?-C:C)
}var F={opacity:D=="show"?1:0};
F[G]=(D=="show"?(J=="pos"?"+=":"-="):(J=="pos"?"-=":"+="))+C;
H.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(D=="hide"){H.hide()
}A.effects.restore(H,I);
A.effects.removeWrapper(H);
if(B.callback){B.callback.apply(this,arguments)
}H.dequeue()
}})
})
}
})(jQuery);
(function(A){A.effects.explode=function(B){return this.queue(function(){var D=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;
var H=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;
B.options.mode=B.options.mode=="toggle"?(A(this).is(":visible")?"hide":"show"):B.options.mode;
var E=A(this).show().css("visibility","hidden");
var C=E.offset();
C.top-=parseInt(E.css("marginTop"),10)||0;
C.left-=parseInt(E.css("marginLeft"),10)||0;
var F=E.outerWidth(true);
var J=E.outerHeight(true);
for(var G=0;
G<D;
G++){for(var I=0;
I<H;
I++){E.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-I*(F/H),top:-G*(J/D)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:F/H,height:J/D,left:C.left+I*(F/H)+(B.options.mode=="show"?(I-Math.floor(H/2))*(F/H):0),top:C.top+G*(J/D)+(B.options.mode=="show"?(G-Math.floor(D/2))*(J/D):0),opacity:B.options.mode=="show"?0:1}).animate({left:C.left+I*(F/H)+(B.options.mode=="show"?0:(I-Math.floor(H/2))*(F/H)),top:C.top+G*(J/D)+(B.options.mode=="show"?0:(G-Math.floor(D/2))*(J/D)),opacity:B.options.mode=="show"?1:0},B.duration||500)
}}setTimeout(function(){B.options.mode=="show"?E.css({visibility:"visible"}):E.css({visibility:"visible"}).hide();
if(B.callback){B.callback.apply(E[0])
}E.dequeue();
A("div.ui-effects-explode").remove()
},B.duration||500)
})
}
})(jQuery);
(function(A){A.effects.fold=function(B){return this.queue(function(){var M=A(this),G=["position","top","left"];
var J=A.effects.setMode(M,B.options.mode||"hide");
var C=B.options.size||15;
var D=!(!B.options.horizFirst);
var K=B.duration?B.duration/2:A.fx.speeds._default/2;
A.effects.save(M,G);
M.show();
var N=A.effects.createWrapper(M).css({overflow:"hidden"});
var I=((J=="show")!=D);
var L=I?["width","height"]:["height","width"];
var O=I?[N.width(),N.height()]:[N.height(),N.width()];
var H=/([0-9]+)%/.exec(C);
if(H){C=parseInt(H[1],10)/100*O[J=="hide"?0:1]
}if(J=="show"){N.css(D?{height:0,width:C}:{height:C,width:0})
}var E={},F={};
E[L[0]]=J=="show"?O[0]:C;
F[L[1]]=J=="show"?O[1]:0;
N.animate(E,K,B.options.easing).animate(F,K,B.options.easing,function(){if(J=="hide"){M.hide()
}A.effects.restore(M,G);
A.effects.removeWrapper(M);
if(B.callback){B.callback.apply(M[0],arguments)
}M.dequeue()
})
})
}
})(jQuery);
(function(A){A.effects.highlight=function(B){return this.queue(function(){var F=A(this),G=["backgroundImage","backgroundColor","opacity"];
var C=A.effects.setMode(F,B.options.mode||"show");
var H=B.options.color||"#ffff99";
var D=F.css("backgroundColor");
A.effects.save(F,G);
F.show();
F.css({backgroundImage:"none",backgroundColor:H});
var E={backgroundColor:D};
if(C=="hide"){E.opacity=0
}F.animate(E,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(C=="hide"){F.hide()
}A.effects.restore(F,G);
if(C=="show"&&A.browser.msie){this.style.removeAttribute("filter")
}if(B.callback){B.callback.apply(this,arguments)
}F.dequeue()
}})
})
}
})(jQuery);
(function(A){A.effects.pulsate=function(B){return this.queue(function(){var F=A(this);
var C=A.effects.setMode(F,B.options.mode||"show");
var D=B.options.times||5;
var E=B.duration?B.duration/2:A.fx.speeds._default/2;
if(C=="hide"){D--
}if(F.is(":hidden")){F.css("opacity",0);
F.show();
F.animate({opacity:1},E,B.options.easing);
D=D-2
}for(var G=0;
G<D;
G++){F.animate({opacity:0},E,B.options.easing).animate({opacity:1},E,B.options.easing)
}if(C=="hide"){F.animate({opacity:0},E,B.options.easing,function(){F.hide();
if(B.callback){B.callback.apply(this,arguments)
}})
}else{F.animate({opacity:0},E,B.options.easing).animate({opacity:1},E,B.options.easing,function(){if(B.callback){B.callback.apply(this,arguments)
}})
}F.queue("fx",function(){F.dequeue()
});
F.dequeue()
})
}
})(jQuery);
(function(A){A.effects.puff=function(B){return this.queue(function(){var E=A(this);
var H=A.extend(true,{},B.options);
var C=A.effects.setMode(E,B.options.mode||"hide");
var D=parseInt(B.options.percent,10)||150;
H.fade=true;
var F={height:E.height(),width:E.width()};
var G=D/100;
E.from=(C=="hide")?F:{height:F.height*G,width:F.width*G};
H.from=E.from;
H.percent=(C=="hide")?D:100;
H.mode=C;
E.effect("scale",H,B.duration,B.callback);
E.dequeue()
})
};
A.effects.scale=function(B){return this.queue(function(){var F=A(this);
var I=A.extend(true,{},B.options);
var C=A.effects.setMode(F,B.options.mode||"effect");
var E=parseInt(B.options.percent,10)||(parseInt(B.options.percent,10)==0?0:(C=="hide"?0:100));
var D=B.options.direction||"both";
var J=B.options.origin;
if(C!="effect"){I.origin=J||["middle","center"];
I.restore=true
}var G={height:F.height(),width:F.width()};
F.from=B.options.from||(C=="show"?{height:0,width:0}:G);
var H={y:D!="horizontal"?(E/100):1,x:D!="vertical"?(E/100):1};
F.to={height:G.height*H.y,width:G.width*H.x};
if(B.options.fade){if(C=="show"){F.from.opacity=0;
F.to.opacity=1
}if(C=="hide"){F.from.opacity=1;
F.to.opacity=0
}}I.from=F.from;
I.to=F.to;
I.mode=C;
F.effect("size",I,B.duration,B.callback);
F.dequeue()
})
};
A.effects.size=function(B){return this.queue(function(){var P=A(this),E=["position","top","left","width","height","overflow","opacity"];
var F=["position","top","left","overflow","opacity"];
var I=["width","height","overflow"];
var C=["fontSize"];
var H=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];
var M=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];
var L=A.effects.setMode(P,B.options.mode||"effect");
var J=B.options.restore||false;
var N=B.options.scale||"both";
var D=B.options.origin;
var O={height:P.height(),width:P.width()};
P.from=B.options.from||O;
P.to=B.options.to||O;
if(D){var K=A.effects.getBaseline(D,O);
P.from.top=(O.height-P.from.height)*K.y;
P.from.left=(O.width-P.from.width)*K.x;
P.to.top=(O.height-P.to.height)*K.y;
P.to.left=(O.width-P.to.width)*K.x
}var G={from:{y:P.from.height/O.height,x:P.from.width/O.width},to:{y:P.to.height/O.height,x:P.to.width/O.width}};
if(N=="box"||N=="both"){if(G.from.y!=G.to.y){E=E.concat(H);
P.from=A.effects.setTransition(P,H,G.from.y,P.from);
P.to=A.effects.setTransition(P,H,G.to.y,P.to)
}if(G.from.x!=G.to.x){E=E.concat(M);
P.from=A.effects.setTransition(P,M,G.from.x,P.from);
P.to=A.effects.setTransition(P,M,G.to.x,P.to)
}}if(N=="content"||N=="both"){if(G.from.y!=G.to.y){E=E.concat(C);
P.from=A.effects.setTransition(P,C,G.from.y,P.from);
P.to=A.effects.setTransition(P,C,G.to.y,P.to)
}}A.effects.save(P,J?E:F);
P.show();
A.effects.createWrapper(P);
P.css("overflow","hidden").css(P.from);
if(N=="content"||N=="both"){H=H.concat(["marginTop","marginBottom"]).concat(C);
M=M.concat(["marginLeft","marginRight"]);
I=E.concat(H).concat(M);
P.find("*[width]").each(function(){child=A(this);
if(J){A.effects.save(child,I)
}var Q={height:child.height(),width:child.width()};
child.from={height:Q.height*G.from.y,width:Q.width*G.from.x};
child.to={height:Q.height*G.to.y,width:Q.width*G.to.x};
if(G.from.y!=G.to.y){child.from=A.effects.setTransition(child,H,G.from.y,child.from);
child.to=A.effects.setTransition(child,H,G.to.y,child.to)
}if(G.from.x!=G.to.x){child.from=A.effects.setTransition(child,M,G.from.x,child.from);
child.to=A.effects.setTransition(child,M,G.to.x,child.to)
}child.css(child.from);
child.animate(child.to,B.duration,B.options.easing,function(){if(J){A.effects.restore(child,I)
}})
})
}P.animate(P.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(L=="hide"){P.hide()
}A.effects.restore(P,J?E:F);
A.effects.removeWrapper(P);
if(B.callback){B.callback.apply(this,arguments)
}P.dequeue()
}})
})
}
})(jQuery);
(function(A){A.effects.shake=function(B){return this.queue(function(){var M=A(this),G=["position","top","left"];
var H=A.effects.setMode(M,B.options.mode||"effect");
var E=B.options.direction||"left";
var O=B.options.distance||20;
var N=B.options.times||3;
var K=B.duration||B.options.duration||140;
A.effects.save(M,G);
M.show();
A.effects.createWrapper(M);
var L=(E=="up"||E=="down")?"top":"left";
var C=(E=="up"||E=="left")?"pos":"neg";
var J={},D={},F={};
J[L]=(C=="pos"?"-=":"+=")+O;
D[L]=(C=="pos"?"+=":"-=")+O*2;
F[L]=(C=="pos"?"-=":"+=")+O*2;
M.animate(J,K,B.options.easing);
for(var I=1;
I<N;
I++){M.animate(D,K,B.options.easing).animate(F,K,B.options.easing)
}M.animate(D,K,B.options.easing).animate(J,K/2,B.options.easing,function(){A.effects.restore(M,G);
A.effects.removeWrapper(M);
if(B.callback){B.callback.apply(this,arguments)
}});
M.queue("fx",function(){M.dequeue()
});
M.dequeue()
})
}
})(jQuery);
(function(A){A.effects.slide=function(B){return this.queue(function(){var H=A(this),I=["position","top","left"];
var D=A.effects.setMode(H,B.options.mode||"show");
var E=B.options.direction||"left";
A.effects.save(H,I);
H.show();
A.effects.createWrapper(H).css({overflow:"hidden"});
var G=(E=="up"||E=="down")?"top":"left";
var J=(E=="up"||E=="left")?"pos":"neg";
var C=B.options.distance||(G=="top"?H.outerHeight({margin:true}):H.outerWidth({margin:true}));
if(D=="show"){H.css(G,J=="pos"?-C:C)
}var F={};
F[G]=(D=="show"?(J=="pos"?"+=":"-="):(J=="pos"?"-=":"+="))+C;
H.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(D=="hide"){H.hide()
}A.effects.restore(H,I);
A.effects.removeWrapper(H);
if(B.callback){B.callback.apply(this,arguments)
}H.dequeue()
}})
})
}
})(jQuery);
(function(A){A.effects.transfer=function(B){return this.queue(function(){var E=A(this),C=A(B.options.to),F=C.offset(),D={top:F.top,left:F.left,height:C.innerHeight(),width:C.innerWidth()},G=E.offset(),H=A('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(B.options.className).css({top:G.top,left:G.left,height:E.innerHeight(),width:E.innerWidth(),position:"absolute"}).animate(D,B.duration,B.options.easing,function(){H.remove();
(B.callback&&B.callback.apply(E[0],arguments));
E.dequeue()
})
})
}
})(jQuery);jQuery.easing={easein:function(B,C,A,E,D){return E*(C/=D)*C+A
},easeinout:function(B,D,A,F,E){if(D<E/2){return 2*F*D*D/(E*E)+A
}var C=D-E/2;
return -2*F*C*C/(E*E)+2*F*C/E+F/2+A
},easeout:function(B,C,A,E,D){return -E*C*C/(D*D)+2*E*C/D+A
},expoin:function(B,D,A,F,E){var C=1;
if(F<0){C*=-1;
F*=-1
}return C*(Math.exp(Math.log(F)/E*D))+A
},expoout:function(B,D,A,F,E){var C=1;
if(F<0){C*=-1;
F*=-1
}return C*(-Math.exp(-Math.log(F)/E*(D-E))+F+1)+A
},expoinout:function(B,D,A,F,E){var C=1;
if(F<0){C*=-1;
F*=-1
}if(D<E/2){return C*(Math.exp(Math.log(F/2)/(E/2)*D))+A
}return C*(-Math.exp(-2*Math.log(F/2)/E*(D-E))+F+1)+A
},bouncein:function(B,C,A,E,D){return E-jQuery.easing.bounceout(B,D-C,0,E,D)+A
},bounceout:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A
}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A
}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A
}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A
}}}},bounceinout:function(B,C,A,E,D){if(C<D/2){return jQuery.easing.bouncein(B,C*2,0,E,D)*0.5+A
}return jQuery.easing.bounceout(B,C*2-D,0,E,D)*0.5+E*0.5+A
},elasin:function(B,D,A,H,G){var E=1.70158;
var F=0;
var C=H;
if(D==0){return A
}if((D/=G)==1){return A+H
}if(!F){F=G*0.3
}if(C<Math.abs(H)){C=H;
var E=F/4
}else{var E=F/(2*Math.PI)*Math.asin(H/C)
}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A
},elasout:function(B,D,A,H,G){var E=1.70158;
var F=0;
var C=H;
if(D==0){return A
}if((D/=G)==1){return A+H
}if(!F){F=G*0.3
}if(C<Math.abs(H)){C=H;
var E=F/4
}else{var E=F/(2*Math.PI)*Math.asin(H/C)
}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A
},elasinout:function(B,D,A,H,G){var E=1.70158;
var F=0;
var C=H;
if(D==0){return A
}if((D/=G/2)==2){return A+H
}if(!F){F=G*(0.3*1.5)
}if(C<Math.abs(H)){C=H;
var E=F/4
}else{var E=F/(2*Math.PI)*Math.asin(H/C)
}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A
}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A
},backin:function(B,C,A,F,E){var D=1.70158;
return F*(C/=E)*C*((D+1)*C-D)+A
},backout:function(B,C,A,F,E){var D=1.70158;
return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A
},backinout:function(B,C,A,F,E){var D=1.70158;
if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A
}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A
},linear:function(B,C,A,E,D){return E*C/D+A
}};(function(A){A.fn.lavaLamp=function(B){B=A.extend({fx:"linear",speed:500,click:function(){}},B||{});
return this.each(function(){var C=A(this),F=function(){},H=A('<li class="back"><div class="left"></div></li>').appendTo(C),I=A("li",this),G=A("li.current",this)[0]||A(I[0]).addClass("current")[0];
I.not(".back").hover(function(){D(this)
},F);
A(this).hover(F,function(){D(G)
});
I.click(function(J){E(this);
return B.click.apply(this,[J,this])
});
E(G);
function E(J){H.css({left:J.offsetLeft+"px",width:J.offsetWidth+"px"});
G=J
}function D(J){H.each(function(){A(this).dequeue()
}).animate({width:J.offsetWidth,left:J.offsetLeft},B.speed,B.fx)
}})
}
})(jQuery);var StreamHub=function(){this.pRequestQueue=[];
this.mTopicToListener={};
this.sDomain=StreamHub.DomainUtils.extractDomain(document.domain);
this.bIsResponseIFrameConnected=false;
this.bHasRequestIFrameConnected=false;
this.connectionMonitorId=null;
this.oLogger=new StreamHub.NullLogger();
this.sUid=new Date().valueOf();
this.pConnectionListeners=[]
};
StreamHub.POLLING_CONNECTION="POLL";
StreamHub.STREAMING_CONNECTION="STREAM";
StreamHub.prototype={connect:function(A){this.sUrl=A;
this.sConnectionType=StreamHub.STREAMING_CONNECTION;
document.domain=this.sDomain;
if(A.serverList){this.sUid=A.staticUID||this.sUid;
this.sFailoverAlgorithm=(A.failoverAlgorithm===undefined)?"ordered":A.failoverAlgorithm;
this.nReconnectDelayMillis=this.nInitialReconnectDelayMillis=(A.initialReconnectDelayMillis===undefined)?1000:A.initialReconnectDelayMillis;
this.nMaxReconnectDelayMillis=(A.maxReconnectDelayMillis===undefined)?-1:A.maxReconnectDelayMillis;
this.nMaxReconnectAttempts=(A.maxReconnectAttempts===undefined)?-1:A.maxReconnectAttempts;
this.bExponentialBackOff=(A.useExponentialBackOff===undefined)?false:A.useExponentialBackOff;
this.nBackOffMultiplier=(A.backOffMultiplier===undefined)?1:A.backOffMultiplier;
this.sConnectionType=(A.connectionType===undefined)?StreamHub.STREAMING_CONNECTION:A.connectionType;
this.nReconnectAttempts=0;
this.pServerList=A.serverList;
this.nServerIndex=0;
this.sUrl=A.serverList[this.nServerIndex];
if(this.sFailoverAlgorithm=="priority"){this.nServerIndex=-1
}}this.doConnect(this.sUrl)
},disconnect:function(){this.oLogger.log("Disconnecting");
this.stopPolling();
this.request(this.sDisconnectUrl,"disconnect",this.buildDisconnectionResponse(this));
this.isDeliberateDisconnect=true
},subscribe:function(D,C){this.addSubscriptionListeners(D,C);
var B=this.buildSubscriptionList(D);
var A=this.sSubscribeUrl+"&topic="+B;
this.request(A,B,this.buildSubscriptionResponse(this))
},unsubscribe:function(C){var A=this.buildSubscriptionList(C);
var B=this.sUnSubscribeUrl+"&topic="+A;
this.request(B,A,this.buildUnSubscribeResponse(this))
},publish:function(A,C){var B=this.sPublishUrl+"&topic="+A+"&payload="+encodeURIComponent(C);
this.oLogger.log("Publishing to "+B);
this.request(B,A,this.buildPublishResponse(this))
},setLogger:function(A){if(typeof A.log!=="function"){alert("Logger must have a function called 'log'")
}else{this.oLogger=A
}},addConnectionListener:function(A){this.pConnectionListeners.push(A)
},connectFrames:function(A){if(StreamHub.Browser.isIEFamily()){if(this.sConnectionType===StreamHub.STREAMING_CONNECTION){this.eResponseIFrame=this.addIFrame({id:"responseIFrame"+new Date().valueOf(),src:""});
this.connectResponseIFrame()
}this.eRequestIFrame=this.addIFrame({id:"requestFrame"+new Date().valueOf(),src:""});
this.connectRequestIFrame()
}else{this.eContainerIFrame=this.addIFrame({id:"containerIFrame"+new Date().valueOf(),src:this.sIFrameHtmlUrl})
}},doConnect:function(A){this.preConnectCleanUp();
window.x=this.buildOnResponseData(this);
if(this.sConnectionType===StreamHub.STREAMING_CONNECTION){if(StreamHub.Browser.isFirefoxFamily()&&!StreamHub.Browser.isFF3()){window.l=this.buildConnectionLost(this)
}else{window.l=function(){}
}}window.c=this.buildConnect(this);
window.onunload=this.buildCleanUp(this);
if(StreamHub.Browser.isIEFamily()||StreamHub.Browser.isFF3()){window.r=this.buildOnRequestComplete(this)
}this.buildUrls(A);
this.connectFrames(A);
if(this.sConnectionType===StreamHub.STREAMING_CONNECTION){this.startInitialConnectMonitor()
}},startInitialConnectMonitor:function(){var A=this;
setTimeout(function(){if(!A.isResponseIFrameConnected()&&A.bHasRequestIFrameConnected===false){A.oLogger.log("Failing over to polling connection");
A.cancelConnectionMonitor.apply(A);
A.closeResponseChannel.apply(A);
A.sConnectionType=StreamHub.POLLING_CONNECTION;
A.startPolling.apply(A)
}},2000)
},buildConnect:function(A){return function(){if(A.bConnectCalled===false){A.bConnectCalled=true;
var B=A.eContainerIFrame.contentWindow.document.getElementsByTagName("frame");
A.eRequestIFrame=B[0];
A.eResponseIFrame=B[1];
A.connectRequestIFrame.apply(A);
if(A.sConnectionType===StreamHub.STREAMING_CONNECTION){A.connectResponseIFrame.apply(A)
}}}
},addSubscriptionListeners:function(C,B){if(C instanceof Array){for(var A=0;
A<C.length;
A++){this.addTopicListener(C[A],B)
}}else{this.addTopicListener(C,B)
}},buildSubscriptionList:function(D){var B=D;
if(D instanceof Array){B="";
for(var A=0;
A<D.length;
A++){var C=D[A];
B+=C;
if(A!=(D.length-1)){B+=","
}}}return B
},connectRequestIFrame:function(){this.oLogger.log("Connecting request iFrame to "+this.sRequestUrl);
this.request(this.sRequestUrl,"Connect",this.buildConnectionResponse(this))
},connectResponseIFrame:function(){this.oLogger.log("Connecting response iFrame to "+this.sResponseUrl);
if(StreamHub.Browser.isIEFamily()){this.eResponseIFrame.src=this.sResponseUrl
}else{if(this.eContainerIFrame.contentWindow.connect===undefined){this.oLogger.log("Could not connect to response iframe");
this.reconnect();
return 
}this.eContainerIFrame.contentWindow.connect(this.sResponseUrl)
}this.startConnectionMonitor()
},setOnLoad:function(A,B){if(A.addEventListener){A.onload=B
}else{if(A.attachEvent){A.onload=null;
A.attachEvent("onload",B)
}}},addTopicListener:function(B,A){this.mTopicToListener[B]=A
},buildPollingHandler:function(oHub){return function(sTopic,sResponse){try{var pMessages=eval("("+sResponse+")");
oHub.oLogger.log("Polling response is : "+sResponse+" for topic '"+sTopic+"'. Num messages: "+pMessages.length);
for(var i=0;
i<pMessages.length;
i++){x(pMessages[i])
}}catch(e){oHub.oLogger.log("Problem parsing poll response: "+e)
}}
},buildSubscriptionResponse:function(A){return function(C,B){A.oLogger.log("Subscription response is : "+B+" for topic '"+C+"'")
}
},buildUnSubscribeResponse:function(A){return function(C,B){A.oLogger.log("Unsubscribe response is : "+B+" for topic '"+C+"'")
}
},buildPublishResponse:function(A){return function(C,B){A.oLogger.log("Publish response is : "+B+" for topic '"+C+"'")
}
},buildConnectionResponse:function(A){return function(C,B){A.bHasRequestIFrameConnected=true;
A.oLogger.log("Connection response is : "+B);
if(A.sConnectionType===StreamHub.POLLING_CONNECTION){A.startPolling.apply(A)
}}
},buildDisconnectionResponse:function(A){return function(C,B){A.oLogger.log("Disconnection response is : "+B)
}
},reconnect:function(){if(this.isDeliberateDisconnect!==true&&!this.isResponseIFrameConnected()&&(this.nMaxReconnectAttempts==-1||this.nReconnectAttempts<this.nMaxReconnectAttempts)){try{var B=this;
clearTimeout(this.reconnectorId);
if(this.bExponentialBackOff&&this.nReconnectAttempts>0){this.nReconnectDelayMillis*=this.nBackOffMultiplier;
if(this.nMaxReconnectDelayMillis!=-1&&this.nReconnectDelayMillis>this.nMaxReconnectDelayMillis){this.nReconnectDelayMillis=this.nMaxReconnectDelayMillis
}}this.oLogger.log("Attempting reconnect in "+this.nReconnectDelayMillis+"ms");
this.reconnectorId=setTimeout(function(){if((B.nMaxReconnectAttempts==-1||B.nReconnectAttempts<B.nMaxReconnectAttempts)&&!B.isResponseIFrameConnected.apply(B)){if(B.sFailoverAlgorithm=="priority"){B.nServerIndex=(B.nServerIndex+1)%B.pServerList.length
}B.doReconnection.apply(B)
}},this.nReconnectDelayMillis)
}catch(A){this.oLogger.log("Error setting interval: "+A)
}}},doReconnection:function(){var B=this.sUrl;
if(this.nServerIndex!==undefined){var A=this.pServerList.length;
if(this.sFailoverAlgorithm=="ordered"){this.nServerIndex=(this.nServerIndex+1)%A
}else{if(this.sFailoverAlgorithm=="random"){this.nServerIndex=Math.floor(Math.random()*A)
}}B=this.pServerList[this.nServerIndex]
}this.nReconnectAttempts++;
this.oLogger.log("Reconnecting... Trying "+B);
this.doConnect(B);
this.reconnect()
},onReconnect:function(){try{clearTimeout(this.reconnectorId)
}catch(A){}if(this.sFailoverAlgorithm=="priority"){this.nServerIndex=-1
}this.nReconnectAttempts=0;
this.nReconnectDelayMillis=this.nInitialReconnectDelayMillis;
this.notifyConnectionEstablishedListeners()
},buildConnectionLost:function(A){return function(){A.oLogger.log("Lost connection to server");
A.notifyConnectionLostListeners.apply(A);
A.bIsResponseIFrameConnected=false;
A.reconnect.apply(A)
}
},notifyConnectionLostListeners:function(){for(var A=0;
A<this.pConnectionListeners.length;
A++){this.pConnectionListeners[A].onConnectionLost()
}},notifyConnectionEstablishedListeners:function(){for(var A=0;
A<this.pConnectionListeners.length;
A++){this.pConnectionListeners[A].onConnectionEstablished()
}},imageRequest:function(B){var A=document.createElement("img");
A.src=B;
document.body.appendChild(A)
},request:function(B,A,C){this.pRequestQueue.push({url:B,callback:C,topic:A});
if(this.isResponseIFrameConnected()){this.processRequestQueue()
}},processRequestQueue:function(){if(this.pRequestQueue.length>0){if(!StreamHub.Browser.isIEFamily()&&!StreamHub.Browser.isFF3()){this.setOnLoad(this.eRequestIFrame,this.buildOnRequestComplete(this))
}var B=this.pRequestQueue[0].url;
this.oLogger.log("Requesting: "+B);
if(StreamHub.Browser.isIEFamily()){this.eRequestIFrame.src=B
}else{try{this.eContainerIFrame.contentWindow.request(B,this)
}catch(A){this.oLogger.log("Failed requesting: "+B+". Error was: "+A+". Trying again in 1 second.");
var C=this;
setTimeout(function(){C.processRequestQueue.apply(C)
},1000)
}}}},addIFrame:function(B){var A=document;
if(StreamHub.Browser.isIEFamily()){this.createHtmlFile();
A=this.transferDoc
}var C=this.createIFrame(A,B);
A.body.appendChild(C);
return C
},createElement:function(C,A,B){var D=C.createElement(A);
D.id=B;
return D
},createIFrame:function(B,A){var C=this.createElement(B,"IFRAME",A.id);
C.style.visibility="hidden";
C.style.display="none";
C.style.height="0px";
C.style.width="0px";
C.src=A.src;
if(A.onLoadFn!==undefined){this.setOnLoad(C,A.onLoadFn)
}return C
},createHtmlFile:function(){if(this.transferDoc===undefined){this.transferDoc=new ActiveXObject("htmlfile");
this.transferDoc.open();
this.transferDoc.write("<html>");
this.transferDoc.write("<script>document.domain='"+this.sDomain+"';<\/script>");
this.transferDoc.write("</html>");
this.transferDoc.close();
this.transferDoc.parentWindow.x=x;
this.transferDoc.parentWindow.r=this.buildOnRequestComplete(this)
}},startPolling:function(){this.oLogger.log("Starting poling...");
var A=this;
this.oPollingId=setInterval(function(){A.request(A.sPollingUrl,"poll",A.buildPollingHandler(A))
},1000)
},stopPolling:function(){this.oLogger.log("Stopping poling");
clearInterval(this.oPollingId)
},startConnectionMonitor:function(){if(StreamHub.Browser.isWebkitFamily()){this.setOnLoad(this.eResponseIFrame,this.buildConnectionLost(this))
}else{this.startDefaultConnectionMonitor(this)
}},startDefaultConnectionMonitor:function(A){if(A.connectionMonitorId==null){A.connectionMonitorId=setInterval(function(){var B=A.getIFrameReadyState(A.eResponseIFrame);
if(B=="complete"){clearInterval(A.connectionMonitorId);
A.connectionMonitorId=null;
(A.buildConnectionLost(A))()
}},1000)
}},closeResponseChannel:function(){this.oLogger.log("Closing response channel");
this.eResponseIFrame.src=this.sCloseResponseUrl
},cancelConnectionMonitor:function(){if(StreamHub.Browser.isWebkitFamily()){this.setOnLoad(this.eResponseIFrame,null)
}else{clearInterval(this.connectionMonitorId);
this.connectionMonitorId=null
}},getIFrameReadyState:function(B){if(StreamHub.Browser.isIEFamily()){return B.readyState
}try{return B.readyState||B.contentWindow.document.readyState
}catch(A){return"complete"
}},isResponseIFrameConnected:function(){return this.bIsResponseIFrameConnected||this.sConnectionType===StreamHub.POLLING_CONNECTION
},buildOnResponseData:function(A){return function(C){try{A.oLogger.log("onResponseData via response iFrame : ["+C+"]")
}catch(B){}if(C.topic&&typeof A.mTopicToListener[C.topic]=="function"){A.mTopicToListener[C.topic](C.topic,C)
}else{if(A.isResponseIFrameConnectionOk(C)){A.bIsResponseIFrameConnected=true;
A.addIFrame({id:"blankIFrame"+new Date().valueOf(),src:"about:blank"});
A.onReconnect.apply(A);
A.processRequestQueue()
}}}
},isResponseIFrameConnectionOk:function(A){return A.toString().indexOf("response OK")>-1
},buildUrls:function(A){var B=new Date().valueOf();
this.sIFrameHtmlUrl=A+"iframe.html?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sRequestUrl=A+"request/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sResponseUrl=A+"response/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sPublishUrl=A+"publish/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sSubscribeUrl=A+"subscribe/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sUnSubscribeUrl=A+"unsubscribe/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sDisconnectUrl=A+"disconnect/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sCloseResponseUrl=A+"closeresponse/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B;
this.sPollingUrl=A+"poll/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+B
},buildOnRequestComplete:function(A){return function(){var C=A.pRequestQueue[0];
var B=null;
try{B=A.eRequestIFrame.contentWindow.document.body.innerHTML
}catch(D){A.oLogger.log("buildOnRequestComplete(): Error getting iFrame contents for url ["+C.url+"]: "+D)
}if(C!==undefined&&B!==null){C.callback(C.topic,B);
A.pRequestQueue.shift()
}A.processRequestQueue()
}
},preConnectCleanUp:function(){this.eRequestIFrame=document.getElementById("requestIFrame");
this.eResponseIFrame=document.getElementById("responseIFrame");
(this.buildCleanUp(this))()
},buildCleanUp:function(A){return function(){try{if(A.isDeliberateDisconnect===false){A.imageRequest(A.sDisconnectUrl)
}A.bConnectCalled=false;
if(A.pRequestQueue!==undefined&&A.pRequestQueue.length>0){A.pRequestQueue=[]
}if(A.eRequestIFrame!==undefined&&A.eRequestIFrame!==null){A.eRequestIFrame.src="";
A.eRequestIFrame.contentWindow.document.close();
A.eRequestIFrame=null
}if(A.eResponseIFrame!==undefined&&A.eResponseIFrame!==null){A.eResponseIFrame.src="";
A.eResponseIFrame.contentWindow.document.close();
A.eResponseIFrame=null
}if(A.tranferDoc!==undefined){A.transferDoc=null
}if(window.x){window.x=null
}if(window.r){window.r=null
}if(window.CollectGarbage){CollectGarbage()
}}catch(C){try{A.oLogger.log("Error during cleanup '"+C+"'")
}catch(B){}}}
}};
StreamHub.ConnectionListener=function(){};
StreamHub.ConnectionListener.prototype={onConnectionEstablished:function(){},onConnectionLost:function(){}};
StreamHub.Browser={isWebkitFamily:function(){return navigator.userAgent.indexOf("WebKit/")>-1
},isIEFamily:function(){return navigator.userAgent.indexOf("MSIE")>-1
},isFirefoxFamily:function(){return navigator.userAgent.indexOf("Firefox/")>-1
},isFF3:function(){return navigator.userAgent.indexOf("Firefox/3")>-1
},isSafari:function(){return navigator.userAgent.indexOf("Safari/")>-1&&navigator.userAgent.indexOf("Chrome/")<0
},isChrome:function(){return navigator.userAgent.indexOf("Chrome/")>-1
},isIE6:function(){return navigator.userAgent.indexOf("MSIE 6")>-1
},isIE7:function(){return navigator.userAgent.indexOf("MSIE 7")>-1
},isIE8:function(){return navigator.userAgent.indexOf("MSIE 8")>-1
}};
StreamHub.ElementLogger=function(A){this.oDoc=document;
this.eLogContainer=this.oDoc.getElementById(A.elementId)
};
StreamHub.ElementLogger.prototype={log:function(B){var A=this.oDoc.createElement("DIV");
A.innerHTML=B;
this.eLogContainer.appendChild(A)
}};
StreamHub.NullLogger=function(){};
StreamHub.NullLogger.prototype={log:function(){}};
StreamHub.CountLogger=function(A){this.nCount=0;
this.eLogContainer=document.getElementById(A.elementId)
};
StreamHub.CountLogger.prototype={log:function(A){this.eLogContainer.innerHTML=(++this.nCount)+" messages logged"
}};
StreamHub.DomainUtils={pTLDs:["com","net","org","gov","co"],pNumbers:["0","1","2","3","4","5","6","7","8","9"],extractDomain:function(B){var C=B.charAt(B.length-1);
if(StreamHub.DomainUtils.isNumeric(C)){return B
}var D=B.split(".");
var E=D.length-2;
if(StreamHub.DomainUtils.isTLD(D[E])&&D.length>2){E=D.length-3
}var A=D.length-E;
return D.splice(E,A).join(".")
},isNumeric:function(B){for(var A=0;
A<StreamHub.DomainUtils.pNumbers.length;
A++){if(B===StreamHub.DomainUtils.pNumbers[A]){return true
}}return false
},isTLD:function(B){for(var A=0;
A<StreamHub.DomainUtils.pTLDs.length;
A++){if(B===StreamHub.DomainUtils.pTLDs[A]){return true
}}return false
}};var StreamHub=function(){this.pRequestQueue=[];
this.mTopicToListener={};
this.sDomain=StreamHub.DomainUtils.extractDomain(document.domain);
this.bIsResponseIFrameConnected=false;
this.bHasRequestIFrameConnected=false;
this.connectionMonitorId=null;
this.oLogger=new StreamHub.NullLogger();
this.sUid=new Date().valueOf();
this.pConnectionListeners=[]
};
StreamHub.POLLING_CONNECTION="POLL";
StreamHub.STREAMING_CONNECTION="STREAM";
StreamHub.prototype={connect:function(B){this.sUrl=B;
this.sConnectionType=StreamHub.STREAMING_CONNECTION;
document.domain=this.sDomain;
if(B.serverList){this.sUid=B.staticUID||this.sUid;
this.sFailoverAlgorithm=(B.failoverAlgorithm===undefined)?"ordered":B.failoverAlgorithm;
this.nReconnectDelayMillis=this.nInitialReconnectDelayMillis=(B.initialReconnectDelayMillis===undefined)?1000:B.initialReconnectDelayMillis;
this.nMaxReconnectDelayMillis=(B.maxReconnectDelayMillis===undefined)?-1:B.maxReconnectDelayMillis;
this.nMaxReconnectAttempts=(B.maxReconnectAttempts===undefined)?-1:B.maxReconnectAttempts;
this.bExponentialBackOff=(B.useExponentialBackOff===undefined)?false:B.useExponentialBackOff;
this.nBackOffMultiplier=(B.backOffMultiplier===undefined)?1:B.backOffMultiplier;
this.sConnectionType=(B.connectionType===undefined)?StreamHub.STREAMING_CONNECTION:B.connectionType;
this.nReconnectAttempts=0;
this.pServerList=B.serverList;
this.nServerIndex=0;
this.sUrl=B.serverList[this.nServerIndex];
if(this.sFailoverAlgorithm=="priority"){this.nServerIndex=-1
}}this.doConnect(this.sUrl)
},disconnect:function(){this.oLogger.log("Disconnecting");
this.stopPolling();
this.request(this.sDisconnectUrl,"disconnect",this.buildDisconnectionResponse(this));
this.isDeliberateDisconnect=true
},subscribe:function(F,G){this.addSubscriptionListeners(F,G);
var H=this.buildSubscriptionList(F);
var E=this.sSubscribeUrl+"&topic="+H;
this.request(E,H,this.buildSubscriptionResponse(this))
},unsubscribe:function(E){var D=this.buildSubscriptionList(E);
var F=this.sUnSubscribeUrl+"&topic="+D;
this.request(F,D,this.buildUnSubscribeResponse(this))
},publish:function(D,E){var F=this.sPublishUrl+"&topic="+D+"&payload="+encodeURIComponent(E);
this.oLogger.log("Publishing to "+F);
this.request(F,D,this.buildPublishResponse(this))
},setLogger:function(B){if(typeof B.log!=="function"){alert("Logger must have a function called 'log'")
}else{this.oLogger=B
}},addConnectionListener:function(B){this.pConnectionListeners.push(B)
},connectFrames:function(B){if(StreamHub.Browser.isIEFamily()){if(this.sConnectionType===StreamHub.STREAMING_CONNECTION){this.eResponseIFrame=this.addIFrame({id:"responseIFrame"+new Date().valueOf(),src:""});
this.connectResponseIFrame()
}this.eRequestIFrame=this.addIFrame({id:"requestFrame"+new Date().valueOf(),src:""});
this.connectRequestIFrame()
}else{this.eContainerIFrame=this.addIFrame({id:"containerIFrame"+new Date().valueOf(),src:this.sIFrameHtmlUrl})
}},doConnect:function(B){this.preConnectCleanUp();
window.x=this.buildOnResponseData(this);
if(this.sConnectionType===StreamHub.STREAMING_CONNECTION){if(StreamHub.Browser.isFirefoxFamily()&&!StreamHub.Browser.isFF3()){window.l=this.buildConnectionLost(this)
}else{window.l=function(){}
}}window.c=this.buildConnect(this);
window.onunload=this.buildCleanUp(this);
if(StreamHub.Browser.isIEFamily()||StreamHub.Browser.isFF3()){window.r=this.buildOnRequestComplete(this)
}this.buildUrls(B);
this.connectFrames(B);
if(this.sConnectionType===StreamHub.STREAMING_CONNECTION){this.startInitialConnectMonitor()
}},startInitialConnectMonitor:function(){var B=this;
setTimeout(function(){if(!B.isResponseIFrameConnected()&&B.bHasRequestIFrameConnected===false){B.oLogger.log("Failing over to polling connection");
B.cancelConnectionMonitor.apply(B);
B.closeResponseChannel.apply(B);
B.sConnectionType=StreamHub.POLLING_CONNECTION;
B.startPolling.apply(B)
}},2000)
},buildConnect:function(B){return function(){if(B.bConnectCalled===false){B.bConnectCalled=true;
var A=B.eContainerIFrame.contentWindow.document.getElementsByTagName("frame");
B.eRequestIFrame=A[0];
B.eResponseIFrame=A[1];
B.connectRequestIFrame.apply(B);
if(B.sConnectionType===StreamHub.STREAMING_CONNECTION){B.connectResponseIFrame.apply(B)
}}}
},addSubscriptionListeners:function(E,F){if(E instanceof Array){for(var D=0;
D<E.length;
D++){this.addTopicListener(E[D],F)
}}else{this.addTopicListener(E,F)
}},buildSubscriptionList:function(F){var H=F;
if(F instanceof Array){H="";
for(var E=0;
E<F.length;
E++){var G=F[E];
H+=G;
if(E!=(F.length-1)){H+=","
}}}return H
},connectRequestIFrame:function(){this.oLogger.log("Connecting request iFrame to "+this.sRequestUrl);
this.request(this.sRequestUrl,"Connect",this.buildConnectionResponse(this))
},connectResponseIFrame:function(){this.oLogger.log("Connecting response iFrame to "+this.sResponseUrl);
if(StreamHub.Browser.isIEFamily()){this.eResponseIFrame.src=this.sResponseUrl
}else{if(this.eContainerIFrame.contentWindow.connect===undefined){this.oLogger.log("Could not connect to response iframe");
this.reconnect();
return 
}this.eContainerIFrame.contentWindow.connect(this.sResponseUrl)
}this.startConnectionMonitor()
},setOnLoad:function(C,D){if(C.addEventListener){C.onload=D
}else{if(C.attachEvent){C.onload=null;
C.attachEvent("onload",D)
}}},addTopicListener:function(D,C){this.mTopicToListener[D]=C
},buildPollingHandler:function(oHub){return function(sTopic,sResponse){try{var pMessages=eval("("+sResponse+")");
oHub.oLogger.log("Polling response is : "+sResponse+" for topic '"+sTopic+"'. Num messages: "+pMessages.length);
for(var i=0;
i<pMessages.length;
i++){x(pMessages[i])
}}catch(e){oHub.oLogger.log("Problem parsing poll response: "+e)
}}
},buildSubscriptionResponse:function(B){return function(A,D){B.oLogger.log("Subscription response is : "+D+" for topic '"+A+"'")
}
},buildUnSubscribeResponse:function(B){return function(A,D){B.oLogger.log("Unsubscribe response is : "+D+" for topic '"+A+"'")
}
},buildPublishResponse:function(B){return function(A,D){B.oLogger.log("Publish response is : "+D+" for topic '"+A+"'")
}
},buildConnectionResponse:function(B){return function(A,D){B.bHasRequestIFrameConnected=true;
B.oLogger.log("Connection response is : "+D);
if(B.sConnectionType===StreamHub.POLLING_CONNECTION){B.startPolling.apply(B)
}}
},buildDisconnectionResponse:function(B){return function(A,D){B.oLogger.log("Disconnection response is : "+D)
}
},reconnect:function(){if(this.isDeliberateDisconnect!==true&&!this.isResponseIFrameConnected()&&(this.nMaxReconnectAttempts==-1||this.nReconnectAttempts<this.nMaxReconnectAttempts)){try{var D=this;
clearTimeout(this.reconnectorId);
if(this.bExponentialBackOff&&this.nReconnectAttempts>0){this.nReconnectDelayMillis*=this.nBackOffMultiplier;
if(this.nMaxReconnectDelayMillis!=-1&&this.nReconnectDelayMillis>this.nMaxReconnectDelayMillis){this.nReconnectDelayMillis=this.nMaxReconnectDelayMillis
}}this.oLogger.log("Attempting reconnect in "+this.nReconnectDelayMillis+"ms");
this.reconnectorId=setTimeout(function(){if((D.nMaxReconnectAttempts==-1||D.nReconnectAttempts<D.nMaxReconnectAttempts)&&!D.isResponseIFrameConnected.apply(D)){if(D.sFailoverAlgorithm=="priority"){D.nServerIndex=(D.nServerIndex+1)%D.pServerList.length
}D.doReconnection.apply(D)
}},this.nReconnectDelayMillis)
}catch(C){this.oLogger.log("Error setting interval: "+C)
}}},doReconnection:function(){var D=this.sUrl;
if(this.nServerIndex!==undefined){var C=this.pServerList.length;
if(this.sFailoverAlgorithm=="ordered"){this.nServerIndex=(this.nServerIndex+1)%C
}else{if(this.sFailoverAlgorithm=="random"){this.nServerIndex=Math.floor(Math.random()*C)
}}D=this.pServerList[this.nServerIndex]
}this.nReconnectAttempts++;
this.oLogger.log("Reconnecting... Trying "+D);
this.doConnect(D);
this.reconnect()
},onReconnect:function(){try{clearTimeout(this.reconnectorId)
}catch(B){}if(this.sFailoverAlgorithm=="priority"){this.nServerIndex=-1
}this.nReconnectAttempts=0;
this.nReconnectDelayMillis=this.nInitialReconnectDelayMillis;
this.notifyConnectionEstablishedListeners()
},buildConnectionLost:function(B){return function(){B.oLogger.log("Lost connection to server");
B.notifyConnectionLostListeners.apply(B);
B.bIsResponseIFrameConnected=false;
B.reconnect.apply(B)
}
},notifyConnectionLostListeners:function(){for(var B=0;
B<this.pConnectionListeners.length;
B++){this.pConnectionListeners[B].onConnectionLost()
}},notifyConnectionEstablishedListeners:function(){for(var B=0;
B<this.pConnectionListeners.length;
B++){this.pConnectionListeners[B].onConnectionEstablished()
}},imageRequest:function(D){var C=document.createElement("img");
C.src=D;
document.body.appendChild(C)
},request:function(F,D,E){this.pRequestQueue.push({url:F,callback:E,topic:D});
if(this.isResponseIFrameConnected()){this.processRequestQueue()
}},processRequestQueue:function(){if(this.pRequestQueue.length>0){if(!StreamHub.Browser.isIEFamily()&&!StreamHub.Browser.isFF3()){this.setOnLoad(this.eRequestIFrame,this.buildOnRequestComplete(this))
}var F=this.pRequestQueue[0].url;
this.oLogger.log("Requesting: "+F);
if(StreamHub.Browser.isIEFamily()){this.eRequestIFrame.src=F
}else{try{this.eContainerIFrame.contentWindow.request(F,this)
}catch(D){this.oLogger.log("Failed requesting: "+F+". Error was: "+D+". Trying again in 1 second.");
var E=this;
setTimeout(function(){E.processRequestQueue.apply(E)
},1000)
}}}},addIFrame:function(F){var D=document;
if(StreamHub.Browser.isIEFamily()){this.createHtmlFile();
D=this.transferDoc
}var E=this.createIFrame(D,F);
D.body.appendChild(E);
return E
},createElement:function(G,E,H){var F=G.createElement(E);
F.id=H;
return F
},createIFrame:function(F,D){var E=this.createElement(F,"IFRAME",D.id);
E.style.visibility="hidden";
E.style.display="none";
E.style.height="0px";
E.style.width="0px";
E.src=D.src;
if(D.onLoadFn!==undefined){this.setOnLoad(E,D.onLoadFn)
}return E
},createHtmlFile:function(){if(this.transferDoc===undefined){this.transferDoc=new ActiveXObject("htmlfile");
this.transferDoc.open();
this.transferDoc.write("<html>");
this.transferDoc.write("<script>document.domain='"+this.sDomain+"';<\/script>");
this.transferDoc.write("</html>");
this.transferDoc.close();
this.transferDoc.parentWindow.x=x;
this.transferDoc.parentWindow.r=this.buildOnRequestComplete(this)
}},startPolling:function(){this.oLogger.log("Starting poling...");
var B=this;
this.oPollingId=setInterval(function(){B.request(B.sPollingUrl,"poll",B.buildPollingHandler(B))
},1000)
},stopPolling:function(){this.oLogger.log("Stopping poling");
clearInterval(this.oPollingId)
},startConnectionMonitor:function(){if(StreamHub.Browser.isWebkitFamily()){this.setOnLoad(this.eResponseIFrame,this.buildConnectionLost(this))
}else{this.startDefaultConnectionMonitor(this)
}},startDefaultConnectionMonitor:function(B){if(B.connectionMonitorId==null){B.connectionMonitorId=setInterval(function(){var A=B.getIFrameReadyState(B.eResponseIFrame);
if(A=="complete"){clearInterval(B.connectionMonitorId);
B.connectionMonitorId=null;
(B.buildConnectionLost(B))()
}},1000)
}},closeResponseChannel:function(){this.oLogger.log("Closing response channel");
this.eResponseIFrame.src=this.sCloseResponseUrl
},cancelConnectionMonitor:function(){if(StreamHub.Browser.isWebkitFamily()){this.setOnLoad(this.eResponseIFrame,null)
}else{clearInterval(this.connectionMonitorId);
this.connectionMonitorId=null
}},getIFrameReadyState:function(D){if(StreamHub.Browser.isIEFamily()){return D.readyState
}try{return D.readyState||D.contentWindow.document.readyState
}catch(C){return"complete"
}},isResponseIFrameConnected:function(){return this.bIsResponseIFrameConnected||this.sConnectionType===StreamHub.POLLING_CONNECTION
},buildOnResponseData:function(B){return function(A){try{B.oLogger.log("onResponseData via response iFrame : ["+A+"]")
}catch(D){}if(A.topic&&typeof B.mTopicToListener[A.topic]=="function"){B.mTopicToListener[A.topic](A.topic,A)
}else{if(B.isResponseIFrameConnectionOk(A)){B.bIsResponseIFrameConnected=true;
B.addIFrame({id:"blankIFrame"+new Date().valueOf(),src:"about:blank"});
B.onReconnect.apply(B);
B.processRequestQueue()
}}}
},isResponseIFrameConnectionOk:function(B){return B.toString().indexOf("response OK")>-1
},buildUrls:function(C){var D=new Date().valueOf();
this.sIFrameHtmlUrl=C+"iframe.html?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sRequestUrl=C+"request/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sResponseUrl=C+"response/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sPublishUrl=C+"publish/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sSubscribeUrl=C+"subscribe/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sUnSubscribeUrl=C+"unsubscribe/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sDisconnectUrl=C+"disconnect/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sCloseResponseUrl=C+"closeresponse/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D;
this.sPollingUrl=C+"poll/?uid="+this.sUid+"&domain="+this.sDomain+"&r="+D
},buildOnRequestComplete:function(B){return function(){var E=B.pRequestQueue[0];
var F=null;
try{F=B.eRequestIFrame.contentWindow.document.body.innerHTML
}catch(A){B.oLogger.log("buildOnRequestComplete(): Error getting iFrame contents for url ["+E.url+"]: "+A)
}if(E!==undefined&&F!==null){E.callback(E.topic,F);
B.pRequestQueue.shift()
}B.processRequestQueue()
}
},preConnectCleanUp:function(){this.eRequestIFrame=document.getElementById("requestIFrame");
this.eResponseIFrame=document.getElementById("responseIFrame");
(this.buildCleanUp(this))()
},buildCleanUp:function(B){return function(){try{if(B.isDeliberateDisconnect===false){B.imageRequest(B.sDisconnectUrl)
}B.bConnectCalled=false;
if(B.pRequestQueue!==undefined&&B.pRequestQueue.length>0){B.pRequestQueue=[]
}if(B.eRequestIFrame!==undefined&&B.eRequestIFrame!==null){B.eRequestIFrame.src="";
B.eRequestIFrame.contentWindow.document.close();
B.eRequestIFrame=null
}if(B.eResponseIFrame!==undefined&&B.eResponseIFrame!==null){B.eResponseIFrame.src="";
B.eResponseIFrame.contentWindow.document.close();
B.eResponseIFrame=null
}if(B.tranferDoc!==undefined){B.transferDoc=null
}if(window.x){window.x=null
}if(window.r){window.r=null
}if(window.CollectGarbage){CollectGarbage()
}}catch(A){try{B.oLogger.log("Error during cleanup '"+A+"'")
}catch(D){}}}
}};
StreamHub.ConnectionListener=function(){};
StreamHub.ConnectionListener.prototype={onConnectionEstablished:function(){},onConnectionLost:function(){}};
StreamHub.Browser={isWebkitFamily:function(){return navigator.userAgent.indexOf("WebKit/")>-1
},isIEFamily:function(){return navigator.userAgent.indexOf("MSIE")>-1
},isFirefoxFamily:function(){return navigator.userAgent.indexOf("Firefox/")>-1
},isFF3:function(){return navigator.userAgent.indexOf("Firefox/3")>-1
},isSafari:function(){return navigator.userAgent.indexOf("Safari/")>-1&&navigator.userAgent.indexOf("Chrome/")<0
},isChrome:function(){return navigator.userAgent.indexOf("Chrome/")>-1
},isIE6:function(){return navigator.userAgent.indexOf("MSIE 6")>-1
},isIE7:function(){return navigator.userAgent.indexOf("MSIE 7")>-1
},isIE8:function(){return navigator.userAgent.indexOf("MSIE 8")>-1
}};
StreamHub.ElementLogger=function(B){this.oDoc=document;
this.eLogContainer=this.oDoc.getElementById(B.elementId)
};
StreamHub.ElementLogger.prototype={log:function(D){var C=this.oDoc.createElement("DIV");
C.innerHTML=D;
this.eLogContainer.appendChild(C)
}};
StreamHub.NullLogger=function(){};
StreamHub.NullLogger.prototype={log:function(){}};
StreamHub.CountLogger=function(B){this.nCount=0;
this.eLogContainer=document.getElementById(B.elementId)
};
StreamHub.CountLogger.prototype={log:function(B){this.eLogContainer.innerHTML=(++this.nCount)+" messages logged"
}};
StreamHub.DomainUtils={pTLDs:["com","net","org","gov","co"],pNumbers:["0","1","2","3","4","5","6","7","8","9"],extractDomain:function(J){var I=J.charAt(J.length-1);
if(StreamHub.DomainUtils.isNumeric(I)){return J
}var H=J.split(".");
var G=H.length-2;
if(StreamHub.DomainUtils.isTLD(H[G])&&H.length>2){G=H.length-3
}var F=H.length-G;
return H.splice(G,F).join(".")
},isNumeric:function(D){for(var C=0;
C<StreamHub.DomainUtils.pNumbers.length;
C++){if(D===StreamHub.DomainUtils.pNumbers[C]){return true
}}return false
},isTLD:function(D){for(var C=0;
C<StreamHub.DomainUtils.pTLDs.length;
C++){if(D===StreamHub.DomainUtils.pTLDs[C]){return true
}}return false
}};