/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var A=this,o,N=A.jQuery,E=A.$,D=A.jQuery=A.$=function(T,U){return new D.fn.init(T,U)},S=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,n=/^.[^:#\[\.,]*$/;D.fn=D.prototype={init:function(T,W){T=T||document;if(T.nodeType){this[0]=T;this.length=1;this.context=T;return this}if(typeof T==="string"){var V=S.exec(T);if(V&&(V[1]||!W)){if(V[1]){T=D.clean([V[1]],W)}else{var X=document.getElementById(V[3]);if(X&&X.id!=V[3]){return D().find(T)}var U=D(X||[]);U.context=document;U.selector=T;return U}}else{return D(W).find(T)}}else{if(D.isFunction(T)){return D(document).ready(T)}}if(T.selector&&T.context){this.selector=T.selector;this.context=T.context}return this.setArray(D.isArray(T)?T:D.makeArray(T))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(T){return T===o?Array.prototype.slice.call(this):this[T]},pushStack:function(U,W,T){var V=D(U);V.prevObject=this;V.context=this.context;if(W==="find"){V.selector=this.selector+(this.selector?" ":"")+T}else{if(W){V.selector=this.selector+"."+W+"("+T+")"}}return V},setArray:function(T){this.length=0;Array.prototype.push.apply(this,T);return this},each:function(U,T){return D.each(this,U,T)},index:function(T){return D.inArray(T&&T.jquery?T[0]:T,this)},attr:function(U,W,V){var T=U;if(typeof U==="string"){if(W===o){return this[0]&&D[V||"attr"](this[0],U)}else{T={};T[U]=W}}return this.each(function(X){for(U in T){D.attr(V?this.style:this,U,D.prop(this,T[U],V,X,U))}})},css:function(T,U){if((T=="width"||T=="height")&&parseFloat(U)<0){U=o}return this.attr(T,U,"curCSS")},text:function(U){if(typeof U!=="object"&&U!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(U))}var T="";D.each(U||this,function(){D.each(this.childNodes,function(){if(this.nodeType!=8){T+=this.nodeType!=1?this.nodeValue:D.fn.text([this])}})});return T},wrapAll:function(T){if(this[0]){var U=D(T,this[0].ownerDocument).clone();if(this[0].parentNode){U.insertBefore(this[0])}U.map(function(){var V=this;while(V.firstChild){V=V.firstChild}return V}).append(this)}return this},wrapInner:function(T){return this.each(function(){D(this).contents().wrapAll(T)})},wrap:function(T){return this.each(function(){D(this).wrapAll(T)})},append:function(){return this.domManip(arguments,true,function(T){if(this.nodeType==1){this.appendChild(T)}})},prepend:function(){return this.domManip(arguments,true,function(T){if(this.nodeType==1){this.insertBefore(T,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(T){this.parentNode.insertBefore(T,this)})},after:function(){return this.domManip(arguments,false,function(T){this.parentNode.insertBefore(T,this.nextSibling)})},end:function(){return this.prevObject||D([])},push:[].push,sort:[].sort,splice:[].splice,find:function(T){if(this.length===1){var U=this.pushStack([],"find",T);U.length=0;D.find(T,this[0],U);return U}else{return this.pushStack(D.unique(D.map(this,function(V){return D.find(T,V)})),"find",T)}},clone:function(V){var T=this.map(function(){if(!D.support.noCloneEvent&&!D.isXMLDoc(this)){var X=this.outerHTML;if(!X){var Y=this.ownerDocument.createElement("div");Y.appendChild(this.cloneNode(true));X=Y.innerHTML}return D.clean([X.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(V===true){var W=this.find("*").andSelf(),U=0;T.find("*").andSelf().each(function(){if(this.nodeName!==W[U].nodeName){return}var X=D.data(W[U],"events");for(var Z in X){for(var Y in X[Z]){D.event.add(this,Z,X[Z][Y],X[Z][Y].data)}}U++})}return T},filter:function(T){return this.pushStack(D.isFunction(T)&&D.grep(this,function(V,U){return T.call(V,U)})||D.multiFilter(T,D.grep(this,function(U){return U.nodeType===1})),"filter",T)},closest:function(T){var V=D.expr.match.POS.test(T)?D(T):null,U=0;return this.map(function(){var W=this;while(W&&W.ownerDocument){if(V?V.index(W)>-1:D(W).is(T)){D.data(W,"closest",U);return W}W=W.parentNode;U++}})},not:function(T){if(typeof T==="string"){if(n.test(T)){return this.pushStack(D.multiFilter(T,this,true),"not",T)}else{T=D.multiFilter(T,this)}}var U=T.length&&T[T.length-1]!==o&&!T.nodeType;return this.filter(function(){return U?D.inArray(this,T)<0:this!=T})},add:function(T){return this.pushStack(D.unique(D.merge(this.get(),typeof T==="string"?D(T):D.makeArray(T))))},is:function(T){return !!T&&D.multiFilter(T,this).length>0},hasClass:function(T){return !!T&&this.is("."+T)},val:function(Z){if(Z===o){var T=this[0];if(T){if(D.nodeName(T,"option")){return(T.attributes.value||{}).specified?T.value:T.text}if(D.nodeName(T,"select")){var X=T.selectedIndex,aa=[],ab=T.options,W=T.type=="select-one";if(X<0){return null}for(var U=W?X:0,Y=W?X+1:ab.length;U<Y;U++){var V=ab[U];if(V.selected){Z=D(V).val();if(W){return Z}aa.push(Z)}}return aa}return(T.value||"").replace(/\r/g,"")}return o}if(typeof Z==="number"){Z+=""}return this.each(function(){if(this.nodeType!=1){return}if(D.isArray(Z)&&/radio|checkbox/.test(this.type)){this.checked=(D.inArray(this.value,Z)>=0||D.inArray(this.name,Z)>=0)}else{if(D.nodeName(this,"select")){var ac=D.makeArray(Z);D("option",this).each(function(){this.selected=(D.inArray(this.value,ac)>=0||D.inArray(this.text,ac)>=0)});if(!ac.length){this.selectedIndex=-1}}else{this.value=Z}}})},html:function(T){return T===o?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(T)},replaceWith:function(T){return this.after(T).remove()},eq:function(T){return this.slice(T,+T+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(T){return this.pushStack(D.map(this,function(V,U){return T.call(V,U,V)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(Y,ab,aa){if(this[0]){var X=(this[0].ownerDocument||this[0]).createDocumentFragment(),U=D.clean(Y,(this[0].ownerDocument||this[0]),X),W=X.firstChild;if(W){for(var V=0,T=this.length;V<T;V++){aa.call(Z(this[V],W),this.length>1||V>0?X.cloneNode(true):X)}}if(U){D.each(U,O)}}return this;function Z(ac,ad){return ab&&D.nodeName(ac,"table")&&D.nodeName(ad,"tr")?(ac.getElementsByTagName("tbody")[0]||ac.appendChild(ac.ownerDocument.createElement("tbody"))):ac}}};D.fn.init.prototype=D.fn;function O(T,U){if(U.src){D.ajax({url:U.src,async:false,dataType:"script"})}else{D.globalEval(U.text||U.textContent||U.innerHTML||"")}if(U.parentNode){U.parentNode.removeChild(U)}}function k(){return +new Date}D.extend=D.fn.extend=function(){var Y=arguments[0]||{},W=1,X=arguments.length,T=false,V;if(typeof Y==="boolean"){T=Y;Y=arguments[1]||{};W=2}if(typeof Y!=="object"&&!D.isFunction(Y)){Y={}}if(X==W){Y=this;--W}for(;W<X;W++){if((V=arguments[W])!=null){for(var U in V){var Z=Y[U],aa=V[U];if(Y===aa){continue}if(T&&aa&&typeof aa==="object"&&!aa.nodeType){Y[U]=D.extend(T,Z||(aa.length!=null?[]:{}),aa)}else{if(aa!==o){Y[U]=aa}}}}}return Y};var f=/z-?index|font-?weight|opacity|zoom|line-?height/i,F=document.defaultView||{},H=Object.prototype.toString;D.extend({noConflict:function(T){A.$=E;if(T){A.jQuery=N}return D},isFunction:function(T){return H.call(T)==="[object Function]"},isArray:function(T){return H.call(T)==="[object Array]"},isXMLDoc:function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&D.isXMLDoc(T.ownerDocument)},globalEval:function(V){if(V&&/\S/.test(V)){var U=document.getElementsByTagName("head")[0]||document.documentElement,T=document.createElement("script");T.type="text/javascript";if(D.support.scriptEval){T.appendChild(document.createTextNode(V))}else{T.text=V}U.insertBefore(T,U.firstChild);U.removeChild(T)}},nodeName:function(U,T){return U.nodeName&&U.nodeName.toUpperCase()==T.toUpperCase()},each:function(V,Z,U){var T,W=0,X=V.length;if(U){if(X===o){for(T in V){if(Z.apply(V[T],U)===false){break}}}else{for(;W<X;){if(Z.apply(V[W++],U)===false){break}}}}else{if(X===o){for(T in V){if(Z.call(V[T],T,V[T])===false){break}}}else{for(var Y=V[0];W<X&&Z.call(Y,W,Y)!==false;Y=V[++W]){}}}return V},prop:function(W,X,V,U,T){if(D.isFunction(X)){X=X.call(W,U)}return typeof X==="number"&&V=="curCSS"&&!f.test(T)?X+"px":X},className:{add:function(T,U){D.each((U||"").split(/\s+/),function(V,W){if(T.nodeType==1&&!D.className.has(T.className,W)){T.className+=(T.className?" ":"")+W}})},remove:function(T,U){if(T.nodeType==1){T.className=U!==o?D.grep(T.className.split(/\s+/),function(V){return !D.className.has(U,V)}).join(" "):""}},has:function(U,T){return U&&D.inArray(T,(U.className||U).toString().split(/\s+/))>-1}},swap:function(W,V,X){var T={};for(var U in V){T[U]=W.style[U];W.style[U]=V[U]}X.call(W);for(var U in V){W.style[U]=T[U]}},css:function(W,U,Y,T){if(U=="width"||U=="height"){var aa,V={position:"absolute",visibility:"hidden",display:"block"},Z=U=="width"?["Left","Right"]:["Top","Bottom"];function X(){aa=U=="width"?W.offsetWidth:W.offsetHeight;if(T==="border"){return}D.each(Z,function(){if(!T){aa-=parseFloat(D.curCSS(W,"padding"+this,true))||0}if(T==="margin"){aa+=parseFloat(D.curCSS(W,"margin"+this,true))||0}else{aa-=parseFloat(D.curCSS(W,"border"+this+"Width",true))||0}})}if(W.offsetWidth!==0){X()}else{D.swap(W,V,X)}return Math.max(0,Math.round(aa))}return D.curCSS(W,U,Y)},curCSS:function(X,U,V){var aa,T=X.style;if(U=="opacity"&&!D.support.opacity){aa=D.attr(T,"opacity");return aa==""?"1":aa}if(U.match(/float/i)){U=L}if(!V&&T&&T[U]){aa=T[U]}else{if(F.getComputedStyle){if(U.match(/float/i)){U="float"}U=U.replace(/([A-Z])/g,"-$1").toLowerCase();var ab=F.getComputedStyle(X,null);if(ab){aa=ab.getPropertyValue(U)}if(U=="opacity"&&aa==""){aa="1"}}else{if(X.currentStyle){var Y=U.replace(/\-(\w)/g,function(ac,ad){return ad.toUpperCase()});aa=X.currentStyle[U]||X.currentStyle[Y];if(!/^\d+(px)?$/i.test(aa)&&/^\d/.test(aa)){var W=T.left,Z=X.runtimeStyle.left;X.runtimeStyle.left=X.currentStyle.left;T.left=aa||0;aa=T.pixelLeft+"px";T.left=W;X.runtimeStyle.left=Z}}}}return aa},clean:function(U,Z,X){Z=Z||document;if(typeof Z.createElement==="undefined"){Z=Z.ownerDocument||Z[0]&&Z[0].ownerDocument||document}if(!X&&U.length===1&&typeof U[0]==="string"){var W=/^<(\w+)\s*\/?>$/.exec(U[0]);if(W){return[Z.createElement(W[1])]}}var V=[],T=[],aa=Z.createElement("div");D.each(U,function(ae,ah){if(typeof ah==="number"){ah+=""}if(!ah){return}if(typeof ah==="string"){ah=ah.replace(/(<(\w+)[^>]*?)\/>/g,function(aj,ak,ai){return ai.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?aj:ak+"></"+ai+">"});var ad=ah.replace(/^\s+/,"").substring(0,10).toLowerCase();var af=!ad.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!ad.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||ad.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!ad.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!ad.indexOf("<td")||!ad.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!ad.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!D.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];aa.innerHTML=af[1]+ah+af[2];while(af[0]--){aa=aa.lastChild}if(!D.support.tbody){var ag=/<tbody/i.test(ah),ac=!ad.indexOf("<table")&&!ag?aa.firstChild&&aa.firstChild.childNodes:af[1]=="<table>"&&!ag?aa.childNodes:[];for(var ab=ac.length-1;ab>=0;--ab){if(D.nodeName(ac[ab],"tbody")&&!ac[ab].childNodes.length){ac[ab].parentNode.removeChild(ac[ab])}}}if(!D.support.leadingWhitespace&&/^\s/.test(ah)){aa.insertBefore(Z.createTextNode(ah.match(/^\s*/)[0]),aa.firstChild)}ah=D.makeArray(aa.childNodes)}if(ah.nodeType){V.push(ah)}else{V=D.merge(V,ah)}});if(X){for(var Y=0;V[Y];Y++){if(D.nodeName(V[Y],"script")&&(!V[Y].type||V[Y].type.toLowerCase()==="text/javascript")){T.push(V[Y].parentNode?V[Y].parentNode.removeChild(V[Y]):V[Y])}else{if(V[Y].nodeType===1){V.splice.apply(V,[Y+1,0].concat(D.makeArray(V[Y].getElementsByTagName("script"))))}X.appendChild(V[Y])}}return T}return V},attr:function(Y,V,Z){if(!Y||Y.nodeType==3||Y.nodeType==8){return o}var W=!D.isXMLDoc(Y),aa=Z!==o;V=W&&D.props[V]||V;if(Y.tagName){var U=/href|src|style/.test(V);if(V=="selected"&&Y.parentNode){Y.parentNode.selectedIndex}if(V in Y&&W&&!U){if(aa){if(V=="type"&&D.nodeName(Y,"input")&&Y.parentNode){throw"type property can't be changed"}Y[V]=Z}if(D.nodeName(Y,"form")&&Y.getAttributeNode(V)){return Y.getAttributeNode(V).nodeValue}if(V=="tabIndex"){var X=Y.getAttributeNode("tabIndex");return X&&X.specified?X.value:Y.nodeName.match(/(button|input|object|select|textarea)/i)?0:Y.nodeName.match(/^(a|area)$/i)&&Y.href?0:o}return Y[V]}if(!D.support.style&&W&&V=="style"){return D.attr(Y.style,"cssText",Z)}if(aa){Y.setAttribute(V,""+Z)}var T=!D.support.hrefNormalized&&W&&U?Y.getAttribute(V,2):Y.getAttribute(V);return T===null?o:T}if(!D.support.opacity&&V=="opacity"){if(aa){Y.zoom=1;Y.filter=(Y.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(Z)+""=="NaN"?"":"alpha(opacity="+Z*100+")")}return Y.filter&&Y.filter.indexOf("opacity=")>=0?(parseFloat(Y.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}V=V.replace(/-([a-z])/ig,function(ab,ac){return ac.toUpperCase()});if(aa){Y[V]=Z}return Y[V]},trim:function(T){return(T||"").replace(/^\s+|\s+$/g,"")},makeArray:function(V){var T=[];if(V!=null){var U=V.length;if(U==null||typeof V==="string"||D.isFunction(V)||V.setInterval){T[0]=V}else{while(U){T[--U]=V[U]}}}return T},inArray:function(V,W){for(var T=0,U=W.length;T<U;T++){if(W[T]===V){return T}}return -1},merge:function(W,T){var U=0,V,X=W.length;if(!D.support.getAll){while((V=T[U++])!=null){if(V.nodeType!=8){W[X++]=V}}}else{while((V=T[U++])!=null){W[X++]=V}}return W},unique:function(Z){var U=[],T={};try{for(var V=0,W=Z.length;V<W;V++){var Y=D.data(Z[V]);if(!T[Y]){T[Y]=true;U.push(Z[V])}}}catch(X){U=Z}return U},grep:function(U,Y,T){var V=[];for(var W=0,X=U.length;W<X;W++){if(!T!=!Y(U[W],W)){V.push(U[W])}}return V},map:function(T,Y){var U=[];for(var V=0,W=T.length;V<W;V++){var X=Y(T[V],V);if(X!=null){U[U.length]=X}}return U.concat.apply([],U)}});var R=navigator.userAgent.toLowerCase();D.browser={version:(R.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(R),opera:/opera/.test(R),msie:/msie/.test(R)&&!/opera/.test(R),mozilla:/mozilla/.test(R)&&!/(compatible|webkit)/.test(R)};D.each({parent:function(T){return T.parentNode},parents:function(T){return D.dir(T,"parentNode")},next:function(T){return D.nth(T,2,"nextSibling")},prev:function(T){return D.nth(T,2,"previousSibling")},nextAll:function(T){return D.dir(T,"nextSibling")},prevAll:function(T){return D.dir(T,"previousSibling")},siblings:function(T){return D.sibling(T.parentNode.firstChild,T)},children:function(T){return D.sibling(T.firstChild)},contents:function(T){return D.nodeName(T,"iframe")?T.contentDocument||T.contentWindow.document:D.makeArray(T.childNodes)}},function(T,U){D.fn[T]=function(V){var W=D.map(this,U);if(V&&typeof V=="string"){W=D.multiFilter(V,W)}return this.pushStack(D.unique(W),T,V)}});D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(T,U){D.fn[T]=function(V){var Y=[],aa=D(V);for(var Z=0,W=aa.length;Z<W;Z++){var X=(Z>0?this.clone(true):this).get();D.fn[U].apply(D(aa[Z]),X);Y=Y.concat(X)}return this.pushStack(Y,T,V)}});D.each({removeAttr:function(T){D.attr(this,T,"");if(this.nodeType==1){this.removeAttribute(T)}},addClass:function(T){D.className.add(this,T)},removeClass:function(T){D.className.remove(this,T)},toggleClass:function(U,T){if(typeof T!=="boolean"){T=!D.className.has(this,U)}D.className[T?"add":"remove"](this,U)},remove:function(T){if(!T||D.filter(T,[this]).length){D("*",this).add([this]).each(function(){D.event.remove(this);D.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){D(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(T,U){D.fn[T]=function(){return this.each(U,arguments)}});function y(T,U){return T[0]&&parseInt(D.curCSS(T[0],U,true),10)||0}var q="jQuery"+k(),K=0,P={};D.extend({cache:{},data:function(U,T,V){U=U==A?P:U;var W=U[q];if(!W){W=U[q]=++K}if(T&&!D.cache[W]){D.cache[W]={}}if(V!==o){D.cache[W][T]=V}return T?D.cache[W][T]:W},removeData:function(U,T){U=U==A?P:U;var W=U[q];if(T){if(D.cache[W]){delete D.cache[W][T];T="";for(T in D.cache[W]){break}if(!T){D.removeData(U)}}}else{try{delete U[q]}catch(V){if(U.removeAttribute){U.removeAttribute(q)}}delete D.cache[W]}},queue:function(U,T,W){if(U){T=(T||"fx")+"queue";var V=D.data(U,T);if(!V||D.isArray(W)){V=D.data(U,T,D.makeArray(W))}else{if(W){V.push(W)}}}return V},dequeue:function(W,V){var T=D.queue(W,V),U=T.shift();if(!V||V==="fx"){U=T[0]}if(U!==o){U.call(W)}}});D.fn.extend({data:function(T,V){var W=T.split(".");W[1]=W[1]?"."+W[1]:"";if(V===o){var U=this.triggerHandler("getData"+W[1]+"!",[W[0]]);if(U===o&&this.length){U=D.data(this[0],T)}return U===o&&W[1]?this.data(W[0]):U}else{return this.trigger("setData"+W[1]+"!",[W[0],V]).each(function(){D.data(this,T,V)})}},removeData:function(T){return this.each(function(){D.removeData(this,T)})},queue:function(T,U){if(typeof T!=="string"){U=T;T="fx"}if(U===o){return D.queue(this[0],T)}return this.each(function(){var V=D.queue(this,T,U);if(T=="fx"&&V.length==1){V[0].call(this)}})},dequeue:function(T){return this.each(function(){D.dequeue(this,T)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var ag=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,aa=0,W=Object.prototype.toString;var U=function(an,aj,aq,ar){aq=aq||[];aj=aj||document;if(aj.nodeType!==1&&aj.nodeType!==9){return[]}if(!an||typeof an!=="string"){return aq}var ao=[],al,av,ay,ai,at,ak,am=true;ag.lastIndex=0;while((al=ag.exec(an))!==null){ao.push(al[1]);if(al[2]){ak=RegExp.rightContext;break}}if(ao.length>1&&ab.exec(an)){if(ao.length===2&&X.relative[ao[0]]){av=Y(ao[0]+ao[1],aj)}else{av=X.relative[ao[0]]?[aj]:U(ao.shift(),aj);while(ao.length){an=ao.shift();if(X.relative[an]){an+=ao.shift()}av=Y(an,av)}}}else{var au=ar?{expr:ao.pop(),set:T(ar)}:U.find(ao.pop(),ao.length===1&&aj.parentNode?aj.parentNode:aj,af(aj));av=U.filter(au.expr,au.set);if(ao.length>0){ay=T(av)}else{am=false}while(ao.length){var ax=ao.pop(),aw=ax;if(!X.relative[ax]){ax=""}else{aw=ao.pop()}if(aw==null){aw=aj}X.relative[ax](ay,aw,af(aj))}}if(!ay){ay=av}if(!ay){throw"Syntax error, unrecognized expression: "+(ax||an)}if(W.call(ay)==="[object Array]"){if(!am){aq.push.apply(aq,ay)}else{if(aj.nodeType===1){for(var ap=0;ay[ap]!=null;ap++){if(ay[ap]&&(ay[ap]===true||ay[ap].nodeType===1&&Z(aj,ay[ap]))){aq.push(av[ap])}}}else{for(var ap=0;ay[ap]!=null;ap++){if(ay[ap]&&ay[ap].nodeType===1){aq.push(av[ap])}}}}}else{T(ay,aq)}if(ak){U(ak,aj,aq,ar);if(V){hasDuplicate=false;aq.sort(V);if(hasDuplicate){for(var ap=1;ap<aq.length;ap++){if(aq[ap]===aq[ap-1]){aq.splice(ap--,1)}}}}}return aq};U.matches=function(ai,aj){return U(ai,null,null,aj)};U.find=function(ap,ai,aq){var ao,am;if(!ap){return[]}for(var al=0,ak=X.order.length;al<ak;al++){var an=X.order[al],am;if((am=X.match[an].exec(ap))){var aj=RegExp.leftContext;if(aj.substr(aj.length-1)!=="\\"){am[1]=(am[1]||"").replace(/\\/g,"");ao=X.find[an](am,ai,aq);if(ao!=null){ap=ap.replace(X.match[an],"");break}}}}if(!ao){ao=ai.getElementsByTagName("*")}return{set:ao,expr:ap}};U.filter=function(at,ar,aw,al){var ak=at,ay=[],ap=ar,an,ai,ao=ar&&ar[0]&&af(ar[0]);while(at&&ar.length){for(var aq in X.filter){if((an=X.match[aq].exec(at))!=null){var aj=X.filter[aq],ax,av;ai=false;if(ap==ay){ay=[]}if(X.preFilter[aq]){an=X.preFilter[aq](an,ap,aw,ay,al,ao);if(!an){ai=ax=true}else{if(an===true){continue}}}if(an){for(var am=0;(av=ap[am])!=null;am++){if(av){ax=aj(av,an,am,ap);var au=al^!!ax;if(aw&&ax!=null){if(au){ai=true}else{ap[am]=false}}else{if(au){ay.push(av);ai=true}}}}}if(ax!==o){if(!aw){ap=ay}at=at.replace(X.match[aq],"");if(!ai){return[]}break}}}if(at==ak){if(ai==null){throw"Syntax error, unrecognized expression: "+at}else{break}}ak=at}return ap};var X=U.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(ai){return ai.getAttribute("href")}},relative:{"+":function(ap,ai,ao){var am=typeof ai==="string",aq=am&&!/\W/.test(ai),an=am&&!aq;if(aq&&!ao){ai=ai.toUpperCase()}for(var al=0,ak=ap.length,aj;al<ak;al++){if((aj=ap[al])){while((aj=aj.previousSibling)&&aj.nodeType!==1){}ap[al]=an||aj&&aj.nodeName===ai?aj||false:aj===ai}}if(an){U.filter(ai,ap,true)}},">":function(ao,aj,ap){var am=typeof aj==="string";if(am&&!/\W/.test(aj)){aj=ap?aj:aj.toUpperCase();for(var ak=0,ai=ao.length;ak<ai;ak++){var an=ao[ak];if(an){var al=an.parentNode;ao[ak]=al.nodeName===aj?al:false}}}else{for(var ak=0,ai=ao.length;ak<ai;ak++){var an=ao[ak];if(an){ao[ak]=am?an.parentNode:an.parentNode===aj}}if(am){U.filter(aj,ao,true)}}},"":function(al,aj,an){var ak=aa++,ai=ah;if(!aj.match(/\W/)){var am=aj=an?aj:aj.toUpperCase();ai=ae}ai("parentNode",aj,ak,al,am,an)},"~":function(al,aj,an){var ak=aa++,ai=ah;if(typeof aj==="string"&&!aj.match(/\W/)){var am=aj=an?aj:aj.toUpperCase();ai=ae}ai("previousSibling",aj,ak,al,am,an)}},find:{ID:function(aj,ak,al){if(typeof ak.getElementById!=="undefined"&&!al){var ai=ak.getElementById(aj[1]);return ai?[ai]:[]}},NAME:function(ak,an,ao){if(typeof an.getElementsByName!=="undefined"){var aj=[],am=an.getElementsByName(ak[1]);for(var al=0,ai=am.length;al<ai;al++){if(am[al].getAttribute("name")===ak[1]){aj.push(am[al])}}return aj.length===0?null:aj}},TAG:function(ai,aj){return aj.getElementsByTagName(ai[1])}},preFilter:{CLASS:function(al,aj,ak,ai,ao,ap){al=" "+al[1].replace(/\\/g,"")+" ";if(ap){return al}for(var am=0,an;(an=aj[am])!=null;am++){if(an){if(ao^(an.className&&(" "+an.className+" ").indexOf(al)>=0)){if(!ak){ai.push(an)}}else{if(ak){aj[am]=false}}}}return false},ID:function(ai){return ai[1].replace(/\\/g,"")},TAG:function(aj,ai){for(var ak=0;ai[ak]===false;ak++){}return ai[ak]&&af(ai[ak])?aj[1]:aj[1].toUpperCase()},CHILD:function(ai){if(ai[1]=="nth"){var aj=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(ai[2]=="even"&&"2n"||ai[2]=="odd"&&"2n+1"||!/\D/.test(ai[2])&&"0n+"+ai[2]||ai[2]);ai[2]=(aj[1]+(aj[2]||1))-0;ai[3]=aj[3]-0}ai[0]=aa++;return ai},ATTR:function(am,aj,ak,ai,an,ao){var al=am[1].replace(/\\/g,"");if(!ao&&X.attrMap[al]){am[1]=X.attrMap[al]}if(am[2]==="~="){am[4]=" "+am[4]+" "}return am},PSEUDO:function(am,aj,ak,ai,an){if(am[1]==="not"){if(am[3].match(ag).length>1||/^\w/.test(am[3])){am[3]=U(am[3],null,null,aj)}else{var al=U.filter(am[3],aj,ak,true^an);if(!ak){ai.push.apply(ai,al)}return false}}else{if(X.match.POS.test(am[0])||X.match.CHILD.test(am[0])){return true}}return am},POS:function(ai){ai.unshift(true);return ai}},filters:{enabled:function(ai){return ai.disabled===false&&ai.type!=="hidden"},disabled:function(ai){return ai.disabled===true},checked:function(ai){return ai.checked===true},selected:function(ai){ai.parentNode.selectedIndex;return ai.selected===true},parent:function(ai){return !!ai.firstChild},empty:function(ai){return !ai.firstChild},has:function(ak,aj,ai){return !!U(ai[3],ak).length},header:function(ai){return/h\d/i.test(ai.nodeName)},text:function(ai){return"text"===ai.type},radio:function(ai){return"radio"===ai.type},checkbox:function(ai){return"checkbox"===ai.type},file:function(ai){return"file"===ai.type},password:function(ai){return"password"===ai.type},submit:function(ai){return"submit"===ai.type},image:function(ai){return"image"===ai.type},reset:function(ai){return"reset"===ai.type},button:function(ai){return"button"===ai.type||ai.nodeName.toUpperCase()==="BUTTON"},input:function(ai){return/input|select|textarea|button/i.test(ai.nodeName)}},setFilters:{first:function(aj,ai){return ai===0},last:function(ak,aj,ai,al){return aj===al.length-1},even:function(aj,ai){return ai%2===0},odd:function(aj,ai){return ai%2===1},lt:function(ak,aj,ai){return aj<ai[3]-0},gt:function(ak,aj,ai){return aj>ai[3]-0},nth:function(ak,aj,ai){return ai[3]-0==aj},eq:function(ak,aj,ai){return ai[3]-0==aj}},filter:{PSEUDO:function(ao,ak,al,ap){var aj=ak[1],am=X.filters[aj];if(am){return am(ao,al,ak,ap)}else{if(aj==="contains"){return(ao.textContent||ao.innerText||"").indexOf(ak[3])>=0}else{if(aj==="not"){var an=ak[3];for(var al=0,ai=an.length;al<ai;al++){if(an[al]===ao){return false}}return true}}}},CHILD:function(ai,al){var ao=al[1],aj=ai;switch(ao){case"only":case"first":while(aj=aj.previousSibling){if(aj.nodeType===1){return false}}if(ao=="first"){return true}aj=ai;case"last":while(aj=aj.nextSibling){if(aj.nodeType===1){return false}}return true;case"nth":var ak=al[2],ar=al[3];if(ak==1&&ar==0){return true}var an=al[0],aq=ai.parentNode;if(aq&&(aq.sizcache!==an||!ai.nodeIndex)){var am=0;for(aj=aq.firstChild;aj;aj=aj.nextSibling){if(aj.nodeType===1){aj.nodeIndex=++am}}aq.sizcache=an}var ap=ai.nodeIndex-ar;if(ak==0){return ap==0}else{return(ap%ak==0&&ap/ak>=0)}}},ID:function(aj,ai){return aj.nodeType===1&&aj.getAttribute("id")===ai},TAG:function(aj,ai){return(ai==="*"&&aj.nodeType===1)||aj.nodeName===ai},CLASS:function(aj,ai){return(" "+(aj.className||aj.getAttribute("class"))+" ").indexOf(ai)>-1},ATTR:function(an,al){var ak=al[1],ai=X.attrHandle[ak]?X.attrHandle[ak](an):an[ak]!=null?an[ak]:an.getAttribute(ak),ao=ai+"",am=al[2],aj=al[4];return ai==null?am==="!=":am==="="?ao===aj:am==="*="?ao.indexOf(aj)>=0:am==="~="?(" "+ao+" ").indexOf(aj)>=0:!aj?ao&&ai!==false:am==="!="?ao!=aj:am==="^="?ao.indexOf(aj)===0:am==="$="?ao.substr(ao.length-aj.length)===aj:am==="|="?ao===aj||ao.substr(0,aj.length+1)===aj+"-":false},POS:function(am,aj,ak,an){var ai=aj[2],al=X.setFilters[ai];if(al){return al(am,ak,aj,an)}}}};var ab=X.match.POS;for(var ad in X.match){X.match[ad]=RegExp(X.match[ad].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var T=function(aj,ai){aj=Array.prototype.slice.call(aj);if(ai){ai.push.apply(ai,aj);return ai}return aj};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(ac){T=function(am,al){var aj=al||[];if(W.call(am)==="[object Array]"){Array.prototype.push.apply(aj,am)}else{if(typeof am.length==="number"){for(var ak=0,ai=am.length;ak<ai;ak++){aj.push(am[ak])}}else{for(var ak=0;am[ak];ak++){aj.push(am[ak])}}}return aj}}var V;if(document.documentElement.compareDocumentPosition){V=function(aj,ai){var ak=aj.compareDocumentPosition(ai)&4?-1:aj===ai?0:1;if(ak===0){hasDuplicate=true}return ak}}else{if("sourceIndex" in document.documentElement){V=function(aj,ai){var ak=aj.sourceIndex-ai.sourceIndex;if(ak===0){hasDuplicate=true}return ak}}else{if(document.createRange){V=function(al,aj){var ak=al.ownerDocument.createRange(),ai=aj.ownerDocument.createRange();ak.selectNode(al);ak.collapse(true);ai.selectNode(aj);ai.collapse(true);var am=ak.compareBoundaryPoints(Range.START_TO_END,ai);if(am===0){hasDuplicate=true}return am}}}}(function(){var aj=document.createElement("form"),ak="script"+(new Date).getTime();aj.innerHTML="<input name='"+ak+"'/>";var ai=document.documentElement;ai.insertBefore(aj,ai.firstChild);if(!!document.getElementById(ak)){X.find.ID=function(am,an,ao){if(typeof an.getElementById!=="undefined"&&!ao){var al=an.getElementById(am[1]);return al?al.id===am[1]||typeof al.getAttributeNode!=="undefined"&&al.getAttributeNode("id").nodeValue===am[1]?[al]:o:[]}};X.filter.ID=function(an,al){var am=typeof an.getAttributeNode!=="undefined"&&an.getAttributeNode("id");return an.nodeType===1&&am&&am.nodeValue===al}}ai.removeChild(aj)})();(function(){var ai=document.createElement("div");ai.appendChild(document.createComment(""));if(ai.getElementsByTagName("*").length>0){X.find.TAG=function(aj,an){var am=an.getElementsByTagName(aj[1]);if(aj[1]==="*"){var al=[];for(var ak=0;am[ak];ak++){if(am[ak].nodeType===1){al.push(am[ak])}}am=al}return am}}ai.innerHTML="<a href='#'></a>";if(ai.firstChild&&typeof ai.firstChild.getAttribute!=="undefined"&&ai.firstChild.getAttribute("href")!=="#"){X.attrHandle.href=function(aj){return aj.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var ai=U,aj=document.createElement("div");aj.innerHTML="<p class='TEST'></p>";if(aj.querySelectorAll&&aj.querySelectorAll(".TEST").length===0){return}U=function(an,am,ak,al){am=am||document;if(!al&&am.nodeType===9&&!af(am)){try{return T(am.querySelectorAll(an),ak)}catch(ao){}}return ai(an,am,ak,al)};U.find=ai.find;U.filter=ai.filter;U.selectors=ai.selectors;U.matches=ai.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var ai=document.createElement("div");ai.innerHTML="<div class='test e'></div><div class='test'></div>";if(ai.getElementsByClassName("e").length===0){return}ai.lastChild.className="e";if(ai.getElementsByClassName("e").length===1){return}X.order.splice(1,0,"CLASS");X.find.CLASS=function(aj,ak,al){if(typeof ak.getElementsByClassName!=="undefined"&&!al){return ak.getElementsByClassName(aj[1])}}})()}function ae(aj,ao,an,at,ap,ar){var aq=aj=="previousSibling"&&!ar;for(var al=0,ak=at.length;al<ak;al++){var ai=at[al];if(ai){if(aq&&ai.nodeType===1){ai.sizcache=an;ai.sizset=al}ai=ai[aj];var am=false;while(ai){if(ai.sizcache===an){am=at[ai.sizset];break}if(ai.nodeType===1&&!ar){ai.sizcache=an;ai.sizset=al}if(ai.nodeName===ao){am=ai;break}ai=ai[aj]}at[al]=am}}}function ah(aj,ao,an,at,ap,ar){var aq=aj=="previousSibling"&&!ar;for(var al=0,ak=at.length;al<ak;al++){var ai=at[al];if(ai){if(aq&&ai.nodeType===1){ai.sizcache=an;ai.sizset=al}ai=ai[aj];var am=false;while(ai){if(ai.sizcache===an){am=at[ai.sizset];break}if(ai.nodeType===1){if(!ar){ai.sizcache=an;ai.sizset=al}if(typeof ao!=="string"){if(ai===ao){am=true;break}}else{if(U.filter(ao,[ai]).length>0){am=ai;break}}}ai=ai[aj]}at[al]=am}}}var Z=document.compareDocumentPosition?function(aj,ai){return aj.compareDocumentPosition(ai)&16}:function(aj,ai){return aj!==ai&&(aj.contains?aj.contains(ai):true)};var af=function(ai){return ai.nodeType===9&&ai.documentElement.nodeName!=="HTML"||!!ai.ownerDocument&&af(ai.ownerDocument)};var Y=function(ai,ap){var al=[],am="",an,ak=ap.nodeType?[ap]:ap;while((an=X.match.PSEUDO.exec(ai))){am+=an[0];ai=ai.replace(X.match.PSEUDO,"")}ai=X.relative[ai]?ai+"*":ai;for(var ao=0,aj=ak.length;ao<aj;ao++){U(ai,ak[ao],al)}return U.filter(am,al)};D.find=U;D.filter=U.filter;D.expr=U.selectors;D.expr[":"]=D.expr.filters;U.selectors.filters.hidden=function(ai){return ai.offsetWidth===0||ai.offsetHeight===0};U.selectors.filters.visible=function(ai){return ai.offsetWidth>0||ai.offsetHeight>0};U.selectors.filters.animated=function(ai){return D.grep(D.timers,function(aj){return ai===aj.elem}).length};D.multiFilter=function(ak,ai,aj){if(aj){ak=":not("+ak+")"}return U.matches(ak,ai)};D.dir=function(ak,aj){var ai=[],al=ak[aj];while(al&&al!=document){if(al.nodeType==1){ai.push(al)}al=al[aj]}return ai};D.nth=function(am,ai,ak,al){ai=ai||1;var aj=0;for(;am;am=am[ak]){if(am.nodeType==1&&++aj==ai){break}}return am};D.sibling=function(ak,aj){var ai=[];for(;ak;ak=ak.nextSibling){if(ak.nodeType==1&&ak!=aj){ai.push(ak)}}return ai};return;A.Sizzle=U})();D.event={add:function(X,U,W,Z){if(X.nodeType==3||X.nodeType==8){return}if(X.setInterval&&X!=A){X=A}if(!W.guid){W.guid=this.guid++}if(Z!==o){var V=W;W=this.proxy(V);W.data=Z}var T=D.data(X,"events")||D.data(X,"events",{}),Y=D.data(X,"handle")||D.data(X,"handle",function(){return typeof D!=="undefined"&&!D.event.triggered?D.event.handle.apply(arguments.callee.elem,arguments):o});Y.elem=X;D.each(U.split(/\s+/),function(ab,ac){var ad=ac.split(".");ac=ad.shift();W.type=ad.slice().sort().join(".");var aa=T[ac];if(D.event.specialAll[ac]){D.event.specialAll[ac].setup.call(X,Z,ad)}if(!aa){aa=T[ac]={};if(!D.event.special[ac]||D.event.special[ac].setup.call(X,Z,ad)===false){if(X.addEventListener){X.addEventListener(ac,Y,false)}else{if(X.attachEvent){X.attachEvent("on"+ac,Y)}}}}aa[W.guid]=W;D.event.global[ac]=true});X=null},guid:1,global:{},remove:function(Z,W,Y){if(Z.nodeType==3||Z.nodeType==8){return}var V=D.data(Z,"events"),U,T;if(V){if(W===o||(typeof W==="string"&&W.charAt(0)==".")){for(var X in V){this.remove(Z,X+(W||""))}}else{if(W.type){Y=W.handler;W=W.type}D.each(W.split(/\s+/),function(ab,ad){var af=ad.split(".");ad=af.shift();var ac=RegExp("(^|\\.)"+af.slice().sort().join(".*\\.")+"(\\.|$)");if(V[ad]){if(Y){delete V[ad][Y.guid]}else{for(var ae in V[ad]){if(ac.test(V[ad][ae].type)){delete V[ad][ae]}}}if(D.event.specialAll[ad]){D.event.specialAll[ad].teardown.call(Z,af)}for(U in V[ad]){break}if(!U){if(!D.event.special[ad]||D.event.special[ad].teardown.call(Z,af)===false){if(Z.removeEventListener){Z.removeEventListener(ad,D.data(Z,"handle"),false)}else{if(Z.detachEvent){Z.detachEvent("on"+ad,D.data(Z,"handle"))}}}U=null;delete V[ad]}}})}for(U in V){break}if(!U){var aa=D.data(Z,"handle");if(aa){aa.elem=null}D.removeData(Z,"events");D.removeData(Z,"handle")}}},trigger:function(X,Z,W,T){var V=X.type||X;if(!T){X=typeof X==="object"?X[q]?X:D.extend(D.Event(V),X):D.Event(V);if(V.indexOf("!")>=0){X.type=V=V.slice(0,-1);X.exclusive=true}if(!W){X.stopPropagation();if(this.global[V]){D.each(D.cache,function(){if(this.events&&this.events[V]){D.event.trigger(X,Z,this.handle.elem)}})}}if(!W||W.nodeType==3||W.nodeType==8){return o}X.result=o;X.target=W;Z=D.makeArray(Z);Z.unshift(X)}X.currentTarget=W;var Y=D.data(W,"handle");if(Y){Y.apply(W,Z)}if((!W[V]||(D.nodeName(W,"a")&&V=="click"))&&W["on"+V]&&W["on"+V].apply(W,Z)===false){X.result=false}if(!T&&W[V]&&!X.isDefaultPrevented()&&!(D.nodeName(W,"a")&&V=="click")){this.triggered=true;try{W[V]()}catch(aa){}}this.triggered=false;if(!X.isPropagationStopped()){var U=W.parentNode||W.ownerDocument;if(U){D.event.trigger(X,Z,U,true)}}},handle:function(Z){var Y,T;Z=arguments[0]=D.event.fix(Z||A.event);Z.currentTarget=this;var aa=Z.type.split(".");Z.type=aa.shift();Y=!aa.length&&!Z.exclusive;var X=RegExp("(^|\\.)"+aa.slice().sort().join(".*\\.")+"(\\.|$)");T=(D.data(this,"events")||{})[Z.type];for(var V in T){var W=T[V];if(Y||X.test(W.type)){Z.handler=W;Z.data=W.data;var U=W.apply(this,arguments);if(U!==o){Z.result=U;if(U===false){Z.preventDefault();Z.stopPropagation()}}if(Z.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(W){if(W[q]){return W}var U=W;W=D.Event(U);for(var V=this.props.length,Y;V;){Y=this.props[--V];W[Y]=U[Y]}if(!W.target){W.target=W.srcElement||document}if(W.target.nodeType==3){W.target=W.target.parentNode}if(!W.relatedTarget&&W.fromElement){W.relatedTarget=W.fromElement==W.target?W.toElement:W.fromElement}if(W.pageX==null&&W.clientX!=null){var X=document.documentElement,T=document.body;W.pageX=W.clientX+(X&&X.scrollLeft||T&&T.scrollLeft||0)-(X.clientLeft||0);W.pageY=W.clientY+(X&&X.scrollTop||T&&T.scrollTop||0)-(X.clientTop||0)}if(!W.which&&((W.charCode||W.charCode===0)?W.charCode:W.keyCode)){W.which=W.charCode||W.keyCode}if(!W.metaKey&&W.ctrlKey){W.metaKey=W.ctrlKey}if(!W.which&&W.button){W.which=(W.button&1?1:(W.button&2?3:(W.button&4?2:0)))}return W},proxy:function(U,T){T=T||function(){return U.apply(this,arguments)};T.guid=U.guid=U.guid||T.guid||this.guid++;return T},special:{ready:{setup:Q,teardown:function(){}}},specialAll:{live:{setup:function(T,U){D.event.add(this,U[0],g)},teardown:function(V){if(V.length){var T=0,U=RegExp("(^|\\.)"+V[0]+"(\\.|$)");D.each((D.data(this,"events").live||{}),function(){if(U.test(this.type)){T++}});if(T<1){D.event.remove(this,V[0],g)}}}}}};D.Event=function(T){if(!this.preventDefault){return new D.Event(T)}if(T&&T.type){this.originalEvent=T;this.type=T.type}else{this.type=T}this.timeStamp=k();this[q]=true};function z(){return false}function J(){return true}D.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var T=this.originalEvent;if(!T){return}if(T.preventDefault){T.preventDefault()}T.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var T=this.originalEvent;if(!T){return}if(T.stopPropagation){T.stopPropagation()}T.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:z,isPropagationStopped:z,isImmediatePropagationStopped:z};var b=function(U){var T=U.relatedTarget;while(T&&T!=this){try{T=T.parentNode}catch(V){T=this}}if(T!=this){U.type=U.data;D.event.handle.apply(this,arguments)}};D.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(U,T){D.event.special[T]={setup:function(){D.event.add(this,U,b,T)},teardown:function(){D.event.remove(this,U,b)}}});D.fn.extend({bind:function(U,V,T){return U=="unload"?this.one(U,V,T):this.each(function(){D.event.add(this,U,T||V,T&&V)})},one:function(V,W,U){var T=D.event.proxy(U||W,function(X){D(this).unbind(X,T);return(U||W).apply(this,arguments)});return this.each(function(){D.event.add(this,V,T,U&&W)})},unbind:function(U,T){return this.each(function(){D.event.remove(this,U,T)})},trigger:function(T,U){return this.each(function(){D.event.trigger(T,U,this)})},triggerHandler:function(T,V){if(this[0]){var U=D.Event(T);U.preventDefault();U.stopPropagation();D.event.trigger(U,V,this[0]);return U.result}},toggle:function(V){var T=arguments,U=1;while(U<T.length){D.event.proxy(V,T[U++])}return this.click(D.event.proxy(V,function(W){this.lastToggle=(this.lastToggle||0)%U;W.preventDefault();return T[this.lastToggle++].apply(this,arguments)||false}))},hover:function(T,U){return this.mouseenter(T).mouseleave(U)},ready:function(T){Q();if(D.isReady){T.call(document,D)}else{D.readyList.push(T)}return this},live:function(V,U){var T=D.event.proxy(U);T.guid+=this.selector+V;D(document).bind(x(V,this.selector),this.selector,T);return this},die:function(U,T){D(document).unbind(x(U,this.selector),T?{guid:T.guid+this.selector+U}:null);return this}});function g(W){var T=RegExp("(^|\\.)"+W.type+"(\\.|$)"),V=true,U=[];D.each(D.data(this,"events").live||[],function(X,Y){if(T.test(Y.type)){var Z=D(W.target).closest(Y.data)[0];if(Z){U.push({elem:Z,fn:Y})}}});U.sort(function(Y,X){return D.data(Y.elem,"closest")-D.data(X.elem,"closest")});D.each(U,function(){if(this.fn.call(this.elem,W,this.fn.data)===false){return(V=false)}});return V}function x(U,T){return["live",U,T.replace(/\./g,"`").replace(/ /g,"|")].join(".")}D.extend({isReady:false,readyList:[],ready:function(){if(!D.isReady){D.isReady=true;if(D.readyList){D.each(D.readyList,function(){this.call(document,D)});D.readyList=null}D(document).triggerHandler("ready")}}});var M=false;function Q(){if(M){return}M=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);D.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);D.ready()}});if(document.documentElement.doScroll&&A==A.top){(function(){if(D.isReady){return}try{document.documentElement.doScroll("left")}catch(T){setTimeout(arguments.callee,0);return}D.ready()})()}}}D.event.add(A,"load",D.ready)}D.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(U,T){D.fn[T]=function(V){return V?this.bind(T,V):this.trigger(T)}});D(A).bind("unload",function(){for(var T in D.cache){if(T!=1&&D.cache[T].handle){D.event.remove(D.cache[T].handle.elem)}}});(function(){D.support={};var U=document.documentElement,V=document.createElement("script"),Z=document.createElement("div"),Y="script"+(new Date).getTime();Z.style.display="none";Z.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 W=Z.getElementsByTagName("*"),T=Z.getElementsByTagName("a")[0];if(!W||!W.length||!T){return}D.support={leadingWhitespace:Z.firstChild.nodeType==3,tbody:!Z.getElementsByTagName("tbody").length,objectAll:!!Z.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!Z.getElementsByTagName("link").length,style:/red/.test(T.getAttribute("style")),hrefNormalized:T.getAttribute("href")==="/a",opacity:T.style.opacity==="0.5",cssFloat:!!T.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};V.type="text/javascript";try{V.appendChild(document.createTextNode("window."+Y+"=1;"))}catch(X){}U.insertBefore(V,U.firstChild);if(A[Y]){D.support.scriptEval=true;delete A[Y]}U.removeChild(V);if(Z.attachEvent&&Z.fireEvent){Z.attachEvent("onclick",function(){D.support.noCloneEvent=false;Z.detachEvent("onclick",arguments.callee)});Z.cloneNode(true).fireEvent("onclick")}D(function(){var aa=document.createElement("div");aa.style.width=aa.style.paddingLeft="1px";document.body.appendChild(aa);D.boxModel=D.support.boxModel=aa.offsetWidth===2;document.body.removeChild(aa).style.display="none"})})();var L=D.support.cssFloat?"cssFloat":"styleFloat";D.props={"for":"htmlFor","class":"className","float":L,cssFloat:L,styleFloat:L,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};D.fn.extend({_load:D.fn.load,load:function(V,Y,Z){if(typeof V!=="string"){return this._load(V)}var X=V.indexOf(" ");if(X>=0){var T=V.slice(X,V.length);V=V.slice(0,X)}var W="GET";if(Y){if(D.isFunction(Y)){Z=Y;Y=null}else{if(typeof Y==="object"){Y=D.param(Y);W="POST"}}}var U=this;D.ajax({url:V,type:W,dataType:"html",data:Y,complete:function(ab,aa){if(aa=="success"||aa=="notmodified"){U.html(T?D("<div/>").append(ab.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(T):ab.responseText)}if(Z){U.each(Z,[ab.responseText,aa,ab])}}});return this},serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?D.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(T,U){var V=D(this).val();return V==null?null:D.isArray(V)?D.map(V,function(X,W){return{name:U.name,value:X}}):{name:U.name,value:V}}).get()}});D.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(T,U){D.fn[U]=function(V){return this.bind(U,V)}});var G=k();D.extend({get:function(T,V,W,U){if(D.isFunction(V)){W=V;V=null}return D.ajax({type:"GET",url:T,data:V,success:W,dataType:U})},getScript:function(T,U){return D.get(T,null,U,"script")},getJSON:function(T,U,V){return D.get(T,U,V,"json")},post:function(T,V,W,U){if(D.isFunction(V)){W=V;V={}}return D.ajax({type:"POST",url:T,data:V,success:W,dataType:U})},ajaxSetup:function(T){D.extend(D.ajaxSettings,T)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return A.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(ab){ab=D.extend(true,ab,D.extend(true,{},D.ajaxSettings,ab));var al,U=/=\?(&|$)/g,ag,ak,V=ab.type.toUpperCase();if(ab.data&&ab.processData&&typeof ab.data!=="string"){ab.data=D.param(ab.data)}if(ab.dataType=="jsonp"){if(V=="GET"){if(!ab.url.match(U)){ab.url+=(ab.url.match(/\?/)?"&":"?")+(ab.jsonp||"callback")+"=?"}}else{if(!ab.data||!ab.data.match(U)){ab.data=(ab.data?ab.data+"&":"")+(ab.jsonp||"callback")+"=?"}}ab.dataType="json"}if(ab.dataType=="json"&&(ab.data&&ab.data.match(U)||ab.url.match(U))){al="jsonp"+G++;if(ab.data){ab.data=(ab.data+"").replace(U,"="+al+"$1")}ab.url=ab.url.replace(U,"="+al+"$1");ab.dataType="script";A[al]=function(am){ak=am;X();aa();A[al]=o;try{delete A[al]}catch(an){}if(W){W.removeChild(ai)}}}if(ab.dataType=="script"&&ab.cache==null){ab.cache=false}if(ab.cache===false&&V=="GET"){var T=k();var aj=ab.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+T+"$2");ab.url=aj+((aj==ab.url)?(ab.url.match(/\?/)?"&":"?")+"_="+T:"")}if(ab.data&&V=="GET"){ab.url+=(ab.url.match(/\?/)?"&":"?")+ab.data;ab.data=null}if(ab.global&&!D.active++){D.event.trigger("ajaxStart")}var af=/^(\w+:)?\/\/([^\/?#]+)/.exec(ab.url);if(ab.dataType=="script"&&V=="GET"&&af&&(af[1]&&af[1]!=location.protocol||af[2]!=location.host)){var W=document.getElementsByTagName("head")[0];var ai=document.createElement("script");ai.src=ab.url;if(ab.scriptCharset){ai.charset=ab.scriptCharset}if(!al){var ad=false;ai.onload=ai.onreadystatechange=function(){if(!ad&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){ad=true;X();aa();ai.onload=ai.onreadystatechange=null;W.removeChild(ai)}}}W.appendChild(ai);return o}var Z=false;var Y=ab.xhr();if(ab.username){Y.open(V,ab.url,ab.async,ab.username,ab.password)}else{Y.open(V,ab.url,ab.async)}try{if(ab.data){Y.setRequestHeader("Content-Type",ab.contentType)}if(ab.ifModified){Y.setRequestHeader("If-Modified-Since",D.lastModified[ab.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}Y.setRequestHeader("X-Requested-With","XMLHttpRequest");Y.setRequestHeader("Accept",ab.dataType&&ab.accepts[ab.dataType]?ab.accepts[ab.dataType]+", */*":ab.accepts._default)}catch(ah){}if(ab.beforeSend&&ab.beforeSend(Y,ab)===false){if(ab.global&&!--D.active){D.event.trigger("ajaxStop")}Y.abort();return false}if(ab.global){D.event.trigger("ajaxSend",[Y,ab])}var ac=function(am){if(Y.readyState==0){if(ae){clearInterval(ae);ae=null;if(ab.global&&!--D.active){D.event.trigger("ajaxStop")}}}else{if(!Z&&Y&&(Y.readyState==4||am=="timeout")){Z=true;if(ae){clearInterval(ae);ae=null}ag=am=="timeout"?"timeout":!D.httpSuccess(Y)?"error":ab.ifModified&&D.httpNotModified(Y,ab.url)?"notmodified":"success";if(ag=="success"){try{ak=D.httpData(Y,ab.dataType,ab)}catch(ao){ag="parsererror"}}if(ag=="success"){var an;try{an=Y.getResponseHeader("Last-Modified")}catch(ao){}if(ab.ifModified&&an){D.lastModified[ab.url]=an}if(!al){X()}}else{D.handleError(ab,Y,ag)}aa();if(am){Y.abort()}if(ab.async){Y=null}}}};if(ab.async){var ae=setInterval(ac,13);if(ab.timeout>0){setTimeout(function(){if(Y&&!Z){ac("timeout")}},ab.timeout)}}try{Y.send(ab.data)}catch(ah){D.handleError(ab,Y,null,ah)}if(!ab.async){ac()}function X(){if(ab.success){ab.success(ak,ag)}if(ab.global){D.event.trigger("ajaxSuccess",[Y,ab])}}function aa(){if(ab.complete){ab.complete(Y,ag)}if(ab.global){D.event.trigger("ajaxComplete",[Y,ab])}if(ab.global&&!--D.active){D.event.trigger("ajaxStop")}}return Y},handleError:function(U,W,T,V){if(U.error){U.error(W,T,V)}if(U.global){D.event.trigger("ajaxError",[W,U,V])}},active:0,httpSuccess:function(U){try{return !U.status&&location.protocol=="file:"||(U.status>=200&&U.status<300)||U.status==304||U.status==1223}catch(T){}return false},httpNotModified:function(V,T){try{var W=V.getResponseHeader("Last-Modified");return V.status==304||W==D.lastModified[T]}catch(U){}return false},httpData:function(Y,W,V){var U=Y.getResponseHeader("content-type"),T=W=="xml"||!W&&U&&U.indexOf("xml")>=0,X=T?Y.responseXML:Y.responseText;if(T&&X.documentElement.tagName=="parsererror"){throw"parsererror"}if(V&&V.dataFilter){X=V.dataFilter(X,W)}if(typeof X==="string"){if(W=="script"){D.globalEval(X)}if(W=="json"){X=A["eval"]("("+X+")")}}return X},param:function(T){var V=[];function W(X,Y){V[V.length]=encodeURIComponent(X)+"="+encodeURIComponent(Y)}if(D.isArray(T)||T.jquery){D.each(T,function(){W(this.name,this.value)})}else{for(var U in T){if(D.isArray(T[U])){D.each(T[U],function(){W(U,this)})}else{W(U,D.isFunction(T[U])?T[U]():T[U])}}}return V.join("&").replace(/%20/g,"+")}});var B={},C,j=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function I(U,T){var V={};D.each(j.concat.apply([],j.slice(0,T)),function(){V[this]=U});return V}D.fn.extend({show:function(Y,aa){if(Y){return this.animate(I("show",3),Y,aa)}else{for(var W=0,U=this.length;W<U;W++){var T=D.data(this[W],"olddisplay");this[W].style.display=T||"";if(D.css(this[W],"display")==="none"){var V=this[W].tagName,Z;if(B[V]){Z=B[V]}else{var X=D("<"+V+" />").appendTo("body");Z=X.css("display");if(Z==="none"){Z="block"}X.remove();B[V]=Z}D.data(this[W],"olddisplay",Z)}}for(var W=0,U=this.length;W<U;W++){this[W].style.display=D.data(this[W],"olddisplay")||""}return this}},hide:function(W,X){if(W){return this.animate(I("hide",3),W,X)}else{for(var V=0,U=this.length;V<U;V++){var T=D.data(this[V],"olddisplay");if(!T&&T!=="none"){D.data(this[V],"olddisplay",D.css(this[V],"display"))}}for(var V=0,U=this.length;V<U;V++){this[V].style.display="none"}return this}},_toggle:D.fn.toggle,toggle:function(V,U){var T=typeof V==="boolean";return D.isFunction(V)&&D.isFunction(U)?this._toggle.apply(this,arguments):V==null||T?this.each(function(){var W=T?V:D(this).is(":hidden");D(this)[W?"show":"hide"]()}):this.animate(I("toggle",3),V,U)},fadeTo:function(T,V,U){return this.animate({opacity:V},T,U)},animate:function(X,U,W,V){var T=D.speed(U,W,V);return this[T.queue===false?"each":"queue"](function(){var Z=D.extend({},T),ab,aa=this.nodeType==1&&D(this).is(":hidden"),Y=this;for(ab in X){if(X[ab]=="hide"&&aa||X[ab]=="show"&&!aa){return Z.complete.call(this)}if((ab=="height"||ab=="width")&&this.style){Z.display=D.css(this,"display");Z.overflow=this.style.overflow}}if(Z.overflow!=null){this.style.overflow="hidden"}Z.curAnim=D.extend({},X);D.each(X,function(ad,ah){var ag=new D.fx(Y,Z,ad);if(/toggle|show|hide/.test(ah)){ag[ah=="toggle"?aa?"show":"hide":ah](X)}else{var af=ah.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),ai=ag.cur(true)||0;if(af){var ac=parseFloat(af[2]),ae=af[3]||"px";if(ae!="px"){Y.style[ad]=(ac||1)+ae;ai=((ac||1)/ag.cur(true))*ai;Y.style[ad]=ai+ae}if(af[1]){ac=((af[1]=="-="?-1:1)*ac)+ai}ag.custom(ai,ac,ae)}else{ag.custom(ai,ah,"")}}});return true})},stop:function(U,T){var V=D.timers;if(U){this.queue([])}this.each(function(){for(var W=V.length-1;W>=0;W--){if(V[W].elem==this){if(T){V[W](true)}V.splice(W,1)}}});if(!T){this.dequeue()}return this}});D.each({slideDown:I("show",1),slideUp:I("hide",1),slideToggle:I("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(T,U){D.fn[T]=function(V,W){return this.animate(U,V,W)}});D.extend({speed:function(V,W,U){var T=typeof V==="object"?V:{complete:U||!U&&W||D.isFunction(V)&&V,duration:V,easing:U&&W||W&&!D.isFunction(W)&&W};T.duration=D.fx.off?0:typeof T.duration==="number"?T.duration:D.fx.speeds[T.duration]||D.fx.speeds._default;T.old=T.complete;T.complete=function(){if(T.queue!==false){D(this).dequeue()}if(D.isFunction(T.old)){T.old.call(this)}};return T},easing:{linear:function(V,W,T,U){return T+U*V},swing:function(V,W,T,U){return((-Math.cos(V*Math.PI)/2)+0.5)*U+T}},timers:[],fx:function(U,T,V){this.options=T;this.elem=U;this.prop=V;if(!T.orig){T.orig={}}}});D.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(D.fx.step[this.prop]||D.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(U){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var T=parseFloat(D.css(this.elem,this.prop,U));return T&&T>-10000?T:parseFloat(D.curCSS(this.elem,this.prop))||0},custom:function(X,W,V){this.startTime=k();this.start=X;this.end=W;this.unit=V||this.unit||"px";this.now=this.start;this.pos=this.state=0;var T=this;function U(Y){return T.step(Y)}U.elem=this.elem;if(U()&&D.timers.push(U)&&!C){C=setInterval(function(){var Z=D.timers;for(var Y=0;Y<Z.length;Y++){if(!Z[Y]()){Z.splice(Y--,1)}}if(!Z.length){clearInterval(C);C=o}},13)}},show:function(){this.options.orig[this.prop]=D.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());D(this.elem).show()},hide:function(){this.options.orig[this.prop]=D.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(W){var V=k();if(W||V>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var T=true;for(var U in this.options.curAnim){if(this.options.curAnim[U]!==true){T=false}}if(T){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(D.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){D(this.elem).hide()}if(this.options.hide||this.options.show){for(var X in this.options.curAnim){D.attr(this.elem.style,X,this.options.orig[X])}}this.options.complete.call(this.elem)}return false}else{var Y=V-this.startTime;this.state=Y/this.options.duration;this.pos=D.easing[this.options.easing||(D.easing.swing?"swing":"linear")](this.state,Y,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};D.extend(D.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(T){D.attr(T.elem.style,"opacity",T.now)},_default:function(T){if(T.elem.style&&T.elem.style[T.prop]!=null){T.elem.style[T.prop]=T.now+T.unit}else{T.elem[T.prop]=T.now}}}});if(document.documentElement.getBoundingClientRect){D.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return D.offset.bodyOffset(this[0])}var V=this[0].getBoundingClientRect(),Y=this[0].ownerDocument,U=Y.body,T=Y.documentElement,aa=T.clientTop||U.clientTop||0,Z=T.clientLeft||U.clientLeft||0,X=V.top+(self.pageYOffset||D.boxModel&&T.scrollTop||U.scrollTop)-aa,W=V.left+(self.pageXOffset||D.boxModel&&T.scrollLeft||U.scrollLeft)-Z;return{top:X,left:W}}}else{D.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return D.offset.bodyOffset(this[0])}D.offset.initialized||D.offset.initialize();var Y=this[0],V=Y.offsetParent,U=Y,ad=Y.ownerDocument,ab,W=ad.documentElement,Z=ad.body,aa=ad.defaultView,T=aa.getComputedStyle(Y,null),ac=Y.offsetTop,X=Y.offsetLeft;while((Y=Y.parentNode)&&Y!==Z&&Y!==W){ab=aa.getComputedStyle(Y,null);ac-=Y.scrollTop,X-=Y.scrollLeft;if(Y===V){ac+=Y.offsetTop,X+=Y.offsetLeft;if(D.offset.doesNotAddBorder&&!(D.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(Y.tagName))){ac+=parseInt(ab.borderTopWidth,10)||0,X+=parseInt(ab.borderLeftWidth,10)||0}U=V,V=Y.offsetParent}if(D.offset.subtractsBorderForOverflowNotVisible&&ab.overflow!=="visible"){ac+=parseInt(ab.borderTopWidth,10)||0,X+=parseInt(ab.borderLeftWidth,10)||0}T=ab}if(T.position==="relative"||T.position==="static"){ac+=Z.offsetTop,X+=Z.offsetLeft}if(T.position==="fixed"){ac+=Math.max(W.scrollTop,Z.scrollTop),X+=Math.max(W.scrollLeft,Z.scrollLeft)}return{top:ac,left:X}}}D.offset={initialize:function(){if(this.initialized){return}var aa=document.body,U=document.createElement("div"),W,V,ac,X,ab,T,Y=aa.style.marginTop,Z='<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>';ab={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(T in ab){U.style[T]=ab[T]}U.innerHTML=Z;aa.insertBefore(U,aa.firstChild);W=U.firstChild,V=W.firstChild,X=W.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(V.offsetTop!==5);this.doesAddBorderForTableAndCells=(X.offsetTop===5);W.style.overflow="hidden",W.style.position="relative";this.subtractsBorderForOverflowNotVisible=(V.offsetTop===-5);aa.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(aa.offsetTop===0);aa.style.marginTop=Y;aa.removeChild(U);this.initialized=true},bodyOffset:function(T){D.offset.initialized||D.offset.initialize();var V=T.offsetTop,U=T.offsetLeft;if(D.offset.doesNotIncludeMarginInBodyOffset){V+=parseInt(D.curCSS(T,"marginTop",true),10)||0,U+=parseInt(D.curCSS(T,"marginLeft",true),10)||0}return{top:V,left:U}}};D.fn.extend({position:function(){var X=0,W=0,U;if(this[0]){var V=this.offsetParent(),Y=this.offset(),T=/^body|html$/i.test(V[0].tagName)?{top:0,left:0}:V.offset();Y.top-=y(this,"marginTop");Y.left-=y(this,"marginLeft");T.top+=y(V,"borderTopWidth");T.left+=y(V,"borderLeftWidth");U={top:Y.top-T.top,left:Y.left-T.left}}return U},offsetParent:function(){var T=this[0].offsetParent||document.body;while(T&&(!/^body|html$/i.test(T.tagName)&&D.css(T,"position")=="static")){T=T.offsetParent}return D(T)}});D.each(["Left","Top"],function(U,T){var V="scroll"+T;D.fn[V]=function(W){if(!this[0]){return null}return W!==o?this.each(function(){this==A||this==document?A.scrollTo(!U?W:D(A).scrollLeft(),U?W:D(A).scrollTop()):this[V]=W}):this[0]==A||this[0]==document?self[U?"pageYOffset":"pageXOffset"]||D.boxModel&&document.documentElement[V]||document.body[V]:this[0][V]}});D.each(["Height","Width"],function(X,V){var T=X?"Left":"Top",W=X?"Right":"Bottom",U=V.toLowerCase();D.fn["inner"+V]=function(){return this[0]?D.css(this[0],U,false,"padding"):null};D.fn["outer"+V]=function(Z){return this[0]?D.css(this[0],U,false,Z?"margin":"border"):null};var Y=V.toLowerCase();D.fn[Y]=function(Z){return this[0]==A?document.compatMode=="CSS1Compat"&&document.documentElement["client"+V]||document.body["client"+V]:this[0]==document?Math.max(document.documentElement["client"+V],document.body["scroll"+V],document.documentElement["scroll"+V],document.body["offset"+V],document.documentElement["offset"+V]):Z===o?(this.length?D.css(this[0],Y):null):this.css(Y,typeof Z==="string"?Z:Z+"px")}})})();(function(b){b.fn.maxlength=function(f){if(typeof f=="string"){f={feedback:f}}f=b.extend({},b.fn.maxlength.defaults,f);function g(j){var k=j.value;if(f.words){k=j.value.length?k.split(/\s+/):{length:0}}return k.length}return this.each(function(){var x=this,q=b(x),o=b(x.form),n=f.useInput?o.find("input[name=maxlength]").val():q.attr("maxlength"),y=o.find(f.feedback);function k(B){var z=g(this),C=z>=n,A=B.keyCode;if(!C){return}switch(A){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return f.words&&A!=32&&A!=13&&z==n}}var j=function(){var z=g(x),A=n-z;y.html(A||"0");if(f.hardLimit&&A<0){x.value=f.words?x.value.split(/(\s+)/,(n*2)-1).join(""):x.value.substr(0,n);j()}};q.keyup(j).change(j);if(f.hardLimit){q.keydown(k)}j()})};b.fn.maxlength.defaults={useInput:false,hardLimit:true,feedback:".charsLeft",words:false}})(jQuery);
/*
 * jquery.qtip. The jQuery tooltip plugin
 *
 * Copyright (c) 2009 Craig Thompson
 * http://craigsworks.com
 *
 * Licensed under MIT
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Launch  : February 2009
 * Version : 1.0.0-rc3
 * Released: Tuesday 12th May, 2009 - 00:00
 * Debug: jquery.qtip.debug.js
 */
(function(n){n.fn.qtip=function(P,I){var M,H,O,G,L,K,J,N;if(typeof P=="string"){if(typeof n(this).data("qtip")!=="object"){n.fn.qtip.log.error.call(self,1,n.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(P=="api"){return n(this).data("qtip").interfaces[n(this).data("qtip").current]}else{if(P=="interfaces"){return n(this).data("qtip").interfaces}}}else{if(!P){P={}}if(typeof P.content!=="object"||(P.content.jquery&&P.content.length>0)){P.content={text:P.content}}if(typeof P.content.title!=="object"){P.content.title={text:P.content.title}}if(typeof P.position!=="object"){P.position={corner:P.position}}if(typeof P.position.corner!=="object"){P.position.corner={target:P.position.corner,tooltip:P.position.corner}}if(typeof P.show!=="object"){P.show={when:P.show}}if(typeof P.show.when!=="object"){P.show.when={event:P.show.when}}if(typeof P.show.effect!=="object"){P.show.effect={type:P.show.effect}}if(typeof P.hide!=="object"){P.hide={when:P.hide}}if(typeof P.hide.when!=="object"){P.hide.when={event:P.hide.when}}if(typeof P.hide.effect!=="object"){P.hide.effect={type:P.hide.effect}}if(typeof P.style!=="object"){P.style={name:P.style}}P.style=g(P.style);G=n.extend(true,{},n.fn.qtip.defaults,P);G.style=b.call({options:G},G.style);G.user=n.extend(true,{},P)}return n(this).each(function(){if(typeof P=="string"){K=P.toLowerCase();O=n(this).qtip("interfaces");if(typeof O=="object"){if(I===true&&K=="destroy"){while(O.length>0){O[O.length-1].destroy()}}else{if(I!==true){O=[n(this).qtip("api")]}for(M=0;M<O.length;M++){if(K=="destroy"){O[M].destroy()}else{if(O[M].status.rendered===true){if(K=="show"){O[M].show()}else{if(K=="hide"){O[M].hide()}else{if(K=="focus"){O[M].focus()}else{if(K=="disable"){O[M].disable(true)}else{if(K=="enable"){O[M].disable(false)}}}}}}}}}}}else{J=n.extend(true,{},G);J.hide.effect.length=G.hide.effect.length;J.show.effect.length=G.show.effect.length;if(J.position.container===false){J.position.container=n(document.body)}if(J.position.target===false){J.position.target=n(this)}if(J.show.when.target===false){J.show.when.target=n(this)}if(J.hide.when.target===false){J.hide.when.target=n(this)}H=n.fn.qtip.interfaces.length;for(M=0;M<H;M++){if(typeof n.fn.qtip.interfaces[M]=="undefined"){H=M;break}}L=new j(n(this),J,H);n.fn.qtip.interfaces[H]=L;if(typeof n(this).data("qtip")=="object"){if(typeof n(this).attr("qtip")==="undefined"){n(this).data("qtip").current=n(this).data("qtip").interfaces.length}n(this).data("qtip").interfaces.push(L)}else{n(this).data("qtip",{current:0,interfaces:[L]})}if(J.content.prerender===false&&J.show.when.event!==false&&J.show.ready!==true){J.show.when.target.bind(J.show.when.event+".qtip-"+H+"-create",{qtip:H},function(Q){N=n.fn.qtip.interfaces[Q.data.qtip];N.options.show.when.target.unbind(N.options.show.when.event+".qtip-"+Q.data.qtip+"-create");N.cache.mouse={x:Q.pageX,y:Q.pageY};D.call(N);N.options.show.when.target.trigger(N.options.show.when.event)})}else{L.cache.mouse={x:J.show.when.target.offset().left,y:J.show.when.target.offset().top};D.call(L)}}})};function j(I,H,J){var G=this;G.id=J;G.options=H;G.status={animated:false,rendered:false,disabled:false,focused:false};G.elements={target:I.addClass(G.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};G.cache={mouse:{},position:{},toggle:0};G.timers={};n.extend(G,G.options.api,{show:function(M){var L,N;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(G.elements.tooltip.css("display")!=="none"){return G}G.elements.tooltip.stop(true,false);L=G.beforeShow.call(G,M);if(L===false){return G}function K(){if(G.options.position.type!=="static"){G.focus()}G.onShow.call(G,M);if(n.browser.msie){G.elements.tooltip.get(0).style.removeAttribute("filter")}}G.cache.toggle=1;if(G.options.position.type!=="static"){G.updatePosition(M,(G.options.show.effect.length>0))}if(typeof G.options.show.solo=="object"){N=n(G.options.show.solo)}else{if(G.options.show.solo===true){N=n("div.qtip").not(G.elements.tooltip)}}if(N){N.each(function(){if(n(this).qtip("api").status.rendered===true){n(this).qtip("api").hide()}})}if(typeof G.options.show.effect.type=="function"){G.options.show.effect.type.call(G.elements.tooltip,G.options.show.effect.length);G.elements.tooltip.queue(function(){K();n(this).dequeue()})}else{switch(G.options.show.effect.type.toLowerCase()){case"fade":G.elements.tooltip.fadeIn(G.options.show.effect.length,K);break;case"slide":G.elements.tooltip.slideDown(G.options.show.effect.length,function(){K();if(G.options.position.type!=="static"){G.updatePosition(M,true)}});break;case"grow":G.elements.tooltip.show(G.options.show.effect.length,K);break;default:G.elements.tooltip.show(null,K);break}G.elements.tooltip.addClass(G.options.style.classes.active)}return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(M){var L;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(G.elements.tooltip.css("display")==="none"){return G}}clearTimeout(G.timers.show);G.elements.tooltip.stop(true,false);L=G.beforeHide.call(G,M);if(L===false){return G}function K(){G.onHide.call(G,M)}G.cache.toggle=0;if(typeof G.options.hide.effect.type=="function"){G.options.hide.effect.type.call(G.elements.tooltip,G.options.hide.effect.length);G.elements.tooltip.queue(function(){K();n(this).dequeue()})}else{switch(G.options.hide.effect.type.toLowerCase()){case"fade":G.elements.tooltip.fadeOut(G.options.hide.effect.length,K);break;case"slide":G.elements.tooltip.slideUp(G.options.hide.effect.length,K);break;case"grow":G.elements.tooltip.hide(G.options.hide.effect.length,K);break;default:G.elements.tooltip.hide(null,K);break}G.elements.tooltip.removeClass(G.options.style.classes.active)}return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(K,L){var Q,U,Z,X,V,S,M,W,P,R,Y,O,T,N;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(G.options.position.type=="static"){return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}U={position:{left:0,top:0},dimensions:{height:0,width:0},corner:G.options.position.corner.target};Z={position:G.getPosition(),dimensions:G.getDimensions(),corner:G.options.position.corner.tooltip};if(G.options.position.target!=="mouse"){if(G.options.position.target.get(0).nodeName.toLowerCase()=="area"){X=G.options.position.target.attr("coords").split(",");for(Q=0;Q<X.length;Q++){X[Q]=parseInt(X[Q])}V=G.options.position.target.parent("map").attr("name");S=n('img[usemap="#'+V+'"]:first').offset();U.position={left:Math.floor(S.left+X[0]),top:Math.floor(S.top+X[1])};switch(G.options.position.target.attr("shape").toLowerCase()){case"rect":U.dimensions={width:Math.ceil(Math.abs(X[2]-X[0])),height:Math.ceil(Math.abs(X[3]-X[1]))};break;case"circle":U.dimensions={width:X[2]+1,height:X[2]+1};break;case"poly":U.dimensions={width:X[0],height:X[1]};for(Q=0;Q<X.length;Q++){if(Q%2==0){if(X[Q]>U.dimensions.width){U.dimensions.width=X[Q]}if(X[Q]<X[0]){U.position.left=Math.floor(S.left+X[Q])}}else{if(X[Q]>U.dimensions.height){U.dimensions.height=X[Q]}if(X[Q]<X[1]){U.position.top=Math.floor(S.top+X[Q])}}}U.dimensions.width=U.dimensions.width-(U.position.left-S.left);U.dimensions.height=U.dimensions.height-(U.position.top-S.top);break;default:return n.fn.qtip.log.error.call(G,4,n.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}U.dimensions.width-=2;U.dimensions.height-=2}else{if(G.options.position.target.add(document.body).length===1){U.position={left:n(document).scrollLeft(),top:n(document).scrollTop()};U.dimensions={height:n(window).height(),width:n(window).width()}}else{if(typeof G.options.position.target.attr("qtip")!=="undefined"){U.position=G.options.position.target.qtip("api").cache.position}else{U.position=G.options.position.target.offset()}U.dimensions={height:G.options.position.target.outerHeight(),width:G.options.position.target.outerWidth()}}}M=n.extend({},U.position);if(U.corner.search(/right/i)!==-1){M.left+=U.dimensions.width}if(U.corner.search(/bottom/i)!==-1){M.top+=U.dimensions.height}if(U.corner.search(/((top|bottom)Middle)|center/)!==-1){M.left+=(U.dimensions.width/2)}if(U.corner.search(/((left|right)Middle)|center/)!==-1){M.top+=(U.dimensions.height/2)}}else{U.position=M={left:G.cache.mouse.x,top:G.cache.mouse.y};U.dimensions={height:1,width:1}}if(Z.corner.search(/right/i)!==-1){M.left-=Z.dimensions.width}if(Z.corner.search(/bottom/i)!==-1){M.top-=Z.dimensions.height}if(Z.corner.search(/((top|bottom)Middle)|center/)!==-1){M.left-=(Z.dimensions.width/2)}if(Z.corner.search(/((left|right)Middle)|center/)!==-1){M.top-=(Z.dimensions.height/2)}W=(n.browser.msie)?1:0;P=(n.browser.msie&&parseInt(n.browser.version.charAt(0))===6)?1:0;if(G.options.style.border.radius>0){if(Z.corner.search(/Left/)!==-1){M.left-=G.options.style.border.radius}else{if(Z.corner.search(/Right/)!==-1){M.left+=G.options.style.border.radius}}if(Z.corner.search(/Top/)!==-1){M.top-=G.options.style.border.radius}else{if(Z.corner.search(/Bottom/)!==-1){M.top+=G.options.style.border.radius}}}if(W){if(Z.corner.search(/top/)!==-1){M.top-=W}else{if(Z.corner.search(/bottom/)!==-1){M.top+=W}}if(Z.corner.search(/left/)!==-1){M.left-=W}else{if(Z.corner.search(/right/)!==-1){M.left+=W}}if(Z.corner.search(/leftMiddle|rightMiddle/)!==-1){M.top-=1}}if(G.options.position.adjust.screen===true){M=C.call(G,M,U,Z)}if(G.options.position.target==="mouse"&&G.options.position.adjust.mouse===true){if(G.options.position.adjust.screen===true&&G.elements.tip){Y=G.elements.tip.attr("rel")}else{Y=G.options.position.corner.tooltip}M.left+=(Y.search(/right/i)!==-1)?-6:6;M.top+=(Y.search(/bottom/i)!==-1)?-6:6}if(!G.elements.bgiframe&&n.browser.msie&&parseInt(n.browser.version.charAt(0))==6){n("select, object").each(function(){O=n(this).offset();O.bottom=O.top+n(this).height();O.right=O.left+n(this).width();if(M.top+Z.dimensions.height>=O.top&&M.left+Z.dimensions.width>=O.left){y.call(G)}})}M.left+=G.options.position.adjust.x;M.top+=G.options.position.adjust.y;T=G.getPosition();if(M.left!=T.left||M.top!=T.top){N=G.beforePositionUpdate.call(G,K);if(N===false){return G}G.cache.position=M;if(L===true){G.status.animated=true;G.elements.tooltip.animate(M,200,"swing",function(){G.status.animated=false})}else{G.elements.tooltip.css(M)}G.onPositionUpdate.call(G,K);if(typeof K!=="undefined"&&K.type&&K.type!=="mousemove"){n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return G},updateWidth:function(K){var L;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(K&&typeof K!=="number"){return n.fn.qtip.log.error.call(G,2,"newWidth must be of type number","updateWidth")}}L=G.elements.contentWrapper.siblings().add(G.elements.tip).add(G.elements.button);if(!K){if(typeof G.options.style.width.value=="number"){K=G.options.style.width.value}else{G.elements.tooltip.css({width:"auto"});L.hide();if(n.browser.msie){G.elements.wrapper.add(G.elements.contentWrapper.children()).css({zoom:"normal"})}K=G.getDimensions().width+1;if(!G.options.style.width.value){if(K>G.options.style.width.max){K=G.options.style.width.max}if(K<G.options.style.width.min){K=G.options.style.width.min}}}}if(K%2!==0){K-=1}G.elements.tooltip.width(K);L.show();if(G.options.style.border.radius){G.elements.tooltip.find(".qtip-betweenCorners").each(function(M){n(this).width(K-(G.options.style.border.radius*2))})}if(n.browser.msie){G.elements.wrapper.add(G.elements.contentWrapper.children()).css({zoom:"1"});G.elements.wrapper.width(K);if(G.elements.bgiframe){G.elements.bgiframe.width(K).height(G.getDimensions.height)}}return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(K){var N,O,L,M,P;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof K!=="string"||!n.fn.qtip.styles[K]){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}G.options.style=b.call(G,n.fn.qtip.styles[K],G.options.user.style);G.elements.content.css(E(G.options.style));if(G.options.content.title.text!==false){G.elements.title.css(E(G.options.style.title,true))}G.elements.contentWrapper.css({borderColor:G.options.style.border.color});if(G.options.style.tip.corner!==false){if(n("<canvas>").get(0).getContext){N=G.elements.tooltip.find(".qtip-tip canvas:first");L=N.get(0).getContext("2d");L.clearRect(0,0,300,300);M=N.parent("div[rel]:first").attr("rel");P=f(M,G.options.style.tip.size.width,G.options.style.tip.size.height);q.call(G,N,P,G.options.style.tip.color||G.options.style.border.color)}else{if(n.browser.msie){N=G.elements.tooltip.find('.qtip-tip [nodeName="shape"]');N.attr("fillcolor",G.options.style.tip.color||G.options.style.border.color)}}}if(G.options.style.border.radius>0){G.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:G.options.style.border.color});if(n("<canvas>").get(0).getContext){O=o(G.options.style.border.radius);G.elements.tooltip.find(".qtip-wrapper canvas").each(function(){L=n(this).get(0).getContext("2d");L.clearRect(0,0,300,300);M=n(this).parent("div[rel]:first").attr("rel");F.call(G,n(this),O[M],G.options.style.border.radius,G.options.style.border.color)})}else{if(n.browser.msie){G.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){n(this).attr("fillcolor",G.options.style.border.color)})}}}return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(O,M){var N,L,K;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!O){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}N=G.beforeContentUpdate.call(G,O);if(typeof N=="string"){O=N}else{if(N===false){return}}if(n.browser.msie){G.elements.contentWrapper.children().css({zoom:"normal"})}if(O.jquery&&O.length>0){O.clone(true).appendTo(G.elements.content).show()}else{G.elements.content.html(O)}L=G.elements.content.find("img[complete=false]");if(L.length>0){K=0;L.each(function(Q){n('<img src="'+n(this).attr("src")+'" />').load(function(){if(++K==L.length){P()}})})}else{P()}function P(){G.updateWidth();if(M!==false){if(G.options.position.type!=="static"){G.updatePosition(G.elements.tooltip.is(":visible"),true)}if(G.options.style.tip.corner!==false){B.call(G)}}}G.onContentUpdate.call(G);return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(K,N,O){var M;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}M=G.beforeContentLoad.call(G);if(M===false){return G}if(O=="post"){n.post(K,N,L)}else{n.get(K,N,L)}function L(P){G.onContentLoad.call(G);n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");G.updateContent(P)}return G},updateTitle:function(K){if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!K){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=G.beforeTitleUpdate.call(G);if(returned===false){return G}if(G.elements.button){G.elements.button=G.elements.button.clone(true)}G.elements.title.html(K);if(G.elements.button){G.elements.title.prepend(G.elements.button)}G.onTitleUpdate.call(G);return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(O){var M,L,K,N;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(G.options.position.type=="static"){return n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}M=parseInt(G.elements.tooltip.css("z-index"));L=6000+n("div.qtip[qtip]").length-1;if(!G.status.focused&&M!==L){N=G.beforeFocus.call(G,O);if(N===false){return G}n("div.qtip[qtip]").not(G.elements.tooltip).each(function(){if(n(this).qtip("api").status.rendered===true){K=parseInt(n(this).css("z-index"));if(typeof K=="number"&&K>-1){n(this).css({zIndex:parseInt(n(this).css("z-index"))-1})}n(this).qtip("api").status.focused=false}});G.elements.tooltip.css({zIndex:L});G.status.focused=true;G.onFocus.call(G,O);n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_FOCUSED,"focus")}return G},disable:function(K){if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(K){if(!G.status.disabled){G.status.disabled=true;n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_DISABLED,"disable")}else{n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(G.status.disabled){G.status.disabled=false;n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_ENABLED,"disable")}else{n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return G},destroy:function(){var K,L,M;L=G.beforeDestroy.call(G);if(L===false){return G}if(G.status.rendered){G.options.show.when.target.unbind("mousemove.qtip",G.updatePosition);G.options.show.when.target.unbind("mouseout.qtip",G.hide);G.options.show.when.target.unbind(G.options.show.when.event+".qtip");G.options.hide.when.target.unbind(G.options.hide.when.event+".qtip");G.elements.tooltip.unbind(G.options.hide.when.event+".qtip");G.elements.tooltip.unbind("mouseover.qtip",G.focus);G.elements.tooltip.remove()}else{G.options.show.when.target.unbind(G.options.show.when.event+".qtip-create")}if(typeof G.elements.target.data("qtip")=="object"){M=G.elements.target.data("qtip").interfaces;if(typeof M=="object"&&M.length>0){for(K=0;K<M.length-1;K++){if(M[K].id==G.id){M.splice(K,1)}}}}delete n.fn.qtip.interfaces[G.id];if(typeof M=="object"&&M.length>0){G.elements.target.data("qtip").current=M.length-1}else{G.elements.target.removeData("qtip")}G.onDestroy.call(G);n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_DESTROYED,"destroy");return G.elements.target},getPosition:function(){var K,L;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}K=(G.elements.tooltip.css("display")!=="none")?false:true;if(K){G.elements.tooltip.css({visiblity:"hidden"}).show()}L=G.elements.tooltip.offset();if(K){G.elements.tooltip.css({visiblity:"visible"}).hide()}return L},getDimensions:function(){var K,L;if(!G.status.rendered){return n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}K=(!G.elements.tooltip.is(":visible"))?true:false;if(K){G.elements.tooltip.css({visiblity:"hidden"}).show()}L={height:G.elements.tooltip.outerHeight(),width:G.elements.tooltip.outerWidth()};if(K){G.elements.tooltip.css({visiblity:"visible"}).hide()}return L}})}function D(){var G,K,I,H,J,M,L;G=this;G.beforeRender.call(G);G.status.rendered=true;G.elements.tooltip='<div qtip="'+G.id+'" class="qtip '+(G.options.style.classes.tooltip||G.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+G.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+G.options.style.classes.content+'"></div></div></div></div>';G.elements.tooltip=n(G.elements.tooltip);G.elements.tooltip.appendTo(G.options.position.container);G.elements.tooltip.data("qtip",{current:0,interfaces:[G]});G.elements.wrapper=G.elements.tooltip.children("div:first");G.elements.contentWrapper=G.elements.wrapper.children("div:first").css({background:G.options.style.background});G.elements.content=G.elements.contentWrapper.children("div:first").css(E(G.options.style));if(n.browser.msie){G.elements.wrapper.add(G.elements.content).css({zoom:1})}if(G.options.hide.when.event=="unfocus"){G.elements.tooltip.attr("unfocus",true)}if(typeof G.options.style.width.value=="number"){G.updateWidth()}if(n("<canvas>").get(0).getContext||n.browser.msie){if(G.options.style.border.radius>0){A.call(G)}else{G.elements.contentWrapper.css({border:G.options.style.border.width+"px solid "+G.options.style.border.color})}if(G.options.style.tip.corner!==false){k.call(G)}}else{G.elements.contentWrapper.css({border:G.options.style.border.width+"px solid "+G.options.style.border.color});G.options.style.border.radius=0;G.options.style.tip.corner=false;n.fn.qtip.log.error.call(G,2,n.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof G.options.content.text=="string"&&G.options.content.text.length>0)||(G.options.content.text.jquery&&G.options.content.text.length>0)){I=G.options.content.text}else{if(typeof G.elements.target.attr("title")=="string"&&G.elements.target.attr("title").length>0){I=G.elements.target.attr("title").replace("\\n","<br />");G.elements.target.attr("title","")}else{if(typeof G.elements.target.attr("alt")=="string"&&G.elements.target.attr("alt").length>0){I=G.elements.target.attr("alt").replace("\\n","<br />");G.elements.target.attr("alt","")}else{I=" ";n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(G.options.content.title.text!==false){x.call(G)}G.updateContent(I);z.call(G);if(G.options.show.ready===true){G.show()}if(G.options.content.url!==false){H=G.options.content.url;J=G.options.content.data;M=G.options.content.method||"get";G.loadContent(H,J,M)}G.onRender.call(G);n.fn.qtip.log.error.call(G,1,n.fn.qtip.constants.EVENT_RENDERED,"render")}function A(){var T,N,H,P,L,S,I,U,R,M,K,Q,O,G,J;T=this;T.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();H=T.options.style.border.width;P=T.options.style.border.radius;L=T.options.style.border.color||T.options.style.tip.color;S=o(P);I={};for(N in S){I[N]='<div rel="'+N+'" style="'+((N.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+P+"px; width:"+P+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(n("<canvas>").get(0).getContext){I[N]+='<canvas height="'+P+'" width="'+P+'" style="vertical-align: top"></canvas>'}else{if(n.browser.msie){U=P*2+3;I[N]+='<v:arc stroked="false" fillcolor="'+L+'" startangle="'+S[N][0]+'" endangle="'+S[N][1]+'" style="width:'+U+"px; height:"+U+"px; margin-top:"+((N.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((N.search(/Right/)!==-1)?S[N][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}I[N]+="</div>"}R=T.getDimensions().width-(Math.max(H,P)*2);M='<div class="qtip-betweenCorners" style="height:'+P+"px; width:"+R+"px; overflow:hidden; background-color:"+L+'; line-height:0.1px; font-size:1px;">';K='<div class="qtip-borderTop" dir="ltr" style="height:'+P+"px; margin-left:"+P+'px; line-height:0.1px; font-size:1px; padding:0;">'+I.topLeft+I.topRight+M;T.elements.wrapper.prepend(K);Q='<div class="qtip-borderBottom" dir="ltr" style="height:'+P+"px; margin-left:"+P+'px; line-height:0.1px; font-size:1px; padding:0;">'+I.bottomLeft+I.bottomRight+M;T.elements.wrapper.append(Q);if(n("<canvas>").get(0).getContext){T.elements.wrapper.find("canvas").each(function(){O=S[n(this).parent("[rel]:first").attr("rel")];F.call(T,n(this),O,P,L)})}else{if(n.browser.msie){T.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}G=Math.max(P,(P+(H-P)));J=Math.max(H-P,0);T.elements.contentWrapper.css({border:"0px solid "+L,borderWidth:J+"px "+G+"px"})}function F(I,K,G,H){var J=I.get(0).getContext("2d");J.fillStyle=H;J.beginPath();J.arc(K[0],K[1],G,0,Math.PI*2,false);J.fill()}function k(J){var H,G,L,I,K;H=this;if(H.elements.tip!==null){H.elements.tip.remove()}G=H.options.style.tip.color||H.options.style.border.color;if(H.options.style.tip.corner===false){return}else{if(!J){J=H.options.style.tip.corner}}L=f(J,H.options.style.tip.size.width,H.options.style.tip.size.height);H.elements.tip='<div class="'+H.options.style.classes.tip+'" dir="ltr" rel="'+J+'" style="position:absolute; height:'+H.options.style.tip.size.height+"px; width:"+H.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(n("<canvas>").get(0).getContext){H.elements.tip+='<canvas height="'+H.options.style.tip.size.height+'" width="'+H.options.style.tip.size.width+'"></canvas>'}else{if(n.browser.msie){I=H.options.style.tip.size.width+","+H.options.style.tip.size.height;K="m"+L[0][0]+","+L[0][1];K+=" l"+L[1][0]+","+L[1][1];K+=" "+L[2][0]+","+L[2][1];K+=" xe";H.elements.tip+='<v:shape fillcolor="'+G+'" stroked="false" filled="true" path="'+K+'" coordsize="'+I+'" style="width:'+H.options.style.tip.size.width+"px; height:"+H.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((J.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';H.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';H.elements.contentWrapper.css("position","relative")}}H.elements.tooltip.prepend(H.elements.tip+"</div>");H.elements.tip=H.elements.tooltip.find("."+H.options.style.classes.tip).eq(0);if(n("<canvas>").get(0).getContext){q.call(H,H.elements.tip.find("canvas:first"),L,G)}if(J.search(/top/)!==-1&&n.browser.msie&&parseInt(n.browser.version.charAt(0))===6){H.elements.tip.css({marginTop:-4})}B.call(H,J)}function q(H,J,G){var I=H.get(0).getContext("2d");I.fillStyle=G;I.beginPath();I.moveTo(J[0][0],J[0][1]);I.lineTo(J[1][0],J[1][1]);I.lineTo(J[2][0],J[2][1]);I.fill()}function B(I){var H,K,G,L,J;H=this;if(H.options.style.tip.corner===false||!H.elements.tip){return}if(!I){I=H.elements.tip.attr("rel")}K=positionAdjust=(n.browser.msie)?1:0;H.elements.tip.css(I.match(/left|right|top|bottom/)[0],0);if(I.search(/top|bottom/)!==-1){if(n.browser.msie){if(parseInt(n.browser.version.charAt(0))===6){positionAdjust=(I.search(/top/)!==-1)?-3:1}else{positionAdjust=(I.search(/top/)!==-1)?1:2}}if(I.search(/Middle/)!==-1){H.elements.tip.css({left:"50%",marginLeft:-(H.options.style.tip.size.width/2)})}else{if(I.search(/Left/)!==-1){H.elements.tip.css({left:H.options.style.border.radius-K})}else{if(I.search(/Right/)!==-1){H.elements.tip.css({right:H.options.style.border.radius+K})}}}if(I.search(/top/)!==-1){H.elements.tip.css({top:-positionAdjust})}else{H.elements.tip.css({bottom:positionAdjust})}}else{if(I.search(/left|right/)!==-1){if(n.browser.msie){positionAdjust=(parseInt(n.browser.version.charAt(0))===6)?1:((I.search(/left/)!==-1)?1:2)}if(I.search(/Middle/)!==-1){H.elements.tip.css({top:"50%",marginTop:-(H.options.style.tip.size.height/2)})}else{if(I.search(/Top/)!==-1){H.elements.tip.css({top:H.options.style.border.radius-K})}else{if(I.search(/Bottom/)!==-1){H.elements.tip.css({bottom:H.options.style.border.radius+K})}}}if(I.search(/left/)!==-1){H.elements.tip.css({left:-positionAdjust})}else{H.elements.tip.css({right:positionAdjust})}}}G="padding-"+I.match(/left|right|top|bottom/)[0];L=H.options.style.tip.size[(G.search(/left|right/)!==-1)?"width":"height"];H.elements.tooltip.css("padding",0);H.elements.tooltip.css(G,L);if(n.browser.msie&&parseInt(n.browser.version.charAt(0))==6){J=parseInt(H.elements.tip.css("margin-top"))||0;J+=parseInt(H.elements.content.css("margin-top"))||0;H.elements.tip.css({marginTop:J})}}function x(){var G=this;if(G.elements.title!==null){G.elements.title.remove()}G.elements.title=n('<div class="'+G.options.style.classes.title+'">').css(E(G.options.style.title,true)).css({zoom:(n.browser.msie)?1:0}).prependTo(G.elements.contentWrapper);if(G.options.content.title.text){G.updateTitle.call(G,G.options.content.title.text)}if(G.options.content.title.button!==false&&typeof G.options.content.title.button=="string"){G.elements.button=n('<a class="'+G.options.style.classes.button+'" style="float:right; position: relative"></a>').css(E(G.options.style.button,true)).html(G.options.content.title.button).prependTo(G.elements.title).click(function(H){if(!G.status.disabled){G.hide(H)}})}}function z(){var H,J,I,G;H=this;J=H.options.show.when.target;I=H.options.hide.when.target;if(H.options.hide.fixed){I=I.add(H.elements.tooltip)}if(H.options.hide.when.event=="inactive"){G=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function M(N){if(H.status.disabled===true){return}clearTimeout(H.timers.inactive);H.timers.inactive=setTimeout(function(){n(G).each(function(){I.unbind(this+".qtip-inactive");H.elements.content.unbind(this+".qtip-inactive")});H.hide(N)},H.options.hide.delay)}}else{if(H.options.hide.fixed===true){H.elements.tooltip.bind("mouseover.qtip",function(){if(H.status.disabled===true){return}clearTimeout(H.timers.hide)})}}function L(N){if(H.status.disabled===true){return}if(H.options.hide.when.event=="inactive"){n(G).each(function(){I.bind(this+".qtip-inactive",M);H.elements.content.bind(this+".qtip-inactive",M)});M()}clearTimeout(H.timers.show);clearTimeout(H.timers.hide);H.timers.show=setTimeout(function(){H.show(N)},H.options.show.delay)}function K(N){if(H.status.disabled===true){return}if(H.options.hide.fixed===true&&H.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&n(N.relatedTarget).parents("div.qtip[qtip]").length>0){N.stopPropagation();N.preventDefault();clearTimeout(H.timers.hide);return false}clearTimeout(H.timers.show);clearTimeout(H.timers.hide);H.elements.tooltip.stop(true,true);H.timers.hide=setTimeout(function(){H.hide(N)},H.options.hide.delay)}if((H.options.show.when.target.add(H.options.hide.when.target).length===1&&H.options.show.when.event==H.options.hide.when.event&&H.options.hide.when.event!=="inactive")||H.options.hide.when.event=="unfocus"){H.cache.toggle=0;J.bind(H.options.show.when.event+".qtip",function(N){if(H.cache.toggle==0){L(N)}else{K(N)}})}else{J.bind(H.options.show.when.event+".qtip",L);if(H.options.hide.when.event!=="inactive"){I.bind(H.options.hide.when.event+".qtip",K)}}if(H.options.position.type.search(/(fixed|absolute)/)!==-1){H.elements.tooltip.bind("mouseover.qtip",H.focus)}if(H.options.position.target==="mouse"&&H.options.position.type!=="static"){J.bind("mousemove.qtip",function(N){H.cache.mouse={x:N.pageX,y:N.pageY};if(H.status.disabled===false&&H.options.position.adjust.mouse===true&&H.options.position.type!=="static"&&H.elements.tooltip.css("display")!=="none"){H.updatePosition(N)}})}}function C(I,J,O){var N,G,L,M,H,K;N=this;if(O.corner=="center"){return J.position}G=n.extend({},I);M={x:false,y:false};H={left:(G.left<n.fn.qtip.cache.screen.scroll.left),right:(G.left+O.dimensions.width+2>=n.fn.qtip.cache.screen.width+n.fn.qtip.cache.screen.scroll.left),top:(G.top<n.fn.qtip.cache.screen.scroll.top),bottom:(G.top+O.dimensions.height+2>=n.fn.qtip.cache.screen.height+n.fn.qtip.cache.screen.scroll.top)};L={left:(H.left&&(O.corner.search(/right/i)!=-1||(O.corner.search(/right/i)==-1&&!H.right))),right:(H.right&&(O.corner.search(/left/i)!=-1||(O.corner.search(/left/i)==-1&&!H.left))),top:(H.top&&O.corner.search(/top/i)==-1),bottom:(H.bottom&&O.corner.search(/bottom/i)==-1)};if(L.left){if(N.options.position.target!=="mouse"){G.left=J.position.left+J.dimensions.width}else{G.left=N.cache.mouse.x}M.x="Left"}else{if(L.right){if(N.options.position.target!=="mouse"){G.left=J.position.left-O.dimensions.width}else{G.left=N.cache.mouse.x-O.dimensions.width}M.x="Right"}}if(L.top){if(N.options.position.target!=="mouse"){G.top=J.position.top+J.dimensions.height}else{G.top=N.cache.mouse.y}M.y="top"}else{if(L.bottom){if(N.options.position.target!=="mouse"){G.top=J.position.top-O.dimensions.height}else{G.top=N.cache.mouse.y-O.dimensions.height}M.y="bottom"}}if(G.left<0){G.left=I.left;M.x=false}if(G.top<0){G.top=I.top;M.y=false}if(N.options.style.tip.corner!==false){G.corner=new String(O.corner);if(M.x!==false){G.corner=G.corner.replace(/Left|Right|Middle/,M.x)}if(M.y!==false){G.corner=G.corner.replace(/top|bottom/,M.y)}if(G.corner!==N.elements.tip.attr("rel")){k.call(N,G.corner)}}return G}function E(I,H){var J,G;J=n.extend(true,{},I);for(G in J){if(H===true&&G.search(/(tip|classes)/i)!==-1){delete J[G]}else{if(!H&&G.search(/(width|border|tip|title|classes|user)/i)!==-1){delete J[G]}}}return J}function g(G){if(typeof G.tip!=="object"){G.tip={corner:G.tip}}if(typeof G.tip.size!=="object"){G.tip.size={width:G.tip.size,height:G.tip.size}}if(typeof G.border!=="object"){G.border={width:G.border}}if(typeof G.width!=="object"){G.width={value:G.width}}if(typeof G.width.max=="string"){G.width.max=parseInt(G.width.max.replace(/([0-9]+)/i,"$1"))}if(typeof G.width.min=="string"){G.width.min=parseInt(G.width.min.replace(/([0-9]+)/i,"$1"))}if(typeof G.tip.size.x=="number"){G.tip.size.width=G.tip.size.x;delete G.tip.size.x}if(typeof G.tip.size.y=="number"){G.tip.size.height=G.tip.size.y;delete G.tip.size.y}return G}function b(){var G,H,I,L,J,K;G=this;I=[true,{}];for(H=0;H<arguments.length;H++){I.push(arguments[H])}L=[n.extend.apply(n,I)];while(typeof L[0].name=="string"){L.unshift(g(n.fn.qtip.styles[L[0].name]))}L.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},n.fn.qtip.styles.defaults);J=n.extend.apply(n,L);K=(n.browser.msie)?1:0;J.tip.size.width+=K;J.tip.size.height+=K;if(J.tip.size.width%2>0){J.tip.size.width+=1}if(J.tip.size.height%2>0){J.tip.size.height+=1}if(J.tip.corner===true){J.tip.corner=(G.options.position.corner.tooltip==="center")?false:G.options.position.corner.tooltip}return J}function f(J,I,H){var G={bottomRight:[[0,0],[I,H],[I,0]],bottomLeft:[[0,0],[I,0],[0,H]],topRight:[[0,H],[I,0],[I,H]],topLeft:[[0,0],[0,H],[I,H]],topMiddle:[[0,H],[I/2,0],[I,H]],bottomMiddle:[[0,0],[I,0],[I/2,H]],rightMiddle:[[0,0],[I,H/2],[0,H]],leftMiddle:[[I,0],[I,H],[0,H/2]]};G.leftTop=G.bottomRight;G.rightTop=G.bottomLeft;G.leftBottom=G.topRight;G.rightBottom=G.topLeft;return G[J]}function o(G){var H;if(n("<canvas>").get(0).getContext){H={topLeft:[G,G],topRight:[0,G],bottomLeft:[G,0],bottomRight:[0,0]}}else{if(n.browser.msie){H={topLeft:[-90,90,0],topRight:[-90,90,-G],bottomLeft:[90,270,0],bottomRight:[90,270,-G]}}}return H}function y(){var G,H,I;G=this;I=G.getDimensions();H='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+I.height+"px; width:"+I.width+'px" />';G.elements.bgiframe=G.elements.wrapper.prepend(H).children(".qtip-bgiframe:first")}n(document).ready(function(){n.fn.qtip.cache={screen:{scroll:{left:n(window).scrollLeft(),top:n(window).scrollTop()},width:n(window).width(),height:n(window).height()}};var G;n(window).bind("resize scroll",function(H){clearTimeout(G);G=setTimeout(function(){if(H.type==="scroll"){n.fn.qtip.cache.screen.scroll={left:n(window).scrollLeft(),top:n(window).scrollTop()}}else{n.fn.qtip.cache.screen.width=n(window).width();n.fn.qtip.cache.screen.height=n(window).height()}for(i=0;i<n.fn.qtip.interfaces.length;i++){var I=n.fn.qtip.interfaces[i];if(I.status.rendered===true&&(I.options.position.type!=="static"||I.options.position.adjust.scroll&&H.type==="scroll"||I.options.position.adjust.resize&&H.type==="resize")){I.updatePosition(H,true)}}},100)});n(document).bind("mousedown.qtip",function(H){if(n(H.target).parents("div.qtip").length===0){n(".qtip[unfocus]").each(function(){var I=n(this).qtip("api");if(n(this).is(":visible")&&!I.status.disabled&&n(H.target).add(I.elements.target).length>1){I.hide(H)}})}})});n.fn.qtip.interfaces=[];n.fn.qtip.log={error:function(){return this}};n.fn.qtip.constants={};n.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};n.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);(function(n){n.facebox=function(B,A){n.facebox.loading();if(B.ajax){o(B.ajax,A)}else{if(B.image){g(B.image,A)}else{if(B.div){y(B.div,A)}else{if(n.isFunction(B)){B.call(n)}else{n.facebox.reveal(B,A)}}}}};n.extend(n.facebox,{settings:{opacity:0,overlay:true,loadingImage:"/css/images/facebox/loading.gif",closeImage:"/css/images/facebox/closelabel.gif",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:'    <div id="facebox" style="display:none;">       <div class="popup">         <table>           <tbody>             <tr>               <td class="tl"/><td class="b"/><td class="tr"/>             </tr>             <tr>               <td class="b"/>               <td class="body">                 <div class="content">                 </div>                 <div class="footer">                   <a href="#" class="close">                     <img src="/css/images/facebox/closelabel.gif" title="close" class="close_image" />                   </a>                 </div>               </td>               <td class="b"/>             </tr>             <tr>               <td class="bl"/><td class="b"/><td class="br"/>             </tr>           </tbody>         </table>       </div>     </div>'},loading:function(){z();if(n("#facebox .loading").length==1){return true}k();n("#facebox .content").empty();n("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+n.facebox.settings.loadingImage+'"/></div>');n("#facebox").css({top:q()[1]+(x()/10),left:n(window).width()/2-205}).show();n(document).bind("keydown.facebox",function(A){if(A.keyCode==27){n.facebox.close()}return true});n(document).trigger("loading.facebox")},reveal:function(B,A){n(document).trigger("beforeReveal.facebox");if(A){n("#facebox .content").addClass(A)}n("#facebox .content").append(B);n("#facebox .loading").remove();n("#facebox .body").children().fadeIn("normal");n("#facebox").css("left",n(window).width()/2-(n("#facebox table").width()/2));n(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){n(document).trigger("close.facebox");return false}});n.fn.facebox=function(A){if(n(this).length==0){return}z(A);function B(){n.facebox.loading(true);var C=this.rel.match(/facebox\[?\.(\w+)\]?/);if(C){C=C[1]}y(this.href,C);return false}return this.bind("click.facebox",B)};function z(C){if(n.facebox.settings.inited){return true}else{n.facebox.settings.inited=true}n(document).trigger("init.facebox");j();var A=n.facebox.settings.imageTypes.join("|");n.facebox.settings.imageTypesRegexp=new RegExp(".("+A+")$","i");if(C){n.extend(n.facebox.settings,C)}n("body").append(n.facebox.settings.faceboxHtml);var B=[new Image(),new Image()];B[0].src=n.facebox.settings.closeImage;B[1].src=n.facebox.settings.loadingImage;n("#facebox").find(".b:first, .bl").each(function(){B.push(new Image());B.slice(-1).src=n(this).css("background-image").replace(/url\((.+)\)/,"$1")});n("#facebox .close").click(n.facebox.close);n("#facebox .close_image").attr("src",n.facebox.settings.closeImage)}function q(){var B,A;if(self.pageYOffset){A=self.pageYOffset;B=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop;B=document.documentElement.scrollLeft}else{if(document.body){A=document.body.scrollTop;B=document.body.scrollLeft}}}return new Array(B,A)}function x(){var A;if(self.innerHeight){A=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientHeight}else{if(document.body){A=document.body.clientHeight}}}return A}function j(){var A=n.facebox.settings;A.loadingImage=A.loading_image||A.loadingImage;A.closeImage=A.close_image||A.closeImage;A.imageTypes=A.image_types||A.imageTypes;A.faceboxHtml=A.facebox_html||A.faceboxHtml}function y(B,A){if(B.match(/#/)){var C=window.location.href.split("#")[0];var D=B.replace(C,"");if(D=="#"){return}n.facebox.reveal(n(D).html(),A)}else{if(B.match(n.facebox.settings.imageTypesRegexp)){g(B,A)}else{o(B,A)}}}function g(B,A){var C=new Image();C.onload=function(){n.facebox.reveal('<div class="image"><img src="'+C.src+'" /></div>',A)};C.src=B}function o(B,A){n.get(B,function(C){n.facebox.reveal(C,A)})}function f(){return n.facebox.settings.overlay==false||n.facebox.settings.opacity===null}function k(){if(f()){return}if(n("#facebox_overlay").length==0){n("body").append('<div id="facebox_overlay" class="facebox_hide"></div>')}n("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity",n.facebox.settings.opacity).click(function(){n(document).trigger("close.facebox")}).fadeIn(200);return false}function b(){if(f()){return}n("#facebox_overlay").fadeOut(200,function(){n("#facebox_overlay").removeClass("facebox_overlayBG");n("#facebox_overlay").addClass("facebox_hide");n("#facebox_overlay").remove()});return false}n(document).bind("close.facebox",function(){n(document).unbind("keydown.facebox");n("#facebox").fadeOut(function(){n("#facebox .content").removeClass().addClass("content");b();n("#facebox .loading").remove()})})})(jQuery);if(!this.JSON){JSON=function(){function f(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string,fromToJson){escapeable.lastIndex=0;var safeString=escapeable.test(string)?string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)}):string;return(fromToJson==true)?safeString:'"'+safeString+'"'}function str(key,holder){var i,k,v,fromToJSON=false,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key);fromToJSON=true}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value,fromToJSON);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}return{stringify:function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}()}function urlThreadRead(b){return"/a/messages/"+b+"/read"}function urlThreadDelete(b){return"/a/messages/"+b+"/delete"}function getThread(b){return $("#thread-"+b)}function getThreadStatus(b){return getThread(b).find(".isread")}function markRead(f,b){t=getThreadStatus(f);if(t.val()==b){return}$.post(urlThreadRead(f),{s:b},function(){obj=getThread(f);s=obj.find(".isread");r=obj.find(".lbl-read");u=obj.find(".lbl-unread");if(b){obj.removeClass("unread");r.hide();u.show()}else{obj.addClass("unread");r.show();u.hide()}getThreadStatus(f).val(b)})}function toggleRead(b){markRead(b,(getThreadStatus(b).val()==1)?0:1)}function markReadSelected(b,f){$(b).each(function(g){chk=$(this).find(".msgcheck");threadId=chk.val();checked=chk.attr("checked");if(checked){markRead(threadId,f)}})}function deleteThreads(f,b){if(!confirm(b)){return}$(f).each(function(g){chk=$(this).find(".msgcheck");threadId=chk.val();checked=chk.attr("checked");if(checked){deleteEntry("thread-"+threadId,urlThreadDelete(threadId),null)}})}function changeAttach(b){e=$("#"+b);if(e.is(":visible")){e.toggle();return}$(".attach-media").hide();$("#"+b).show()}function commitPost(b){postdata=loadPostBox();if(!handlePostBoxData(postdata,b)){return false}if(postdata.fattach!=""){return uploadAttachPost(postdata)}$.ajax({type:"POST",url:"/a/posts",data:postdata,beforeSend:function(){progressPostBox()},success:function(f){handlePostResponse(JSON.parse(Base64.decode(f)))},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)},complete:function(g,f){restorePostBox()}});return false}function uploadAttachPost(b){url="/a/posts?place="+b.place+"&venue="+b.venue+"&message="+b.message+"&fw="+getPostForwards();progressPostBox();$.ajaxFileUpload({url:url,secureuri:false,fileElementId:"fattach",dataType:"none",success:function(f){handlePostResponse(JSON.parse(Base64.decode(f)))},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)},complete:function(g,f){restorePostBox()}});return false}function forwardPost(b){$.ajax({type:"POST",url:"/posts/"+b+"/fw",data:b,beforeSend:function(){progressPostBox()},success:function(f){handlePostResponse(JSON.parse(Base64.decode(f)))},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)},complete:function(g,f){restorePostBox()}});return false}function handlePostResponse(b){if(b.error_msg){return showErrorMessage(b.error_msg)}$("#feed #posts").prepend(b.html);reloadImagePreviews();closeMessage()}function handlePostBoxData(f,b){if(isEmptyOrDefault(f.message,b)){return false}return true}function getPostForwards(){s="";$(".fw-opt").each(function(){e=$(this);if(e.is(":checked")){s+=e.val()+","}});return s}function loadPostBox(){return{place:$("#post-place").val(),venue:$("#post-venue").val(),message:$("#message").val(),fattach:$("#fattach").val(),fw:getPostForwards()}}function savePostBox(b){$("#post-place").val(b.place);$("#post-venue").val(b.venue);$("#message").val(b.message);$("#fattach").val(b.fattach)}function progressPostBox(){$("#post-form").hide();$("#post-loading").show()}function restorePostBox(){$("#post-loading").hide();$("#post-form").show();savePostBox({message:"",fattach:""});$("#post-form textarea").trigger("onblur")}function deleteEntry(g,b,f){if(f==null||confirm(f)){$.post(b,{},function(j){$("#"+g).fadeOut(400)})}}function switchPhoto(b){if(b==1){$("#photo_src").val("");$("#photo_url").hide();$("#photo_upload").show()}else{$("#photo_upload").hide();$("#photo_src").val("http://");$("#photo_url").show()}}function changeFeedFilter(b){$(".feed-filter-current").removeClass("feed-filter-current").addClass("feed-filter");$("#feed-filter-"+b).addClass("feed-filter-current");return updateFeed({filter:b,page:1})}function changeRange(b){range=$(b).find("option:selected").val();return updateFeed({range:range,page:1})}function getFeedSource(){return $("#feed #feed-src").val()}function updateFeed(b){$(".feed-content").hide();$("#feed-loading").show();url=getFeedSource();$.get(url,b,function(f){$("#feed").html(f);$(".feed-content").show();reloadImagePreviews()});return false}function reloadImagePreviews(){$("a[rel*=facebox]").facebox()}function sendMessage(f){var b=$("#popup-message-new");if(!checkRequired(b,["subject","message"])){return false}$.facebox(function(){$.ajax({type:"POST",url:f,data:{subject:b.find("#subject").val(),message:b.find("#message").val(),},success:function(g){$.facebox(g)},error:function(k,g,j){},complete:function(j,g){}})})}function autogrow(b){s=$(b).val();ss=s.match(/[^\n]*\n[^\n]*/gi);if(ss==null){return false}c=ss.length;if(c>0){h=c*1.25+2.4+"em";$(b).css({height:h})}}function enableMsgArea(g,b,f){if(g.val()!=b){return false}g.val("");g.css({color:"#000"});if(f){g.css({height:"2.4em"})}}function disableMsgArea(f,b){if(f.val().length>0){return false}f.val(b);f.css({height:"1.2em",color:"#777"})}function getEntry(b){return $("#post-"+b)}function getEntryComments(b){return b.find(".comment-entry")}function getCommentInput(b){return b.find("textarea")}function getCommentTrack(b){return b.find('input[type="checkbox"]')}function getCommentSubmit(b){return b.find(".submit")}function getCommentButton(b){return b.find(".sbutton")}function getCommentWrapper(b){return b.find(".comments-wrapper")}function getCommentBox(b){return b.find(".comment-box")}function toggleComments(f,b){p=getEntry(f);getCommentWrapper(p).toggle();if(getEntryComments(p).length==0){getCommentInput(p).focus()}if(getCommentBox(p).html()==null){loadComments(f,b,"summary")}}function loadComments(f,b,g){$.ajax({type:"POST",url:b,data:{f:g},success:function(j){d=JSON.parse(j);p=getCommentWrapper(getEntry(f));p.html(d.html)},error:function(n,j,k){},complete:function(k,j){}})}function showCommentBox(f,b){p=getEntry(f);m=getCommentInput(p);c=getCommentSubmit(p);if(m.val()==b){m.val("");m.css({height:"2em",color:"#000"})}c.show()}function resetCommentBox(f,b){p=getEntry(f);m=getCommentInput(p);c=getCommentSubmit(p);w=getCommentWrapper(p);l=getEntryComments(p);if(m.val().length>0){return false}c.hide();m.val(b);m.css({height:"1.2em",color:"#777"});if(l.length==0){w.hide(1,function(){w.hide()})}}function sendComment(f,b,g){p=getEntry(f);s=getCommentInput(p).val();t=getCommentTrack(p).val();if(s==""){return false}getCommentButton(p).attr("disabled","true");$.ajax({type:"POST",url:b,data:{object:f,comment:s,track_item:t},beforeSend:function(){},success:function(j){d=JSON.parse(j);if(d.error_msg){getCommentButton(p).attr("disabled","false");return showAlert(d.error_msg)}loadComments(f,g,"all")},error:function(n,j,k){showAlert("error "+n.status+" -- "+n.statusText)},complete:function(k,j){}})}function deleteComment(g,b,f,j){if(confirm(f)){$.post(b,{},function(k){loadComments(g,j,"all")})}}function shareplay(f){var b=$(f).parent(".container");b.html(b.find("a").attr("play"))}function getRankAction(b){return b.find(".action-rank")}function getEntryRanking(b){return b.find(".rank-box")}function up(b){$.ajax({type:"POST",url:"/a/posts/"+b+"/up",data:{},beforeSend:function(){},success:function(f){handleRankResponse(f,true)},error:function(j,f,g){showAlert("error "+j.status+" -- "+j.statusText)},complete:function(g,f){}})}function down(b){$.ajax({type:"POST",url:"/a/posts/"+b+"/down",data:{},beforeSend:function(){},success:function(f){handleRankResponse(f,true)},error:function(j,f,g){showAlert("error "+j.status+" -- "+j.statusText)},complete:function(g,f){}})}function loadRankings(b){$.ajax({type:"GET",url:"/a/posts/"+b+"/ranks",beforeSend:function(){},success:function(f){handleRankResponse(f,false)},error:function(j,f,g){showAlert("error "+j.status+" -- "+j.statusText)},complete:function(g,f){}})}function handleRankResponse(b,f){response=handleResponse(b);if(response){p=getEntry(response.id);if(f){a=getRankAction(p);a.toggle()}r=getEntryRanking(p);r.replaceWith(response.html)}}function showAlert(b){alert(b)}function handleResponse(b){response=JSON.parse(b);if(response.error_msg){showAlert(response.error_msg);return false}return response}function getCookie(b){var f=document.cookie.match("\\b"+b+"=([^;]*)\\b");return f?f[1]:undefined}function rt_showMessage(b){var f=$("#post-"+b.id);if(f.length>0){return}f=$(b.html);f.hide();$("#feed #posts").prepend(f);reloadImagePreviews();f.slideDown()}function rt_showComment(g){var f=$("#post-"+g.pid);if(f.find("#c-"+g.id).length>0){return}var b=f.find(".comments-wrapper");if(b.is(":hidden")){b.fadeIn("slow")}g=$(g.html);g.hide();g.insertBefore(f.find("#message"));g.slideDown()}function rt_showLike(f){var b=$("#post-"+f.pid);if(!b.length){return}f=$(f.html);f.hide();b=b.find(".rank-box");b.replaceWith(f);f.fadeIn("slow")}var updater={errorSleepTime:500,_cursor:null,_channel:null,_geo:null,channel:function(b){updater._channel=b;window.setTimeout(updater.poll,0)},geo:function(g,f,b){updater._geo=g+","+f+","+b;window.setTimeout(updater.poll,0)},poll:function(){var f={_xsrf:getCookie("_xsrf")};if(updater._cursor){f.cursor=updater._cursor}if(updater._channel){f.channel=updater._channel}if(updater._geo){f.geo=updater._geo}var b=[];$("#posts .post-entry").each(function(j,g){var k=$(g).attr("id");if(k){b.push(k.substring(5))}});f.entries=b.join("-");$.ajax({type:"POST",url:"/a/post/updates",dataType:"text",data:$.param(f),success:updater.onSuccess,error:updater.onError})},onSuccess:function(response){try{updater.newMessages(eval("("+response+")"))}catch(e){updater.onError();return}updater.errorSleepTime=500;window.setTimeout(updater.poll,0)},onError:function(b){updater.errorSleepTime*=2;window.setTimeout(updater.poll,updater.errorSleepTime)},newMessages:function(f){if(!f.posts||!f.comments||!f.likes){return}updater._cursor=f.cursor;var g;var b=f.posts;for(g=0;g<b.length;g++){rt_showMessage(b[g])}b=f.comments;for(g=0;g<b.length;g++){rt_showComment(b[g])}b=f.likes;for(g=0;g<b.length;g++){rt_showLike(b[g])}}};function acceptRequest(f,b){requestAction("confirm",f,b);$("#accept-btn-"+b).removeAttr("disabled")}function blockRequest(f,b){requestAction("block",f,b);$("#block-btn-"+b).removeAttr("disabled")}function requestAction(f,g,b){$.ajax({url:"/a/friends/"+f,type:"post",data:{friend:g},success:function(j){$("#friend-req-"+b).fadeOut("slow")},error:function(n,j,k){alert("error "+n.status+" -- "+n.statusText)}})}function reqFollow(f,b){$("#user-"+b).hide();$("#loading-"+b).show();$.ajax({url:"/a/friends/follow",type:"post",data:{friend:f},success:function(g){$("#loading-"+b).hide();$("#f-show-req-"+b).hide();if(g){$("#p-req-"+b).show();$("#pending-"+b).fadeIn()}else{$("#f-req-"+b).show();$("#user-"+b).fadeIn()}},error:function(k,g,j){alert("error "+k.status+" -- "+k.statusText);$("#loading-"+b).hide();$("#user-"+b).show()}})}function removeFollow(f,b){$.ajax({url:"/a/friends/remove",type:"post",data:{friend:f},success:function(g){$("#f-req-"+b).hide();$("#f-show-req-"+b).fadeIn()},error:function(k,g,j){alert("error "+k.status+" -- "+k.statusText)}})}function followAndReload(b){$.ajax({url:"/a/friends/follow",type:"post",data:{friend:b},success:function(f){location.reload(true)},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)}})}function followAndHide(f,b){$.ajax({url:"/a/friends/follow",type:"post",data:{friend:f},success:function(g){$(b).fadeOut("fast")},error:function(k,g,j){alert("error "+k.status+" -- "+k.statusText)}})}function unfollowAndReload(b){$.ajax({url:"/a/friends/remove",type:"post",data:{friend:b},success:function(f){location.reload(true)},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)}})}function blockAndReload(b){$.ajax({url:"/a/friends/block",type:"post",data:{friend:b},success:function(f){location.reload(true)},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)}})}function unblockAndReload(b){$.ajax({url:"/a/friends/unblock",type:"post",data:{friend:b},success:function(f){location.reload(true)},error:function(j,f,g){alert("error "+j.status+" -- "+j.statusText)}})}function loadBubbles(){$(".bubble").each(function(){html=$(this).find(".bubble-info").html();$(this).qtip({content:html,position:{corner:{tooltip:"bottomRight",target:"center"}},style:{padding:10,tip:true,border:{width:2,radius:10,color:"#005784"},},show:{delay:500},hide:{fixed:true}})})}function getWiki(){return $(".wiki-edit textarea")}function toggleWiki(){$(".wiki").toggle();$(".wiki-edit").toggle();getWiki().focus()}function updateWiki(b){msg=getWiki().val();currentMsg=$("#description-full").text();toggleWiki();if(currentMsg==msg){return}$.post(url="/a/places/"+b+"/wiki",{m:msg},function(f){location.reload(true)})}function updateTags(f,b){tags=$("#popup-tag #tags").val();currentTags=$("#popup-tag #tags_current").val();f.parent.tb_remove();if(currentTags==tags){return}$.ajax({type:"POST",url:b,data:{tags:tags},success:function(g){location.reload(true)},error:function(k,g,j){alert("error "+k.status+" -- "+k.statusText)},complete:function(j,g){}})}function locateme(){locationStart();if(hasGoogleGears()){return gearsLocate()}else{if(hasGeolocation()){return navLocate()}else{locationError("Could not find locator service")}}}function hasGoogleGears(){return window.google&&google.gears}function hasGeolocation(){return navigator.geolocation}function hasLocator(){return hasGeolocation()||hasGoogleGears()}function gearsGet(b){window.open("http://gears.google.com/?action=install&message="+b+"&return=http://www.weegoh.com/home")}function gearsLocate(){try{var b=google.gears.factory.create("beta.geolocation");b.getCurrentPosition(gearsSuccess,gearsError,{enableHighAccuracy:true,gearsRequestAddress:true})}catch(f){locationError("Error using Geolocation API: "+f.message)}}function gearsSuccess(b){locationSuccess(b.coords.latitude,b.coords.longitude,gearsAddressStr(b.gearsAddress))}function gearsError(b){locationError("Error retrieving your location: "+b.message)}function gearsAddressStr(f){var b="";if(f.streetNumber){b+=f.streetNumber+" "}if(f.street){b+=f.street+", "}if(f.city){b+=f.city+", "}if(f.region){b+=f.region+", "}if(f.country){b+=f.country}return b}function navLocate(){try{navigator.geolocation.getCurrentPosition(navSuccess,navError,{enableHighAccuracy:true})}catch(b){locationError("Error using Geolocation API: "+b.message)}}function navSuccess(b){locationSuccess(b.coords.latitude,b.coords.longitude,null)}function navError(b){locationError("Error retrieving your location: "+b.message)}function getLocator(){return $("#locator")}function getLocatorPrg(b){return b.find("#locator-working")}function getLocatorRes(b){return b.find("#locator-results")}function getLocatorItems(b){return b.find("#locator-items")}function locationStart(){loc=getLocator();getLocatorPrg(loc).show();getLocatorRes(loc).hide()}function locationSuccess(b,f,g){$.ajax({type:"POST",url:"/a/locate",data:{c:b.toFixed(6)+","+f.toFixed(6),r:(g==null)?1:0},success:function(n){d=JSON.parse(n);if(d.error_msg){return locationError(d.error_msg)}var j="";for(i=0;i<d.objects.length;i++){var k=d.objects[i];if(g!=null){k.display_name=(i==0)?g:k.display_name}j+=renderLocationItem(k)}loc=getLocator();getLocatorItems(loc).html(j);getLocatorRes(loc).show()},error:function(n,j,k){locationError(j)},complete:function(k,j){locationComplete()}})}function locationComplete(){loc=getLocator();getLocatorPrg(loc).hide()}function locationError(b){alert(b);locationComplete()}function renderLocationItem(f){var b="";b="<li>";b+='<span class="actions">';b+='<a href="'+f.link+'/go">[checkin]</a>';b+="</span>";b+='<a href="'+f.link+'">'+f.display_name+"</a>";b+="</li>";return b}function GoogleGeoResponse(){this.parseLatLng=function(f){var b=new Object;b.lat=f.lat();b.lng=f.lng();return b};this.parseLatLngBounds=function(b){var f=new Object;f.southwest=this.parseLatLng(b.getSouthWest());f.northeast=this.parseLatLng(b.getNorthEast());return f};this.parseGeometry=function(f){var b=new Object;b.location=this.parseLatLng(f.location);b.viewport=this.parseLatLngBounds(f.viewport);if(f.bounds){b.bounds=this.parseLatLngBounds(f.bounds)}return b};this.parseDict=function(b){nresults=b.length;objects=new Array(nresults);for(i=0;i<nresults;i++){result=b[i];var f=new Object;f.types=result.types;f.formatted_address=result.formatted_address;f.geometry=this.parseGeometry(result.geometry);objects[i]=f}return objects};this.parse=function(b){return JSON.stringify(this.parseDict(b))}}function WeegohGeoNamer(){function f(g){alert(g)}function b(j){var g=new GoogleGeoResponse();$.ajax({type:"POST",url:"/a/places/name",data:{q:g.parse(j),c:$(".geoname").attr("id")},success:function(n){d=JSON.parse(n);if(d.error_msg){return f(d.error_msg)}var k="@"+d.object["display_name"];$(".geoname").html(k)},error:function(o,k,n){f(k)},complete:function(n,k){}})}this.handleResponse=function(j,g){return(g==google.maps.GeocoderStatus.OK)?b(j):f(g)}}function WeegohGeocoder(){this.geocoder=new google.maps.Geocoder();this.coord_re=new RegExp("^([-+]?(\\d+)\\.?(\\d+)?),([-+]?(\\d+)+\\.?(\\d+)?)$");this.geoworkers=Array();this.isCoord=function(b){return b.match(this.coord_re)};this.geocodeCoord=function(b,f){if(!this.isCoord(f)){return}var f=f.split(",");this.geocode(b,f[0],f[1])};this.geocode=function(g,f,b){if(!this.geocoder){alert("No valid geocoder available");return}this.add(g);this.geocoder.geocode({latLng:new google.maps.LatLng(f,b)},g.handleResponse)};this.add=function(b){this.geoworkers.push(b)};this.find=function(b){return this.geoworkers.indexOf(b)};this.del=function(b){return this.geoworkers.splice(this.find(b),1)}}(function(b){b.fn.empty_value=function(j,f,g){if(typeof j!="string"){j=""}if(typeof f!="boolean"){f=true}if(typeof g!="string"){g="empty"}return this.each(function(){b(this).focus(function(){if(b(this).hasClass(g)){b(this).removeClass(g);if(f){b(this).val("").attr("title","")}}}).blur(function(){var k=b(this).val();if(!k||k==j){b(this).addClass(g).val(j).attr("title",b(this).val())}}).blur()})}})(jQuery);(function(f){f.dimensions={version:"@VERSION"};f.each(["Height","Width"],function(j,g){f.fn["inner"+g]=function(){if(!this[0]){return}var n=g=="Height"?"Top":"Left",k=g=="Height"?"Bottom":"Right";return this.css("display")!="none"?this[0]["client"+g]:b(this,g.toLowerCase())+b(this,"padding"+n)+b(this,"padding"+k)};f.fn["outer"+g]=function(n){if(!this[0]){return}var q=g=="Height"?"Top":"Left",k=g=="Height"?"Bottom":"Right";n=f.extend({margin:false},n||{});var o=this.css("display")!="none"?this[0]["offset"+g]:b(this,g.toLowerCase())+b(this,"border"+q+"Width")+b(this,"border"+k+"Width")+b(this,"padding"+q)+b(this,"padding"+k);return o+(n.margin?(b(this,"margin"+q)+b(this,"margin"+k)):0)}});f.each(["Left","Top"],function(j,g){f.fn["scroll"+g]=function(k){if(!this[0]){return}return k!=undefined?this.each(function(){this==window||this==document?window.scrollTo(g=="Left"?k:f(window)["scrollLeft"](),g=="Top"?k:f(window)["scrollTop"]()):this["scroll"+g]=k}):this[0]==window||this[0]==document?self[(g=="Left"?"pageXOffset":"pageYOffset")]||f.boxModel&&document.documentElement["scroll"+g]||document.body["scroll"+g]:this[0]["scroll"+g]}});f.fn.extend({position:function(){var q=0,o=0,n=this[0],x,g,k,j;if(n){k=this.offsetParent();x=this.offset();g=k.offset();x.top-=b(n,"marginTop");x.left-=b(n,"marginLeft");g.top+=b(k,"borderTopWidth");g.left+=b(k,"borderLeftWidth");j={top:x.top-g.top,left:x.left-g.left}}return j},offsetParent:function(){var g=this[0].offsetParent;while(g&&(!/^body|html$/i.test(g.tagName)&&f.css(g,"position")=="static")){g=g.offsetParent}return f(g)}});function b(g,j){return parseInt(f.curCSS(g.jquery?g[0]:g,j,true))||0}})(jQuery);(function(b){b.suggest=function(D,n){var f=b(D).attr("autocomplete","off");var j=b(document.createElement("ul"));var C=false;var g=0;var F=[];var E=0;j.addClass(n.resultsClass).appendTo("body");y();b(window).load(y).resize(y);f.blur(function(){setTimeout(function(){j.hide()},200)});try{j.bgiframe()}catch(H){}if(b.browser.mozilla){f.keypress(B)}else{f.keydown(B)}function y(){var M=f.offset();var L={top:(M.top+D.offsetHeight)+"px",left:M.left+"px","overflow-x":"auto","overflow-y":"auto",display:"none"};if(n.width){L.width=n.width}if(n.width){L["max-height"]=n.height}j.css(L)}function B(L){if((/27$|38$|40$/.test(L.keyCode)&&j.is(":visible"))||(/^13$|^9$/.test(L.keyCode)&&J())){if(L.preventDefault){L.preventDefault()}if(L.stopPropagation){L.stopPropagation()}L.cancelBubble=true;L.returnValue=false;switch(L.keyCode){case 38:z();break;case 40:I();break;case 9:case 13:G();break;case 27:j.hide();break}}else{if(f.val().length!=g){if(C){clearTimeout(C)}C=setTimeout(A,n.delay);g=f.val().length}}}function A(){var M=b.trim(f.val());if(M.length>=n.minchars){cached=K(M);if(cached){q(cached.items)}else{if(typeof n.src!="string"){j.hide();var L=x(n.src,M);q(L);o(M,L,L.toString().length)}else{b.getJSON(n.src,{q:M},function(O){j.hide();var N=x(O,M);q(N);o(M,N,N.toString().length)})}}}else{j.hide()}}function x(M,R){var O=[];var N=new RegExp(R,"ig");var L=new RegExp("(\b|^)"+R,"ig");if(n.genericSearch){O=O.concat(n.genericSearch(R))}for(var Q=0;Q<M.length;Q++){var P=(n.getDataCallBack)?n.getDataCallBack(M[Q]):b.trim(M[Q]);if(n.filterData&&P.search(L)<0){continue}P=P.replace(N,function(S){return'<span class="'+n.matchClass+'">'+S+"</span>"});if(n.formatCallback){P=n.formatCallback(M[Q],P)}O[O.length]=P}return O}function K(M){for(var L=0;L<F.length;L++){if(F[L]["q"]==M){F.unshift(F.splice(L,1)[0]);return F[0]}}return false}function o(O,L,M){while(F.length&&(E+M>n.maxCacheSize)){var N=F.pop();E-=N.size}F.push({q:O,size:M,items:L});E+=M}function q(L){if(!L){return}if(!L.length){j.hide();return}var N="";for(var M=0;M<L.length;M++){N+='<li id="'+M+'">'+L[M]+"</li>"}j.html(N).show();j.children("li").mouseover(function(){j.children("li").removeClass(n.selectClass);b(this).addClass(n.selectClass)}).click(function(O){O.preventDefault();O.stopPropagation();G()})}function J(){if(!j.is(":visible")){return false}var L=j.children("li."+n.selectClass);if(!L.length){L=false}return L}function k(){return j.children("li").index(b("li."+n.selectClass))}function G(){$currentResult=J();if($currentResult){if(n.onSelect){n.onSelect(k(),$currentResult.text())}else{f.val($currentResult.text())}j.hide()}}function I(){$currentResult=J();if($currentResult){$currentResult.removeClass(n.selectClass).next().addClass(n.selectClass)}else{j.children("li:first-child").addClass(n.selectClass)}}function z(){$currentResult=J();if($currentResult){$currentResult.removeClass(n.selectClass).prev().addClass(n.selectClass)}else{j.children("li:last-child").addClass(n.selectClass)}}};b.fn.suggest=function(g,f){if(!g){return}f=f||{};f.src=g;f.filterData=f.filterData||false;f.getDataCallBack=f.getDataCallBack||false;f.genericSearch=f.genericSearch||false;f.formatCallback=f.formatCallback||false;f.onSelect=f.onSelect||false;f.height=f.height||false;f.width=f.width||false;f.delay=f.delay||100;f.minchars=f.minchars||2;f.resultsClass=f.resultsClass||"ac_results";f.selectClass=f.selectClass||"ac_over";f.matchClass=f.matchClass||"ac_match";f.maxCacheSize=f.maxCacheSize||65536;this.each(function(){new b.suggest(this,f)});return this}})(jQuery);(function(b){b.fn.hoverIntent=function(z,y){var A={sensitivity:7,interval:100,timeout:0};A=b.extend(A,y?{over:z,out:y}:z);var C,B,q,n;var o=function(f){C=f.pageX;B=f.pageY};var k=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(q-C)+Math.abs(n-B))<A.sensitivity){b(f).unbind("mousemove",o);f.hoverIntent_s=1;return A.over.apply(f,[g])}else{q=C;n=B;f.hoverIntent_t=setTimeout(function(){k(g,f)},A.interval)}};var x=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return A.out.apply(f,[g])};var j=function(E){var D=(E.type=="mouseover"?E.fromElement:E.toElement)||E.relatedTarget;while(D&&D!=this){try{D=D.parentNode}catch(E){D=this}}if(D==this){return false}var g=jQuery.extend({},E);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(E.type=="mouseover"){q=g.pageX;n=g.pageY;b(f).bind("mousemove",o);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){k(g,f)},A.interval)}}else{b(f).unbind("mousemove",o);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){x(g,f)},A.timeout)}}};return this.mouseover(j).mouseout(j)}})(jQuery);(function(f){f.fn.superfish=function(y){var n=f.fn.superfish,x=n.c,k=f(['<span class="',x.arrowClass,'"> &#187;</span>'].join("")),q=function(){var z=f(this),A=g(z);clearTimeout(A.sfTimer);z.showSuperfishUl().siblings().hideSuperfishUl()},j=function(){var z=f(this),B=g(z),A=n.op;clearTimeout(B.sfTimer);B.sfTimer=setTimeout(function(){A.retainPath=(f.inArray(z[0],A.$path)>-1);z.hideSuperfishUl();if(A.$path.length&&z.parents(["li.",A.hoverClass].join("")).length<1){q.call(A.$path)}},A.delay)},g=function(z){var A=z.parents(["ul.",x.menuClass,":first"].join(""))[0];n.op=n.o[A.serial];return A},o=function(z){z.addClass(x.anchorClass).append(k.clone())};return this.each(function(){var z=this.serial=n.o.length;var B=f.extend({},n.defaults,y);B.$path=f("li."+B.pathClass,this).slice(0,B.pathLevels).each(function(){f(this).addClass([B.hoverClass,x.bcClass].join(" ")).filter("li:has(ul)").removeClass(B.pathClass)});n.o[z]=n.op=B;f("li:has(ul)",this)[(f.fn.hoverIntent&&!B.disableHI)?"hoverIntent":"hover"](q,j).each(function(){if(B.autoArrows){o(f(">a:first-child",this))}}).not("."+x.bcClass).hideSuperfishUl();var A=f("a",this);A.each(function(C){var D=A.eq(C).parents("li");A.eq(C).focus(function(){q.call(D)}).blur(function(){j.call(D)})});B.onInit.call(this)}).each(function(){menuClasses=[x.menuClass];if(n.op.dropShadows&&!(f.browser.msie&&f.browser.version<7)){menuClasses.push(x.shadowClass)}f(this).addClass(menuClasses.join(" "))})};var b=f.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var g=b.op;if(f.browser.msie&&f.browser.version>6&&g.dropShadows&&g.animation.opacity!=undefined){this.toggleClass(b.c.shadowClass+"-off")}};b.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};b.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};f.fn.extend({hideSuperfishUl:function(){var k=b.op,j=(k.retainPath===true)?k.$path:"";k.retainPath=false;var g=f(["li.",k.hoverClass].join(""),this).add(this).not(j).removeClass(k.hoverClass).find(">ul").hide().css("visibility","hidden");k.onHide.call(g);return this},showSuperfishUl:function(){var k=b.op,j=b.c.shadowClass+"-off",g=this.addClass(k.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(g);k.onBeforeShow.call(g);g.animate(k.animation,k.speed,function(){b.IE7fix.call(g);k.onShow.call(g)});return this}})})(jQuery);jQuery.extend({createUploadIframe:function(j,f){var b="jUploadFrame"+j;if(window.ActiveXObject){var g=document.createElement('<iframe id="'+b+'" name="'+b+'" />');if(typeof f=="boolean"){g.src="javascript:false"}else{if(typeof f=="string"){g.src=f}}}else{var g=document.createElement("iframe");g.id=b;g.name=b}g.style.position="absolute";g.style.top="-1000px";g.style.left="-1000px";document.body.appendChild(g);return g},createUploadForm:function(o,f){var k="jUploadForm"+o;var b="jUploadFile"+o;var j=$('<form  action="" method="POST" name="'+k+'" id="'+k+'" enctype="multipart/form-data"></form>');var g=$("#"+f);var n=$(g).clone();$(g).attr("id",b);$(g).before(n);$(g).appendTo(j);$(j).css("position","absolute");$(j).css("top","-1200px");$(j).css("left","-1200px");$(j).appendTo("body");return j},ajaxFileUpload:function(y){y=jQuery.extend({},jQuery.ajaxSettings,y);var b=new Date().getTime();var f=jQuery.createUploadForm(b,y.fileElementId);var q=jQuery.createUploadIframe(b,y.secureuri);var o="jUploadFrame"+b;var x="jUploadForm"+b;if(y.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var g=false;var k={};if(y.global){jQuery.event.trigger("ajaxSend",[k,y])}var j=function(z){var D=document.getElementById(o);try{if(D.contentWindow){k.responseText=D.contentWindow.document.body?D.contentWindow.document.body.innerHTML:null;k.responseXML=D.contentWindow.document.XMLDocument?D.contentWindow.document.XMLDocument:D.contentWindow.document}else{if(D.contentDocument){k.responseText=D.contentDocument.document.body?D.contentDocument.document.body.innerHTML:null;k.responseXML=D.contentDocument.document.XMLDocument?D.contentDocument.document.XMLDocument:D.contentDocument.document}}}catch(C){jQuery.handleError(y,k,null,C)}if(k||z=="timeout"){g=true;var A;try{A=z!="timeout"?"success":"error";if(A!="error"){var B=jQuery.uploadHttpData(k,y.dataType);if(y.success){y.success(B,A)}if(y.global){jQuery.event.trigger("ajaxSuccess",[k,y])}}else{jQuery.handleError(y,k,A)}}catch(C){A="error";jQuery.handleError(y,k,A,C)}if(y.global){jQuery.event.trigger("ajaxComplete",[k,y])}if(y.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}if(y.complete){y.complete(k,A)}jQuery(D).unbind();setTimeout(function(){try{$(D).remove();$(f).remove()}catch(E){jQuery.handleError(y,k,null,E)}},100);k=null}};if(y.timeout>0){setTimeout(function(){if(!g){j("timeout")}},y.timeout)}try{var f=$("#"+x);$(f).attr("action",y.url);$(f).attr("method","POST");$(f).attr("target",o);if(f.encoding){f.encoding="multipart/form-data"}else{f.enctype="multipart/form-data"}$(f).submit()}catch(n){jQuery.handleError(y,k,null,n)}if(window.attachEvent){document.getElementById(o).attachEvent("onload",j)}else{document.getElementById(o).addEventListener("load",j,false)}return{abort:function(){}}},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script"){jQuery.globalEval(data)}if(type=="json"){eval("data = "+data)}if(type=="html"){jQuery("<div>").html(data).evalScripts()}return data}});function setupSearch(){var b=[["Search places for %(term)s","places"],["Search people for %(term)s","people"]];if(window.gSetupSearch){return}window.gSetupSearch=true;$("#q").unbind("focus keydown",setupSearch);$.getJSON("/a/searchContacts",{},function(f){$("#q").suggest(f,{filterData:true,width:"230px",height:"180px",getDataCallBack:function(g){return g[0]},genericSearch:function(j){ret=[];for(var g=0;g<b.length;g++){ret[ret.length]=b[g][0].replace("%(term)s","<strong>"+j+"</strong>")}return ret},formatCallback:function(j,g){return'<img class="picture" src="'+j[1]+'"/>'+g},onSelect:function(g,k){if(g<b.length){$("#global-search").append('<input type="hidden" name="'+b[g][1]+'" value="'+b[g][1]+'"/>');$("#global-search").submit()}else{$("#q").val("");var j=k.match(/\((.*)\)/);if(j){k=j[1]}document.location.href="/people/"+k}}})})}function showErrorMessage(b){closeMessage();box='    <div class="errorbox">        <div class="msg">'+b+'</div>        <a class="close_link" onclick="closeMessage();" href="#">close</a>    </div>';$("#message-holder").append(box).fadeIn()}function closeMessage(){$(".errorbox").hide();$(".statusbox").hide()}function toggleDescription(){$("#description-digest").toggle();$("#description-full").toggle()}function isEmpty(b){return(b.length==0||b.replace(/^\s*|\s*$/g,"").length==0)}function isEmptyOrDefault(b,f){return isEmpty(b)||b==f}function validateSearch(b){v=$("#global-search #q").val();return !isEmpty(v)&&v!=b}function toggleBox(b){box=$("#"+b);box.find(".content").toggle()}function selectAll(b,f){$(b).each(function(g){this.checked=f})}function gotoUrl(b){window.location.href=b}function setLang(b){submitForm("/a/setLang",{lang:b})}function submitForm(g,j){var f=$('<form method="post"></form>');f.attr("action",g);f.target="_self";if(!j.next){j.next=location.href}for(var b in j){f.append($('<input type="hidden" name="'+b+'"/>').val(j[b]))}$("body").append(f);f.submit()}function checkRequired(g,f){for(i=0;i<f.length;i++){var b=$(g).find("#"+f[i]);if(isEmpty(b.val())){b.focus();return false}}return true}var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(g){var b="";var y,q,n,x,o,k,j;var f=0;g=Base64._utf8_encode(g);while(f<g.length){y=g.charCodeAt(f++);q=g.charCodeAt(f++);n=g.charCodeAt(f++);x=y>>2;o=((y&3)<<4)|(q>>4);k=((q&15)<<2)|(n>>6);j=n&63;if(isNaN(q)){k=j=64}else{if(isNaN(n)){j=64}}b=b+this._keyStr.charAt(x)+this._keyStr.charAt(o)+this._keyStr.charAt(k)+this._keyStr.charAt(j)}return b},decode:function(g){var b="";var y,q,n;var x,o,k,j;var f=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<g.length){x=this._keyStr.indexOf(g.charAt(f++));o=this._keyStr.indexOf(g.charAt(f++));k=this._keyStr.indexOf(g.charAt(f++));j=this._keyStr.indexOf(g.charAt(f++));y=(x<<2)|(o>>4);q=((o&15)<<4)|(k>>2);n=((k&3)<<6)|j;b=b+String.fromCharCode(y);if(k!=64){b=b+String.fromCharCode(q)}if(j!=64){b=b+String.fromCharCode(n)}}b=Base64._utf8_decode(b);return b},_utf8_encode:function(f){f=f.replace(/\r\n/g,"\n");var b="";for(var j=0;j<f.length;j++){var g=f.charCodeAt(j);if(g<128){b+=String.fromCharCode(g)}else{if((g>127)&&(g<2048)){b+=String.fromCharCode((g>>6)|192);b+=String.fromCharCode((g&63)|128)}else{b+=String.fromCharCode((g>>12)|224);b+=String.fromCharCode(((g>>6)&63)|128);b+=String.fromCharCode((g&63)|128)}}}return b},_utf8_decode:function(b){var f="";var g=0;var j=c1=c2=0;while(g<b.length){j=b.charCodeAt(g);if(j<128){f+=String.fromCharCode(j);g++}else{if((j>191)&&(j<224)){c2=b.charCodeAt(g+1);f+=String.fromCharCode(((j&31)<<6)|(c2&63));g+=2}else{c2=b.charCodeAt(g+1);c3=b.charCodeAt(g+2);f+=String.fromCharCode(((j&15)<<12)|((c2&63)<<6)|(c3&63));g+=3}}}return f}};