(function(){var m=this,g,A=m.jQuery,q=m.$,p=m.jQuery=m.$=function(G,H){return new p.fn.init(G,H)},F=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;p.fn=p.prototype={init:function(G,J){G=G||document;if(G.nodeType){this[0]=G;this.length=1;this.context=G;return this}if(typeof G==="string"){var I=F.exec(G);if(I&&(I[1]||!J)){if(I[1]){G=p.clean([I[1]],J)}else{var K=document.getElementById(I[3]);if(K&&K.id!=I[3]){return p().find(G)}var H=p(K||[]);H.context=document;H.selector=G;return H}}else{return p(J).find(G)}}else{if(p.isFunction(G)){return p(document).ready(G)}}if(G.selector&&G.context){this.selector=G.selector;this.context=G.context}return this.setArray(p.isArray(G)?G:p.makeArray(G))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(G){return G===g?Array.prototype.slice.call(this):this[G]},pushStack:function(H,J,G){var I=p(H);I.prevObject=this;I.context=this.context;if(J==="find"){I.selector=this.selector+(this.selector?" ":"")+G}else{if(J){I.selector=this.selector+"."+J+"("+G+")"}}return I},setArray:function(G){this.length=0;Array.prototype.push.apply(this,G);return this},each:function(H,G){return p.each(this,H,G)},index:function(G){return p.inArray(G&&G.jquery?G[0]:G,this)},attr:function(H,J,I){var G=H;if(typeof H==="string"){if(J===g){return this[0]&&p[I||"attr"](this[0],H)}else{G={};G[H]=J}}return this.each(function(K){for(H in G){p.attr(I?this.style:this,H,p.prop(this,G[H],I,K,H))}})},css:function(G,H){if((G=="width"||G=="height")&&parseFloat(H)<0){H=g}return this.attr(G,H,"curCSS")},text:function(H){if(typeof H!=="object"&&H!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(H))}var G="";p.each(H||this,function(){p.each(this.childNodes,function(){if(this.nodeType!=8){G+=this.nodeType!=1?this.nodeValue:p.fn.text([this])}})});return G},wrapAll:function(G){if(this[0]){var H=p(G,this[0].ownerDocument).clone();if(this[0].parentNode){H.insertBefore(this[0])}H.map(function(){var I=this;while(I.firstChild){I=I.firstChild}return I}).append(this)}return this},wrapInner:function(G){return this.each(function(){p(this).contents().wrapAll(G)})},wrap:function(G){return this.each(function(){p(this).wrapAll(G)})},append:function(){return this.domManip(arguments,true,function(G){if(this.nodeType==1){this.appendChild(G)}})},prepend:function(){return this.domManip(arguments,true,function(G){if(this.nodeType==1){this.insertBefore(G,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this)})},after:function(){return this.domManip(arguments,false,function(G){this.parentNode.insertBefore(G,this.nextSibling)})},end:function(){return this.prevObject||p([])},push:[].push,sort:[].sort,splice:[].splice,find:function(G){if(this.length===1){var H=this.pushStack([],"find",G);H.length=0;p.find(G,this[0],H);return H}else{return this.pushStack(p.unique(p.map(this,function(I){return p.find(G,I)})),"find",G)}},clone:function(I){var G=this.map(function(){if(!p.support.noCloneEvent&&!p.isXMLDoc(this)){var K=this.outerHTML;if(!K){var L=this.ownerDocument.createElement("div");L.appendChild(this.cloneNode(true));K=L.innerHTML}return p.clean([K.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(I===true){var J=this.find("*").andSelf(),H=0;G.find("*").andSelf().each(function(){if(this.nodeName!==J[H].nodeName){return}var K=p.data(J[H],"events");for(var M in K){for(var L in K[M]){p.event.add(this,M,K[M][L],K[M][L].data)}}H++})}return G},filter:function(G){return this.pushStack(p.isFunction(G)&&p.grep(this,function(I,H){return G.call(I,H)})||p.multiFilter(G,p.grep(this,function(H){return H.nodeType===1})),"filter",G)},closest:function(G){var I=p.expr.match.POS.test(G)?p(G):null,H=0;return this.map(function(){var J=this;while(J&&J.ownerDocument){if(I?I.index(J)>-1:p(J).is(G)){p.data(J,"closest",H);return J}J=J.parentNode;H++}})},not:function(G){if(typeof G==="string"){if(f.test(G)){return this.pushStack(p.multiFilter(G,this,true),"not",G)}else{G=p.multiFilter(G,this)}}var H=G.length&&G[G.length-1]!==g&&!G.nodeType;return this.filter(function(){return H?p.inArray(this,G)<0:this!=G})},add:function(G){return this.pushStack(p.unique(p.merge(this.get(),typeof G==="string"?p(G):p.makeArray(G))))},is:function(G){return !!G&&p.multiFilter(G,this).length>0},hasClass:function(G){return !!G&&this.is("."+G)},val:function(M){if(M===g){var G=this[0];if(G){if(p.nodeName(G,"option")){return(G.attributes.value||{}).specified?G.value:G.text}if(p.nodeName(G,"select")){var K=G.selectedIndex,N=[],O=G.options,J=G.type=="select-one";if(K<0){return null}for(var H=J?K:0,L=J?K+1:O.length;H<L;H++){var I=O[H];if(I.selected){M=p(I).val();if(J){return M}N.push(M)}}return N}return(G.value||"").replace(/\r/g,"")}return g}if(typeof M==="number"){M+=""}return this.each(function(){if(this.nodeType!=1){return}if(p.isArray(M)&&/radio|checkbox/.test(this.type)){this.checked=(p.inArray(this.value,M)>=0||p.inArray(this.name,M)>=0)}else{if(p.nodeName(this,"select")){var P=p.makeArray(M);p("option",this).each(function(){this.selected=(p.inArray(this.value,P)>=0||p.inArray(this.text,P)>=0)});if(!P.length){this.selectedIndex=-1}}else{this.value=M}}})},html:function(G){return G===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(G)},replaceWith:function(G){return this.after(G).remove()},eq:function(G){return this.slice(G,+G+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(G){return this.pushStack(p.map(this,function(I,H){return G.call(I,H,I)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(L,O,N){if(this[0]){var K=(this[0].ownerDocument||this[0]).createDocumentFragment(),H=p.clean(L,(this[0].ownerDocument||this[0]),K),J=K.firstChild;if(J){for(var I=0,G=this.length;I<G;I++){N.call(M(this[I],J),this.length>1||I>0?K.cloneNode(true):K)}}if(H){p.each(H,B)}}return this;function M(P,Q){return O&&p.nodeName(P,"table")&&p.nodeName(Q,"tr")?(P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody"))):P}}};p.fn.init.prototype=p.fn;function B(G,H){if(H.src){p.ajax({url:H.src,async:false,dataType:"script"})}else{p.globalEval(H.text||H.textContent||H.innerHTML||"")}if(H.parentNode){H.parentNode.removeChild(H)}}function e(){return +new Date}p.extend=p.fn.extend=function(){var L=arguments[0]||{},J=1,K=arguments.length,G=false,I;if(typeof L==="boolean"){G=L;L=arguments[1]||{};J=2}if(typeof L!=="object"&&!p.isFunction(L)){L={}}if(K==J){L=this;--J}for(;J<K;J++){if((I=arguments[J])!=null){for(var H in I){var M=L[H],N=I[H];if(L===N){continue}if(G&&N&&typeof N==="object"&&!N.nodeType){L[H]=p.extend(G,M||(N.length!=null?[]:{}),N)}else{if(N!==g){L[H]=N}}}}}return L};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,r=document.defaultView||{},u=Object.prototype.toString;p.extend({noConflict:function(G){m.$=q;if(G){m.jQuery=A}return p},isFunction:function(G){return u.call(G)==="[object Function]"},isArray:function(G){return u.call(G)==="[object Array]"},isXMLDoc:function(G){return G.nodeType===9&&G.documentElement.nodeName!=="HTML"||!!G.ownerDocument&&p.isXMLDoc(G.ownerDocument)},globalEval:function(I){if(I&&/\S/.test(I)){var H=document.getElementsByTagName("head")[0]||document.documentElement,G=document.createElement("script");G.type="text/javascript";if(p.support.scriptEval){G.appendChild(document.createTextNode(I))}else{G.text=I}H.insertBefore(G,H.firstChild);H.removeChild(G)}},nodeName:function(H,G){return H.nodeName&&H.nodeName.toUpperCase()==G.toUpperCase()},each:function(I,M,H){var G,J=0,K=I.length;if(H){if(K===g){for(G in I){if(M.apply(I[G],H)===false){break}}}else{for(;J<K;){if(M.apply(I[J++],H)===false){break}}}}else{if(K===g){for(G in I){if(M.call(I[G],G,I[G])===false){break}}}else{for(var L=I[0];J<K&&M.call(L,J,L)!==false;L=I[++J]){}}}return I},prop:function(J,K,I,H,G){if(p.isFunction(K)){K=K.call(J,H)}return typeof K==="number"&&I=="curCSS"&&!b.test(G)?K+"px":K},className:{add:function(G,H){p.each((H||"").split(/\s+/),function(I,J){if(G.nodeType==1&&!p.className.has(G.className,J)){G.className+=(G.className?" ":"")+J}})},remove:function(G,H){if(G.nodeType==1){G.className=H!==g?p.grep(G.className.split(/\s+/),function(I){return !p.className.has(H,I)}).join(" "):""}},has:function(H,G){return H&&p.inArray(G,(H.className||H).toString().split(/\s+/))>-1}},swap:function(J,I,K){var G={};for(var H in I){G[H]=J.style[H];J.style[H]=I[H]}K.call(J);for(var H in I){J.style[H]=G[H]}},css:function(J,H,L,G){if(H=="width"||H=="height"){var N,I={position:"absolute",visibility:"hidden",display:"block"},M=H=="width"?["Left","Right"]:["Top","Bottom"];function K(){N=H=="width"?J.offsetWidth:J.offsetHeight;if(G==="border"){return}p.each(M,function(){if(!G){N-=parseFloat(p.curCSS(J,"padding"+this,true))||0}if(G==="margin"){N+=parseFloat(p.curCSS(J,"margin"+this,true))||0}else{N-=parseFloat(p.curCSS(J,"border"+this+"Width",true))||0}})}if(J.offsetWidth!==0){K()}else{p.swap(J,I,K)}return Math.max(0,Math.round(N))}return p.curCSS(J,H,L)},curCSS:function(K,H,I){var N,G=K.style;if(H=="opacity"&&!p.support.opacity){N=p.attr(G,"opacity");return N==""?"1":N}if(H.match(/float/i)){H=y}if(!I&&G&&G[H]){N=G[H]}else{if(r.getComputedStyle){if(H.match(/float/i)){H="float"}H=H.replace(/([A-Z])/g,"-$1").toLowerCase();var O=r.getComputedStyle(K,null);if(O){N=O.getPropertyValue(H)}if(H=="opacity"&&N==""){N="1"}}else{if(K.currentStyle){var L=H.replace(/\-(\w)/g,function(P,Q){return Q.toUpperCase()});N=K.currentStyle[H]||K.currentStyle[L];if(!/^\d+(px)?$/i.test(N)&&/^\d/.test(N)){var J=G.left,M=K.runtimeStyle.left;K.runtimeStyle.left=K.currentStyle.left;G.left=N||0;N=G.pixelLeft+"px";G.left=J;K.runtimeStyle.left=M}}}}return N},clean:function(H,M,K){M=M||document;if(typeof M.createElement==="undefined"){M=M.ownerDocument||M[0]&&M[0].ownerDocument||document}if(!K&&H.length===1&&typeof H[0]==="string"){var J=/^<(\w+)\s*\/?>$/.exec(H[0]);if(J){return[M.createElement(J[1])]}}var I=[],G=[],N=M.createElement("div");p.each(H,function(R,U){if(typeof U==="number"){U+=""}if(!U){return}if(typeof U==="string"){U=U.replace(/(<(\w+)[^>]*?)\/>/g,function(W,X,V){return V.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?W:X+"></"+V+">"});var Q=U.replace(/^\s+/,"").substring(0,10).toLowerCase();var S=!Q.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!Q.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||Q.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!Q.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!Q.indexOf("<td")||!Q.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!Q.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!p.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];N.innerHTML=S[1]+U+S[2];while(S[0]--){N=N.lastChild}if(!p.support.tbody){var T=/<tbody/i.test(U),P=!Q.indexOf("<table")&&!T?N.firstChild&&N.firstChild.childNodes:S[1]=="<table>"&&!T?N.childNodes:[];for(var O=P.length-1;O>=0;--O){if(p.nodeName(P[O],"tbody")&&!P[O].childNodes.length){P[O].parentNode.removeChild(P[O])}}}if(!p.support.leadingWhitespace&&/^\s/.test(U)){N.insertBefore(M.createTextNode(U.match(/^\s*/)[0]),N.firstChild)}U=p.makeArray(N.childNodes)}if(U.nodeType){I.push(U)}else{I=p.merge(I,U)}});if(K){for(var L=0;I[L];L++){if(p.nodeName(I[L],"script")&&(!I[L].type||I[L].type.toLowerCase()==="text/javascript")){G.push(I[L].parentNode?I[L].parentNode.removeChild(I[L]):I[L])}else{if(I[L].nodeType===1){I.splice.apply(I,[L+1,0].concat(p.makeArray(I[L].getElementsByTagName("script"))))}K.appendChild(I[L])}}return G}return I},attr:function(L,I,M){if(!L||L.nodeType==3||L.nodeType==8){return g}var J=!p.isXMLDoc(L),N=M!==g;I=J&&p.props[I]||I;if(L.tagName){var H=/href|src|style/.test(I);if(I=="selected"&&L.parentNode){L.parentNode.selectedIndex}if(I in L&&J&&!H){if(N){if(I=="type"&&p.nodeName(L,"input")&&L.parentNode){throw"type property can't be changed"}L[I]=M}if(p.nodeName(L,"form")&&L.getAttributeNode(I)){return L.getAttributeNode(I).nodeValue}if(I=="tabIndex"){var K=L.getAttributeNode("tabIndex");return K&&K.specified?K.value:L.nodeName.match(/(button|input|object|select|textarea)/i)?0:L.nodeName.match(/^(a|area)$/i)&&L.href?0:g}return L[I]}if(!p.support.style&&J&&I=="style"){return p.attr(L.style,"cssText",M)}if(N){L.setAttribute(I,""+M)}var G=!p.support.hrefNormalized&&J&&H?L.getAttribute(I,2):L.getAttribute(I);return G===null?g:G}if(!p.support.opacity&&I=="opacity"){if(N){L.zoom=1;L.filter=(L.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(M)+""=="NaN"?"":"alpha(opacity="+M*100+")")}return L.filter&&L.filter.indexOf("opacity=")>=0?(parseFloat(L.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}I=I.replace(/-([a-z])/ig,function(O,P){return P.toUpperCase()});if(N){L[I]=M}return L[I]},trim:function(G){return(G||"").replace(/^\s+|\s+$/g,"")},makeArray:function(I){var G=[];if(I!=null){var H=I.length;if(H==null||typeof I==="string"||p.isFunction(I)||I.setInterval){G[0]=I}else{while(H){G[--H]=I[H]}}}return G},inArray:function(I,J){for(var G=0,H=J.length;G<H;G++){if(J[G]===I){return G}}return -1},merge:function(J,G){var H=0,I,K=J.length;if(!p.support.getAll){while((I=G[H++])!=null){if(I.nodeType!=8){J[K++]=I}}}else{while((I=G[H++])!=null){J[K++]=I}}return J},unique:function(M){var H=[],G={};try{for(var I=0,J=M.length;I<J;I++){var L=p.data(M[I]);if(!G[L]){G[L]=true;H.push(M[I])}}}catch(K){H=M}return H},grep:function(H,L,G){var I=[];for(var J=0,K=H.length;J<K;J++){if(!G!=!L(H[J],J)){I.push(H[J])}}return I},map:function(G,L){var H=[];for(var I=0,J=G.length;I<J;I++){var K=L(G[I],I);if(K!=null){H[H.length]=K}}return H.concat.apply([],H)}});var E=navigator.userAgent.toLowerCase();p.browser={version:(E.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(E),opera:/opera/.test(E),msie:/msie/.test(E)&&!/opera/.test(E),mozilla:/mozilla/.test(E)&&!/(compatible|webkit)/.test(E)};p.each({parent:function(G){return G.parentNode},parents:function(G){return p.dir(G,"parentNode")},next:function(G){return p.nth(G,2,"nextSibling")},prev:function(G){return p.nth(G,2,"previousSibling")},nextAll:function(G){return p.dir(G,"nextSibling")},prevAll:function(G){return p.dir(G,"previousSibling")},siblings:function(G){return p.sibling(G.parentNode.firstChild,G)},children:function(G){return p.sibling(G.firstChild)},contents:function(G){return p.nodeName(G,"iframe")?G.contentDocument||G.contentWindow.document:p.makeArray(G.childNodes)}},function(G,H){p.fn[G]=function(I){var J=p.map(this,H);if(I&&typeof I=="string"){J=p.multiFilter(I,J)}return this.pushStack(p.unique(J),G,I)}});p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(G,H){p.fn[G]=function(I){var L=[],N=p(I);for(var M=0,J=N.length;M<J;M++){var K=(M>0?this.clone(true):this).get();p.fn[H].apply(p(N[M]),K);L=L.concat(K)}return this.pushStack(L,G,I)}});p.each({removeAttr:function(G){p.attr(this,G,"");if(this.nodeType==1){this.removeAttribute(G)}},addClass:function(G){p.className.add(this,G)},removeClass:function(G){p.className.remove(this,G)},toggleClass:function(H,G){if(typeof G!=="boolean"){G=!p.className.has(this,H)}p.className[G?"add":"remove"](this,H)},remove:function(G){if(!G||p.filter(G,[this]).length){p("*",this).add([this]).each(function(){p.event.remove(this);p.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){p(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(G,H){p.fn[G]=function(){return this.each(H,arguments)}});function k(G,H){return G[0]&&parseInt(p.curCSS(G[0],H,true),10)||0}var h="jQuery"+e(),x=0,C={};p.extend({cache:{},data:function(H,G,I){H=H==m?C:H;var J=H[h];if(!J){J=H[h]=++x}if(G&&!p.cache[J]){p.cache[J]={}}if(I!==g){p.cache[J][G]=I}return G?p.cache[J][G]:J},removeData:function(H,G){H=H==m?C:H;var J=H[h];if(G){if(p.cache[J]){delete p.cache[J][G];G="";for(G in p.cache[J]){break}if(!G){p.removeData(H)}}}else{try{delete H[h]}catch(I){if(H.removeAttribute){H.removeAttribute(h)}}delete p.cache[J]}},queue:function(H,G,J){if(H){G=(G||"fx")+"queue";var I=p.data(H,G);if(!I||p.isArray(J)){I=p.data(H,G,p.makeArray(J))}else{if(J){I.push(J)}}}return I},dequeue:function(J,I){var G=p.queue(J,I),H=G.shift();if(!I||I==="fx"){H=G[0]}if(H!==g){H.call(J)}}});p.fn.extend({data:function(G,I){var J=G.split(".");J[1]=J[1]?"."+J[1]:"";if(I===g){var H=this.triggerHandler("getData"+J[1]+"!",[J[0]]);if(H===g&&this.length){H=p.data(this[0],G)}return H===g&&J[1]?this.data(J[0]):H}else{return this.trigger("setData"+J[1]+"!",[J[0],I]).each(function(){p.data(this,G,I)})}},removeData:function(G){return this.each(function(){p.removeData(this,G)})},queue:function(G,H){if(typeof G!=="string"){H=G;G="fx"}if(H===g){return p.queue(this[0],G)}return this.each(function(){var I=p.queue(this,G,H);if(G=="fx"&&I.length==1){I[0].call(this)}})},dequeue:function(G){return this.each(function(){p.dequeue(this,G)})}});
/*
 * 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 T=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,N=0,J=Object.prototype.toString;var H=function(aa,W,ad,ae){ad=ad||[];W=W||document;if(W.nodeType!==1&&W.nodeType!==9){return[]}if(!aa||typeof aa!=="string"){return ad}var ab=[],Y,ah,ak,V,af,X,Z=true;T.lastIndex=0;while((Y=T.exec(aa))!==null){ab.push(Y[1]);if(Y[2]){X=RegExp.rightContext;break}}if(ab.length>1&&O.exec(aa)){if(ab.length===2&&K.relative[ab[0]]){ah=L(ab[0]+ab[1],W)}else{ah=K.relative[ab[0]]?[W]:H(ab.shift(),W);while(ab.length){aa=ab.shift();if(K.relative[aa]){aa+=ab.shift()}ah=L(aa,ah)}}}else{var ag=ae?{expr:ab.pop(),set:G(ae)}:H.find(ab.pop(),ab.length===1&&W.parentNode?W.parentNode:W,S(W));ah=H.filter(ag.expr,ag.set);if(ab.length>0){ak=G(ah)}else{Z=false}while(ab.length){var aj=ab.pop(),ai=aj;if(!K.relative[aj]){aj=""}else{ai=ab.pop()}if(ai==null){ai=W}K.relative[aj](ak,ai,S(W))}}if(!ak){ak=ah}if(!ak){throw"Syntax error, unrecognized expression: "+(aj||aa)}if(J.call(ak)==="[object Array]"){if(!Z){ad.push.apply(ad,ak)}else{if(W.nodeType===1){for(var ac=0;ak[ac]!=null;ac++){if(ak[ac]&&(ak[ac]===true||ak[ac].nodeType===1&&M(W,ak[ac]))){ad.push(ah[ac])}}}else{for(var ac=0;ak[ac]!=null;ac++){if(ak[ac]&&ak[ac].nodeType===1){ad.push(ah[ac])}}}}}else{G(ak,ad)}if(X){H(X,W,ad,ae);if(I){hasDuplicate=false;ad.sort(I);if(hasDuplicate){for(var ac=1;ac<ad.length;ac++){if(ad[ac]===ad[ac-1]){ad.splice(ac--,1)}}}}}return ad};H.matches=function(V,W){return H(V,null,null,W)};H.find=function(ac,V,ad){var ab,Z;if(!ac){return[]}for(var Y=0,X=K.order.length;Y<X;Y++){var aa=K.order[Y],Z;if((Z=K.match[aa].exec(ac))){var W=RegExp.leftContext;if(W.substr(W.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");ab=K.find[aa](Z,V,ad);if(ab!=null){ac=ac.replace(K.match[aa],"");break}}}}if(!ab){ab=V.getElementsByTagName("*")}return{set:ab,expr:ac}};H.filter=function(af,ae,ai,Y){var X=af,ak=[],ac=ae,aa,V,ab=ae&&ae[0]&&S(ae[0]);while(af&&ae.length){for(var ad in K.filter){if((aa=K.match[ad].exec(af))!=null){var W=K.filter[ad],aj,ah;V=false;if(ac==ak){ak=[]}if(K.preFilter[ad]){aa=K.preFilter[ad](aa,ac,ai,ak,Y,ab);if(!aa){V=aj=true}else{if(aa===true){continue}}}if(aa){for(var Z=0;(ah=ac[Z])!=null;Z++){if(ah){aj=W(ah,aa,Z,ac);var ag=Y^!!aj;if(ai&&aj!=null){if(ag){V=true}else{ac[Z]=false}}else{if(ag){ak.push(ah);V=true}}}}}if(aj!==g){if(!ai){ac=ak}af=af.replace(K.match[ad],"");if(!V){return[]}break}}}if(af==X){if(V==null){throw"Syntax error, unrecognized expression: "+af}else{break}}X=af}return ac};var K=H.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(V){return V.getAttribute("href")}},relative:{"+":function(ac,V,ab){var Z=typeof V==="string",ad=Z&&!/\W/.test(V),aa=Z&&!ad;if(ad&&!ab){V=V.toUpperCase()}for(var Y=0,X=ac.length,W;Y<X;Y++){if((W=ac[Y])){while((W=W.previousSibling)&&W.nodeType!==1){}ac[Y]=aa||W&&W.nodeName===V?W||false:W===V}}if(aa){H.filter(V,ac,true)}},">":function(ab,W,ac){var Z=typeof W==="string";if(Z&&!/\W/.test(W)){W=ac?W:W.toUpperCase();for(var X=0,V=ab.length;X<V;X++){var aa=ab[X];if(aa){var Y=aa.parentNode;ab[X]=Y.nodeName===W?Y:false}}}else{for(var X=0,V=ab.length;X<V;X++){var aa=ab[X];if(aa){ab[X]=Z?aa.parentNode:aa.parentNode===W}}if(Z){H.filter(W,ab,true)}}},"":function(Y,W,aa){var X=N++,V=U;if(!W.match(/\W/)){var Z=W=aa?W:W.toUpperCase();V=R}V("parentNode",W,X,Y,Z,aa)},"~":function(Y,W,aa){var X=N++,V=U;if(typeof W==="string"&&!W.match(/\W/)){var Z=W=aa?W:W.toUpperCase();V=R}V("previousSibling",W,X,Y,Z,aa)}},find:{ID:function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?[V]:[]}},NAME:function(X,aa,ab){if(typeof aa.getElementsByName!=="undefined"){var W=[],Z=aa.getElementsByName(X[1]);for(var Y=0,V=Z.length;Y<V;Y++){if(Z[Y].getAttribute("name")===X[1]){W.push(Z[Y])}}return W.length===0?null:W}},TAG:function(V,W){return W.getElementsByTagName(V[1])}},preFilter:{CLASS:function(Y,W,X,V,ab,ac){Y=" "+Y[1].replace(/\\/g,"")+" ";if(ac){return Y}for(var Z=0,aa;(aa=W[Z])!=null;Z++){if(aa){if(ab^(aa.className&&(" "+aa.className+" ").indexOf(Y)>=0)){if(!X){V.push(aa)}}else{if(X){W[Z]=false}}}}return false},ID:function(V){return V[1].replace(/\\/g,"")},TAG:function(W,V){for(var X=0;V[X]===false;X++){}return V[X]&&S(V[X])?W[1]:W[1].toUpperCase()},CHILD:function(V){if(V[1]=="nth"){var W=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(V[2]=="even"&&"2n"||V[2]=="odd"&&"2n+1"||!/\D/.test(V[2])&&"0n+"+V[2]||V[2]);V[2]=(W[1]+(W[2]||1))-0;V[3]=W[3]-0}V[0]=N++;return V},ATTR:function(Z,W,X,V,aa,ab){var Y=Z[1].replace(/\\/g,"");if(!ab&&K.attrMap[Y]){Z[1]=K.attrMap[Y]}if(Z[2]==="~="){Z[4]=" "+Z[4]+" "}return Z},PSEUDO:function(Z,W,X,V,aa){if(Z[1]==="not"){if(Z[3].match(T).length>1||/^\w/.test(Z[3])){Z[3]=H(Z[3],null,null,W)}else{var Y=H.filter(Z[3],W,X,true^aa);if(!X){V.push.apply(V,Y)}return false}}else{if(K.match.POS.test(Z[0])||K.match.CHILD.test(Z[0])){return true}}return Z},POS:function(V){V.unshift(true);return V}},filters:{enabled:function(V){return V.disabled===false&&V.type!=="hidden"},disabled:function(V){return V.disabled===true},checked:function(V){return V.checked===true},selected:function(V){V.parentNode.selectedIndex;return V.selected===true},parent:function(V){return !!V.firstChild},empty:function(V){return !V.firstChild},has:function(X,W,V){return !!H(V[3],X).length},header:function(V){return/h\d/i.test(V.nodeName)},text:function(V){return"text"===V.type},radio:function(V){return"radio"===V.type},checkbox:function(V){return"checkbox"===V.type},file:function(V){return"file"===V.type},password:function(V){return"password"===V.type},submit:function(V){return"submit"===V.type},image:function(V){return"image"===V.type},reset:function(V){return"reset"===V.type},button:function(V){return"button"===V.type||V.nodeName.toUpperCase()==="BUTTON"},input:function(V){return/input|select|textarea|button/i.test(V.nodeName)}},setFilters:{first:function(W,V){return V===0},last:function(X,W,V,Y){return W===Y.length-1},even:function(W,V){return V%2===0},odd:function(W,V){return V%2===1},lt:function(X,W,V){return W<V[3]-0},gt:function(X,W,V){return W>V[3]-0},nth:function(X,W,V){return V[3]-0==W},eq:function(X,W,V){return V[3]-0==W}},filter:{PSEUDO:function(ab,X,Y,ac){var W=X[1],Z=K.filters[W];if(Z){return Z(ab,Y,X,ac)}else{if(W==="contains"){return(ab.textContent||ab.innerText||"").indexOf(X[3])>=0}else{if(W==="not"){var aa=X[3];for(var Y=0,V=aa.length;Y<V;Y++){if(aa[Y]===ab){return false}}return true}}}},CHILD:function(V,Y){var ab=Y[1],W=V;switch(ab){case"only":case"first":while(W=W.previousSibling){if(W.nodeType===1){return false}}if(ab=="first"){return true}W=V;case"last":while(W=W.nextSibling){if(W.nodeType===1){return false}}return true;case"nth":var X=Y[2],ae=Y[3];if(X==1&&ae==0){return true}var aa=Y[0],ad=V.parentNode;if(ad&&(ad.sizcache!==aa||!V.nodeIndex)){var Z=0;for(W=ad.firstChild;W;W=W.nextSibling){if(W.nodeType===1){W.nodeIndex=++Z}}ad.sizcache=aa}var ac=V.nodeIndex-ae;if(X==0){return ac==0}else{return(ac%X==0&&ac/X>=0)}}},ID:function(W,V){return W.nodeType===1&&W.getAttribute("id")===V},TAG:function(W,V){return(V==="*"&&W.nodeType===1)||W.nodeName===V},CLASS:function(W,V){return(" "+(W.className||W.getAttribute("class"))+" ").indexOf(V)>-1},ATTR:function(aa,Y){var X=Y[1],V=K.attrHandle[X]?K.attrHandle[X](aa):aa[X]!=null?aa[X]:aa.getAttribute(X),ab=V+"",Z=Y[2],W=Y[4];return V==null?Z==="!=":Z==="="?ab===W:Z==="*="?ab.indexOf(W)>=0:Z==="~="?(" "+ab+" ").indexOf(W)>=0:!W?ab&&V!==false:Z==="!="?ab!=W:Z==="^="?ab.indexOf(W)===0:Z==="$="?ab.substr(ab.length-W.length)===W:Z==="|="?ab===W||ab.substr(0,W.length+1)===W+"-":false},POS:function(Z,W,X,aa){var V=W[2],Y=K.setFilters[V];if(Y){return Y(Z,X,W,aa)}}}};var O=K.match.POS;for(var Q in K.match){K.match[Q]=RegExp(K.match[Q].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var G=function(W,V){W=Array.prototype.slice.call(W);if(V){V.push.apply(V,W);return V}return W};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(P){G=function(Z,Y){var W=Y||[];if(J.call(Z)==="[object Array]"){Array.prototype.push.apply(W,Z)}else{if(typeof Z.length==="number"){for(var X=0,V=Z.length;X<V;X++){W.push(Z[X])}}else{for(var X=0;Z[X];X++){W.push(Z[X])}}}return W}}var I;if(document.documentElement.compareDocumentPosition){I=function(W,V){var X=W.compareDocumentPosition(V)&4?-1:W===V?0:1;if(X===0){hasDuplicate=true}return X}}else{if("sourceIndex" in document.documentElement){I=function(W,V){var X=W.sourceIndex-V.sourceIndex;if(X===0){hasDuplicate=true}return X}}else{if(document.createRange){I=function(Y,W){var X=Y.ownerDocument.createRange(),V=W.ownerDocument.createRange();X.selectNode(Y);X.collapse(true);V.selectNode(W);V.collapse(true);var Z=X.compareBoundaryPoints(Range.START_TO_END,V);if(Z===0){hasDuplicate=true}return Z}}}}(function(){var W=document.createElement("form"),X="script"+(new Date).getTime();W.innerHTML="<input name='"+X+"'/>";var V=document.documentElement;V.insertBefore(W,V.firstChild);if(!!document.getElementById(X)){K.find.ID=function(Z,aa,ab){if(typeof aa.getElementById!=="undefined"&&!ab){var Y=aa.getElementById(Z[1]);return Y?Y.id===Z[1]||typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id").nodeValue===Z[1]?[Y]:g:[]}};K.filter.ID=function(aa,Y){var Z=typeof aa.getAttributeNode!=="undefined"&&aa.getAttributeNode("id");return aa.nodeType===1&&Z&&Z.nodeValue===Y}}V.removeChild(W)})();(function(){var V=document.createElement("div");V.appendChild(document.createComment(""));if(V.getElementsByTagName("*").length>0){K.find.TAG=function(W,aa){var Z=aa.getElementsByTagName(W[1]);if(W[1]==="*"){var Y=[];for(var X=0;Z[X];X++){if(Z[X].nodeType===1){Y.push(Z[X])}}Z=Y}return Z}}V.innerHTML="<a href='#'></a>";if(V.firstChild&&typeof V.firstChild.getAttribute!=="undefined"&&V.firstChild.getAttribute("href")!=="#"){K.attrHandle.href=function(W){return W.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var V=H,W=document.createElement("div");W.innerHTML="<p class='TEST'></p>";if(W.querySelectorAll&&W.querySelectorAll(".TEST").length===0){return}H=function(aa,Z,X,Y){Z=Z||document;if(!Y&&Z.nodeType===9&&!S(Z)){try{return G(Z.querySelectorAll(aa),X)}catch(ab){}}return V(aa,Z,X,Y)};H.find=V.find;H.filter=V.filter;H.selectors=V.selectors;H.matches=V.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var V=document.createElement("div");V.innerHTML="<div class='test e'></div><div class='test'></div>";if(V.getElementsByClassName("e").length===0){return}V.lastChild.className="e";if(V.getElementsByClassName("e").length===1){return}K.order.splice(1,0,"CLASS");K.find.CLASS=function(W,X,Y){if(typeof X.getElementsByClassName!=="undefined"&&!Y){return X.getElementsByClassName(W[1])}}})()}function R(W,ab,aa,af,ac,ae){var ad=W=="previousSibling"&&!ae;for(var Y=0,X=af.length;Y<X;Y++){var V=af[Y];if(V){if(ad&&V.nodeType===1){V.sizcache=aa;V.sizset=Y}V=V[W];var Z=false;while(V){if(V.sizcache===aa){Z=af[V.sizset];break}if(V.nodeType===1&&!ae){V.sizcache=aa;V.sizset=Y}if(V.nodeName===ab){Z=V;break}V=V[W]}af[Y]=Z}}}function U(W,ab,aa,af,ac,ae){var ad=W=="previousSibling"&&!ae;for(var Y=0,X=af.length;Y<X;Y++){var V=af[Y];if(V){if(ad&&V.nodeType===1){V.sizcache=aa;V.sizset=Y}V=V[W];var Z=false;while(V){if(V.sizcache===aa){Z=af[V.sizset];break}if(V.nodeType===1){if(!ae){V.sizcache=aa;V.sizset=Y}if(typeof ab!=="string"){if(V===ab){Z=true;break}}else{if(H.filter(ab,[V]).length>0){Z=V;break}}}V=V[W]}af[Y]=Z}}}var M=document.compareDocumentPosition?function(W,V){return W.compareDocumentPosition(V)&16}:function(W,V){return W!==V&&(W.contains?W.contains(V):true)};var S=function(V){return V.nodeType===9&&V.documentElement.nodeName!=="HTML"||!!V.ownerDocument&&S(V.ownerDocument)};var L=function(V,ac){var Y=[],Z="",aa,X=ac.nodeType?[ac]:ac;while((aa=K.match.PSEUDO.exec(V))){Z+=aa[0];V=V.replace(K.match.PSEUDO,"")}V=K.relative[V]?V+"*":V;for(var ab=0,W=X.length;ab<W;ab++){H(V,X[ab],Y)}return H.filter(Z,Y)};p.find=H;p.filter=H.filter;p.expr=H.selectors;p.expr[":"]=p.expr.filters;H.selectors.filters.hidden=function(V){return V.offsetWidth===0||V.offsetHeight===0};H.selectors.filters.visible=function(V){return V.offsetWidth>0||V.offsetHeight>0};H.selectors.filters.animated=function(V){return p.grep(p.timers,function(W){return V===W.elem}).length};p.multiFilter=function(X,V,W){if(W){X=":not("+X+")"}return H.matches(X,V)};p.dir=function(X,W){var V=[],Y=X[W];while(Y&&Y!=document){if(Y.nodeType==1){V.push(Y)}Y=Y[W]}return V};p.nth=function(Z,V,X,Y){V=V||1;var W=0;for(;Z;Z=Z[X]){if(Z.nodeType==1&&++W==V){break}}return Z};p.sibling=function(X,W){var V=[];for(;X;X=X.nextSibling){if(X.nodeType==1&&X!=W){V.push(X)}}return V};return;m.Sizzle=H})();p.event={add:function(K,H,J,M){if(K.nodeType==3||K.nodeType==8){return}if(K.setInterval&&K!=m){K=m}if(!J.guid){J.guid=this.guid++}if(M!==g){var I=J;J=this.proxy(I);J.data=M}var G=p.data(K,"events")||p.data(K,"events",{}),L=p.data(K,"handle")||p.data(K,"handle",function(){return typeof p!=="undefined"&&!p.event.triggered?p.event.handle.apply(arguments.callee.elem,arguments):g});L.elem=K;p.each(H.split(/\s+/),function(O,P){var Q=P.split(".");P=Q.shift();J.type=Q.slice().sort().join(".");var N=G[P];if(p.event.specialAll[P]){p.event.specialAll[P].setup.call(K,M,Q)}if(!N){N=G[P]={};if(!p.event.special[P]||p.event.special[P].setup.call(K,M,Q)===false){if(K.addEventListener){K.addEventListener(P,L,false)}else{if(K.attachEvent){K.attachEvent("on"+P,L)}}}}N[J.guid]=J;p.event.global[P]=true});K=null},guid:1,global:{},remove:function(M,J,L){if(M.nodeType==3||M.nodeType==8){return}var I=p.data(M,"events"),H,G;if(I){if(J===g||(typeof J==="string"&&J.charAt(0)==".")){for(var K in I){this.remove(M,K+(J||""))}}else{if(J.type){L=J.handler;J=J.type}p.each(J.split(/\s+/),function(O,Q){var S=Q.split(".");Q=S.shift();var P=RegExp("(^|\\.)"+S.slice().sort().join(".*\\.")+"(\\.|$)");if(I[Q]){if(L){delete I[Q][L.guid]}else{for(var R in I[Q]){if(P.test(I[Q][R].type)){delete I[Q][R]}}}if(p.event.specialAll[Q]){p.event.specialAll[Q].teardown.call(M,S)}for(H in I[Q]){break}if(!H){if(!p.event.special[Q]||p.event.special[Q].teardown.call(M,S)===false){if(M.removeEventListener){M.removeEventListener(Q,p.data(M,"handle"),false)}else{if(M.detachEvent){M.detachEvent("on"+Q,p.data(M,"handle"))}}}H=null;delete I[Q]}}})}for(H in I){break}if(!H){var N=p.data(M,"handle");if(N){N.elem=null}p.removeData(M,"events");p.removeData(M,"handle")}}},trigger:function(K,M,J,G){var I=K.type||K;if(!G){K=typeof K==="object"?K[h]?K:p.extend(p.Event(I),K):p.Event(I);if(I.indexOf("!")>=0){K.type=I=I.slice(0,-1);K.exclusive=true}if(!J){K.stopPropagation();if(this.global[I]){p.each(p.cache,function(){if(this.events&&this.events[I]){p.event.trigger(K,M,this.handle.elem)}})}}if(!J||J.nodeType==3||J.nodeType==8){return g}K.result=g;K.target=J;M=p.makeArray(M);M.unshift(K)}K.currentTarget=J;var L=p.data(J,"handle");if(L){L.apply(J,M)}if((!J[I]||(p.nodeName(J,"a")&&I=="click"))&&J["on"+I]&&J["on"+I].apply(J,M)===false){K.result=false}if(!G&&J[I]&&!K.isDefaultPrevented()&&!(p.nodeName(J,"a")&&I=="click")){this.triggered=true;try{J[I]()}catch(N){}}this.triggered=false;if(!K.isPropagationStopped()){var H=J.parentNode||J.ownerDocument;if(H){p.event.trigger(K,M,H,true)}}},handle:function(M){var L,G;M=arguments[0]=p.event.fix(M||m.event);M.currentTarget=this;var N=M.type.split(".");M.type=N.shift();L=!N.length&&!M.exclusive;var K=RegExp("(^|\\.)"+N.slice().sort().join(".*\\.")+"(\\.|$)");G=(p.data(this,"events")||{})[M.type];for(var I in G){var J=G[I];if(L||K.test(J.type)){M.handler=J;M.data=J.data;var H=J.apply(this,arguments);if(H!==g){M.result=H;if(H===false){M.preventDefault();M.stopPropagation()}}if(M.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(J){if(J[h]){return J}var H=J;J=p.Event(H);for(var I=this.props.length,L;I;){L=this.props[--I];J[L]=H[L]}if(!J.target){J.target=J.srcElement||document}if(J.target.nodeType==3){J.target=J.target.parentNode}if(!J.relatedTarget&&J.fromElement){J.relatedTarget=J.fromElement==J.target?J.toElement:J.fromElement}if(J.pageX==null&&J.clientX!=null){var K=document.documentElement,G=document.body;J.pageX=J.clientX+(K&&K.scrollLeft||G&&G.scrollLeft||0)-(K.clientLeft||0);J.pageY=J.clientY+(K&&K.scrollTop||G&&G.scrollTop||0)-(K.clientTop||0)}if(!J.which&&((J.charCode||J.charCode===0)?J.charCode:J.keyCode)){J.which=J.charCode||J.keyCode}if(!J.metaKey&&J.ctrlKey){J.metaKey=J.ctrlKey}if(!J.which&&J.button){J.which=(J.button&1?1:(J.button&2?3:(J.button&4?2:0)))}return J},proxy:function(H,G){G=G||function(){return H.apply(this,arguments)};G.guid=H.guid=H.guid||G.guid||this.guid++;return G},special:{ready:{setup:D,teardown:function(){}}},specialAll:{live:{setup:function(G,H){p.event.add(this,H[0],c)},teardown:function(I){if(I.length){var G=0,H=RegExp("(^|\\.)"+I[0]+"(\\.|$)");p.each((p.data(this,"events").live||{}),function(){if(H.test(this.type)){G++}});if(G<1){p.event.remove(this,I[0],c)}}}}}};p.Event=function(G){if(!this.preventDefault){return new p.Event(G)}if(G&&G.type){this.originalEvent=G;this.type=G.type}else{this.type=G}this.timeStamp=e();this[h]=true};function l(){return false}function w(){return true}p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var G=this.originalEvent;if(!G){return}if(G.preventDefault){G.preventDefault()}G.returnValue=false},stopPropagation:function(){this.isPropagationStopped=w;var G=this.originalEvent;if(!G){return}if(G.stopPropagation){G.stopPropagation()}G.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var a=function(H){var G=H.relatedTarget;while(G&&G!=this){try{G=G.parentNode}catch(I){G=this}}if(G!=this){H.type=H.data;p.event.handle.apply(this,arguments)}};p.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(H,G){p.event.special[G]={setup:function(){p.event.add(this,H,a,G)},teardown:function(){p.event.remove(this,H,a)}}});p.fn.extend({bind:function(H,I,G){return H=="unload"?this.one(H,I,G):this.each(function(){p.event.add(this,H,G||I,G&&I)})},one:function(I,J,H){var G=p.event.proxy(H||J,function(K){p(this).unbind(K,G);return(H||J).apply(this,arguments)});return this.each(function(){p.event.add(this,I,G,H&&J)})},unbind:function(H,G){return this.each(function(){p.event.remove(this,H,G)})},trigger:function(G,H){return this.each(function(){p.event.trigger(G,H,this)})},triggerHandler:function(G,I){if(this[0]){var H=p.Event(G);H.preventDefault();H.stopPropagation();p.event.trigger(H,I,this[0]);return H.result}},toggle:function(I){var G=arguments,H=1;while(H<G.length){p.event.proxy(I,G[H++])}return this.click(p.event.proxy(I,function(J){this.lastToggle=(this.lastToggle||0)%H;J.preventDefault();return G[this.lastToggle++].apply(this,arguments)||false}))},hover:function(G,H){return this.mouseenter(G).mouseleave(H)},ready:function(G){D();if(p.isReady){G.call(document,p)}else{p.readyList.push(G)}return this},live:function(I,H){var G=p.event.proxy(H);G.guid+=this.selector+I;p(document).bind(j(I,this.selector),this.selector,G);return this},die:function(H,G){p(document).unbind(j(H,this.selector),G?{guid:G.guid+this.selector+H}:null);return this}});function c(J){var G=RegExp("(^|\\.)"+J.type+"(\\.|$)"),I=true,H=[];p.each(p.data(this,"events").live||[],function(K,L){if(G.test(L.type)){var M=p(J.target).closest(L.data)[0];if(M){H.push({elem:M,fn:L})}}});H.sort(function(L,K){return p.data(L.elem,"closest")-p.data(K.elem,"closest")});p.each(H,function(){if(this.fn.call(this.elem,J,this.fn.data)===false){return(I=false)}});return I}function j(H,G){return["live",H,G.replace(/\./g,"`").replace(/ /g,"|")].join(".")}p.extend({isReady:false,readyList:[],ready:function(){if(!p.isReady){p.isReady=true;if(p.readyList){p.each(p.readyList,function(){this.call(document,p)});p.readyList=null}p(document).triggerHandler("ready")}}});var z=false;function D(){if(z){return}z=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);p.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);p.ready()}});if(document.documentElement.doScroll&&m==m.top){(function(){if(p.isReady){return}try{document.documentElement.doScroll("left")}catch(G){setTimeout(arguments.callee,0);return}p.ready()})()}}}p.event.add(m,"load",p.ready)}p.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(H,G){p.fn[G]=function(I){return I?this.bind(G,I):this.trigger(G)}});p(m).bind("unload",function(){for(var G in p.cache){if(G!=1&&p.cache[G].handle){p.event.remove(p.cache[G].handle.elem)}}});(function(){p.support={};var H=document.documentElement,I=document.createElement("script"),M=document.createElement("div"),L="script"+(new Date).getTime();M.style.display="none";M.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 J=M.getElementsByTagName("*"),G=M.getElementsByTagName("a")[0];if(!J||!J.length||!G){return}p.support={leadingWhitespace:M.firstChild.nodeType==3,tbody:!M.getElementsByTagName("tbody").length,objectAll:!!M.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!M.getElementsByTagName("link").length,style:/red/.test(G.getAttribute("style")),hrefNormalized:G.getAttribute("href")==="/a",opacity:G.style.opacity==="0.5",cssFloat:!!G.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};I.type="text/javascript";try{I.appendChild(document.createTextNode("window."+L+"=1;"))}catch(K){}H.insertBefore(I,H.firstChild);if(m[L]){p.support.scriptEval=true;delete m[L]}H.removeChild(I);if(M.attachEvent&&M.fireEvent){M.attachEvent("onclick",function(){p.support.noCloneEvent=false;M.detachEvent("onclick",arguments.callee)});M.cloneNode(true).fireEvent("onclick")}p(function(){var N=document.createElement("div");N.style.width=N.style.paddingLeft="1px";document.body.appendChild(N);p.boxModel=p.support.boxModel=N.offsetWidth===2;document.body.removeChild(N).style.display="none"})})();var y=p.support.cssFloat?"cssFloat":"styleFloat";p.props={"for":"htmlFor","class":"className","float":y,cssFloat:y,styleFloat:y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};p.fn.extend({_load:p.fn.load,load:function(I,L,M){if(typeof I!=="string"){return this._load(I)}var K=I.indexOf(" ");if(K>=0){var G=I.slice(K,I.length);I=I.slice(0,K)}var J="GET";if(L){if(p.isFunction(L)){M=L;L=null}else{if(typeof L==="object"){L=p.param(L);J="POST"}}}var H=this;p.ajax({url:I,type:J,dataType:"html",data:L,complete:function(O,N){if(N=="success"||N=="notmodified"){H.html(G?p("<div/>").append(O.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(G):O.responseText)}if(M){H.each(M,[O.responseText,N,O])}}});return this},serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.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(G,H){var I=p(this).val();return I==null?null:p.isArray(I)?p.map(I,function(K,J){return{name:H.name,value:K}}):{name:H.name,value:I}}).get()}});p.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(G,H){p.fn[H]=function(I){return this.bind(H,I)}});var s=e();p.extend({get:function(G,I,J,H){if(p.isFunction(I)){J=I;I=null}return p.ajax({type:"GET",url:G,data:I,success:J,dataType:H})},getScript:function(G,H){return p.get(G,null,H,"script")},getJSON:function(G,H,I){return p.get(G,H,I,"json")},post:function(G,I,J,H){if(p.isFunction(I)){J=I;I={}}return p.ajax({type:"POST",url:G,data:I,success:J,dataType:H})},ajaxSetup:function(G){p.extend(p.ajaxSettings,G)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return m.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(O){O=p.extend(true,O,p.extend(true,{},p.ajaxSettings,O));var Y,H=/=\?(&|$)/g,T,X,I=O.type.toUpperCase();if(O.data&&O.processData&&typeof O.data!=="string"){O.data=p.param(O.data)}if(O.dataType=="jsonp"){if(I=="GET"){if(!O.url.match(H)){O.url+=(O.url.match(/\?/)?"&":"?")+(O.jsonp||"callback")+"=?"}}else{if(!O.data||!O.data.match(H)){O.data=(O.data?O.data+"&":"")+(O.jsonp||"callback")+"=?"}}O.dataType="json"}if(O.dataType=="json"&&(O.data&&O.data.match(H)||O.url.match(H))){Y="jsonp"+s++;if(O.data){O.data=(O.data+"").replace(H,"="+Y+"$1")}O.url=O.url.replace(H,"="+Y+"$1");O.dataType="script";m[Y]=function(Z){X=Z;K();N();m[Y]=g;try{delete m[Y]}catch(aa){}if(J){J.removeChild(V)}}}if(O.dataType=="script"&&O.cache==null){O.cache=false}if(O.cache===false&&I=="GET"){var G=e();var W=O.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+G+"$2");O.url=W+((W==O.url)?(O.url.match(/\?/)?"&":"?")+"_="+G:"")}if(O.data&&I=="GET"){O.url+=(O.url.match(/\?/)?"&":"?")+O.data;O.data=null}if(O.global&&!p.active++){p.event.trigger("ajaxStart")}var S=/^(\w+:)?\/\/([^\/?#]+)/.exec(O.url);if(O.dataType=="script"&&I=="GET"&&S&&(S[1]&&S[1]!=location.protocol||S[2]!=location.host)){var J=document.getElementsByTagName("head")[0];var V=document.createElement("script");V.src=O.url;if(O.scriptCharset){V.charset=O.scriptCharset}if(!Y){var Q=false;V.onload=V.onreadystatechange=function(){if(!Q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Q=true;K();N();V.onload=V.onreadystatechange=null;J.removeChild(V)}}}J.appendChild(V);return g}var M=false;var L=O.xhr();if(O.username){L.open(I,O.url,O.async,O.username,O.password)}else{L.open(I,O.url,O.async)}try{if(O.data){L.setRequestHeader("Content-Type",O.contentType)}if(O.ifModified){L.setRequestHeader("If-Modified-Since",p.lastModified[O.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}L.setRequestHeader("X-Requested-With","XMLHttpRequest");L.setRequestHeader("Accept",O.dataType&&O.accepts[O.dataType]?O.accepts[O.dataType]+", */*":O.accepts._default)}catch(U){}if(O.beforeSend&&O.beforeSend(L,O)===false){if(O.global&&!--p.active){p.event.trigger("ajaxStop")}L.abort();return false}if(O.global){p.event.trigger("ajaxSend",[L,O])}var P=function(Z){if(L.readyState==0){if(R){clearInterval(R);R=null;if(O.global&&!--p.active){p.event.trigger("ajaxStop")}}}else{if(!M&&L&&(L.readyState==4||Z=="timeout")){M=true;if(R){clearInterval(R);R=null}T=Z=="timeout"?"timeout":!p.httpSuccess(L)?"error":O.ifModified&&p.httpNotModified(L,O.url)?"notmodified":"success";if(T=="success"){try{X=p.httpData(L,O.dataType,O)}catch(ab){T="parsererror"}}if(T=="success"){var aa;try{aa=L.getResponseHeader("Last-Modified")}catch(ab){}if(O.ifModified&&aa){p.lastModified[O.url]=aa}if(!Y){K()}}else{p.handleError(O,L,T)}N();if(Z){L.abort()}if(O.async){L=null}}}};if(O.async){var R=setInterval(P,13);if(O.timeout>0){setTimeout(function(){if(L&&!M){P("timeout")}},O.timeout)}}try{L.send(O.data)}catch(U){p.handleError(O,L,null,U)}if(!O.async){P()}function K(){if(O.success){O.success(X,T)}if(O.global){p.event.trigger("ajaxSuccess",[L,O])}}function N(){if(O.complete){O.complete(L,T)}if(O.global){p.event.trigger("ajaxComplete",[L,O])}if(O.global&&!--p.active){p.event.trigger("ajaxStop")}}return L},handleError:function(H,J,G,I){if(H.error){H.error(J,G,I)}if(H.global){p.event.trigger("ajaxError",[J,H,I])}},active:0,httpSuccess:function(H){try{return !H.status&&location.protocol=="file:"||(H.status>=200&&H.status<300)||H.status==304||H.status==1223}catch(G){}return false},httpNotModified:function(I,G){try{var J=I.getResponseHeader("Last-Modified");return I.status==304||J==p.lastModified[G]}catch(H){}return false},httpData:function(L,J,I){var H=L.getResponseHeader("content-type"),G=J=="xml"||!J&&H&&H.indexOf("xml")>=0,K=G?L.responseXML:L.responseText;if(G&&K.documentElement.tagName=="parsererror"){throw"parsererror"}if(I&&I.dataFilter){K=I.dataFilter(K,J)}if(typeof K==="string"){if(J=="script"){p.globalEval(K)}if(J=="json"){K=m["eval"]("("+K+")")}}return K},param:function(G){var I=[];function J(K,L){I[I.length]=encodeURIComponent(K)+"="+encodeURIComponent(L)}if(p.isArray(G)||G.jquery){p.each(G,function(){J(this.name,this.value)})}else{for(var H in G){if(p.isArray(G[H])){p.each(G[H],function(){J(H,this)})}else{J(H,p.isFunction(G[H])?G[H]():G[H])}}}return I.join("&").replace(/%20/g,"+")}});var n={},o,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function v(H,G){var I={};p.each(d.concat.apply([],d.slice(0,G)),function(){I[this]=H});return I}p.fn.extend({show:function(L,N){if(L){return this.animate(v("show",3),L,N)}else{for(var J=0,H=this.length;J<H;J++){var G=p.data(this[J],"olddisplay");this[J].style.display=G||"";if(p.css(this[J],"display")==="none"){var I=this[J].tagName,M;if(n[I]){M=n[I]}else{var K=p("<"+I+" />").appendTo("body");M=K.css("display");if(M==="none"){M="block"}K.remove();n[I]=M}p.data(this[J],"olddisplay",M)}}for(var J=0,H=this.length;J<H;J++){this[J].style.display=p.data(this[J],"olddisplay")||""}return this}},hide:function(J,K){if(J){return this.animate(v("hide",3),J,K)}else{for(var I=0,H=this.length;I<H;I++){var G=p.data(this[I],"olddisplay");if(!G&&G!=="none"){p.data(this[I],"olddisplay",p.css(this[I],"display"))}}for(var I=0,H=this.length;I<H;I++){this[I].style.display="none"}return this}},_toggle:p.fn.toggle,toggle:function(I,H){var G=typeof I==="boolean";return p.isFunction(I)&&p.isFunction(H)?this._toggle.apply(this,arguments):I==null||G?this.each(function(){var J=G?I:p(this).is(":hidden");p(this)[J?"show":"hide"]()}):this.animate(v("toggle",3),I,H)},fadeTo:function(G,I,H){return this.animate({opacity:I},G,H)},animate:function(K,H,J,I){var G=p.speed(H,J,I);return this[G.queue===false?"each":"queue"](function(){var M=p.extend({},G),O,N=this.nodeType==1&&p(this).is(":hidden"),L=this;for(O in K){if(K[O]=="hide"&&N||K[O]=="show"&&!N){return M.complete.call(this)}if((O=="height"||O=="width")&&this.style){M.display=p.css(this,"display");M.overflow=this.style.overflow}}if(M.overflow!=null){this.style.overflow="hidden"}M.curAnim=p.extend({},K);p.each(K,function(Q,U){var T=new p.fx(L,M,Q);if(/toggle|show|hide/.test(U)){T[U=="toggle"?N?"show":"hide":U](K)}else{var S=U.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),V=T.cur(true)||0;if(S){var P=parseFloat(S[2]),R=S[3]||"px";if(R!="px"){L.style[Q]=(P||1)+R;V=((P||1)/T.cur(true))*V;L.style[Q]=V+R}if(S[1]){P=((S[1]=="-="?-1:1)*P)+V}T.custom(V,P,R)}else{T.custom(V,U,"")}}});return true})},stop:function(H,G){var I=p.timers;if(H){this.queue([])}this.each(function(){for(var J=I.length-1;J>=0;J--){if(I[J].elem==this){if(G){I[J](true)}I.splice(J,1)}}});if(!G){this.dequeue()}return this}});p.each({slideDown:v("show",1),slideUp:v("hide",1),slideToggle:v("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(G,H){p.fn[G]=function(I,J){return this.animate(H,I,J)}});p.extend({speed:function(I,J,H){var G=typeof I==="object"?I:{complete:H||!H&&J||p.isFunction(I)&&I,duration:I,easing:H&&J||J&&!p.isFunction(J)&&J};G.duration=p.fx.off?0:typeof G.duration==="number"?G.duration:p.fx.speeds[G.duration]||p.fx.speeds._default;G.old=G.complete;G.complete=function(){if(G.queue!==false){p(this).dequeue()}if(p.isFunction(G.old)){G.old.call(this)}};return G},easing:{linear:function(I,J,G,H){return G+H*I},swing:function(I,J,G,H){return((-Math.cos(I*Math.PI)/2)+0.5)*H+G}},timers:[],fx:function(H,G,I){this.options=G;this.elem=H;this.prop=I;if(!G.orig){G.orig={}}}});p.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(p.fx.step[this.prop]||p.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(H){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var G=parseFloat(p.css(this.elem,this.prop,H));return G&&G>-10000?G:parseFloat(p.curCSS(this.elem,this.prop))||0},custom:function(K,J,I){this.startTime=e();this.start=K;this.end=J;this.unit=I||this.unit||"px";this.now=this.start;this.pos=this.state=0;var G=this;function H(L){return G.step(L)}H.elem=this.elem;if(H()&&p.timers.push(H)&&!o){o=setInterval(function(){var M=p.timers;for(var L=0;L<M.length;L++){if(!M[L]()){M.splice(L--,1)}}if(!M.length){clearInterval(o);o=g}},13)}},show:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());p(this.elem).show()},hide:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(J){var I=e();if(J||I>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var G=true;for(var H in this.options.curAnim){if(this.options.curAnim[H]!==true){G=false}}if(G){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(p.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){p(this.elem).hide()}if(this.options.hide||this.options.show){for(var K in this.options.curAnim){p.attr(this.elem.style,K,this.options.orig[K])}}this.options.complete.call(this.elem)}return false}else{var L=I-this.startTime;this.state=L/this.options.duration;this.pos=p.easing[this.options.easing||(p.easing.swing?"swing":"linear")](this.state,L,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};p.extend(p.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(G){p.attr(G.elem.style,"opacity",G.now)},_default:function(G){if(G.elem.style&&G.elem.style[G.prop]!=null){G.elem.style[G.prop]=G.now+G.unit}else{G.elem[G.prop]=G.now}}}});if(document.documentElement.getBoundingClientRect){p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}var I=this[0].getBoundingClientRect(),L=this[0].ownerDocument,H=L.body,G=L.documentElement,N=G.clientTop||H.clientTop||0,M=G.clientLeft||H.clientLeft||0,K=I.top+(self.pageYOffset||p.boxModel&&G.scrollTop||H.scrollTop)-N,J=I.left+(self.pageXOffset||p.boxModel&&G.scrollLeft||H.scrollLeft)-M;return{top:K,left:J}}}else{p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}p.offset.initialized||p.offset.initialize();var L=this[0],I=L.offsetParent,H=L,Q=L.ownerDocument,O,J=Q.documentElement,M=Q.body,N=Q.defaultView,G=N.getComputedStyle(L,null),P=L.offsetTop,K=L.offsetLeft;while((L=L.parentNode)&&L!==M&&L!==J){O=N.getComputedStyle(L,null);P-=L.scrollTop,K-=L.scrollLeft;if(L===I){P+=L.offsetTop,K+=L.offsetLeft;if(p.offset.doesNotAddBorder&&!(p.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.tagName))){P+=parseInt(O.borderTopWidth,10)||0,K+=parseInt(O.borderLeftWidth,10)||0}H=I,I=L.offsetParent}if(p.offset.subtractsBorderForOverflowNotVisible&&O.overflow!=="visible"){P+=parseInt(O.borderTopWidth,10)||0,K+=parseInt(O.borderLeftWidth,10)||0}G=O}if(G.position==="relative"||G.position==="static"){P+=M.offsetTop,K+=M.offsetLeft}if(G.position==="fixed"){P+=Math.max(J.scrollTop,M.scrollTop),K+=Math.max(J.scrollLeft,M.scrollLeft)}return{top:P,left:K}}}p.offset={initialize:function(){if(this.initialized){return}var N=document.body,H=document.createElement("div"),J,I,P,K,O,G,L=N.style.marginTop,M='<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>';O={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(G in O){H.style[G]=O[G]}H.innerHTML=M;N.insertBefore(H,N.firstChild);J=H.firstChild,I=J.firstChild,K=J.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(I.offsetTop!==5);this.doesAddBorderForTableAndCells=(K.offsetTop===5);J.style.overflow="hidden",J.style.position="relative";this.subtractsBorderForOverflowNotVisible=(I.offsetTop===-5);N.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(N.offsetTop===0);N.style.marginTop=L;N.removeChild(H);this.initialized=true},bodyOffset:function(G){p.offset.initialized||p.offset.initialize();var I=G.offsetTop,H=G.offsetLeft;if(p.offset.doesNotIncludeMarginInBodyOffset){I+=parseInt(p.curCSS(G,"marginTop",true),10)||0,H+=parseInt(p.curCSS(G,"marginLeft",true),10)||0}return{top:I,left:H}}};p.fn.extend({position:function(){var K=0,J=0,H;if(this[0]){var I=this.offsetParent(),L=this.offset(),G=/^body|html$/i.test(I[0].tagName)?{top:0,left:0}:I.offset();L.top-=k(this,"marginTop");L.left-=k(this,"marginLeft");G.top+=k(I,"borderTopWidth");G.left+=k(I,"borderLeftWidth");H={top:L.top-G.top,left:L.left-G.left}}return H},offsetParent:function(){var G=this[0].offsetParent||document.body;while(G&&(!/^body|html$/i.test(G.tagName)&&p.css(G,"position")=="static")){G=G.offsetParent}return p(G)}});p.each(["Left","Top"],function(H,G){var I="scroll"+G;p.fn[I]=function(J){if(!this[0]){return null}return J!==g?this.each(function(){this==m||this==document?m.scrollTo(!H?J:p(m).scrollLeft(),H?J:p(m).scrollTop()):this[I]=J}):this[0]==m||this[0]==document?self[H?"pageYOffset":"pageXOffset"]||p.boxModel&&document.documentElement[I]||document.body[I]:this[0][I]}});p.each(["Height","Width"],function(K,I){var G=K?"Left":"Top",J=K?"Right":"Bottom",H=I.toLowerCase();p.fn["inner"+I]=function(){return this[0]?p.css(this[0],H,false,"padding"):null};p.fn["outer"+I]=function(M){return this[0]?p.css(this[0],H,false,M?"margin":"border"):null};var L=I.toLowerCase();p.fn[L]=function(M){return this[0]==m?document.compatMode=="CSS1Compat"&&document.documentElement["client"+I]||document.body["client"+I]:this[0]==document?Math.max(document.documentElement["client"+I],document.body["scroll"+I],document.documentElement["scroll"+I],document.body["offset"+I],document.documentElement["offset"+I]):M===g?(this.length?p.css(this[0],L):null):this.css(L,typeof M==="string"?M:M+"px")}})})();jQuery.fn.selectToUISlider=function(f){var l=jQuery(this);var r=jQuery.extend({labels:3,tooltip:true,tooltipSrc:"text",labelSrc:"value",sliderOptions:null},f);var h=(function(){var j=[];l.each(function(){j.push("handle_"+jQuery(this).attr("id"))});return j})();var a=(function(){var j=[];l.eq(0).find("option").each(function(){j.push({value:jQuery(this).attr("value"),text:jQuery(this).text()})});return j})();var b=(function(){if(l.eq(0).find("optgroup").size()>0){var j=[];l.eq(0).find("optgroup").each(function(s){j[s]={};j[s].label=jQuery(this).attr("label");j[s].options=[];jQuery(this).find("option").each(function(){j[s].options.push({text:jQuery(this).text(),value:jQuery(this).attr("value")})})});return j}else{return null}})();function k(j){if(j==null){return null}return j.constructor==Array}function n(j){if(j==null){return null}if(a.length>=j){return null}return(r.tooltipSrc=="text")?a[j].text:a[j].value}var q={step:1,min:0,orientation:"horizontal",max:a.length-1,range:l.length>1,slide:function(v,u){var s=jQuery(this).find(".ui-slider-handle.ui-state-active");s.find(".ui-slider-tooltip").text(n(u.value));var j=jQuery("#"+s.attr("id").split("handle_")[1]);j.find("option").eq(u.value).attr("selected","selected")},values:(function(){var j=[];l.each(function(){j.push(jQuery(this).get(0).selectedIndex)});return j})()};r.sliderOptions=(f)?jQuery.extend(q,f.sliderOptions):q;l.bind("change keyup click",function(){var s=jQuery(this).get(0).selectedIndex;var j=jQuery("#handle_"+jQuery(this).attr("id"));var u=j.data("handleNum");j.parents(".ui-slider:eq(0)").slider("values",u,s)});var d=jQuery("<div></div>");l.each(function(j){var s="";if(r.tooltip==false){s=' style="display: none;"'}jQuery('<a href="#" id="'+h[j]+'" class="ui-slider-handle"><span class="ui-slider-tooltip ui-widget-content ui-corner-all"'+s+"></span></a>").data("handleNum",j).appendTo(d)});if(b){var c=0;var e=d.append('<dl class="ui-slider-scale ui-helper-reset"></dl>').find(".ui-slider-scale:eq(0)");jQuery(b).each(function(s){e.append('<dt style="width: '+(100/b.length).toFixed(2)+"%; left:"+(s/(b.length-1)*100).toFixed(2)+'%"><span>'+this.label+"</span></dt>");var j=this.options;jQuery(this.options).each(function(u){var v=(c==a.length-1||c==0)?'style="display: none;"':"";var w=(r.labelSrc=="text")?j[u].text:j[u].value;e.append('<dd style="left:'+o(c)+'"><span class="ui-slider-label">'+w+'</span><span class="ui-slider-tic ui-widget-content"'+v+"></span></dd>");c++})})}else{var e=d.append('<ol class="ui-slider-scale ui-helper-reset"></ol>').find(".ui-slider-scale:eq(0)");jQuery(a).each(function(j){var s=(j==a.length-1||j==0)?'style="display: none;"':"";var u=(r.labelSrc=="text")?this.text:this.value;e.append('<li style="left:'+o(j)+'"><span class="ui-slider-label">'+u+'</span><span class="ui-slider-tic ui-widget-content"'+s+"></span></li>")})}function o(j){return(j/(a.length-1)*100).toFixed(2)+"%"}if(r.labels>1){d.find(".ui-slider-scale li:last span.ui-slider-label, .ui-slider-scale dd:last span.ui-slider-label").addClass("ui-slider-label-show")}var m=Math.round(a.length/r.labels);for(var g=0;g<a.length;g+=m){if((a.length-g)>m){d.find(".ui-slider-scale li:eq("+g+") span.ui-slider-label, .ui-slider-scale dd:eq("+g+") span.ui-slider-label").addClass("ui-slider-label-show")}}d.find(".ui-slider-scale dt").each(function(j){jQuery(this).css({left:((100/(b.length))*j).toFixed(2)+"%"})});d.insertAfter(jQuery(this).eq(this.length-1)).slider(r.sliderOptions).find(".ui-slider-label").each(function(){jQuery(this).css("marginLeft",-jQuery(this).width()/2)});var p=d.slider("values");if(k(p)){$(p).each(function(j){d.find(".ui-slider-tooltip").eq(j).html(n(this))})}else{d.find(".ui-slider-tooltip").eq(0).html(n(p))}return this};function Stats(f){this.count=f.length;f.sort(ascend);this.min=f[0];var b=Math.floor(f.length/2);if((f.length%2)!=0){this.median=f[b]}else{this.median=(f[b-1]+f[b])/2}this.max=f[f.length-1];var d=0;this.mean=f[0];for(var c=1;c<f.length;++c){var a=f[c];var g=a-this.mean;var e=c+1;this.mean+=g/e;d+=g*g*(c/e)}this.sum=this.mean*this.count;this.variance=d/this.count;this.sdev=Math.sqrt(this.variance)}function ascend(d,c){if(d<c){return -1}else{if(d>c){return 1}}return 0}function htmlentities(c,f){var e={},d="",a="",b="";a=c.toString();if(false===(e=get_html_translation_table("HTML_ENTITIES",f))){return false}for(d in e){b=e[d];a=a.split(d).join(b)}return a}function get_html_translation_table(j,f){var d={},h={},c=0,a="";var e={},b={};var k={},g={};k=(j?j.toUpperCase():"HTML_SPECIALCHARS");g=(f?f.toUpperCase():"ENT_COMPAT");e[0]="HTML_SPECIALCHARS";e[1]="HTML_ENTITIES";b[0]="ENT_NOQUOTES";b[2]="ENT_COMPAT";b[3]="ENT_QUOTES";if(!isNaN(k)){k=e[k]}if(!isNaN(g)){g=b[g]}if(k=="HTML_SPECIALCHARS"){d["38"]="&amp;";if(g!="ENT_NOQUOTES"){d["34"]="&quot;"}if(g=="ENT_QUOTES"){d["39"]="&#039;"}d["60"]="&lt;";d["62"]="&gt;"}else{if(k=="HTML_ENTITIES"){d["38"]="&amp;";if(g!="ENT_NOQUOTES"){d["34"]="&quot;"}if(g=="ENT_QUOTES"){d["39"]="&#039;"}d["60"]="&lt;";d["62"]="&gt;";d["160"]="&nbsp;";d["161"]="&iexcl;";d["162"]="&cent;";d["163"]="&pound;";d["164"]="&curren;";d["165"]="&yen;";d["166"]="&brvbar;";d["167"]="&sect;";d["168"]="&uml;";d["169"]="&copy;";d["170"]="&ordf;";d["171"]="&laquo;";d["172"]="&not;";d["173"]="&shy;";d["174"]="&reg;";d["175"]="&macr;";d["176"]="&deg;";d["177"]="&plusmn;";d["178"]="&sup2;";d["179"]="&sup3;";d["180"]="&acute;";d["181"]="&micro;";d["182"]="&para;";d["183"]="&middot;";d["184"]="&cedil;";d["185"]="&sup1;";d["186"]="&ordm;";d["187"]="&raquo;";d["188"]="&frac14;";d["189"]="&frac12;";d["190"]="&frac34;";d["191"]="&iquest;";d["192"]="&Agrave;";d["193"]="&Aacute;";d["194"]="&Acirc;";d["195"]="&Atilde;";d["196"]="&Auml;";d["197"]="&Aring;";d["198"]="&AElig;";d["199"]="&Ccedil;";d["200"]="&Egrave;";d["201"]="&Eacute;";d["202"]="&Ecirc;";d["203"]="&Euml;";d["204"]="&Igrave;";d["205"]="&Iacute;";d["206"]="&Icirc;";d["207"]="&Iuml;";d["208"]="&ETH;";d["209"]="&Ntilde;";d["210"]="&Ograve;";d["211"]="&Oacute;";d["212"]="&Ocirc;";d["213"]="&Otilde;";d["214"]="&Ouml;";d["215"]="&times;";d["216"]="&Oslash;";d["217"]="&Ugrave;";d["218"]="&Uacute;";d["219"]="&Ucirc;";d["220"]="&Uuml;";d["221"]="&Yacute;";d["222"]="&THORN;";d["223"]="&szlig;";d["224"]="&agrave;";d["225"]="&aacute;";d["226"]="&acirc;";d["227"]="&atilde;";d["228"]="&auml;";d["229"]="&aring;";d["230"]="&aelig;";d["231"]="&ccedil;";d["232"]="&egrave;";d["233"]="&eacute;";d["234"]="&ecirc;";d["235"]="&euml;";d["236"]="&igrave;";d["237"]="&iacute;";d["238"]="&icirc;";d["239"]="&iuml;";d["240"]="&eth;";d["241"]="&ntilde;";d["242"]="&ograve;";d["243"]="&oacute;";d["244"]="&ocirc;";d["245"]="&otilde;";d["246"]="&ouml;";d["247"]="&divide;";d["248"]="&oslash;";d["249"]="&ugrave;";d["250"]="&uacute;";d["251"]="&ucirc;";d["252"]="&uuml;";d["253"]="&yacute;";d["254"]="&thorn;";d["255"]="&yuml;"}else{throw Error("Table: "+k+" not supported");return false}}for(c in d){a=String.fromCharCode(c);h[a]=d[c]}return h}jQuery.ui||(function(p){var j=p.fn.remove,o=p.browser.mozilla&&(parseFloat(p.browser.version)<1.9);p.ui={version:"1.7",plugin:{add:function(c,b,e){var a=p.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a<e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(p(a).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",b=false;if(a[d]>0){return true}a[d]=1;b=(a[d]>0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(e,c,f,a,d,b){return p.ui.isOverAxis(e,f,d)&&p.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(o){var m=p.attr,n=p.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",r=/^aria-/,q=/^wairole:/;p.attr=function(c,d,b){var a=b!==undefined;return(d=="role"?(a?m.call(this,c,d,"wairole:"+b):(m.apply(this,arguments)||"").replace(q,"")):(r.test(d)?(a?c.setAttributeNS(k,d.replace(r,"aaa:"),b):m.call(this,c,d.replace(r,"aaa:"))):m.apply(this,arguments)))};p.fn.removeAttr=function(a){return(r.test(a)?this.each(function(){this.removeAttributeNS(k,a.replace(r,""))}):n.call(this,a))}}p.fn.extend({remove:function(){p("*",this).add(this).each(function(){p(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;if((p.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(p.curCSS(this,"position",1))&&(/(auto|scroll)/).test(p.curCSS(this,"overflow",1)+p.curCSS(this,"overflow-y",1)+p.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(p.curCSS(this,"overflow",1)+p.curCSS(this,"overflow-y",1)+p.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?p(document):a}});p.extend(p.expr[":"],{data:function(a,b,c){return !!p.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=p.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!p(b)["area"==a?"parents":"closest"](":hidden").length},tabbable:function(a){var b=p.attr(a,"tabindex");return(isNaN(b)||b>=0)&&p(a).is(":focusable")}});function l(a,f,e,b){function c(g){var h=p[a][f][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h)}var d=c("getter");if(b.length==1&&typeof b[0]=="string"){d=d.concat(c("getterSetter"))}return(p.inArray(e,d)!=-1)}p.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];p.fn[b]=function(e){var g=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);if(g&&e.substring(0,1)=="_"){return this}if(g&&l(a,b,e,f)){var d=p.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=p.data(this,b);(!h&&!g&&p.data(this,b,new p[a][b](this,e))._init());(h&&g&&p.isFunction(h[e])&&h[e].apply(h,f))})};p[a]=p[a]||{};p[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=p[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=p.extend({},p.widget.defaults,p[a][b].defaults,p.metadata&&p.metadata.get(e)[b],f);this.element=p(e).bind("setData."+b,function(h,s,g){if(h.target==e){return d._setData(s,g)}}).bind("getData."+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind("remove",function(){return d.destroy()})};p[a][b].prototype=p.extend({},p.widget.prototype,c);p[a][b].getterSetter="option"};p.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,a){var c=b,d=this;if(typeof b=="string"){if(a===undefined){return this._getData(b)}c={};c[b]=a}p.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=p.Event(a);a.type=d;if(a.originalEvent){for(var c=p.event.props.length,f;c;){f=p.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(p.isFunction(e)&&e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};p.widget.defaults={disabled:false};p.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(p.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(p.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel=="string"?p(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};p(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(p.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(p.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){p(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};p.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.slider",b.extend({},b.ui.mouse,{_init:function(){var a=this,d=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=b([]);if(d.range){if(d.range===true){this.range=b("<div></div>");if(!d.values){d.values=[this._valueMin(),this._valueMin()]}if(d.values.length&&d.values.length!=2){d.values=[d.values[0],d.values[0]]}}else{this.range=b("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range=="min"||d.range=="max"){this.range.addClass("ui-slider-range-"+d.range)}this.range.addClass("ui-widget-header")}if(b(".ui-slider-handle",this.element).length==0){b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}if(d.values&&d.values.length){while(b(".ui-slider-handle",this.element).length<d.values.length){b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(c){b(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var l=true;var m=b(this).data("index.ui-slider-handle");if(a.options.disabled){return}switch(c.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:l=false;if(!a._keySliding){a._keySliding=true;b(this).addClass("ui-state-active");a._start(c,m)}break}var k,n,j=a._step();if(a.options.values&&a.options.values.length){k=n=a.values(m)}else{k=n=a.value()}switch(c.keyCode){case b.ui.keyCode.HOME:n=a._valueMin();break;case b.ui.keyCode.END:n=a._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(k==a._valueMax()){return}n=k+j;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(k==a._valueMin()){return}n=k-j;break}a._slide(c,m,n);return l}).keyup(function(c){var f=b(this).data("index.ui-slider-handle");if(a._keySliding){a._stop(c,f);a._change(c,f);a._keySliding=false;b(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(r){var q=this.options;if(q.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var n={x:r.pageX,y:r.pageY};var l=this._normValueFromMouse(n);var s=this._valueMax()+1,p;var a=this,m;this.handles.each(function(d){var c=Math.abs(l-a.values(d));if(s>c){s=c;p=b(this);m=d}});if(q.range==true&&this.values(1)==q.min){p=b(this.handles[++m])}this._start(r,m);a._handleIndex=m;p.addClass("ui-state-active").focus();var o=p.offset();var u=!b(r.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=u?{left:0,top:0}:{left:r.pageX-o.left-(p.width()/2),top:r.pageY-o.top-(p.height()/2)-(parseInt(p.css("borderTopWidth"),10)||0)-(parseInt(p.css("borderBottomWidth"),10)||0)+(parseInt(p.css("marginTop"),10)||0)};l=this._normValueFromMouse(n);this._slide(r,m,l);return true},_mouseStart:function(a){return true},_mouseDrag:function(e){var a={x:e.pageX,y:e.pageY};var f=this._normValueFromMouse(a);this._slide(e,this._handleIndex,f);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(o){var p,k;if("horizontal"==this.orientation){p=this.elementSize.width;k=o.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{p=this.elementSize.height;k=o.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var m=(k/p);if(m>1){m=1}if(m<0){m=0}if("vertical"==this.orientation){m=1-m}var n=this._valueMax()-this._valueMin(),j=m*n,a=j%this.options.step,l=this._valueMin()+j-a;if(a>(this.options.step/2)){l+=this.options.step}return parseFloat(l.toFixed(5))},_start:function(d,a){this._trigger("start",d,this._uiHash(a))},_slide:function(l,m,n){var k=this.handles[m];if(this.options.values&&this.options.values.length){var a=this.values(m?0:1);if((m==0&&n>=a)||(m==1&&n<=a)){n=a}if(n!=this.values(m)){var o=this.values();o[m]=n;var j=this._trigger("slide",l,this._uiHash(m,n,o));var a=this.values(m?0:1);if(j!==false){this.values(m,n,(l.type=="mousedown"&&this.options.animate),true)}}}else{if(n!=this.value()){var j=this._trigger("slide",l,this._uiHash(m,n));if(j!==false){this._setData("value",n,(l.type=="mousedown"&&this.options.animate))}}}},_stop:function(d,a){this._trigger("stop",d,this._uiHash(a))},_change:function(d,a){this._trigger("change",d,this._uiHash(a))},value:function(a){if(arguments.length){this._setData("value",a);this._change(null,0)}return this._value()},values:function(a,f,h,g){if(arguments.length>1){this.options.values[a]=f;this._refreshValue(h);if(!g){this._change(null,a)}}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(a)}else{return this.value()}}else{return this._values()}},_setData:function(a,e,f){b.widget.prototype._setData.apply(this,arguments);switch(a){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(f);break;case"value":this._refreshValue(f);break}},_step:function(){var a=this.options.step;return a},_value:function(){var a=this.options.value;if(a<this._valueMin()){a=this._valueMin()}if(a>this._valueMax()){a=this._valueMax()}return a},_values:function(a){if(arguments.length){var d=this.options.values[a];if(d<this._valueMin()){d=this._valueMin()}if(d>this._valueMax()){d=this._valueMax()}return d}else{return this.options.values}},_valueMin:function(){var a=this.options.min;return a},_valueMax:function(){var a=this.options.max;return a},_refreshValue:function(v){var r=this.options.range,u=this.options,a=this;if(this.options.values&&this.options.values.length){var o,p;this.handles.each(function(d,f){var e=(a.values(d)-a._valueMin())/(a._valueMax()-a._valueMin())*100;var c={};c[a.orientation=="horizontal"?"left":"bottom"]=e+"%";b(this).stop(1,1)[v?"animate":"css"](c,u.animate);if(a.options.range===true){if(a.orientation=="horizontal"){(d==0)&&a.range.stop(1,1)[v?"animate":"css"]({left:e+"%"},u.animate);(d==1)&&a.range[v?"animate":"css"]({width:(e-lastValPercent)+"%"},{queue:false,duration:u.animate})}else{(d==0)&&a.range.stop(1,1)[v?"animate":"css"]({bottom:(e)+"%"},u.animate);(d==1)&&a.range[v?"animate":"css"]({height:(e-lastValPercent)+"%"},{queue:false,duration:u.animate})}}lastValPercent=e})}else{var n=this.value(),q=this._valueMin(),m=this._valueMax(),s=m!=q?(n-q)/(m-q)*100:0;var w={};w[a.orientation=="horizontal"?"left":"bottom"]=s+"%";this.handle.stop(1,1)[v?"animate":"css"](w,u.animate);(r=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[v?"animate":"css"]({width:s+"%"},u.animate);(r=="max")&&(this.orientation=="horizontal")&&this.range[v?"animate":"css"]({width:(100-s)+"%"},{queue:false,duration:u.animate});(r=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[v?"animate":"css"]({height:s+"%"},u.animate);(r=="max")&&(this.orientation=="vertical")&&this.range[v?"animate":"css"]({height:(100-s)+"%"},{queue:false,duration:u.animate})}},_uiHash:function(g,f,h){var a=this.options.values&&this.options.values.length;return{handle:this.handles[g],value:f||(a?this.values(g):this.value()),values:h||(a&&this.values())}}}));b.extend(b.ui.slider,{getter:"value values",version:"1.7",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);(function(b){b.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(a,d){if(a=="selected"){if(this.options.collapsible&&d==this.options.selected){return}this.select(d)}else{this.options[a]=d;if(a=="deselectable"){this.options.collapsible=d}this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+b.data(a)},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b.data(this.list[0]));return b.cookie.apply(null,[a].concat(b.makeArray(arguments)))},_ui:function(d,a){return{tab:d,panel:a,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a=b(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(o){this.list=this.element.children("ul:first");this.lis=b("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);var a=this,z=this.options;var A=/^#.+/;this.anchors.each(function(g,j){var h=b(j).attr("href");var f=h.split("#")[0],e;if(f&&(f===location.toString().split("#")[0]||(e=b("base")[0])&&f===e.href)){h=j.hash;j.href=h}if(A.test(h)){a.panels=a.panels.add(a._sanitizeSelector(h))}else{if(h!="#"){b.data(j,"href.tabs",h);b.data(j,"load.tabs",h.replace(/#.*$/,""));var c=a._tabId(j);j.href="#"+c;var d=b("#"+c);if(!d.length){d=b(z.panelTemplate).attr("id",c).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);d.data("destroy.tabs",true)}a.panels=a.panels.add(d)}else{z.disabled.push(g)}}});if(o){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(z.selected===undefined){if(location.hash){this.anchors.each(function(c,d){if(d.hash==location.hash){z.selected=c;return false}})}if(typeof z.selected!="number"&&z.cookie){z.selected=parseInt(a._cookie(),10)}if(typeof z.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}z.selected=z.selected||0}else{if(z.selected===null){z.selected=-1}}z.selected=((z.selected>=0&&this.anchors[z.selected])||z.selected<0)?z.selected:0;z.disabled=b.unique(z.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(c,d){return a.lis.index(c)}))).sort();if(b.inArray(z.selected,z.disabled)!=-1){z.disabled.splice(b.inArray(z.selected,z.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(z.selected>=0&&this.anchors.length){this.panels.eq(z.selected).removeClass("ui-tabs-hide");this.lis.eq(z.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[z.selected],a.panels[z.selected]))});this.load(z.selected)}b(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else{z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[z.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(z.cookie){this._cookie(z.selected,z.cookie)}for(var w=0,q;(q=this.lis[w]);w++){b(q)[b.inArray(w,z.disabled)!=-1&&!b(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(z.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(z.event!="mouseover"){var x=function(d,c){if(c.is(":not(.ui-state-disabled)")){c.addClass("ui-state-"+d)}};var u=function(d,c){c.removeClass("ui-state-"+d)};this.lis.bind("mouseover.tabs",function(){x("hover",b(this))});this.lis.bind("mouseout.tabs",function(){u("hover",b(this))});this.anchors.bind("focus.tabs",function(){x("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){u("focus",b(this).closest("li"))})}var B,v;if(z.fx){if(b.isArray(z.fx)){B=z.fx[0];v=z.fx[1]}else{B=v=z.fx}}function y(c,d){c.css({display:""});if(b.browser.msie&&d.opacity){c[0].style.removeAttribute("filter")}}var s=v?function(c,d){b(c).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");d.hide().removeClass("ui-tabs-hide").animate(v,v.duration||"normal",function(){y(d,v);a._trigger("show",null,a._ui(c,d[0]))})}:function(c,d){b(c).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");d.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(c,d[0]))};var r=B?function(d,c){c.animate(B,B.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");c.addClass("ui-tabs-hide");y(c,B);a.element.dequeue("tabs")})}:function(e,c,d){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");c.addClass("ui-tabs-hide");a.element.dequeue("tabs")};this.anchors.bind(z.event+".tabs",function(){var f=this,d=b(this).closest("li"),c=a.panels.filter(":not(.ui-tabs-hide)"),e=b(a._sanitizeSelector(this.hash));if((d.hasClass("ui-tabs-selected")&&!z.collapsible)||d.hasClass("ui-state-disabled")||d.hasClass("ui-state-processing")||a._trigger("select",null,a._ui(this,e[0]))===false){this.blur();return false}z.selected=a.anchors.index(this);a.abort();if(z.collapsible){if(d.hasClass("ui-tabs-selected")){z.selected=-1;if(z.cookie){a._cookie(z.selected,z.cookie)}a.element.queue("tabs",function(){r(f,c)}).dequeue("tabs");this.blur();return false}else{if(!c.length){if(z.cookie){a._cookie(z.selected,z.cookie)}a.element.queue("tabs",function(){s(f,e)});a.load(a.anchors.index(this));this.blur();return false}}}if(z.cookie){a._cookie(z.selected,z.cookie)}if(e.length){if(c.length){a.element.queue("tabs",function(){r(f,c)})}a.element.queue("tabs",function(){s(f,e)});a.load(a.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(b.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var a=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var f=b.data(this,"href.tabs");if(f){this.href=f}var e=b(this).unbind(".tabs");b.each(["href","load","cache"],function(d,c){e.removeData(c+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(b.data(this,"destroy.tabs")){b(this).remove()}else{b(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(a.cookie){this._cookie(null,a.cookie)}},add:function(n,o,p){if(p===undefined){p=this.anchors.length}var a=this,l=this.options,j=b(l.tabTemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,o)),k=!n.indexOf("#")?n.replace("#",""):this._tabId(b("a",j)[0]);j.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var m=b("#"+k);if(!m.length){m=b(l.panelTemplate).attr("id",k).data("destroy.tabs",true)}m.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(p>=this.lis.length){j.appendTo(this.list);m.appendTo(this.list[0].parentNode)}else{j.insertBefore(this.lis[p]);m.insertBefore(this.panels[p])}l.disabled=b.map(l.disabled,function(c,d){return c>=p?++c:c});this._tabify();if(this.anchors.length==1){j.addClass("ui-tabs-selected ui-state-active");m.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[0],a.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[p],this.panels[p]))},remove:function(a){var g=this.options,f=this.lis.eq(a).remove(),h=this.panels.eq(a).remove();if(f.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(a+(a+1<this.anchors.length?1:-1))}g.disabled=b.map(b.grep(g.disabled,function(c,d){return c!=a}),function(c,d){return c>=a?--c:c});this._tabify();this._trigger("remove",null,this._ui(f.find("a")[0],h[0]))},enable:function(a){var d=this.options;if(b.inArray(a,d.disabled)==-1){return}this.lis.eq(a).removeClass("ui-state-disabled");d.disabled=b.grep(d.disabled,function(c,f){return c!=a});this._trigger("enable",null,this._ui(this.anchors[a],this.panels[a]))},disable:function(f){var a=this,e=this.options;if(f!=e.selected){this.lis.eq(f).addClass("ui-state-disabled");e.disabled.push(f);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[f],this.panels[f]))}},select:function(a){if(typeof a=="string"){a=this.anchors.index(this.anchors.filter("[href$="+a+"]"))}else{if(a===null){a=-1}}if(a==-1&&this.options.collapsible){a=this.options.selected}this.anchors.eq(a).trigger(this.options.event+".tabs")},load:function(k){var m=this,h=this.options,a=this.anchors.eq(k)[0],l=b.data(a,"load.tabs");this.abort();if(!l||this.element.queue("tabs").length!==0&&b.data(a,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(k).addClass("ui-state-processing");if(h.spinner){var j=b("span",a);j.data("label.tabs",j.html()).html(h.spinner)}this.xhr=b.ajax(b.extend({},h.ajaxOptions,{url:l,success:function(d,e){b(m._sanitizeSelector(a.hash)).html(d);m._cleanup();if(h.cache){b.data(a,"cache.tabs",true)}m._trigger("load",null,m._ui(m.anchors[k],m.panels[k]));try{h.ajaxOptions.success(d,e)}catch(c){}m.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(d,a){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",a)},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.7",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(l,j){var a=this,h=this.options;var m=a._rotate||(a._rotate=function(c){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var d=h.selected;a.select(++d<a.anchors.length?d:0)},l);if(c){c.stopPropagation()}});var k=a._unrotate||(a._unrotate=!j?function(c){if(c.clientX){a.rotate(null)}}:function(c){t=h.selected;m()});if(l){this.element.bind("tabsshow",m);this.anchors.bind(h.event+".tabs",k);m()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",m);this.anchors.unbind(h.event+".tabs",k);delete this._rotate;delete this._unrotate}}})})(jQuery);(function(b){b.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=b('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();b.widget.prototype.destroy.apply(this,arguments)},value:function(a){arguments.length&&this._setData("value",a);return this._value()},_setData:function(a,d){switch(a){case"value":this.options.value=d;this._refreshValue();this._trigger("change",null,{});break}b.widget.prototype._setData.apply(this,arguments)},_value:function(){var a=this.options.value;if(a<this._valueMin()){a=this._valueMin()}if(a>this._valueMax()){a=this._valueMax()}return a},_valueMin:function(){var a=0;return a},_valueMax:function(){var a=100;return a},_refreshValue:function(){var a=this.value();this.valueDiv[a==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(a+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.7",defaults:{value:0}})})(jQuery);jQuery.effects||(function(j){j.effects={version:"1.7",save:function(b,a){for(var c=0;c<a.length;c++){if(a[c]!==null){b.data("ec.storage."+a[c],b[0].style[a[c]])}}},restore:function(b,a){for(var c=0;c<a.length;c++){if(a[c]!==null){b.css(a[c],b.data("ec.storage."+a[c]))}}},setMode:function(b,a){if(a=="toggle"){a=b.is(":hidden")?"show":"hide"}return a},getBaseline:function(c,b){var a,d;switch(c[0]){case"top":a=0;break;case"middle":a=0.5;break;case"bottom":a=1;break;default:a=c[0]/b.height}switch(c[1]){case"left":d=0;break;case"center":d=0.5;break;case"right":d=1;break;default:d=c[1]/b.width}return{x:d,y:a}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper")){return e.parent()}var d={width:e.outerWidth(true),height:e.outerHeight(true),"float":e.css("float")};e.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var a=e.parent();if(e.css("position")=="static"){a.css({position:"relative"});e.css({position:"relative"})}else{var b=e.css("top");if(isNaN(parseInt(b,10))){b="auto"}var c=e.css("left");if(isNaN(parseInt(c,10))){c="auto"}a.css({position:e.css("position"),top:b,left:c,zIndex:e.css("z-index")}).show();e.css({position:"relative",top:0,left:0})}a.css(d);return a},removeWrapper:function(a){if(a.parent().is(".ui-effects-wrapper")){return a.parent().replaceWith(a)}return a},setTransition:function(c,a,d,b){b=b||{};j.each(a,function(e,l){unit=c.cssUnit(l);if(unit[0]>0){b[l]=unit[0]*d+unit[1]}});return b},animateClass:function(d,c,a,b){var l=(typeof a=="function"?a:(b?b:null));var e=(typeof a=="string"?a:null);return this.each(function(){var v={};var x=j(this);var w=x.attr("style")||"";if(typeof w=="object"){w=w.cssText}if(d.toggle){x.hasClass(d.toggle)?d.remove=d.toggle:d.add=d.toggle}var s=j.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){x.addClass(d.add)}if(d.remove){x.removeClass(d.remove)}var n=j.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(d.add){x.removeClass(d.add)}if(d.remove){x.addClass(d.remove)}for(var u in n){if(typeof n[u]!="function"&&n[u]&&u.indexOf("Moz")==-1&&u.indexOf("length")==-1&&n[u]!=s[u]&&(u.match(/color/i)||(!u.match(/color/i)&&!isNaN(parseInt(n[u],10))))&&(s.position!="static"||(s.position=="static"&&!u.match(/left|top|bottom|right/)))){v[u]=n[u]}}x.animate(v,c,e,function(){if(typeof j(this).attr("style")=="object"){j(this).attr("style")["cssText"]="";j(this).attr("style")["cssText"]=w}else{j(this).attr("style",w)}if(d.add){j(this).addClass(d.add)}if(d.remove){j(this).removeClass(d.remove)}if(l){l.apply(this,arguments)}})})}};function k(d,e){var b=d[1]&&d[1].constructor==Object?d[1]:{};if(e){b.mode=e}var c=d[1]&&d[1].constructor!=Object?d[1]:(b.duration?b.duration:d[2]);c=j.fx.off?0:typeof c==="number"?c:j.fx.speeds[c]||j.fx.speeds._default;var a=b.callback||(j.isFunction(d[1])&&d[1])||(j.isFunction(d[2])&&d[2])||(j.isFunction(d[3])&&d[3]);return[d[0],b,c,a]}j.fn.extend({_show:j.fn.show,_hide:j.fn.hide,__toggle:j.fn.toggle,_addClass:j.fn.addClass,_removeClass:j.fn.removeClass,_toggleClass:j.fn.toggleClass,effect:function(c,d,b,a){return j.effects[c]?j.effects[c].call(this,{method:c,options:d||{},duration:b,callback:a}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,k(arguments,"toggle"))}},addClass:function(c,d,a,b){return d?j.effects.animateClass.apply(this,[{add:c},d,a,b]):this._addClass(c)},removeClass:function(c,d,a,b){return d?j.effects.animateClass.apply(this,[{remove:c},d,a,b]):this._removeClass(c)},toggleClass:function(c,d,a,b){return((typeof d!=="boolean")&&d)?j.effects.animateClass.apply(this,[{toggle:c},d,a,b]):this._toggleClass(c,d)},morph:function(e,c,d,a,b){return j.effects.animateClass.apply(this,[{add:c,remove:e},d,a,b])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(c){var b=this.css(c),a=[];j.each(["em","px","%","pt"],function(e,d){if(b.indexOf(d)>0){a=[parseFloat(b),d]}});return a}});j.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(a,b){j.fx.step[b]=function(c){if(c.state==0){c.start=h(c.elem,b);c.end=f(c.end)}c.elem.style[b]="rgb("+[Math.max(Math.min(parseInt((c.pos*(c.end[0]-c.start[0]))+c.start[0],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[1]-c.start[1]))+c.start[1],10),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[2]-c.start[2]))+c.start[2],10),255),0)].join(",")+")"}});function f(a){var b;if(a&&a.constructor==Array&&a.length==3){return a}if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a)){return[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]}if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a)){return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]}if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a)){return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]}if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a)){return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]}if(b=/rgba\(0, 0, 0, 0\)/.exec(a)){return g.transparent}return g[j.trim(a).toLowerCase()]}function h(a,c){var b;do{b=j.curCSS(a,c);if(b!=""&&b!="transparent"||j.nodeName(a,"body")){break}c="backgroundColor"}while(a=a.parentNode);return f(b)}var g={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};j.easing.jswing=j.easing.swing;j.extend(j.easing,{def:"easeOutQuad",swing:function(d,c,e,a,b){return j.easing[j.easing.def](d,c,e,a,b)},easeInQuad:function(d,c,e,a,b){return a*(c/=b)*c+e},easeOutQuad:function(d,c,e,a,b){return -a*(c/=b)*(c-2)+e},easeInOutQuad:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c+e}return -a/2*((--c)*(c-2)-1)+e},easeInCubic:function(d,c,e,a,b){return a*(c/=b)*c*c+e},easeOutCubic:function(d,c,e,a,b){return a*((c=c/b-1)*c*c+1)+e},easeInOutCubic:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c*c+e}return a/2*((c-=2)*c*c+2)+e},easeInQuart:function(d,c,e,a,b){return a*(c/=b)*c*c*c+e},easeOutQuart:function(d,c,e,a,b){return -a*((c=c/b-1)*c*c*c-1)+e},easeInOutQuart:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c*c*c+e}return -a/2*((c-=2)*c*c*c-2)+e},easeInQuint:function(d,c,e,a,b){return a*(c/=b)*c*c*c*c+e},easeOutQuint:function(d,c,e,a,b){return a*((c=c/b-1)*c*c*c*c+1)+e},easeInOutQuint:function(d,c,e,a,b){if((c/=b/2)<1){return a/2*c*c*c*c*c+e}return a/2*((c-=2)*c*c*c*c+2)+e},easeInSine:function(d,c,e,a,b){return -a*Math.cos(c/b*(Math.PI/2))+a+e},easeOutSine:function(d,c,e,a,b){return a*Math.sin(c/b*(Math.PI/2))+e},easeInOutSine:function(d,c,e,a,b){return -a/2*(Math.cos(Math.PI*c/b)-1)+e},easeInExpo:function(d,c,e,a,b){return(c==0)?e:a*Math.pow(2,10*(c/b-1))+e},easeOutExpo:function(d,c,e,a,b){return(c==b)?e+a:a*(-Math.pow(2,-10*c/b)+1)+e},easeInOutExpo:function(d,c,e,a,b){if(c==0){return e}if(c==b){return e+a}if((c/=b/2)<1){return a/2*Math.pow(2,10*(c-1))+e}return a/2*(-Math.pow(2,-10*--c)+2)+e},easeInCirc:function(d,c,e,a,b){return -a*(Math.sqrt(1-(c/=b)*c)-1)+e},easeOutCirc:function(d,c,e,a,b){return a*Math.sqrt(1-(c=c/b-1)*c)+e},easeInOutCirc:function(d,c,e,a,b){if((c/=b/2)<1){return -a/2*(Math.sqrt(1-c*c)-1)+e}return a/2*(Math.sqrt(1-(c-=2)*c)+1)+e},easeInElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b)==1){return p+a}if(!c){c=b*0.3}if(n<Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return -(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+p},easeOutElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b)==1){return p+a}if(!c){c=b*0.3}if(n<Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}return n*Math.pow(2,-10*e)*Math.sin((e*b-d)*(2*Math.PI)/c)+a+p},easeInOutElastic:function(o,e,p,a,b){var d=1.70158;var c=0;var n=a;if(e==0){return p}if((e/=b/2)==2){return p+a}if(!c){c=b*(0.3*1.5)}if(n<Math.abs(a)){n=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/n)}if(e<1){return -0.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c))+p}return n*Math.pow(2,-10*(e-=1))*Math.sin((e*b-d)*(2*Math.PI)/c)*0.5+a+p},easeInBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*(d/=b)*d*((c+1)*d-c)+l},easeOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}return a*((d=d/b-1)*d*((c+1)*d+c)+1)+l},easeInOutBack:function(e,d,l,a,b,c){if(c==undefined){c=1.70158}if((d/=b/2)<1){return a/2*(d*d*(((c*=(1.525))+1)*d-c))+l}return a/2*((d-=2)*d*(((c*=(1.525))+1)*d+c)+2)+l},easeInBounce:function(d,c,e,a,b){return a-j.easing.easeOutBounce(d,b-c,0,a,b)+e},easeOutBounce:function(d,c,e,a,b){if((c/=b)<(1/2.75)){return a*(7.5625*c*c)+e}else{if(c<(2/2.75)){return a*(7.5625*(c-=(1.5/2.75))*c+0.75)+e}else{if(c<(2.5/2.75)){return a*(7.5625*(c-=(2.25/2.75))*c+0.9375)+e}else{return a*(7.5625*(c-=(2.625/2.75))*c+0.984375)+e}}}},easeInOutBounce:function(d,c,e,a,b){if(c<b/2){return j.easing.easeInBounce(d,c*2,0,a,b)*0.5+e}return j.easing.easeOutBounce(d,c*2-b,0,a,b)*0.5+a*0.5+e}})})(jQuery);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);captureMouse();var v_divname;var v_text;var v_title;var v_xoffset;var v_yoffset;var v_backcolor;var v_bordercolor;var v_textcolor;var v_titletextcolor;var v_width;var v_border;var v_title_padding;var v_content_padding;var v_fontface;var v_fontsize;var v_titlefontsize;var v_xcoordinate=0;var v_ycoordinate=0;var v_visible=0;var v_havemouse=0;var v_layer=null;function tooltip(c,b,a){init_tooltip();v_title=b;v_text=c;parseCommands(a);if(v_layer){v_layer=getLayer(v_divname)}if(!(v_layer=createDivContainer())){return false}mainMethod()}function init_tooltip(){v_divname="tiplayer";v_text="Default Text";v_title="";v_xoffset=15;v_yoffset=15;v_backcolor="#FFFFCC";v_bordercolor="#FFCC66";v_textcolor="#000000";v_titletextcolor="#000000";v_width=300;v_border=2;v_title_padding="1px";v_content_padding="1px 3px";v_fontface="Arial, Helvetica, Sans-Serif";v_fontsize=14;v_titlefontsize=14;v_visible=0;v_layer=null}function parseCommands(commands){if(commands!=null){var comArray=commands.split(",");for(var i=0;i<comArray.length;i++){var args=comArray[i].split(":");eval("v_"+trimWhitespace(args[0])+'="'+trimWhitespace(args[1])+'"')}}}function hideTip(){if(v_visible==1){if(v_layer!=null){v_layer.style.visibility="hidden";v_visible=0}}return true}function mainMethod(){v_visible=0;var a=makeHTML(v_text,v_title);createPopup(a);if(v_havemouse==1){positionLayer();v_visible=1;v_layer.style.visibility="visible"}}function makeHTML(e,d){var b="width:"+v_width+"px;";b+="border:"+v_border+"px solid "+v_bordercolor+";";b+="background-color:"+v_backcolor+";";b+="font-family:"+v_fontface+";";b+="font-size:"+v_fontsize+"px;";var f="background-color:"+v_bordercolor+";";f+="padding:"+v_title_padding+";";f+="color:"+v_titletextcolor+";";var c="padding:"+v_content_padding+";";c+="color:"+v_textcolor+";";var a='<div id="skinnytip_container" style="'+b+'">';if(d!=null&&d.length>0){a+='<div id="skinnytip_title" style="'+f+'">'+d+"</div>"}a+='<div id="skinnytip_content" style="'+c+'">'+e+"</div>";a+="</div>";return a}function positionLayer(){var b=300;var a=300;b=horizontalPlacement();a=verticalPlacement();v_layer.style.left=b+"px";v_layer.style.top=a+"px"}function mouseMoveHandler(a){if(!a){a=event}if(a.clientX){v_xcoordinate=mouseX(a);v_ycoordinate=mouseY(a);v_havemouse=1}if(v_visible==1){positionLayer()}}function mouseX(a){if(a.pageX){return a.pageX}else{if(a.clientX){return a.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)}else{return null}}}function mouseY(a){if(a.pageY){return a.pageY}else{if(a.clientY){return a.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{return null}}}function captureMouse(){document.onmousemove=mouseMoveHandler}function createPopup(c){var b=v_width;var f;var d;f=createBackLayer(b,d++);f+='<div style="position: absolute; top: 0; left: 0; width: '+b+"px; z-index: "+d+';">'+c+"</div>";if(typeof v_layer.innerHTML!="undefined"){v_layer.innerHTML=f}var e=self.document.getElementById("backdrop");var a=self.document.getElementById("skinnytip_container");e.height=a.offsetHeight}function createBackLayer(a,b){return'<iframe id="backdrop" frameborder="0" scrolling="no" width="'+a+'" height="0" style="z-index: '+b+'; filter: Beta(Style=0,Opacity=0);"><p></iframe>'}function horizontalPlacement(){placeX=v_xcoordinate+v_xoffset;return placeX}function verticalPlacement(){return v_ycoordinate+v_yoffset}function createDivContainer(){var a=self.document.getElementById(v_divname);return a}function trimWhitespace(a){while(a.charAt(0)==(" ")){a=a.substring(1)}while(a.charAt(a.length-1)==" "){a=a.substring(0,a.length-1)}return a}jQuery(function(){memory=new Object;$.tablesorter.addWidget({id:"remember",format:function(b){var a=b.config.sortList;if(a.length>0){memory[$(b).attr("id")]=a}else{var a=memory[$(b).attr("id")];if(a&&a.length>0){jQuery(b).trigger("sorton",[a])}}}})});function find_bounds(m){var p;var j=999;var e=-999;var k=999;var g=-999;var n=0;var b=0;var l=[];var a=[];for(var f=0;f<m.length;f++){p=m[f].getPoint();l[f]=p.lat();a[f]=p.lng();j=Math.min(j,p.lat());e=Math.max(e,p.lat());k=Math.min(k,p.lng());g=Math.max(g,p.lng());n+=p.lat();b+=p.lng()}var o=new Stats(l);var h=new Stats(a);var c=0;var d=0;if(m.length>0){c=n/m.length;d=b/m.length}return[o,h]}function zoom_to_region(f){var d=find_bounds(region_groups[f]);var b=new GLatLng(d[0].min-0.001,d[1].min-0.001);var e=new GLatLng(d[0].max+0.001,d[1].max+0.001);var a=new GLatLngBounds(b,e);var c=map.getBoundsZoomLevel(a);c=Math.max(c,ZOOM_THRESH);c=Math.min(c,15);map.closeInfoWindow();map.setZoom(c);map.setCenter(virtualCenter(a.getCenter(),-sidebar_width))}var search_list;function forEach(b,c){for(var a=0;a<b.length;a++){c(b[a])}}function showAddress(a,b){if(!geocoder){return}var c=$("input[@name='searchtype']:checked").val();if(b!=null){c=1}if(c==1){site_search(a,b)}else{geocoder.getLocations(a,function(d){var g=d.Status.code==200;var h="";if(g){h+='<br /><table class="sortable" cellspacing="0"><thead><tr><th><a href=#>Location</a></th></tr></thead>'}else{h+='No matches found for <i>"'+a+'"</i>.';$("#searchresults").html(h);return}var e;for(var f=0;f<d.Placemark.length;f++){map.setZoom(Math.min(14,Math.max(5,2+2*d.Placemark[f].AddressDetails.Accuracy)));e="map.setCenter(virtualCenter(new GLatLng("+d.Placemark[f].Point.coordinates[1]+", "+d.Placemark[f].Point.coordinates[0]+"),-sidebar_width))";h+='<tr><td><a href="javascript:'+e+'">'+d.Placemark[f].address+"</a></td></tr>"}h+="</table>";$("#searchresults").html(h);if(d.Placemark.length==1){map.setCenter(virtualCenter(new GLatLng(d.Placemark[0].Point.coordinates[1],d.Placemark[0].Point.coordinates[0]),Math.min(14,Math.max(5,2+2*d.Placemark[0].AddressDetails.Accuracy)),-sidebar_width))}$(document).ready(function(){$("#searchresults table").tablesorter({widgets:["remember"]})})})}}function site_search(a,b){var c=encodeURIComponent(a);if(b!=null){c=b+"?"+c}$.ajax({type:"GET",url:"/search_sites.php",data:c,dataType:"xml",success:function(k,h){$("#searchresults").html("<br /><h4>Search Results</h4>");var g=[];var j=0;var e;var o;var l;var m;var d=0;var f=0;var n=document.getElementById("cdm_only").checked;search_list=[];if($(k).find("energy_site").length==0){g[j++]='No matches found for <i>"'+a+'"</i>.'}else{g[j++]='<table class="sortable" cellspacing="0"><thead><tr><th><a href=#>Project Name</a></th><th style="text-align:center"><a href=#>Type</a></th></tr></thead>';$(k).find("energy_site").each(function(){e=$(this).find("name").text();o=$(this).find("type").text();l=find_marker_by_id(energy_markers,$(this).find("id").text());if(l>=0){if(marker_passes_filter(energy_markers[l],true,n)){m=energy_markers[l].marker.getIcon().image;search_list.push(energy_markers[l].clone());g[j++]='<tr onmouseover="grow_marker('+d+', search_list, true)" onmouseout="shrink_marker('+d+', search_list, true)"><td>';g[j++]='<a href="javascript:click_sidebar_link('+d+', search_list, true)">'+decodeURIComponent(e)+"</a>";g[j++]='</td><td align="right" sorttable_customkey="'+m+'">';g[j++]='<img class="sidebar_icon" src="'+m+'" />';g[j++]="</td></tr>";d++}else{f++}}});g[j++]="</table>"}if(d==0){g=['No matches found for <i>"'+a+'"</i>'];if(f>0){g[0]+=" but there were matches which met your query but were rejected due to your current filter settings. If you wish to see these results please change your filter settings and submit your search again."}else{g[0]+="."}}$("#searchresults").append(g.join(""));delete g;$(document).ready(function(){$("#sbText table").tablesorter({sortList:[[0,0]]})})}})}function find_marker_by_id(b,c){for(var a=0;a<b.length;a++){if(b[a].source_id==c){return a}}return -1}function marker_is_in_current_window(a,b){return b.containsLatLng(a.getLatLng())}function get_visible_markers_in_group(e){var d=[];var c=map.getBounds();if(sidebar.isVisible){var b=map.fromDivPixelToLatLng(new GPoint(sidebar_width-3,0)).lng();c.extend(new GLatLng(c.getCenter().lat(),b))}for(var a=0;a<e.length;a++){if(!e[a].marker.isHidden()){if(marker_is_in_current_window(e[a].marker,c)){d.push(e[a])}}}return d}function set_visible_energy_marker(b){for(var a=0;a<energy_markers.length;a++){if(energy_markers.source_id==b.source_id){energy_markers[a].marker=b.marker;return}}}function set_visible_region_marker(b){for(var a=0;a<region_markers.length;a++){if(region_markers.region_id==b.region_id){region_markers[a].marker=b.marker;return}}}var date_is_enabled=0;var lo_year=0;var hi_year=3000;jQuery(document).ready(function(){jQuery("#datefilter select").change(onSelectChange)});function onSelectChange(){date_is_enabled=1;var a=jQuery("#datefilter_lo option:selected");var b=jQuery("#datefilter_hi option:selected");lo_year=a.val();hi_year=b.val();updateFilter()}function turn_off_group(b){for(var a=0;a<b.length;a++){b[a].marker.hide()}}function turn_on_group(b){for(var a=0;a<b.length;a++){b[a].marker.show()}}function marker_passes_filter(b,d,e){var a=false;var c;if(e==null){e=false}c=document.getElementById("population"+b.pop_category);if(c==null){a=true}else{a=c.checked}if(d){if(e&&a){a=b.is_cdm}if(date_is_enabled&&a){a=b.datecode<=hi_year&&b.datecode>=lo_year}if(a){c=document.getElementById(b.type);if(c==null){a=false}else{a=c.checked}}}return a}function turn_on_group_filter(d,b){var c=false;if(document.getElementById("cdm_only")!=null){c=document.getElementById("cdm_only").checked}for(var a=0;a<d.length;a++){if(marker_passes_filter(d[a],b,c)){d[a].marker.show()}else{d[a].marker.hide()}}}function updateFilter(){if(map.getZoom()<ZOOM_THRESH){turn_on_group_filter(region_markers,false)}else{turn_on_group_filter(energy_markers,true)}populate_sidebar()}var GROW_AMOUNT=2;var visible_regions;var visible_energy;var orig_marker;var marker_list;var curr_index=-1;var is_energy_list=false;function click_sidebar_link(b,c,a){if(c.length<=b){return}if(a==null){a=false}if(curr_index>=0){if(a){shrink_marker(b,c,true,true)}else{shrink_marker(curr_index,global_marker_list,a,true)}}GEvent.trigger(c[b].marker,"click");if(a){map.setZoom(10);map.setCenter(virtualCenter(c[b].marker.getLatLng(),-sidebar_width))}}function populate_sidebar(){if(curr_index>=0){shrink_marker(curr_index)}var b;var c;var a="";var d;global_marker_list=[];a="";if(map.getZoom()>=ZOOM_THRESH){is_energy_list=true;visible_energy=get_visible_markers_in_group(energy_markers);a+='<table class="sortable" cellspacing="0"><thead><tr><th><a href=#>Project Name</a></th><th><a href=#>Cat</a></th></tr></thead>';for(c=0;c<visible_energy.length;c++){global_marker_list.push(visible_energy[c].clone());b=visible_energy[c].marker.getTitle();d=visible_energy[c].marker.getIcon().image;b=b.replace(/ /g,"&nbsp;");region_flag=0;b=b.replace(/&nbsp;/g," ");a+='<tr onmouseover="grow_marker('+c+', global_marker_list)" onmouseout="shrink_marker('+c+', global_marker_list)"><td><a href="javascript:click_sidebar_link('+c+', visible_energy)">'+b+'</a></td><td sorttable_customkey="'+d+'"><img class="sidebar_icon" src="'+d+'" /></td></tr>'}if(visible_energy.length==0){a="No projects are visible"}}else{is_energy_list=false;visible_regions=get_visible_markers_in_group(region_markers);a+="";if(visible_regions.length>0){a+='<table class="sortable" cellspacing="0"><thead><tr><th><a href=#>Region Name</a></th><th><a href=#>Country</a></th></tr></thead>'}for(c=0;c<visible_regions.length;c++){global_marker_list.push(visible_regions[c].clone());b=visible_regions[c].marker.getTitle();b=b.replace(/ /g,"&nbsp;");region_flag=1;b=b.replace(/&nbsp;/g," ");a+='<tr onmouseover="grow_marker('+c+', global_marker_list)" onmouseout="shrink_marker('+c+', global_marker_list)"><td><a href="javascript:click_sidebar_link('+c+', visible_regions)">'+b+"</a></td><td>"+visible_regions[c].country+"</td></tr>"}if(visible_regions.length==0){a="No regions are visible"}}document.getElementById("sbText").innerHTML=a+"</tbody></table>";$(document).ready(function(){$("#sbText table").tablesorter({widgets:["remember"]})})}function grow_marker(e,f,a){if(info_window_is_open!=-1){return}if(curr_index>=0){shrink_marker(curr_index,f,a)}var b=f[e].marker;map.removeOverlay(b);orig_marker=f[e].clone();var d=b.getIcon();d.iconSize.width*=GROW_AMOUNT;d.iconSize.height*=GROW_AMOUNT;if(is_energy_list){d.iconAnchor=new GPoint(d.iconSize.width/2,d.iconSize.height)}else{d.iconAnchor=new GPoint(d.iconSize.width*0.06,d.iconSize.height)}var c={icon:d,title:b.getTitle()};f[e].marker=new GMarker(b.getLatLng(),c);if(a){search_list[e]=f[e].clone()}else{if(is_energy_list){set_visible_energy_marker(f[e])}else{set_visible_region_marker(f[e])}}map.addOverlay(f[e].marker);curr_index=e}function shrink_marker(e,g,a,f){if(g==null){return}if(a==null){a=false}if(f==null){f=false}if(info_window_is_open!=-1&&!f){return}var b=g[e].marker;map.removeOverlay(b);var d=b.getIcon();d.iconSize.width/=GROW_AMOUNT;d.iconSize.height/=GROW_AMOUNT;if(is_energy_list){d.iconAnchor=new GPoint(d.iconSize.width/2,d.iconSize.height)}else{d.iconAnchor=new GPoint(d.iconSize.width*0.06,d.iconSize.height)}var c={icon:d,title:b.getTitle()};g[e].marker=orig_marker.marker;map.addOverlay(orig_marker.marker);if(a){search_list[e]=orig_marker.clone();if(map.getZoom()>ZOOM_THRESH){orig_marker.marker.show()}}else{if(is_energy_list){set_visible_energy_marker(g[e])}else{set_visible_region_marker(g[e])}orig_marker.marker.show()}curr_index=-1};