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

var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

/**
 * Set the variable that indicates if JavaScript behaviors should be applied
 */
Drupal.jsEnabled = true;

/**
 * Attach all registered behaviors to a page element.
 *
 * Behaviors are event-triggered actions that attach to page elements, enhancing
 * default non-Javascript UIs. Behaviors are registered in the Drupal.behaviors
 * object as follows:
 * @code
 *    Drupal.behaviors.behaviorName = function () {
 *      ...
 *    };
 * @endcode
 *
 * Drupal.attachBehaviors is added below to the jQuery ready event and so
 * runs on initial page load. Developers implementing AHAH/AJAX in their
 * solutions should also call this function after new page content has been
 * loaded, feeding in an element to be processed, in order to attach all
 * behaviors to the new content.
 *
 * Behaviors should use a class in the form behaviorName-processed to ensure
 * the behavior is attached only once to a given element. (Doing so enables
 * the reprocessing of given elements, which may be needed on occasion despite
 * the ability to limit behavior attachment to a particular element.)
 *
 * @param context
 *   An element to attach behaviors to. If none is given, the document element
 *   is used.
 */
Drupal.attachBehaviors = function(context) {
  context = context || document;
  // Execute all of them.
  jQuery.each(Drupal.behaviors, function() {
    this(context);
  });
};

/**
 * Encode special characters in a plain-text string for display as HTML.
 */
Drupal.checkPlain = function(str) {
  str = String(str);
  var replace = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
  for (var character in replace) {
    var regex = new RegExp(character, 'g');
    str = str.replace(regex, replace[character]);
  }
  return str;
};

/**
 * Translate strings to the page language or a given language.
 *
 * See the documentation of the server-side t() function for further details.
 *
 * @param str
 *   A string containing the English string to translate.
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 * @return
 *   The translated string.
 */
Drupal.t = function(str, args) {
  // Fetch the localized version of the string.
  if (Drupal.locale.strings && Drupal.locale.strings[str]) {
    str = Drupal.locale.strings[str];
  }

  if (args) {
    // Transform arguments before inserting them
    for (var key in args) {
      switch (key.charAt(0)) {
        // Escaped only
        case '@':
          args[key] = Drupal.checkPlain(args[key]);
        break;
        // Pass-through
        case '!':
          break;
        // Escaped and placeholder
        case '%':
        default:
          args[key] = Drupal.theme('placeholder', args[key]);
          break;
      }
      str = str.replace(key, args[key]);
    }
  }
  return str;
};

/**
 * Format a string containing a count of items.
 *
 * This function ensures that the string is pluralized correctly. Since Drupal.t() is
 * called by this function, make sure not to pass already-localized strings to it.
 *
 * See the documentation of the server-side format_plural() function for further details.
 *
 * @param count
 *   The item count to display.
 * @param singular
 *   The string for the singular case. Please make sure it is clear this is
 *   singular, to ease translation (e.g. use "1 new comment" instead of "1 new").
 *   Do not use @count in the singular string.
 * @param plural
 *   The string for the plural case. Please make sure it is clear this is plural,
 *   to ease translation. Use @count in place of the item count, as in "@count
 *   new comments".
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 *   Note that you do not need to include @count in this array.
 *   This replacement is done automatically for the plural case.
 * @return
 *   A translated string.
 */
Drupal.formatPlural = function(count, singular, plural, args) {
  var args = args || {};
  args['@count'] = count;
  // Determine the index of the plural form.
  var index = Drupal.locale.pluralFormula ? Drupal.locale.pluralFormula(args['@count']) : ((args['@count'] == 1) ? 0 : 1);

  if (index == 0) {
    return Drupal.t(singular, args);
  }
  else if (index == 1) {
    return Drupal.t(plural, args);
  }
  else {
    args['@count['+ index +']'] = args['@count'];
    delete args['@count'];
    return Drupal.t(plural.replace('@count', '@count['+ index +']'));
  }
};

/**
 * Generate the themed representation of a Drupal object.
 *
 * All requests for themed output must go through this function. It examines
 * the request and routes it to the appropriate theme function. If the current
 * theme does not provide an override function, the generic theme function is
 * called.
 *
 * For example, to retrieve the HTML that is output by theme_placeholder(text),
 * call Drupal.theme('placeholder', text).
 *
 * @param func
 *   The name of the theme function to call.
 * @param ...
 *   Additional arguments to pass along to the theme function.
 * @return
 *   Any data the theme function returns. This could be a plain HTML string,
 *   but also a complex object.
 */
Drupal.theme = function(func) {
  for (var i = 1, args = []; i < arguments.length; i++) {
    args.push(arguments[i]);
  }

  return (Drupal.theme[func] || Drupal.theme.prototype[func]).apply(this, args);
};

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
Drupal.parseJson = function (data) {
  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
    return { status: 0, data: data.length ? data : Drupal.t('Unspecified error') };
  }
  return eval('(' + data + ');');
};

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
Drupal.freezeHeight = function () {
  Drupal.unfreezeHeight();
  var div = document.createElement('div');
  $(div).css({
    position: 'absolute',
    top: '0px',
    left: '0px',
    width: '1px',
    height: $('body').css('height')
  }).attr('id', 'freeze-height');
  $('body').append(div);
};

/**
 * Unfreeze the body height
 */
Drupal.unfreezeHeight = function () {
  $('#freeze-height').remove();
};

/**
 * Wrapper around encodeURIComponent() which avoids Apache quirks (equivalent of
 * drupal_urlencode() in PHP). This function should only be used on paths, not
 * on query string arguments.
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

/**
 * Get the text selection in a textarea.
 */
Drupal.getSelection = function (element) {
  if (typeof(element.selectionStart) != 'number' && document.selection) {
    // The current selection
    var range1 = document.selection.createRange();
    var range2 = range1.duplicate();
    // Select all text.
    range2.moveToElementText(element);
    // Now move 'dummy' end point to end point of original range.
    range2.setEndPoint('EndToEnd', range1);
    // Now we can calculate start and end points.
    var start = range2.text.length - range1.text.length;
    var end = start + range1.text.length;
    return { 'start': start, 'end': end };
  }
  return { 'start': element.selectionStart, 'end': element.selectionEnd };
};

/**
 * Build an error message from ahah response.
 */
Drupal.ahahError = function(xmlhttp, uri) {
  if (xmlhttp.status == 200) {
    if (jQuery.trim(xmlhttp.responseText)) {
      var message = Drupal.t("An error occurred. \n@uri\n@text", {'@uri': uri, '@text': xmlhttp.responseText });
    }
    else {
      var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri });
    }
  }
  else {
    var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
  }
  return message.replace(/\n/g, '<br />');
}

// Global Killswitch on the <html> element
$(document.documentElement).addClass('js');
// Attach all behaviors.
$(document).ready(function() {
  Drupal.attachBehaviors(this);
});

/**
 * The default themes.
 */
Drupal.theme.prototype = {

  /**
   * Formats text for emphasized display in a placeholder inside a sentence.
   *
   * @param str
   *   The text to format (plain-text).
   * @return
   *   The formatted text (html).
   */
  placeholder: function(str) {
    return '<em>' + Drupal.checkPlain(str) + '</em>';
  }
};
;
Drupal.locale = { 'pluralFormula': function($n) { return Number(($n!=1)); }, 'strings': {"Unspecified error":"Ospecificerat fel","none":"ingen","None":"Ingen","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Den valda filen %filename kan inte laddas upp. Endast filer med f\u00f6ljande \u00e4ndelser \u00e4r till\u00e5tna: %extensions.","Automatic alias":"Automatiskt alias","Anonymous":"G\u00e4st","Edit":"Redigera","Published":"Publicerad","An error occurred at @path.":"Ett fel har uppst\u00e5tt p\u00e5 @path.","jQuery UI Tabs: Mismatching fragment identifier.":"jQuery UI Tabs: Identifieraren f\u00f6r fragment st\u00e4mmer inte \u00f6verens.","jQuery UI Tabs: Not enough arguments to add tab.":"jQuery UI Tabs: Inte tillr\u00e4ckligt med argument f\u00f6r att l\u00e4gga till flik.","Promoted to front page":"Publicerad p\u00e5 f\u00f6rsta sidan","Close":"St\u00e4ng","Drag to re-order":"Drag f\u00f6r att ordna om","Changes made in this table will not be saved until the form is submitted.":"\u00c4ndringar som g\u00f6rs i denna tabell sparas inte f\u00f6rr\u00e4n formul\u00e4ret skickas.","Select all rows in this table":"Markera alla rader i tabellen","Deselect all rows in this table":"Avmarkera alla rader i tabellen","Testing clean URLs...":"Testar rena URL:er...","Your server has been successfully tested to support this feature.":"Din server har testats och har st\u00f6d f\u00f6r denna funktion.","Your system configuration does not currently support this feature. The \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003ehandbook page on Clean URLs\u003c\/a\u003e has additional troubleshooting information.":"Din systemkonfiguration har f\u00f6r n\u00e4rvarande inte st\u00f6d f\u00f6r denna funktion. \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003eHandboksidan om Rena URL:er\u003c\/a\u003e har mer information om fels\u00f6kning.","Not published":"Inte publicerad","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"\u00c4ndringarna i dessa block kommer inte att sparas tills \u003cem\u003eSpara block\u003c\/em\u003e knappen klickats.","An error occurred. \n@uri\n@text":"Ett fel intr\u00e4ffade. \n@uri\n@text","An error occurred. \n@uri\n(no information available).":"Ett fel intr\u00e4ffade. \n@uri\n(ingen information tillg\u00e4nglig).","An HTTP error @status occurred. \n@uri":"Ett HTTP-fel intr\u00e4ffade: @status. \n@uri","Split summary at cursor":"Avdela sammanfattning vid mark\u00f6ren","Join summary":"L\u00e4gg ihop sammanfattning"} };;

$(document).ready(function() {

  // Attach onclick event to document only and catch clicks on all elements.
  $(document.body).click(function(event) {
    // Catch only the first parent link of a clicked element.
    $(event.target).parents("a:first,area:first").andSelf().filter("a,area").each(function() {

      var ga = Drupal.settings.googleanalytics;
      // Expression to check for absolute internal links.
      var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
      // Expression to check for special links like gotwo.module /go/* links.
      var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
      // Expression to check for download links.
      var isDownload = new RegExp("\\.(" + ga.trackDownloadExtensions + ")$", "i");

      // Is the clicked URL internal?
      if (isInternal.test(this.href)) {
        // Is download tracking activated and the file extension configured for download tracking?
        if (ga.trackDownload && isDownload.test(this.href)) {
          // Download link clicked.
          var extension = isDownload.exec(this.href);
          _gaq.push(["_trackEvent", "Downloads", extension[1].toUpperCase(), this.href.replace(isInternal, '')]);
        }
        else if (isInternalSpecial.test(this.href)) {
          // Keep the internal URL for Google Analytics website overlay intact.
          _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]);
        }
      }
      else {
        if (ga.trackMailto && $(this).is("a[href^=mailto:],area[href^=mailto:]")) {
          // Mailto link clicked.
          _gaq.push(["_trackEvent", "Mails", "Click", this.href.substring(7)]);
        }
        else if (ga.trackOutgoing && this.href) {
          if (ga.trackOutboundAsPageview) {
            // Track all external links as page views after URL cleanup.
            // Currently required, if click should be tracked as goal.
            _gaq.push(["_trackPageview", '/outbound/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--')]);
          }
          else {
            // External link clicked.
            _gaq.push(["_trackEvent", "Outbound links", "Click", this.href]);
          }
        }
      }
    });
  });
});
;
// $Id: mollom.js,v 1.2.2.13 2010/08/07 02:49:44 dries Exp $
(function ($) {

/**
 * Open Mollom privacy policy link in a new window.
 *
 * Required for valid XHTML Strict markup.
 */
Drupal.behaviors.mollomPrivacy = function (context) {
  $('.mollom-privacy a', context).click(function () {
    this.target = '_blank';
  });
};

/**
 * Attach click event handlers for CAPTCHA links.
 */
Drupal.behaviors.mollomCaptcha = function (context) {
  $('a.mollom-switch-captcha', context).click(getMollomCaptcha);
};

/**
 * Fetch a Mollom CAPTCHA and output the image or audio into the form.
 */
function getMollomCaptcha() {
  // Get the current requested CAPTCHA type from the clicked link.
  var newCaptchaType = $(this).hasClass('mollom-audio-captcha') ? 'audio' : 'image';

  var context = $(this).parents('form');

  // Extract the Mollom session id from the form.
  var mollomSessionId = $('input.mollom-session-id', context).val();

  // Retrieve a CAPTCHA:
  $.getJSON(Drupal.settings.basePath + 'mollom/captcha/' + newCaptchaType + '/' + mollomSessionId,
    function (data) {
      if (!(data && data.content)) {
        return;
      }
      // Inject new CAPTCHA.
      $('.mollom-captcha-content', context).parent().html(data.content);
      // Update session id.
      $('input.mollom-session-id', context).val(data.session_id);
      // Add an onclick-event handler for the new link.
      Drupal.attachBehaviors(context);
      // Focus on the CATPCHA input.
      $('input[name="mollom[captcha]"]', context).focus();
    }
  );
  return false;
}

})(jQuery);
;
// $Id: panels.js,v 1.2.4.1 2009/10/05 22:40:35 merlinofchaos Exp $

(function ($) {
  Drupal.Panels = {};

  Drupal.Panels.autoAttach = function() {
    if ($.browser.msie) {
      // If IE, attach a hover event so we can see our admin links.
      $("div.panel-pane").hover(
        function() {
          $('div.panel-hide', this).addClass("panel-hide-hover"); return true;
        },
        function() {
          $('div.panel-hide', this).removeClass("panel-hide-hover"); return true;
        }
      );
      $("div.admin-links").hover(
        function() {
          $(this).addClass("admin-links-hover"); return true;
        },
        function(){
          $(this).removeClass("admin-links-hover"); return true;
        }
      );
    }
  };

  $(Drupal.Panels.autoAttach);
})(jQuery);
;
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.86 (05-APR-2010)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.6 or later
 */
(function($){var ver="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null};})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);;
// $Id: views_slideshow.js,v 1.1.2.1.2.38 2010/06/09 06:13:36 redndahead Exp $

/**
 *  @file
 *  A simple jQuery SingleFrame Div Slideshow Rotator.
 */

/**
 * This will set our initial behavior, by starting up each individual slideshow.
 */
Drupal.behaviors.viewsSlideshowSingleFrame = function (context) {
  $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() {
    var fullId = '#' + $(this).attr('id');
    var settings = Drupal.settings.viewsSlideshowSingleFrame[fullId];
    settings.targetId = '#' + $(fullId + " :first").attr('id');
    settings.paused = false;

    settings.opts = {
      speed:settings.speed,
      timeout:parseInt(settings.timeout),
      delay:parseInt(settings.delay),
      sync:settings.sync==1,
      random:settings.random==1,
      pause:false,
      allowPagerClickBubble:(settings.pager_hover==1 || settings.pager_click_to_page),
      prev:(settings.controls > 0)?'#views_slideshow_singleframe_prev_' + settings.vss_id:null,
      next:(settings.controls > 0)?'#views_slideshow_singleframe_next_' + settings.vss_id:null,
      pager:(settings.pager > 0)?'#views_slideshow_singleframe_pager_' + settings.vss_id:null,
      nowrap:parseInt(settings.nowrap),
      pagerAnchorBuilder: function(idx, slide) {
        var classes = 'pager-item pager-num-' + (idx+1);
        if (idx == 0) {
          classes += ' first';
        }
        if ($(slide).siblings().length == idx) {
          classes += ' last';
        }

        if (idx % 2) {
          classes += ' odd';
        }
        else {
          classes += ' even';
        }
        
        var theme = 'viewsSlideshowPager' + settings.pager_type;
        return Drupal.theme.prototype[theme] ? Drupal.theme(theme, classes, idx, slide, settings) : '';
      },
      after:function(curr, next, opts) {
        // Used for Image Counter.
        if (settings.image_count) {
          $('#views_slideshow_singleframe_image_count_' + settings.vss_id + ' span.num').html(opts.currSlide + 1);
          $('#views_slideshow_singleframe_image_count_' + settings.vss_id + ' span.total').html(opts.slideCount);
        }
      },
      before:function(curr, next, opts) {
        // Remember last slide.
        if (settings.remember_slide) {
          createCookie(settings.vss_id, opts.currSlide + 1, settings.remember_slide_days);
        }

        // Make variable height.
        if (settings.fixed_height == 0) {
          //get the height of the current slide
          var $ht = $(this).height();
          //set the container's height to that of the current slide
          $(this).parent().animate({height: $ht});
        }
      },
      cleartype:(settings.ie.cleartype == 'true')? true : false,
      cleartypeNoBg:(settings.ie.cleartypenobg == 'true')? true : false
    }
    
    // Set the starting slide if we are supposed to remember the slide
    if (settings.remember_slide) {
      var startSlide = readCookie(settings.vss_id);
      if (startSlide == null) {
        startSlide = 0;
      }
      settings.opts.startingSlide =  startSlide;
    }

    if (settings.pager_hover == 1) {
      settings.opts.pagerEvent = 'mouseover';
      settings.opts.pauseOnPagerHover = true;
    }

    if (settings.effect == 'none') {
      settings.opts.speed = 1;
    }
    else {
      settings.opts.fx = settings.effect;
    }

    // Pause on hover.
    if (settings.pause == 1) {
      $('#views_slideshow_singleframe_teaser_section_' + settings.vss_id).hover(function() {
        $(settings.targetId).cycle('pause');
      }, function() {
        if (settings.paused == false) {
          $(settings.targetId).cycle('resume');
        }
      });
    }

    // Pause on clicking of the slide.
    if (settings.pause_on_click == 1) {
      $('#views_slideshow_singleframe_teaser_section_' + settings.vss_id).click(function() { 
        viewsSlideshowSingleFramePause(settings);
      });
    }

    // Add additional settings.
		if (settings.advanced != "\n") {
      var advanced = settings.advanced.split("\n");
      for (i=0; i<advanced.length; i++) {
        var prop = '';
        var value = '';
        var property = advanced[i].split(":");
        for (j=0; j<property.length; j++) {
          if (j == 0) {
            prop = property[j];
          }
          else if (j == 1) {
            value = property[j];
          }
          else {
            value += ":" + property[j];
          }
        }

        // Need to evaluate so true, false and numerics aren't a string.
        if (value == 'true' || value == 'false' || IsNumeric(value)) {
          value = eval(value);
        }
        else {
          // Parse strings into functions.
          var func = value.match(/function\s*\((.*?)\)\s*\{(.*)\}/i);
          if (func) {
            value = new Function(func[1].match(/(\w+)/g), func[2]);
          }
        }
	
        // Call both functions if prop was set previously.
        if (typeof(value) == "function" && prop in settings.opts) {
          var callboth = function(before_func, new_func) {
            return function() {
              before_func.apply(null, arguments);
              new_func.apply(null, arguments);
            };
          };
          settings.opts[prop] = callboth(settings.opts[prop], value);
        }
        else {
          settings.opts[prop] = value;
        }
      }
    }
    
    $(settings.targetId).cycle(settings.opts);

    // Start Paused
    if (settings.start_paused) {
      viewsSlideshowSingleFramePause(settings);
    }

    // Show image count for people who have js enabled.
    $('#views_slideshow_singleframe_image_count_' + settings.vss_id).show();

    if (settings.controls > 0) {
      // Show controls for people who have js enabled browsers.
      $('#views_slideshow_singleframe_controls_' + settings.vss_id).show();
      
      $('#views_slideshow_singleframe_playpause_' + settings.vss_id).click(function(e) {
      	if (settings.paused) {
      	  viewsSlideshowSingleFrameResume(settings);
      	}
      	else {
      	  viewsSlideshowSingleFramePause(settings);
      	}
        e.preventDefault();
      });
    }
  });
}

// Pause the slideshow 
viewsSlideshowSingleFramePause = function (settings) {
  //make Resume translatable
  var resume = Drupal.t('Resume');

  $(settings.targetId).cycle('pause');
  if (settings.controls > 0) {
    $('#views_slideshow_singleframe_playpause_' + settings.vss_id)
      .addClass('views_slideshow_singleframe_play')
      .addClass('views_slideshow_play')
      .removeClass('views_slideshow_singleframe_pause')
      .removeClass('views_slideshow_pause')
      .text(resume);
  }
  settings.paused = true;
}

// Resume the slideshow
viewsSlideshowSingleFrameResume = function (settings) {
  $(settings.targetId).cycle('resume');
  if (settings.controls > 0) {
    $('#views_slideshow_singleframe_playpause_' + settings.vss_id)
      .addClass('views_slideshow_singleframe_pause')
      .addClass('views_slideshow_pause')
      .removeClass('views_slideshow_singleframe_play')
      .removeClass('views_slideshow_play')
      .text('Pause');
  }
  settings.paused = false;
}

Drupal.theme.prototype.viewsSlideshowPagerThumbnails = function (classes, idx, slide, settings) {
  var href = '#';
  if (settings.pager_click_to_page) {
    href = $(slide).find('a').attr('href');
  }
  return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>';
}

Drupal.theme.prototype.viewsSlideshowPagerNumbered = function (classes, idx, slide, settings) {
  var href = '#';
  if (settings.pager_click_to_page) {
    href = $(slide).find('a').attr('href');
  }
  return '<div class="' + classes + '"><a href="' + href + '">' + (idx+1) + '</a></div>';
}

// Verify that the value is a number.
function IsNumeric(sText) {
  var ValidChars = "0123456789";
  var IsNumber=true;
  var Char;

  for (var i=0; i < sText.length && IsNumber == true; i++) { 
    Char = sText.charAt(i); 
    if (ValidChars.indexOf(Char) == -1) {
      IsNumber = false;
    }
  }
  return IsNumber;
}

/**
 * Cookie Handling Functions
 */
function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else {
    var expires = "";
  }
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) {
      return c.substring(nameEQ.length,c.length);
    }
  }
  return null;
}

function eraseCookie(name) {
  createCookie(name,"",-1);
}
;
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(k(){B fI=O.30,62$=O.aN$;B v=O.30=O.aN$=k(1b,1P){C 2H v.fn.a3(1b,1P)};B eh=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,aO=/^.[^:#\\[\\.]*$/,1n;v.fn=v.6F={a3:k(1b,1P){1b=1b||18;if(1b.1w){u[0]=1b;u.N=1;C u}if(1q 1b=="1o"){B 1Z=eh.4P(1b);if(1Z&&(1Z[1]||!1P)){if(1Z[1])1b=v.7V([1Z[1]],1P);L{B E=18.aL(1Z[3]);if(E){if(E.id!=1Z[3])C v().1R(1b);C v(E)}1b=[]}}L C v(1P).1R(1b)}L if(v.33(1b))C v(18)[v.fn.3D?"3D":"5j"](1b);C u.ei(v.49(1b))},a1:"1.2.6",5Y:k(){C u.N},N:0,67:k(2P){C 2P==1n?v.49(u):u[2P]},4M:k(1T){B P=v(1T);P.aX=u;C P},ei:k(1T){u.N=0;3q.6F.2u.2Q(u,1T);C u},Y:k(19,2X){C v.Y(u,19,2X)},2f:k(E){B P=-1;C v.4v(E&&E.a1?E[0]:E,u)},1Y:k(K,W,H){B 1d=K;if(K.2G==28)if(W===1n)C u[0]&&v[H||"1Y"](u[0],K);L{1d={};1d[K]=W}C u.Y(k(i){U(K in 1d)v.1Y(H?u.1f:u,K,v.1y(u,1d[K],H,i,K))})},1C:k(4a,W){if((4a==\'3o\'||4a==\'2W\')&&5q(W)<0)W=1n;C u.1Y(4a,W,"44")},1v:k(1v){if(1q 1v!="2K"&&1v!=Q)C u.4Y().2O((u[0]&&u[0].4q||18).9D(1v));B P="";v.Y(1v||u,k(){v.Y(u.5F,k(){if(u.1w!=8)P+=u.1w!=1?u.df:v.fn.1v([u])})});C P},bl:k(T){if(u[0])v(T,u[0].4q).4u().5i(u[0]).4m(k(){B E=u;2D(E.2R)E=E.2R;C E}).2O(u);C u},jF:k(T){C u.Y(k(){v(u).f9().bl(T)})},5J:k(T){C u.Y(k(){v(u).bl(T)})},2O:k(){C u.7p(1S,R,S,k(E){if(u.1w==1)u.5z(E)})},fb:k(){C u.7p(1S,R,R,k(E){if(u.1w==1)u.5i(E,u.2R)})},7X:k(){C u.7p(1S,S,S,k(E){u.1V.5i(E,u)})},77:k(){C u.7p(1S,S,R,k(E){u.1V.5i(E,u.54)})},3E:k(){C u.aX||v([])},1R:k(1b){B 1T=v.4m(u,k(E){C v.1R(1b,E)});C u.4M(/[^+>] [^+>]/.1r(1b)||1b.2c("..")>-1?v.8S(1T):1T)},4u:k(1L){B P=u.4m(k(){if(v.1x.26&&!v.89(u)){B 4u=u.ek(R),1a=18.57("J");1a.5z(4u);C v.7V([1a.6K])[0]}L C u.ek(R)});B 4u=P.1R("*").9N().Y(k(){if(u[3Z]!=1n)u[3Z]=Q});if(1L===R)u.1R("*").9N().Y(k(i){if(u.1w==3)C;B 1L=v.G(u,"1L");U(B H in 1L)U(B 1t in 1L[H])v.M.1G(4u[i],H,1L[H][1t],1L[H][1t].G)});C P},2s:k(1b){C u.4M(v.33(1b)&&v.79(u,k(E,i){C 1b.2q(E,i)})||v.5E(1b,u))},2i:k(1b){if(1b.2G==28)if(aO.1r(1b))C u.4M(v.5E(1b,u,R));L 1b=v.5E(1b,u);B hl=1b.N&&1b[1b.N-1]!==1n&&!1b.1w;C u.2s(k(){C hl?v.4v(u,1b)<0:u!=1b})},1G:k(1b){C u.4M(v.8S(v.3m(u.67(),1q 1b==\'1o\'?v(1b):v.49(1b))))},is:k(1b){C!!1b&&v.5E(1b,u).N>0},jH:k(1b){C u.is("."+1b)},1h:k(W){if(W==1n){if(u.N){B E=u[0];if(v.1s(E,"4g")){B 2f=E.9j,5t=[],1d=E.1d,3C=E.H=="4g-3C";if(2f<0)C Q;U(B i=3C?2f:0,4o=3C?2f+1:1d.N;i<4o;i++){B 5H=1d[i];if(5H.3n){W=v.1x.26&&!5H.jJ.W.ds?5H.1v:5H.W;if(3C)C W;5t.2u(W)}}C 5t}L C(u[0].W||"").V(/\\r/g,"")}C 1n}if(W.2G==8L)W+=\'\';C u.Y(k(){if(u.1w!=1)C;if(W.2G==3q&&/a2|aR/.1r(u.H))u.8p=(v.4v(u.W,W)>=0||v.4v(u.K,W)>=0);L if(v.1s(u,"4g")){B 5t=v.49(W);v("5H",u).Y(k(){u.3n=(v.4v(u.W,5t)>=0||v.4v(u.1v,5t)>=0)});if(!5t.N)u.9j=-1}L u.W=W})},T:k(W){C W==1n?(u[0]?u[0].6K:Q):u.4Y().2O(W)},fe:k(W){C u.77(W).3G()},eq:k(i){C u.41(i,i+1)},41:k(){C u.4M(3q.6F.41.2Q(u,1S))},4m:k(19){C u.4M(v.4m(u,k(E,i){C 19.2q(E,i,E)}))},9N:k(){C u.1G(u.aX)},G:k(4a,W){B 27=4a.3g(".");27[1]=27[1]?"."+27[1]:"";if(W===1n){B G=u.ay("jM"+27[1]+"!",[27[0]]);if(G===1n&&u.N)G=v.G(u[0],4a);C G===1n&&27[1]?u.G(27[0]):G}L C u.2y("jN"+27[1]+"!",[27[0],W]).Y(k(){v.G(u,4a,W)})},5h:k(4a){C u.Y(k(){v.5h(u,4a)})},7p:k(2X,3b,9P,19){B 4u=u.N>1,1T;C u.Y(k(){if(!1T){1T=v.7V(2X,u.4q);if(9P)1T.9P()}B 9Q=u;if(3b&&v.1s(u,"3b")&&v.1s(1T[0],"7S"))9Q=u.5P("2w")[0]||u.5z(u.4q.57("2w"));B 4y=v([]);v.Y(1T,k(){B E=4u?v(u).4u(R)[0]:u;if(v.1s(E,"1D"))4y=4y.1G(E);L{if(E.1w==1)4y=4y.1G(v("1D",E).3G());19.2q(9Q,E)}});4y.Y(gk)})}};v.fn.a3.6F=v.fn;k gk(i,E){if(E.2S)v.5W({I:E.2S,5e:S,34:"1D"});L v.bg(E.1v||E.gE||E.6K||"");if(E.1V)E.1V.5c(E)}k 2x(){C+2H 7T}v.2a=v.fn.2a=k(){B 1l=1S[0]||{},i=1,N=1S.N,61=S,1d;if(1l.2G==jO){61=1l;1l=1S[1]||{};i=2}if(1q 1l!="2K"&&1q 1l!="k")1l={};if(N==i){1l=u;--i}U(;i<N;i++)if((1d=1S[i])!=Q)U(B K in 1d){B 2S=1l[K],4z=1d[K];if(1l===4z)gl;if(61&&4z&&1q 4z=="2K"&&!4z.1w)1l[K]=v.2a(61,2S||(4z.N!=Q?[]:{}),4z);L if(4z!==1n)1l[K]=4z}C 1l};B 3Z="v"+2x(),ev=0,aU={},ex=/z-?2f|mI-?jP|2t|bW|jQ-?2W/i,75=18.75||{};v.2a({jR:k(61){O.aN$=62$;if(61)O.30=fI;C v},33:k(fn){C!!fn&&1q fn!="1o"&&!fn.1s&&fn.2G!=3q&&/^[\\s[]?k/.1r(fn+"")},89:k(E){C E.2M&&!E.1O||E.4l&&E.4q&&!E.4q.1O},bg:k(G){G=v.6a(G);if(G){B 3u=18.5P("3u")[0]||18.2M,1D=18.57("1D");1D.H="1v/7l";if(v.1x.26)1D.1v=G;L 1D.5z(18.9D(G));3u.5i(1D,3u.2R);3u.5c(1D)}},1s:k(E,K){C E.1s&&E.1s.42()==K.42()},3j:{},G:k(E,K,G){E=E==O?aU:E;B id=E[3Z];if(!id)id=E[3Z]=++ev;if(K&&!v.3j[id])v.3j[id]={};if(G!==1n)v.3j[id][K]=G;C K?v.3j[id][K]:id},5h:k(E,K){E=E==O?aU:E;B id=E[3Z];if(K){if(v.3j[id]){4w v.3j[id][K];K="";U(K in v.3j[id])3I;if(!K)v.5h(E)}}L{3x{4w E[3Z]}3v(e){if(E.a7)E.a7(3Z)}4w v.3j[id]}},Y:k(2K,19,2X){B K,i=0,N=2K.N;if(2X){if(N==1n){U(K in 2K)if(19.2Q(2K[K],2X)===S)3I}L U(;i<N;)if(19.2Q(2K[i++],2X)===S)3I}L{if(N==1n){U(K in 2K)if(19.2q(2K[K],K,2K[K])===S)3I}L U(B W=2K[0];i<N&&19.2q(W,i,W)!==S;W=2K[++i]){}}C 2K},1y:k(E,W,H,i,K){if(v.33(W))W=W.2q(E,i);C W&&W.2G==8L&&H=="44"&&!ex.1r(K)?W+"4h":W},1W:{1G:k(E,3H){v.Y((3H||"").3g(/\\s+/),k(i,1W){if(E.1w==1&&!v.1W.3z(E.1W,1W))E.1W+=(E.1W?" ":"")+1W})},3G:k(E,3H){if(E.1w==1)E.1W=3H!=1n?v.79(E.1W.3g(/\\s+/),k(1W){C!v.1W.3z(3H,1W)}).h4(" "):""},3z:k(E,1W){C v.4v(1W,(E.1W||E).h7().3g(/\\s+/))>-1}},4Q:k(E,1d,19){B 4H={};U(B K in 1d){4H[K]=E.1f[K];E.1f[K]=1d[K]}19.2q(E);U(B K in 1d)E.1f[K]=4H[K]},1C:k(E,K,5D){if(K=="3o"||K=="2W"){B 1h,4G={4r:"8l",bf:"2F",1N:"7n"},4R=K=="3o"?["b2","c4"]:["81","c5"];k ag(){1h=K=="3o"?E.jS:E.jT;B 5K=0,45=0;v.Y(4R,k(){5K+=5q(v.44(E,"5K"+u,R))||0;45+=5q(v.44(E,"45"+u+"7b",R))||0});1h-=2v.9L(5K+45)}if(v(E).is(":3d"))ag();L v.4Q(E,4G,ag);C 2v.4o(0,1h)}C v.44(E,K,5D)},44:k(E,K,5D){B P,1f=E.1f;k 6A(E){if(!v.1x.4c)C S;B P=75.bh(E,Q);C!P||P.b5("6A")==""}if(K=="2t"&&v.1x.26){P=v.1Y(1f,"2t");C P==""?"1":P}if(v.1x.4K&&K=="1N"){B eB=1f.a9;1f.a9="0 jU jV";1f.a9=eB}if(K.1Z(/7g/i))K=5o;if(!5D&&1f&&1f[K])P=1f[K];L if(75.bh){if(K.1Z(/7g/i))K="7g";K=K.V(/([A-Z])/g,"-$1").35();B 7j=75.bh(E,Q);if(7j&&!6A(E))P=7j.b5(K);L{B 4Q=[],4U=[],a=E,i=0;U(;a&&6A(a);a=a.1V)4U.fE(a);U(;i<4U.N;i++)if(6A(4U[i])){4Q[i]=4U[i].1f.1N;4U[i].1f.1N="7n"}P=K=="1N"&&4Q[4U.N-1]!=Q?"58":(7j&&7j.b5(K))||"";U(i=0;i<4Q.N;i++)if(4Q[i]!=Q)4U[i].1f.1N=4Q[i]}if(K=="2t"&&P=="")P="1"}L if(E.7Q){B eG=K.V(/\\-(\\w)/g,k(4d,7u){C 7u.42()});P=E.7Q[K]||E.7Q[eG];if(!/^\\d+(4h)?$/i.1r(P)&&/^\\d/.1r(P)){B 1z=1f.1z,eA=E.af.1z;E.af.1z=E.7Q.1z;1f.1z=P||0;P=1f.jY+"4h";1f.1z=1z;E.af.1z=eA}}C P},7V:k(1T,1P){B P=[];1P=1P||18;if(1q 1P.57==\'1n\')1P=1P.4q||1P[0]&&1P[0].4q||18;v.Y(1T,k(i,E){if(!E)C;if(E.2G==8L)E+=\'\';if(1q E=="1o"){E=E.V(/(<(\\w+)[^>]*?)\\/>/g,k(4d,ej,5b){C 5b.1Z(/^(jZ|br|dt|2I|4J|2N|k0|6c|hr|k1|k2)$/i)?4d:ej+"></"+5b+">"});B 3O=v.6a(E).35(),J=1P.57("J");B 5J=!3O.2c("<2d")&&[1,"<4g dR=\'dR\'>","</4g>"]||!3O.2c("<k3")&&[1,"<e0>","</e0>"]||3O.1Z(/^<(k4|2w|k5|k6|k8)/)&&[1,"<3b>","</3b>"]||!3O.2c("<7S")&&[2,"<3b><2w>","</2w></3b>"]||(!3O.2c("<k9")||!3O.2c("<ka"))&&[3,"<3b><2w><7S>","</7S></2w></3b>"]||!3O.2c("<dt")&&[2,"<3b><2w></2w><dv>","</dv></3b>"]||v.1x.26&&[1,"J<J>","</J>"]||[0,"",""];J.6K=5J[1]+E+5J[2];2D(5J[0]--)J=J.9S;if(v.1x.26){B 2w=!3O.2c("<3b")&&3O.2c("<2w")<0?J.2R&&J.2R.5F:5J[1]=="<3b>"&&3O.2c("<2w")<0?J.5F:[];U(B j=2w.N-1;j>=0;--j)if(v.1s(2w[j],"2w")&&!2w[j].5F.N)2w[j].1V.5c(2w[j]);if(/^\\s/.1r(E))J.5i(1P.9D(E.1Z(/^\\s*/)[0]),J.2R)}E=v.49(J.5F)}if(E.N===0&&(!v.1s(E,"6S")&&!v.1s(E,"4g")))C;if(E[0]==1n||v.1s(E,"6S")||E.1d)P.2u(E);L P=v.3m(P,E)});C P},1Y:k(E,K,W){if(!E||E.1w==3||E.1w==8)C 1n;B 6r=!v.89(E),7m=W!==1n,26=v.1x.26;K=6r&&v.4G[K]||K;if(E.4l){B 3J=/1E|2S|1f/.1r(K);if(K=="3n"&&v.1x.4c)E.1V.9j;if(K in E&&6r&&!3J){if(7m){if(K=="H"&&v.1s(E,"4J")&&E.1V)bv"H hn kb\'t be kc";E[K]=W}if(v.1s(E,"6S")&&E.eW(K))C E.eW(K).df;C E[K]}if(26&&6r&&K=="1f")C v.1Y(E.1f,"kd",W);if(7m)E.59(K,""+W);B 1Y=26&&6r&&3J?E.86(K,2):E.86(K);C 1Y===Q?1n:1Y}if(26&&K=="2t"){if(7m){E.bW=1;E.2s=(E.2s||"").V(/bL\\([^)]*\\)/,"")+(56(W)+\'\'=="ke"?"":"bL(2t="+W*9q+")")}C E.2s&&E.2s.2c("2t=")>=0?(5q(E.2s.1Z(/2t=([^)]*)/)[1])/9q)+\'\':""}K=K.V(/-([a-z])/ig,k(4d,7u){C 7u.42()});if(7m)E[K]=W;C E[K]},6a:k(1v){C(1v||"").V(/^\\s+|\\s+$/g,"")},49:k(2p){B P=[];if(2p!=Q){B i=2p.N;if(i==Q||2p.3g||2p.8P||2p.2q)P[0]=2p;L 2D(i)P[--i]=2p[i]}C P},4v:k(E,2p){U(B i=0,N=2p.N;i<N;i++)if(2p[i]===E)C i;C-1},3m:k(3p,94){B i=0,E,5y=3p.N;if(v.1x.26){2D(E=94[i++])if(E.1w!=8)3p[5y++]=E}L 2D(E=94[i++])3p[5y++]=E;C 3p},8S:k(2p){B P=[],2L={};3x{U(B i=0,N=2p.N;i<N;i++){B id=v.G(2p[i]);if(!2L[id]){2L[id]=R;P.2u(2p[i])}}}3v(e){P=2p}C P},79:k(1T,19,f1){B P=[];U(B i=0,N=1T.N;i<N;i++)if(!f1!=!19(1T[i],i))P.2u(1T[i]);C P},4m:k(1T,19){B P=[];U(B i=0,N=1T.N;i<N;i++){B W=19(1T[i],i);if(W!=Q)P[P.N]=W}C P.80.2Q([],P)}});B 4p=kg.4p.35();v.1x={8Y:(4p.1Z(/.+(?:kh|it|ki|ie)[\\/: ]([\\d.]+)/)||[])[1],4c:/f4/.1r(4p),4K:/4K/.1r(4p),26:/26/.1r(4p)&&!/4K/.1r(4p),7h:/7h/.1r(4p)&&!/(kj|f4)/.1r(4p)};B 5o=v.1x.26?"5o":"f6";v.2a({bY:!v.1x.26||18.fg=="fh",4G:{"U":"kk","1i":"1W","7g":5o,f6:5o,5o:5o,kl:"km",kn:"nA",ko:"kp"}});v.Y({1Q:k(E){C E.1V},kq:k(E){C v.4F(E,"1V")},fN:k(E){C v.5w(E,2,"54")},fy:k(E){C v.5w(E,2,"7Z")},nw:k(E){C v.4F(E,"54")},kr:k(E){C v.4F(E,"7Z")},ks:k(E){C v.aw(E.1V.2R,E)},kt:k(E){C v.aw(E.2R)},f9:k(E){C v.1s(E,"ku")?E.kv||E.kw.18:v.49(E.5F)}},k(K,fn){v.fn[K]=k(1b){B P=v.4m(u,fn);if(1b&&1q 1b=="1o")P=v.5E(1b,P);C u.4M(v.8S(P))}});v.Y({2r:"2O",kx:"fb",5i:"7X",ky:"77",kz:"fe"},k(K,ff){v.fn[K]=k(){B 2X=1S;C u.Y(k(){U(B i=0,N=2X.N;i<N;i++)v(2X[i])[ff](u)})}});v.Y({kA:k(K){v.1Y(u,K,"");if(u.1w==1)u.a7(K)},1p:k(3H){v.1W.1G(u,3H)},bN:k(3H){v.1W.3G(u,3H)},kB:k(3H){v.1W[v.1W.3z(u,3H)?"3G":"1G"](u,3H)},3G:k(1b){if(!1b||v.2s(1b,[u]).r.N){v("*",u).1G(u).Y(k(){v.M.3G(u);v.5h(u)});if(u.1V)u.1V.5c(u)}},4Y:k(){v(">*",u).3G();2D(u.2R)u.5c(u.2R)}},k(K,fn){v.fn[K]=k(){C u.Y(fn,1S)}});v.Y(["gD","7b"],k(i,K){B H=K.35();v.fn[H]=k(5Y){C u[0]==O?v.1x.4K&&18.1O["b0"+K]||v.1x.4c&&O["95"+K]||18.fg=="fh"&&18.2M["b0"+K]||18.1O["b0"+K]:u[0]==18?2v.4o(2v.4o(18.1O["7z"+K],18.2M["7z"+K]),2v.4o(18.1O["2Y"+K],18.2M["2Y"+K])):5Y==1n?(u.N?v.1C(u[0],H):Q):u.1C(H,5Y.2G==28?5Y:5Y+"4h")}});k 2P(E,1y){C E[0]&&56(v.44(E[0],1y,R),10)||0}B 6e=v.1x.4c&&56(v.1x.8Y)<n5?"(?:[\\\\w*62-]|\\\\\\\\.)":"(?:[\\\\w\\kC-\\kE*62-]|\\\\\\\\.)",gh=2H 87("^>\\\\s*("+6e+"+)"),fo=2H 87("^("+6e+"+)(#)("+6e+"+)"),fp=2H 87("^([#.]?)("+6e+"*)");v.2a({4n:{"":k(a,i,m){C m[2]=="*"||v.1s(a,m[2])},"#":k(a,i,m){C a.86("id")==m[2]},":":{lt:k(a,i,m){C i<m[3]-0},gt:k(a,i,m){C i>m[3]-0},5w:k(a,i,m){C m[3]-0==i},eq:k(a,i,m){C m[3]-0==i},3p:k(a,i){C i==0},37:k(a,i,m,r){C i==r.N-1},g7:k(a,i){C i%2==0},g8:k(a,i){C i%2},"3p-85":k(a){C a.1V.5P("*")[0]==a},"37-85":k(a){C v.5w(a.1V.9S,1,"7Z")==a},"mZ-85":k(a){C!v.5w(a.1V.9S,2,"7Z")},1Q:k(a){C a.2R},4Y:k(a){C!a.2R},kI:k(a,i,m){C(a.gE||a.kK||v(a).1v()||"").2c(m[3])>=0},3d:k(a){C"2F"!=a.H&&v.1C(a,"1N")!="58"&&v.1C(a,"bf")!="2F"},2F:k(a){C"2F"==a.H||v.1C(a,"1N")=="58"||v.1C(a,"bf")=="2F"},kM:k(a){C!a.6U},6U:k(a){C a.6U},8p:k(a){C a.8p},3n:k(a){C a.3n||v.1Y(a,"3n")},1v:k(a){C"1v"==a.H},a2:k(a){C"a2"==a.H},aR:k(a){C"aR"==a.H},ba:k(a){C"ba"==a.H},6x:k(a){C"6x"==a.H},aG:k(a){C"aG"==a.H},gs:k(a){C"gs"==a.H},fl:k(a){C"fl"==a.H},4f:k(a){C"4f"==a.H||v.1s(a,"4f")},4J:k(a){C/4J|4g|f7|4f/i.1r(a.1s)},3z:k(a,i,m){C v.1R(m[3],a).N},5X:k(a){C/h\\d/i.1r(a.1s)},kQ:k(a){C v.79(v.2Z,k(fn){C a==fn.E}).N}}},gd:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2H 87("^([:.#]*)("+6e+"+)")],5E:k(4n,1T,2i){B 4H,2b=[];2D(4n&&4n!=4H){4H=4n;B f=v.2s(4n,1T,2i);4n=f.t.V(/^\\s*,\\s*/,"");2b=2i?1T=f.r:v.3m(2b,f.r)}C 2b},1R:k(t,1P){if(1q t!="1o")C[t];if(1P&&1P.1w!=1&&1P.1w!=9)C[];1P=1P||18;B P=[1P],2L=[],37,1s;2D(t&&37!=t){B r=[];37=t;t=v.6a(t);B 8u=S,66=gh,m=66.4P(t);if(m){1s=m[1].42();U(B i=0;P[i];i++)U(B c=P[i].2R;c;c=c.54)if(c.1w==1&&(1s=="*"||c.1s.42()==1s))r.2u(c);P=r;t=t.V(66,"");if(t.2c(" ")==0)gl;8u=R}L{66=/^([>+~])\\s*(\\w*)/i;if((m=66.4P(t))!=Q){r=[];B 3m={};1s=m[2].42();m=m[1];U(B j=0,6f=P.N;j<6f;j++){B n=m=="~"||m=="+"?P[j].54:P[j].2R;U(;n;n=n.54)if(n.1w==1){B id=v.G(n);if(m=="~"&&3m[id])3I;if(!1s||n.1s.42()==1s){if(m=="~")3m[id]=R;r.2u(n)}if(m=="+")3I}}P=r;t=v.6a(t.V(66,""));8u=R}}if(t&&!8u){if(!t.2c(",")){if(1P==P[0])P.8J();2L=v.3m(2L,P);r=P=[1P];t=" "+t.ga(1,t.N)}L{B 6Y=fo;B m=6Y.4P(t);if(m){m=[0,m[2],m[3],m[1]]}L{6Y=fp;m=6Y.4P(t)}m[2]=m[2].V(/\\\\/g,"");B E=P[P.N-1];if(m[1]=="#"&&E&&E.aL&&!v.89(E)){B 4L=E.aL(m[2]);if((v.1x.26||v.1x.4K)&&4L&&1q 4L.id=="1o"&&4L.id!=m[2])4L=v(\'[@id="\'+m[2]+\'"]\',E)[0];P=r=4L&&(!m[3]||v.1s(4L,m[3]))?[4L]:[]}L{U(B i=0;P[i];i++){B 5b=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(5b=="*"&&P[i].1s.35()=="2K")5b="6c";r=v.3m(r,P[i].5P(5b))}if(m[1]==".")r=v.ad(r,m[2]);if(m[1]=="#"){B 3f=[];U(B i=0;r[i];i++)if(r[i].86("id")==m[2]){3f=[r[i]];3I}r=3f}P=r}t=t.V(6Y,"")}}if(t){B 1h=v.2s(t,r);P=r=1h.r;t=v.6a(1h.t)}}if(t)P=[];if(P&&1P==P[0])P.8J();2L=v.3m(2L,P);C 2L},ad:k(r,m,2i){m=" "+m+" ";B 3f=[];U(B i=0;r[i];i++){B aI=(" "+r[i].1W+" ").2c(m)>=0;if(!2i&&aI||2i&&!aI)3f.2u(r[i])}C 3f},2s:k(t,r,2i){B 37;2D(t&&t!=37){37=t;B p=v.gd,m;U(B i=0;p[i];i++){m=p[i].4P(t);if(m){t=t.ms(m[0].N);m[2]=m[2].V(/\\\\/g,"");3I}}if(!m)3I;if(m[1]==":"&&m[2]=="2i")r=aO.1r(m[3])?v.2s(m[3],r,R).r:v(r).2i(m[3]);L if(m[1]==".")r=v.ad(r,m[2],2i);L if(m[1]=="["){B 3f=[],H=m[3];U(B i=0,6f=r.N;i<6f;i++){B a=r[i],z=a[v.4G[m[2]]||m[2]];if(z==Q||/1E|2S|3n/.1r(m[2]))z=v.1Y(a,m[2])||\'\';if((H==""&&!!z||H=="="&&z==m[5]||H=="!="&&z!=m[5]||H=="^="&&z&&!z.2c(m[5])||H=="$="&&z.ga(z.N-m[5].N)==m[5]||(H=="*="||H=="~=")&&z.2c(m[5])>=0)^2i)3f.2u(a)}r=3f}L if(m[1]==":"&&m[2]=="5w-85"){B 3m={},3f=[],1r=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.4P(m[3]=="g7"&&"2n"||m[3]=="g8"&&"2n+1"||!/\\D/.1r(m[3])&&"l9+"+m[3]||m[3]),3p=(1r[1]+(1r[2]||1))-0,37=1r[3]-0;U(B i=0,6f=r.N;i<6f;i++){B 69=r[i],1V=69.1V,id=v.G(1V);if(!3m[id]){B c=1;U(B n=1V.2R;n;n=n.54)if(n.1w==1)n.84=c++;3m[id]=R}B 1G=S;if(3p==0){if(69.84==37)1G=R}L if((69.84-37)%3p==0&&(69.84-37)/3p>=0)1G=R;if(1G^2i)3f.2u(69)}r=3f}L{B fn=v.4n[m[1]];if(1q fn=="2K")fn=fn[m[2]];if(1q fn=="1o")fn=9m("S||k(a,i){C "+fn+";}");r=v.79(r,k(E,i){C fn(E,i,m,r)},2i)}}C{r:r,t:t}},4F:k(E,4F){B ah=[],2b=E[4F];2D(2b&&2b!=18){if(2b.1w==1)ah.2u(2b);2b=2b[4F]}C ah},5w:k(2b,1X,4F,E){1X=1X||1;B 2P=0;U(;2b;2b=2b[4F])if(2b.1w==1&&++2P==1X)3I;C 2b},aw:k(n,E){B r=[];U(;n;n=n.54){if(n.1w==1&&n!=E)r.2u(n)}C r}});v.M={1G:k(E,3B,1t,G){if(E.1w==3||E.1w==8)C;if(v.1x.26&&E.8P)E=O;if(!1t.3P)1t.3P=u.3P++;if(G!=1n){B fn=1t;1t=u.4E(fn,k(){C fn.2Q(u,1S)});1t.G=G}B 1L=v.G(E,"1L")||v.G(E,"1L",{}),2g=v.G(E,"2g")||v.G(E,"2g",k(){if(1q v!="1n"&&!v.M.ap)C v.M.2g.2Q(1S.6w.E,1S)});2g.E=E;v.Y(3B.3g(/\\s+/),k(2f,H){B 27=H.3g(".");H=27[0];1t.H=27[1];B 53=1L[H];if(!53){53=1L[H]={};if(!v.M.3J[H]||v.M.3J[H].8q.2q(E)===S){if(E.6X)E.6X(H,2g,S);L if(E.fB)E.fB("8h"+H,2g)}}53[1t.3P]=1t;v.M.43[H]=R});E=Q},3P:1,43:{},3G:k(E,3B,1t){if(E.1w==3||E.1w==8)C;B 1L=v.G(E,"1L"),P,2f;if(1L){if(3B==1n||(1q 3B=="1o"&&3B.6D(0)=="."))U(B H in 1L)u.3G(E,H+(3B||""));L{if(3B.H){1t=3B.1t;3B=3B.H}v.Y(3B.3g(/\\s+/),k(2f,H){B 27=H.3g(".");H=27[0];if(1L[H]){if(1t)4w 1L[H][1t.3P];L U(1t in 1L[H])if(!27[1]||1L[H][1t].H==27[1])4w 1L[H][1t];U(P in 1L[H])3I;if(!P){if(!v.M.3J[H]||v.M.3J[H].8i.2q(E)===S){if(E.fW)E.fW(H,v.G(E,"2g"),S);L if(E.fD)E.fD("8h"+H,v.G(E,"2g"))}P=Q;4w 1L[H]}}})}U(P in 1L)3I;if(!P){B 2g=v.G(E,"2g");if(2g)2g.E=Q;v.5h(E,"1L");v.5h(E,"2g")}}},2y:k(H,G,E,fK,8G){G=v.49(G);if(H.2c("!")>=0){H=H.41(0,-1);B 8d=R}if(!E){if(u.43[H])v("*").1G([O,18]).2y(H,G)}L{if(E.1w==3||E.1w==8)C 1n;B 1h,P,fn=v.33(E[H]||Q),M=!G[0]||!G[0].5p;if(M){G.fE({H:H,1l:E,5p:k(){},70:k(){},8e:2x()});G[0][3Z]=R}G[0].H=H;if(8d)G[0].8d=R;B 2g=v.G(E,"2g");if(2g)1h=2g.2Q(E,G);if((!fn||(v.1s(E,\'a\')&&H=="2V"))&&E["8h"+H]&&E["8h"+H].2Q(E,G)===S)1h=S;if(M)G.8J();if(8G&&v.33(8G)){P=8G.2Q(E,1h==Q?G:G.80(1h));if(P!==1n)1h=P}if(fn&&fK!==S&&1h!==S&&!(v.1s(E,\'a\')&&H=="2V")){u.ap=R;3x{E[H]()}3v(e){}}u.ap=S}C 1h},2g:k(M){B 1h,P,5u,4d,53;M=1S[0]=v.M.fG(M||O.M);5u=M.H.3g(".");M.H=5u[0];5u=5u[1];4d=!5u&&!M.8d;53=(v.G(u,"1L")||{})[M.H];U(B j in 53){B 1t=53[j];if(4d||1t.H==5u){M.1t=1t;M.G=1t.G;P=1t.2Q(u,1S);if(1h!==S)1h=P;if(P===S){M.5p();M.70()}}}C 1h},fG:k(M){if(M[3Z]==R)C M;B 4k=M;M={4k:4k};B 4G="ln lN lM lL 4f lq 7d aj fV av lJ G lI lu 8T 1t ar au lv lx 8m 96 ly lA 8b lB lD lE fO 1l 8e fS H lG lH 4R".3g(" ");U(B i=4G.N;i;i--)M[4G[i]]=4k[4G[i]];M[3Z]=R;M.5p=k(){if(4k.5p)4k.5p();4k.lP=S};M.70=k(){if(4k.70)4k.70();4k.lS=R};M.8e=M.8e||2x();if(!M.1l)M.1l=M.fO||18;if(M.1l.1w==3)M.1l=M.1l.1V;if(!M.8b&&M.8T)M.8b=M.8T==M.1l?M.fS:M.8T;if(M.8m==Q&&M.aj!=Q){B 2j=18.2M,1O=18.1O;M.8m=M.aj+(2j&&2j.3c||1O&&1O.3c||0)-(2j.bO||0);M.96=M.fV+(2j&&2j.3e||1O&&1O.3e||0)-(2j.bP||0)}if(!M.4R&&((M.7d||M.7d===0)?M.7d:M.ar))M.4R=M.7d||M.ar;if(!M.au&&M.av)M.au=M.av;if(!M.4R&&M.4f)M.4R=(M.4f&1?1:(M.4f&2?3:(M.4f&4?2:0)));C M},4E:k(fn,4E){4E.3P=fn.3P=fn.3P||4E.3P||u.3P++;C 4E},3J:{3D:{8q:k(){az();C},8i:k(){C}},6p:{8q:k(){if(v.1x.26)C S;v(u).55("7D",v.M.3J.6p.1t);C R},8i:k(){if(v.1x.26)C S;v(u).5Q("7D",v.M.3J.6p.1t);C R},1t:k(M){if(aH(M,u))C R;M.H="6p";C v.M.2g.2Q(u,1S)}},72:{8q:k(){if(v.1x.26)C S;v(u).55("6y",v.M.3J.72.1t);C R},8i:k(){if(v.1x.26)C S;v(u).5Q("6y",v.M.3J.72.1t);C R},1t:k(M){if(aH(M,u))C R;M.H="72";C v.M.2g.2Q(u,1S)}}}};v.fn.2a({55:k(H,G,fn){C H=="aJ"?u.3C(H,G,fn):u.Y(k(){v.M.1G(u,H,fn||G,fn&&G)})},3C:k(H,G,fn){B 3C=v.M.4E(fn||G,k(M){v(u).5Q(M,3C);C(fn||G).2Q(u,1S)});C u.Y(k(){v.M.1G(u,H,3C,fn&&G)})},5Q:k(H,fn){C u.Y(k(){v.M.3G(u,H,fn)})},2y:k(H,G,fn){C u.Y(k(){v.M.2y(H,G,u,R,fn)})},ay:k(H,G,fn){C u[0]&&v.M.2y(H,G,u[0],S,fn)},4t:k(fn){B 2X=1S,i=1;2D(i<2X.N)v.M.4E(fn,2X[i++]);C u.2V(v.M.4E(fn,k(M){u.ax=(u.ax||0)%i;M.5p();C 2X[u.ax++].2Q(u,1S)||S}))},fa:k(fZ,g0){C u.55(\'6p\',fZ).55(\'72\',g0)},3D:k(fn){az();if(v.5n)fn.2q(18,v);L v.73.2u(k(){C fn.2q(u,v)});C u}});v.2a({5n:S,73:[],3D:k(){if(!v.5n){v.5n=R;if(v.73){v.Y(v.73,k(){u.2q(18)});v.73=Q}v(18).ay("3D")}}});B aB=S;k az(){if(aB)C;aB=R;if(18.6X&&!v.1x.4K)18.6X("g4",v.3D,S);if(v.1x.26&&O==2A)(k(){if(v.5n)C;3x{18.2M.m7("1z")}3v(65){4I(1S.6w,0);C}v.3D()})();if(v.1x.4K)18.6X("g4",k(){if(v.5n)C;U(B i=0;i<18.aD.N;i++)if(18.aD[i].6U){4I(1S.6w,0);C}v.3D()},S);if(v.1x.4c){B 8k;(k(){if(v.5n)C;if(18.5R!="gw"&&18.5R!="3a"){4I(1S.6w,0);C}if(8k===1n)8k=v("1f, 2N[cg=ch]").N;if(18.aD.N!=8k){4I(1S.6w,0);C}v.3D()})()}v.M.1G(O,"5j",v.3D)}v.Y(("mc,md,5j,mg,7z,aJ,2V,mh,"+"gi,mj,mk,7D,6y,gA,4g,"+"aG,eF,ml,mo,65").3g(","),k(i,K){v.fn[K]=k(fn){C fn?u.55(K,fn):u.2y(K)}});B aH=k(M,E){B 1Q=M.8b;2D(1Q&&1Q!=E)3x{1Q=1Q.1V}3v(65){1Q=E}C 1Q==E};v(O).55("aJ",k(){v("*").1G(18).5Q()});v.fn.2a({gc:v.fn.5j,5j:k(I,4V,19){if(1q I!=\'1o\')C u.gc(I);B 8n=I.2c(" ");if(8n>=0){B 1b=I.41(8n,I.N);I=I.41(0,8n)}19=19||k(){};B H="4W";if(4V)if(v.33(4V)){19=4V;4V=Q}L{4V=v.6c(4V);H="gj"}B 4j=u;v.5W({I:I,H:H,34:"T",G:4V,3a:k(6V,29){if(29=="3r"||29=="gJ")4j.T(1b?v("<J/>").2O(6V.8F.V(/<1D(.|\\s)*?\\/1D>/g,"")).1R(1b):6V.8F);4j.Y(19,[6V.8F,29,6V])}});C u},mv:k(){C v.6c(u.ge())},ge:k(){C u.4m(k(){C v.1s(u,"6S")?v.49(u.my):u}).2s(k(){C u.K&&!u.6U&&(u.8p||/4g|f7/i.1r(u.1s)||/1v|2F|6x/i.1r(u.H))}).4m(k(i,E){B 1h=v(u).1h();C 1h==Q?Q:1h.2G==3q?v.4m(1h,k(1h,i){C{K:E.K,W:1h}}):{K:E.K,W:1h}}).67()}});v.Y("gr,gP,gO,gQ,gN,gI".3g(","),k(i,o){v.fn[o]=k(f){C u.55(o,f)}});B gp=2x();v.2a({67:k(I,G,19,H){if(v.33(G)){19=G;G=Q}C v.5W({H:"4W",I:I,G:G,3r:19,34:H})},97:k(I,19){C v.67(I,Q,19,"1D")},mC:k(I,G,19){C v.67(I,G,19,"3X")},dl:k(I,G,19,H){if(v.33(G)){19=G;G={}}C v.5W({H:"gj",I:I,G:G,3r:19,34:H})},mE:k(gm){v.2a(v.aQ,gm)},aQ:{I:7E.1E,43:R,H:"4W",3y:0,gz:"8t/x-4O-6S-mF",gn:R,5e:R,G:Q,aW:Q,6x:Q,8y:{4N:"8t/4N, 1v/4N",T:"1v/T",1D:"1v/7l, 8t/7l",3X:"8t/3X, 1v/7l",1v:"1v/mH",7H:"*/*"}},8D:{},5W:k(s){s=v.2a(R,s,v.2a(R,{},v.aQ,s));B 3t,5l=/=\\?(&|$)/g,29,G,H=s.H.42();if(s.G&&s.gn&&1q s.G!="1o")s.G=v.6c(s.G);if(s.34=="3t"){if(H=="4W"){if(!s.I.1Z(5l))s.I+=(s.I.1Z(/\\?/)?"&":"?")+(s.3t||"19")+"=?"}L if(!s.G||!s.G.1Z(5l))s.G=(s.G?s.G+"&":"")+(s.3t||"19")+"=?";s.34="3X"}if(s.34=="3X"&&(s.G&&s.G.1Z(5l)||s.I.1Z(5l))){3t="3t"+gp++;if(s.G)s.G=(s.G+"").V(5l,"="+3t+"$1");s.I=s.I.V(5l,"="+3t+"$1");s.34="1D";O[3t]=k(3f){G=3f;3r();3a();O[3t]=1n;3x{4w O[3t]}3v(e){}if(3u)3u.5c(1D)}}if(s.34=="1D"&&s.3j==Q)s.3j=S;if(s.3j===S&&H=="4W"){B 9Z=2x();B P=s.I.V(/(\\?|&)62=.*?(&|$)/,"$mK="+9Z+"$2");s.I=P+((P==s.I)?(s.I.1Z(/\\?/)?"&":"?")+"62="+9Z:"")}if(s.G&&H=="4W"){s.I+=(s.I.1Z(/\\?/)?"&":"?")+s.G;s.G=Q}if(s.43&&!v.8C++)v.M.2y("gr");B aT=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;if(s.34=="1D"&&H=="4W"&&aT.1r(s.I)&&aT.4P(s.I)[1]!=7E.mM){B 3u=18.5P("3u")[0];B 1D=18.57("1D");1D.2S=s.I;if(s.gv)1D.mN=s.gv;if(!3t){B 2L=S;1D.mO=1D.6J=k(){if(!2L&&(!u.5R||u.5R=="gw"||u.5R=="3a")){2L=R;3r();3a();3u.5c(1D)}}}3u.5z(1D);C 1n}B 8B=S;B 1j=O.gx?2H gx("mQ.mR"):2H gF();if(s.aW)1j.aC(H,s.I,s.5e,s.aW,s.6x);L 1j.aC(H,s.I,s.5e);3x{if(s.G)1j.8x("mS-mU",s.gz);if(s.b6)1j.8x("dk-9U-mW",v.8D[s.I]||"mX, mY n0 n1 a0:a0:a0 n2");1j.8x("X-n3-n4","gF");1j.8x("n6",s.34&&s.8y[s.34]?s.8y[s.34]+", */*":s.8y.7H)}3v(e){}if(s.gH&&s.gH(1j,s)===S){s.43&&v.8C--;1j.gM();C S}if(s.43)v.M.2y("gI",[1j,s]);B 6J=k(9K){if(!8B&&1j&&(1j.5R==4||9K=="3y")){8B=R;if(8A){hi(8A);8A=Q}29=9K=="3y"&&"3y"||!v.gS(1j)&&"65"||s.b6&&v.dm(1j,s.I)&&"gJ"||"3r";if(29=="3r"){3x{G=v.h0(1j,s.34,s.n7)}3v(e){29="9n"}}if(29=="3r"){B 8z;3x{8z=1j.bb("gV-9U")}3v(e){}if(s.b6&&8z)v.8D[s.I]=8z;if(!3t)3r()}L v.b9(s,1j,29);3a();if(s.5e)1j=Q}};if(s.5e){B 8A=8P(6J,13);if(s.3y>0)4I(k(){if(1j){1j.gM();if(!8B)6J("3y")}},s.3y)}3x{1j.n9(s.G)}3v(e){v.b9(s,1j,Q,e)}if(!s.5e)6J();k 3r(){if(s.3r)s.3r(G,29);if(s.43)v.M.2y("gN",[1j,s])}k 3a(){if(s.3a)s.3a(1j,29);if(s.43)v.M.2y("gO",[1j,s]);if(s.43&&!--v.8C)v.M.2y("gP")}C 1j},b9:k(s,1j,29,e){if(s.65)s.65(1j,29,e);if(s.43)v.M.2y("gQ",[1j,s,e])},8C:0,gS:k(1j){3x{C!1j.29&&7E.na=="ba:"||(1j.29>=bD&&1j.29<nc)||1j.29==gX||1j.29==nd||v.1x.4c&&1j.29==1n}3v(e){}C S},dm:k(1j,I){3x{B gY=1j.bb("gV-9U");C 1j.29==gX||gY==v.8D[I]||v.1x.4c&&1j.29==1n}3v(e){}C S},h0:k(1j,H,2s){B ct=1j.bb("a6-H"),4N=H=="4N"||!H&&ct&&ct.2c("4N")>=0,G=4N?1j.nh:1j.8F;if(4N&&G.2M.4l=="9n")bv"9n";if(2s)G=2s(G,H);if(H=="1D")v.bg(G);if(H=="3X")G=9m("("+G+")");C G},6c:k(a){B s=[];if(a.2G==3q||a.a1)v.Y(a,k(){s.2u(39(u.K)+"="+39(u.W))});L U(B j in a)if(a[j]&&a[j].2G==3q)v.Y(a[j],k(){s.2u(39(j)+"="+39(u))});L s.2u(39(j)+"="+39(v.33(a[j])?a[j]():a[j]));C s.h4("&").V(/%20/g,"+")}});v.fn.2a({1A:k(1H,19){C 1H?u.46({2W:"1A",3o:"1A",2t:"1A"},1H,19):u.2s(":2F").Y(k(){u.1f.1N=u.bj||"";if(v.1C(u,"1N")=="58"){B E=v("<"+u.4l+" />").2r("1O");u.1f.1N=E.1C("1N");if(u.1f.1N=="58")u.1f.1N="7n";E.3G()}}).3E()},1u:k(1H,19){C 1H?u.46({2W:"1u",3o:"1u",2t:"1u"},1H,19):u.2s(":3d").Y(k(){u.bj=u.bj||v.1C(u,"1N");u.1f.1N="58"}).3E()},h5:v.fn.4t,4t:k(fn,bk){C v.33(fn)&&v.33(bk)?u.h5.2Q(u,1S):fn?u.46({2W:"4t",3o:"4t",2t:"4t"},fn,bk):u.Y(k(){v(u)[v(u).is(":2F")?"1A":"1u"]()})},nk:k(1H,19){C u.46({2W:"1A"},1H,19)},nl:k(1H,19){C u.46({2W:"1u"},1H,19)},nn:k(1H,19){C u.46({2W:"4t"},1H,19)},np:k(1H,19){C u.46({2t:"1A"},1H,19)},nq:k(1H,19){C u.46({2t:"1u"},1H,19)},nr:k(1H,4S,19){C u.46({2t:4S},1H,19)},46:k(1y,1H,3s,19){B bp=v.1H(1H,3s,19);C u[bp.3w===S?"Y":"3w"](k(){if(u.1w!=1)C S;B 2d=v.2a({},bp),p,2F=v(u).is(":2F"),4j=u;U(p in 1y){if(1y[p]=="1u"&&2F||1y[p]=="1A"&&!2F)C 2d.3a.2q(u);if(p=="2W"||p=="3o"){2d.1N=v.1C(u,"1N");2d.5a=u.1f.5a}}if(2d.5a!=Q)u.1f.5a="2F";2d.6t=v.2a({},1y);v.Y(1y,k(K,1h){B e=2H v.fx(4j,2d,K);if(/4t|1A|1u/.1r(1h))e[1h=="4t"?2F?"1A":"1u":1h](1y);L{B 27=1h.h7().1Z(/^([+-]=)?([\\d+-.]+)(.*)$/),3S=e.2b(R)||0;if(27){B 3E=5q(27[2]),4b=27[3]||"4h";if(4b!="4h"){4j.1f[K]=(3E||1)+4b;3S=((3E||1)/e.2b(R))*3S;4j.1f[K]=3S+4b}if(27[1])3E=((27[1]=="-="?-1:1)*3E)+3S;e.6v(3S,3E,4b)}L e.6v(3S,1h,"")}});C R})},3w:k(H,fn){if(v.33(H)||(H&&H.2G==3q)){fn=H;H="fx"}if(!H||(1q H=="1o"&&!fn))C 3w(u[0],H);C u.Y(k(){if(fn.2G==3q)3w(u,H,fn);L{3w(u,H).2u(fn);if(3w(u,H).N==1)fn.2q(u)}})},ns:k(h8,5A){B 2Z=v.2Z;if(h8)u.3w([]);u.Y(k(){U(B i=2Z.N-1;i>=0;i--)if(2Z[i].E==u){if(5A)2Z[i](R);2Z.hg(i,1)}});if(!5A)u.bu();C u}});B 3w=k(E,H,2p){if(E){H=H||"fx";B q=v.G(E,H+"3w");if(!q||2p)q=v.G(E,H+"3w",v.49(2p))}C q};v.fn.bu=k(H){H=H||"fx";C u.Y(k(){B q=3w(u,H);q.8J();if(q.N)q[0].2q(u)})};v.2a({1H:k(1H,3s,fn){B 2d=1H&&1H.2G==nv?1H:{3a:fn||!fn&&3s||v.33(1H)&&1H,4x:1H,3s:fn&&3s||3s&&3s.2G!=ny&&3s};2d.4x=(2d.4x&&2d.4x.2G==8L?2d.4x:v.fx.8X[2d.4x])||v.fx.8X.bF;2d.4H=2d.3a;2d.3a=k(){if(2d.3w!==S)v(u).bu();if(v.33(2d.4H))2d.4H.2q(u)};C 2d},3s:{bz:k(p,n,8O,7F){C 8O+7F*p},8U:k(p,n,8O,7F){C((-2v.nD(p*2v.nE)/2)+0.5)*7F+8O}},2Z:[],7q:Q,fx:k(E,1d,1y){u.1d=1d;u.E=E;u.1y=1y;if(!1d.7r)1d.7r={}}});v.fx.6F={7v:k(){if(u.1d.5g)u.1d.5g.2q(u.E,u.2x,u);(v.fx.5g[u.1y]||v.fx.5g.7H)(u);if(u.1y=="2W"||u.1y=="3o")u.E.1f.1N="7n"},2b:k(5D){if(u.E[u.1y]!=Q&&u.E.1f[u.1y]==Q)C u.E[u.1y];B r=5q(v.1C(u.E,u.1y,5D));C r&&r>-nG?r:5q(v.44(u.E,u.1y))||0},6v:k(4X,4S,4b){u.9d=2x();u.3S=4X;u.3E=4S;u.4b=4b||u.4b||"4h";u.2x=u.3S;u.5y=u.8I=0;u.7v();B 4j=u;k t(5A){C 4j.5g(5A)}t.E=u.E;v.2Z.2u(t);if(v.7q==Q){v.7q=8P(k(){B 2Z=v.2Z;U(B i=0;i<2Z.N;i++)if(!2Z[i]())2Z.hg(i--,1);if(!2Z.N){hi(v.7q);v.7q=Q}},13)}},1A:k(){u.1d.7r[u.1y]=v.1Y(u.E.1f,u.1y);u.1d.1A=R;u.6v(0,u.2b());if(u.1y=="3o"||u.1y=="2W")u.E.1f[u.1y]="nJ";v(u.E).1A()},1u:k(){u.1d.7r[u.1y]=v.1Y(u.E.1f,u.1y);u.1d.1u=R;u.6v(u.2b(),0)},5g:k(5A){B t=2x();if(5A||t>u.1d.4x+u.9d){u.2x=u.3E;u.5y=u.8I=1;u.7v();u.1d.6t[u.1y]=R;B 2L=R;U(B i in u.1d.6t)if(u.1d.6t[i]!==R)2L=S;if(2L){if(u.1d.1N!=Q){u.E.1f.5a=u.1d.5a;u.E.1f.1N=u.1d.1N;if(v.1C(u.E,"1N")=="58")u.E.1f.1N="7n"}if(u.1d.1u)u.E.1f.1N="58";if(u.1d.1u||u.1d.1A)U(B p in u.1d.6t)v.1Y(u.E.1f,p,u.1d.7r[p])}if(2L)u.1d.3a.2q(u.E);C S}L{B n=t-u.9d;u.8I=n/u.1d.4x;u.5y=v.3s[u.1d.3s||(v.3s.8U?"8U":"bz")](u.8I,n,0,1,u.1d.4x);u.2x=u.3S+((u.3E-u.3S)*u.5y);u.7v()}C R}};v.2a(v.fx,{8X:{hq:hs,ht:bD,bF:hv},5g:{3c:k(fx){fx.E.3c=fx.2x},3e:k(fx){fx.E.3e=fx.2x},2t:k(fx){v.1Y(fx.E.1f,"2t",fx.2x)},7H:k(fx){fx.E.1f[fx.1y]=fx.2x+fx.4b}}});v.fn.2Y=k(){B 1z=0,2A=0,E=u[0],6m;if(E)hw(v.1x){B 1Q=E.1V,6q=E,1F=E.1F,2j=E.4q,91=4c&&56(8Y)<hx&&!/hy/i.1r(4p),1C=v.44,5v=1C(E,"4r")=="5v";if(E.bM){B 8Z=E.bM();1G(8Z.1z+2v.4o(2j.2M.3c,2j.1O.3c),8Z.2A+2v.4o(2j.2M.3e,2j.1O.3e));1G(-2j.2M.bO,-2j.2M.bP)}L{1G(E.92,E.74);2D(1F){1G(1F.92,1F.74);if(7h&&!/^t(hB|d|h)$/i.1r(1F.4l)||4c&&!91)45(1F);if(!5v&&1C(1F,"4r")=="5v")5v=R;6q=/^1O$/i.1r(1F.4l)?6q:1F;1F=1F.1F}2D(1Q&&1Q.4l&&!/^1O|T$/i.1r(1Q.4l)){if(!/^hD|3b.*$/i.1r(1C(1Q,"1N")))1G(-1Q.3c,-1Q.3e);if(7h&&1C(1Q,"5a")!="3d")45(1Q);1Q=1Q.1V}if((91&&(5v||1C(6q,"4r")=="8l"))||(7h&&1C(6q,"4r")!="8l"))1G(-2j.1O.92,-2j.1O.74);if(5v)1G(2v.4o(2j.2M.3c,2j.1O.3c),2v.4o(2j.2M.3e,2j.1O.3e))}6m={2A:2A,1z:1z}}k 45(E){1G(v.44(E,"bT",R),v.44(E,"bS",R))}k 1G(l,t){1z+=56(l,10)||0;2A+=56(t,10)||0}C 6m};v.fn.2a({4r:k(){B 1z=0,2A=0,6m;if(u[0]){B 1F=u.1F(),2Y=u.2Y(),6u=/^1O|T$/i.1r(1F[0].4l)?{2A:0,1z:0}:1F.2Y();2Y.2A-=2P(u,\'hL\');2Y.1z-=2P(u,\'hM\');6u.2A+=2P(1F,\'bS\');6u.1z+=2P(1F,\'bT\');6m={2A:2Y.2A-6u.2A,1z:2Y.1z-6u.1z}}C 6m},1F:k(){B 1F=u[0].1F;2D(1F&&(!/^1O|T$/i.1r(1F.4l)&&v.1C(1F,\'4r\')==\'hQ\'))1F=1F.1F;C v(1F)}});v.Y([\'b2\',\'81\'],k(i,K){B 6i=\'7z\'+K;v.fn[6i]=k(1h){if(!u[0])C;C 1h!=1n?u.Y(k(){u==O||u==18?O.hT(!i?1h:v(O).3c(),i?1h:v(O).3e()):u[6i]=1h}):u[0]==O||u[0]==18?4j[i?\'hV\':\'hW\']||v.bY&&18.2M[6i]||18.1O[6i]:u[0][6i]}});v.Y(["gD","7b"],k(i,K){B 8s=i?"b2":"81",br=i?"c4":"c5";v.fn["95"+K]=k(){C u[K.35()]()+2P(u,"5K"+8s)+2P(u,"5K"+br)};v.fn["hX"+K]=k(7B){C u["95"+K]()+2P(u,"45"+8s+"7b")+2P(u,"45"+br+"7b")+(7B?2P(u,"7B"+8s)+2P(u,"7B"+br):0)}})})();30.fn.9g=k(){B $aP,74=10;if(!30.cb){$aP=30("<J></J>").1p("98").2r("1O");$aP.1u();30.cb=R}k hY(){B e=18.2M,b=18.1O;B 3c=(e&&e.3c||b.3c||0);B 3e=(e&&e.3e||b.3e||0);C{1z:3c,2A:3e}}C u.Y(k(){$u=30(u);$u.7D(k(e){if(u.1c!=""){u.aE=u.1c;u.1c="";30("J.98").1C({1z:e.8m,2A:e.96+74,4r:"8l"}).T(u.aE).1A()}}).6y(k(){u.1c=u.aE;30("J.98").1u()})})};30.2a({7K:k(I){B s=18.57(\'2N\');s.59(\'cg\',\'ch\');s.59(\'H\',\'1v/1C\');s.59(\'1E\',I);30(\'3u\')[0].5z(s)}});B dw;B 1e={};B 1I={};B F={};F.3i={};if(!30){30=v}F.v=30;if(O.i5){O.v=F.v}F.4B=(O.ci)?O.ci:"1B://eu.9A.2h.2e/4y/5x/";F.9O=0;F.di=1;F.dn=i6;F.dE=50;F.9F=0;F.5T=(O.g6)?O.g6:Q;F.5L=(O.ck)?O.ck:10;F.5U=1;F.6H=(O.cl)?O.cl:Q;F.9T=(O.cm)?O.cm:Q;F.3Y=(O.g2)?O.g2:Q;F.dr=(O.g1)?O.g1:S;F.g3=i7;F.e1=(O.cq)?O.cq:S;F.9V=(O.i9)?R:S;F.99=(O.cr)?O.cr:Q;F.aA=(O.cs)?O.cs:Q;F.9c=(O.cu)?O.cu:Q;F.9a=(O.fU)?O.fU:Q;F.aq=(O.fT)?O.fT:Q;F.9e=(O.cw)?O.cw:Q;F.3L=(O.cx)?O.cx:Q;F.7x=(O.fQ)?O.fQ:S;F.7s=(O.fP)?O.fP:S;F.eb=(O.cz)?O.cz:S;F.82=(O.cA)?O.cA:Q;F.8M=(O.fM)?O.fM:Q;F.8H=(O.fL)?O.fL:Q;F.an=(O.cD)?O.cD:Q;F.al=(O.cE)?O.cE:Q;F.9f=(O.cF)?O.cF:Q;F.fH=(O.cG)?O.cG:S;F.ac=(O.cH)?O.cH:Q;F.7R=1q(O.cI)==\'1n\'?R:O.cI;F.dF=1q(O.cK)==\'1n\'?"1B://ii.2h.2e/ij.dy":O.cK;F.aa=(O.cL)?O.cL:Q;F.bI=(O.fA)?O.fA:Q;F.3K=(O.cM)?O.cM:Q;F.v(18).3D(k(){F.3i[0]=S;if(O.fv){B fu=F.4B+"il{0}.js".V("{0}",fv);F.6z(fu,k(){F.3i[0]=R})}L{F.3i[0]=R}F.3i[1]=S;if(O.cQ){B cR=F.4B+"cS/cT{0}.js".V("{0}",cQ);F.6z(cR,k(){F.3i[1]=R})}L{F.3i[1]=R}F.3i[2]=S;if(O.fr){F.6z(fr,k(){F.3i[2]=R})}L{F.3i[2]=R}F.3i[3]=S;if(O.fm){B cW=F.4B+"cS/cT{0}.js".V("{0}",fm);F.6z(cW,k(){F.3i[3]=R})}L{F.3i[3]=R}if(!O.io){if(O.cY){F.v.7K(F.4B+"1C/ip{0}.1C".V("{0}",cY))}L{F.v.7K(F.4B+"1C/ir.0.1C")}}if(O.cZ){F.v.7K(O.cZ)}F.v("#bZ").3T();F.v("#c0").3T();F.v("#c6").3T();F.v("#c7").3T();F.v("#c8").3T();F.v("#c9").3T();F.v("#ca").3T();F.v("#cc").3T();F.v("#cd").3T()});F.6z=k(I,19){C F.v.5W({H:"4W",I:I,G:Q,3r:19,34:"1D",3j:R})};F.bQ=k(){B 1g={};1g["fs"]="ix...";1g["ao"]="iy";1g["am"]="iA";1g["aS"]="iB";1g["71"]="{0} 4T db U u 7Y";1g["dq"]="iD 9v {0} iE 9s / iF 88. <a 1E=\'1B://4O.2h.2e/3W?q=2N%3A{1}\'>9w 4d</a>";1g["3W"]="iG";1g["iH"]="du";1g["dO"]="iJ iK 3C d6";1g["dQ"]="d6";1g["dS"]="3h";1g["iL"]="s";1g["dV"]="d9 iM";1g["dX"]="iN";1g["dY"]="d9 da";1g["e4"]="iO";1g["e2"]="iP 3C da";1g["iQ"]="4X 2x";1g["ed"]="dc 4T db U u 7Y iR.";1g["er"]="9x 3W";1g["es"]="F 4T 3W";1g["eM"]="81 9s iS";1g["eY"]="dc 2A iU iV.";1g["eT"]="4T 7M";1g["f0"]="9o dh";1g["hf"]="9o dg";1g["h9"]="9o dg bx dh";1g["4X"]="iW";1g["aZ"]="9w 4d 7M";1g["gu"]="";1g["fX"]="&5s;&iX;";1g["fz"]="&iY;&5s;";1g["ft"]="&iZ;";1g["g5"]="&j0;";1g["8f"]="&j1;";1g["e7"]="dk ef j2 bx 2N 4S u 7Y in 9t 4T, 9t dl j3 be 9s 4X j4.";1g["e9"]="j5 9t 4T at F U j6 4S 1R it.";1g["e6"]="9x j7 u 7Y";1g["d7"]="j8, ef j9 4S 1G a F 2N ja 9v 5x as ds in 9v jb.";1g["ey"]="{0} du";1g["b8"]="9w 4d 4T 88";1g["h6"]="";1g["by"]="9x G 4X";C 1g};F.bR=k(){B 1K={};1K["hm"]="1B://jd.2h.2e/5x/je.dy?I=";1K["ce"]="1B://3M.2h.2e/";1K["cf"]="1B://3M.2h.2e/7y/";1K["cj"]="1B://3M.2h.2e/7y/m/";1K["cp"]="1B://3M.2h.2e/7y/mb/";1K["cv"]="1B://3M.2h.2e/6k/";1K["cy"]="1B://3M.2h.2e/6k/m/";1K["cC"]="1B://3M.2h.2e/6k/mb/";1K["cJ"]="1B://3M.2h.2e/jg/";1K["cO"]="1B://3M.2h.2e/93/G/";1K["fq"]="1B://3M.2h.2e/6k/m/dA/";1K["gb"]="1B://3M.2h.2e/6k/mb/dA/";1K["cP"]="1B://3M.2h.2e/93/jh/";1K["4i"]="1B://4O.2h.2e/";1K["et"]=(1I["4i"])?1I["4i"]+"3W?q={0}":1K["4i"]+"3W?q={0}";1K["dW"]="1B://eu.9A.2h.2e/4y/5x/2I/ji-jj-jk.jl";1K["7k"]="1B://eu.9A.2h.2e/4y/5x/2I/jn.9E";1K["e8"]=(1I["4i"])?1I["4i"]+"dD":1K["4i"]+"dD";1K["aV.3"]="2I/jo.9E";1K["7O.3"]="2I/jp.9E";1K["ee"]="{2}/{1}/{0}";1K["el"]="{0}:{1}";1K["gC"]=" ";1K["gf"]="";C 1K};F.bK=k(){B 9G=R;F.9F++;if(F.9F<=F.dE){F.v.Y(F.3i,k(i,d){if(!d){9G=S}})}C 9G};F.9z=k(I){I=I.3g("#")[0];B dJ=/^(1B:\\/\\/)?(4O\\.)?([^\\.\\/]+\\.)?((?!co\\.)[^\\/]+?(?:\\.co)?\\.[^\\.\\/]{2,4})(\\/((?!2f\\.\\w{2,5})(?!9H\\.\\w{2,5}).+?(?!2f\\.\\w{2,5})(?!9H\\.\\w{2,5}))?(\\/?(2f|9H)\\.\\w{2,5})?(#.*)?)?$/i;B 1X=I.1Z(dJ);if(1X){if(!1X[3]||1X[3].N==0){if((!1X[2]||1X[2].N==0)&&(!1X[1]||1X[1].N==0)){I="1B://4O."+I}L if(1X[2]&&1X[2].N>0&&(!1X[1]||1X[1].N==0)){I="1B://"+I}L if((!1X[2]||1X[2].N==0)&&(1X[1]&&1X[1].N>0)){I=I.V(/^1B:\\/\\//,"1B://4O.")}}L{if(!1X[1]||1X[1].N==0){I="1B://"+I}}if(1X[7]){B 5B=1X[7];I=I.41(0,I.2c(5B))}}if(I.6D(I.N-1)=="/"&&I.3W(/^1B:\\/\\/[^\\/]+\\/$/)==-1){I=I.41(0,-1)};if(I.3W(/^1B:\\/\\/[^\\/]+$/)!=-1){I+="/"};if(1I["dL"]){I=1I["dL"](I)};C I};F.ew=k(1e,3h){if(3h.ju)C"";if(3h<1)C(1e["dO"]);if(3h<2)C(3h+" "+1e["dQ"]);if(3h<50)C(3h+" "+1e["dS"]);if(3h<90)C(1e["dV"]);if(3h<jw)C(2v.9L(3h/60)+" "+1e["dX"]);if(3h<bq)C(1e["dY"]);if(3h<jx)C(1e["e2"]);L C(2v.9L(3h/bq)+" "+1e["e4"])};F.6l=k(1e,e5){B 4D=2H 7T(e5);B 2x=2H 7T();B 9M=2H 7T();B 5C=2v.jy((9M-4D)/(60*jz));5C=5C+9M.jA();if(F.eb){B dd=F.6g(\'\'+4D.jC(),\'0\',2);B mm=F.6g(\'\'+(4D.jD()+1),\'0\',2);B eg=4D.jE();B 8v=((1I["ee"].V(\'{0}\',eg)).V(\'{1}\',mm)).V(\'{2}\',dd);if(2v.g9(5C)<=bq){B hh=F.6g(\'\'+4D.jI(),\'0\',2);B eo=F.6g(\'\'+4D.jK(),\'0\',2);B ep=F.6g(\'\'+4D.jL(),\'0\',2);8v=8v+1I["gC"]+((1I["el"].V(\'{0}\',hh)).V(\'{1}\',eo)).V(\'{2}\',ep)+1I["gf"]}C 8v}L{if(2v.g9(5C)<=(8*7*24*60)){B fw=F.ew(1e,5C);C 1e["ey"].V(\'{0}\',fw)}L{C 4D.jX()}}};F.6g=k(7i,eH,eD){B eE=7i.N;B 9X=eD-eE;if(9X>0){U(B i=0;i<9X;i++){7i=eH+7i}}C 7i};F.5N=(k(){k fi(I){I=I.V(/\\eJ/ig,2o.2k("\\eJ"));I=I.V(/\\en/ig,2o.2k("\\en"));I=I.V(/\\ez/ig,2o.2k("\\ez"));I=I.V(/\\ea/ig,2o.2k("\\ea"));I=I.V(/\\dU/ig,2o.2k("\\dU"));I=I.V(/\\eN/ig,2o.2k("\\eN"));I=I.V(/\\eO/ig,2o.2k("\\eO"));I=I.V(/\\dC/ig,2o.2k("\\dC"));I=I.V(/\\dK/ig,2o.2k("\\dK"));I=I.V(/\\eR/ig,2o.2k("\\eR"));I=I.V(/\\eS/ig,2o.2k("\\eS"));I=I.V(/\\eU/ig,2o.2k("\\eU"));I=I.V(/\\eV/ig,2o.2k("\\eV"));I=I.V(/\\cV/ig,2o.2k("\\cV"));I=I.V(/\\eX/ig,2o.2k("\\eX"));I=I.V(/\\eZ/ig,2o.2k("\\eZ"));I=I.V(/\\bJ/ig,2o.2k("\\bJ"));C I};B 2o={2k:k(1o){C kf(u.f2(1o))},a8:k(1o){C u.hd(fj(1o))},f2:k(1o){1o=1o.V(/\\r\\n/g,"\\n");B 1J="";U(B n=0;n<1o.N;n++){B c=1o.3U(n);if(c<3N){1J+=28.2l(c)}L if((c>hc)&&(c<f5)){1J+=28.2l((c>>6)|ho);1J+=28.2l((c&63)|3N)}L{1J+=28.2l((c>>12)|8K);1J+=28.2l(((c>>6)&63)|3N);1J+=28.2l((c&63)|3N)}}C 1J},hd:k(1J){B 1o="";B i=0;B c=c1=c2=0;2D(i<1J.N){c=1J.3U(i);if(c<3N){1o+=28.2l(c);i++}L if((c>f8)&&(c<8K)){c2=1J.3U(i+1);1o+=28.2l(((c&31)<<6)|(c2&63));i+=2}L{c2=1J.3U(i+1);c3=1J.3U(i+2);1o+=28.2l(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}C 1o}};B fd={2k:k(1o){1o=1o.V(/\\r\\n/g,"\\n");B 1J="";U(B n=0;n<1o.N;n++){B c=1o.3U(n);if(c<3N){1J+=28.2l(c)}L if((c>hc)&&(c<f5)){1J+=28.2l((c>>6)|ho);1J+=28.2l((c&63)|3N)}L{1J+=28.2l((c>>12)|8K);1J+=28.2l(((c>>6)&63)|3N);1J+=28.2l((c&63)|3N)}}C 1J},a8:k(1J){B 1o="";B i=0;B c=c1=c2=0;2D(i<1J.N){c=1J.3U(i);if(c<3N){1o+=28.2l(c);i++}L if((c>f8)&&(c<8K)){c2=1J.3U(i+1);1o+=28.2l(((c&31)<<6)|(c2&63));i+=2}L{c2=1J.3U(i+1);c3=1J.3U(i+2);1o+=28.2l(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}C 1o}};B gT=0;B h3="";B 3F=8;k 5N(s){s=fd.2k(2o.a8(fi(fj(s))));C 9u(5d(6d(s),s.N*3F))}k kD(s){C 9p(5d(6d(s),s.N*3F))}k kF(s){C b7(5d(6d(s),s.N*3F))}k kG(a,b){C 9u(7I(a,b))}k kH(a,b){C 9p(7I(a,b))}k kJ(a,b){C b7(7I(a,b))}k kL(){C 5N("kN")=="kO"}k 5d(x,e){x[e>>5]|=kP<<((e)%32);x[(((e+64)>>>9)<<4)+14]=e;B a=kR;B b=-kS;B c=-kT;B d=kV;U(B i=0;i<x.N;i+=16){B f=a;B g=b;B h=c;B j=d;a=2B(a,b,c,d,x[i+0],7,-kW);d=2B(d,a,b,c,x[i+1],12,-kY);c=2B(c,d,a,b,x[i+2],17,kZ);b=2B(b,c,d,a,x[i+3],22,-l1);a=2B(a,b,c,d,x[i+4],7,-l2);d=2B(d,a,b,c,x[i+5],12,l3);c=2B(c,d,a,b,x[i+6],17,-l4);b=2B(b,c,d,a,x[i+7],22,-l5);a=2B(a,b,c,d,x[i+8],7,l6);d=2B(d,a,b,c,x[i+9],12,-l7);c=2B(c,d,a,b,x[i+10],17,-l8);b=2B(b,c,d,a,x[i+11],22,-la);a=2B(a,b,c,d,x[i+12],7,lb);d=2B(d,a,b,c,x[i+13],12,-lc);c=2B(c,d,a,b,x[i+14],17,-le);b=2B(b,c,d,a,x[i+15],22,lf);a=2C(a,b,c,d,x[i+1],5,-lg);d=2C(d,a,b,c,x[i+6],9,-lh);c=2C(c,d,a,b,x[i+11],14,lj);b=2C(b,c,d,a,x[i+0],20,-lk);a=2C(a,b,c,d,x[i+5],5,-ll);d=2C(d,a,b,c,x[i+10],9,lm);c=2C(c,d,a,b,x[i+15],14,-lo);b=2C(b,c,d,a,x[i+4],20,-lp);a=2C(a,b,c,d,x[i+9],5,lr);d=2C(d,a,b,c,x[i+14],9,-ls);c=2C(c,d,a,b,x[i+3],14,-lw);b=2C(b,c,d,a,x[i+8],20,lz);a=2C(a,b,c,d,x[i+13],5,-lC);d=2C(d,a,b,c,x[i+2],9,-lF);c=2C(c,d,a,b,x[i+7],14,lK);b=2C(b,c,d,a,x[i+12],20,-lO);a=2z(a,b,c,d,x[i+5],4,-lQ);d=2z(d,a,b,c,x[i+8],11,-lT);c=2z(c,d,a,b,x[i+11],16,lU);b=2z(b,c,d,a,x[i+14],23,-lV);a=2z(a,b,c,d,x[i+1],4,-lW);d=2z(d,a,b,c,x[i+4],11,lX);c=2z(c,d,a,b,x[i+7],16,-lY);b=2z(b,c,d,a,x[i+10],23,-lZ);a=2z(a,b,c,d,x[i+13],4,m0);d=2z(d,a,b,c,x[i+0],11,-m1);c=2z(c,d,a,b,x[i+3],16,-m2);b=2z(b,c,d,a,x[i+6],23,m3);a=2z(a,b,c,d,x[i+9],4,-m4);d=2z(d,a,b,c,x[i+12],11,-m5);c=2z(c,d,a,b,x[i+15],16,m6);b=2z(b,c,d,a,x[i+2],23,-m8);a=2E(a,b,c,d,x[i+0],6,-m9);d=2E(d,a,b,c,x[i+7],10,ma);c=2E(c,d,a,b,x[i+14],15,-me);b=2E(b,c,d,a,x[i+5],21,-mi);a=2E(a,b,c,d,x[i+12],6,mn);d=2E(d,a,b,c,x[i+3],10,-mp);c=2E(c,d,a,b,x[i+10],15,-mr);b=2E(b,c,d,a,x[i+1],21,-mt);a=2E(a,b,c,d,x[i+8],6,mu);d=2E(d,a,b,c,x[i+15],10,-mw);c=2E(c,d,a,b,x[i+6],15,-mz);b=2E(b,c,d,a,x[i+13],21,mA);a=2E(a,b,c,d,x[i+4],6,-mB);d=2E(d,a,b,c,x[i+11],10,-mD);c=2E(c,d,a,b,x[i+2],15,mG);b=2E(b,c,d,a,x[i+9],21,-mJ);a=4C(a,f);b=4C(b,g);c=4C(c,h);d=4C(d,j)}C 3q(a,b,c,d)}k 7a(q,a,b,x,s,t){C 4C(gK(4C(4C(a,q),4C(x,t)),s),b)}k 2B(a,b,c,d,x,s,t){C 7a((b&c)|((~b)&d),a,b,x,s,t)}k 2C(a,b,c,d,x,s,t){C 7a((b&d)|(c&(~d)),a,b,x,s,t)}k 2z(a,b,c,d,x,s,t){C 7a(b^c^d,a,b,x,s,t)}k 2E(a,b,c,d,x,s,t){C 7a(c^(b|(~d)),a,b,x,s,t)}k 7I(a,b){B c=6d(a);if(c.N>16)c=5d(c,a.N*3F);B d=3q(16),b1=3q(16);U(B i=0;i<16;i++){d[i]=c[i]^mT;b1[i]=c[i]^mV}B e=5d(d.80(6d(b)),gB+b.N*3F);C 5d(b1.80(e),gB+3N)}k 4C(x,y){B a=(x&b3)+(y&b3);B b=(x>>16)+(y>>16)+(a>>16);C(b<<16)|(a&b3)}k gK(a,b){C(a<<b)|(a>>>(32-b))}k 6d(a){B b=3q();B c=(1<<3F)-1;U(B i=0;i<a.N*3F;i+=3F)b[i>>5]|=(a.3U(i/3F)&c)<<(i%32);C b}k b7(a){B b="";B c=(1<<3F)-1;U(B i=0;i<a.N*32;i+=3F)b+=28.2l((a[i>>5]>>>(i%32))&c);C b}k 9u(a){B b=gT?"nb":"ne";B c="";U(B i=0;i<a.N*4;i++){c+=b.6D((a[i>>2]>>((i%4)*8+4))&gW)+b.6D((a[i>>2]>>((i%4)*8))&gW)}C c}k 9p(a){B b="nf+/";B c="";U(B i=0;i<a.N*4;i+=3){B d=(((a[i>>2]>>8*(i%4))&bc)<<16)|(((a[i+1>>2]>>8*((i+1)%4))&bc)<<8)|((a[i+2>>2]>>8*((i+2)%4))&bc);U(B j=0;j<4;j++){if(i*8+j*6>a.N*32)c+=h3;L c+=b.6D((d>>6*(3-j))&nm)}}C c}C 5N})();F.bt=k(W){B bn=F.5N(W).42();C bn.41(0,bn.N-2)};B 4s={};4s.8W={};4s.8W.bC=k(I,ha){B 6j=18.57("1D");6j.59("H","1v/7l");6j.59("nt","nu");6j.59("2S",I);if(ha){6j.59("nz",R)}18.5P("3u")[0].5z(6j)};4s.6E={7w:{},8V:{},7t:k(25){B 1U=u.7w[25];if(1U!==Q){4w u.7w[25]}C 1U},nF:k(25){B 1U=u.7t(25);if(!1U){C}if(1q 1U.9r==="k"){1U.9r(25)}},5j:k(1U,25){if(1q 1U===\'1n\'||1q 1U.I===\'1n\'||1q 1U.6Q!==\'k\'){bv(\'nH 2K nI nK at nL I hn bx 6Q M 1t\')}u.7w[25]=1U;u.8V[25]=k(25){C k(G){B r=25;4w 4s.6E.8V[r];C 4s.6E.19(G,r)}}(25);if(1U.3y>0){4I("4s.6E.3y(\'"+25+"\')",1U.3y)}1U.25=25;4s.8W.bC(1U.I)},19:k(bG,25){B 1U=u.7t(25);if(!1U){C}if(1q 1U.6Q==="k"){1U.6Q(bG,25)}},3y:k(25){B 1U=u.7t(25);if(!1U){C}if(1q 1U.9W==="k"){1U.9W(25)}}};(k($){$.fn.3T=k(){if(!F.bK()){C u.Y(k(){B 1a=\'#\'+u.id;B 4n="F.v(\'"+1a+"\').3T()";4I(4n,20)})}L{C u.Y(k(){2H 5x(u.id,F.bQ(),F.bR())})}};B 5x=k(1a,9i,7J){B 6O="7M";B 5Z="7y";B 6P="hE";B 6I="hF";B 5k="6k";B 5G="hH";B 5V="hJ";B 5S="hK";B 5O="93";B d1="hN";B ae="hP";B ai="hR";B 8g="3";B 8o="5";B 1m;B 8Q;B 7e;B $3k,$6h,$6o,$6n,$6M,$6s,$2J;1e=$.2a(9i,1e);1I=$.2a(7J,1I);if(1q(F.gG)==\'k\'){F.gG()}B 1a="#"+1a;if(1a=="#bZ")1m=6O;L if(1a=="#c0")1m=5Z;L if(1a=="#c6")1m=6P;L if(1a=="#c7")1m=6I;L if(1a=="#c8")1m=5k;L if(1a=="#c9")1m=5G;L if(1a=="#ca")1m=5V;L if(1a=="#cc")1m=5S;L if(1a=="#cd")1m=5O;B 9J=1m+"i0";B 3Q;B 3V;B 1k=(O.8N)?8N:7E.1E;B bs="";if(1m==6O){3Q="ce";3V="i2"}L if(1m==5Z){3Q="cf";3V="9b";1k=(F.99!=Q)?F.99:1k;1k=(F.9a!=Q)?1k+\':\'+F.9a.35():1k}L if(1m==6P){3Q="cj";3V="9b";1k=(F.aA!=Q)?F.aA:1k;1k=(F.aq!=Q)?1k+\':\'+F.aq.35():1k}L if(1m==6I){3Q="cp";3V="9b";1k=(F.9c!=Q)?F.9c:1k;1k=(F.9e!=Q)?1k+\':\'+F.9e.35():1k}L if(1m==5k){3Q="cv";3V="ak";1k=(F.82!=Q)?F.82:1k;1k=(F.an!=Q)?1k+\':\'+F.an.35():1k}L if(1m==5G){3Q="cy";3V="ak";1k=(F.8M!=Q)?F.8M:1k;1k=(F.al!=Q)?1k+\':\'+F.al.35():1k}L if(1m==5V){3Q="cC";3V="ak";1k=(F.8H!=Q)?F.8H:1k;1k=(F.9f!=Q)?1k+\':\'+F.9f.35():1k}L if(1m==5S){3Q="cJ";3V="ik";B cN=(F.ac!=Q)?F.ac:"";1k=cN.35()}L if(1m==5O){3Q="cO";cX="cP";3V="im";B cU=(F.aa!=Q)?F.aa:"";1k=cU.35();bs=7J[cX]}1k=F.9z(1k);7e=1k;8Q=F.bt(1k);1k=7J[3Q]+8Q;B d5=do(1a);$(1a).1p("iv").4Y();if(F.3K==d1)$(1a).1p("iw").4Y();L if(F.3K==ae)$(1a).1p("iz").4Y();L if(F.3K==ai)$(1a).1p("iC").4Y();$(1a).1u();if(d5){9R(1k)}L{iI(9i["d7"])}k 9R(1k){4s.6E.5j({I:1k,6Q:k(G){B 3X=9m("("+G+")");9l();if(!3X.9B||3X.9B==Q){F.7R=S}if(1m=="7M"&&3X[\'7U\'].N==0){9k()}L{de(3X)}if(1q(F.6H)=="k")F.6H();$(1a).1A()},9W:k(25){if(F.9O>=F.di){9l();d0();if(1q(F.6H)=="k")F.6H()}L{B f=9R;4I(k(){f(1k);F.9O++},9q)}},9r:k(25){},3y:F.dn},3V)};k do(){C R};k dj(G){3R(1e["71"].V("{0}",G.9y));B 5f=G.7U.N;if(F.5T>0&&F.5T<=5f){5f=F.5T}if(5f<G.9y){eK(1e["dq"].V("{0}",5f).V("{1}",39(7e)))}if(5f>F.5L||F.dr){fk(5f);F.jc=R}$2J=$("<J></J>").1p("7o").1p("7f").2r(1a);$.Y(G.7U,k(i,d){if(!F.5T||i<F.5T){B 3d=i<=(F.5L-1);if(3d){B 2U=7L(i,d,3d);2U[0].G=d;$2J.2O(2U)}}});dw=F.jf=G.9y;6N($2J);$("a",1a).1Y("1l","2m");if(F.7R){if(18.9C){B 6L=F.5N(F.9z(18.9C)).42();6L=6L.41(0,6L.N-2);if($.4v(6L,G.9B)>-1){bw(18.9C,7e,1,0)}}}};k bw(dH,8j,H,dM){if(F.7R){B dG=F.dF;B dN=dG+"?"+"4X="+39(dH)+"&4S="+39(8j)+"&jt="+dM+"&H="+H;$.97(dN)}};k 7L(i,G,3d){B 47="6W";B I=G.I;B 1c=(!G.1c)?I:G.1c;B 4A=G.6G;B dT=G.jv;B dZ=G.5I;B 8r=(!G.7N)?1I["aV.3"]:1I["7O.3"];B T=\'<2I 2S="\'+F.4B+8r+\'" 1i="8c">\'+\'<J 1i="71">\'+\'<a 1i="8E" 1c="\'+1c+\'" 1E="\'+I+\'" 1l="2m">\'+1c+\'</a>\'+\'</J>\'+\'<J 1i="78">\'+F.6l(1e,G.6C)+\'&5s;\'+\'<3l>\'+\'<a 1c="\'+4A+\'" 1E="\'+dT+\'" 1i="a5" 1l="2m"><2I 2S="\'+1I["dW"]+\'"></a>\'+\'<a 1c="\'+4A+\'" 1E="\'+dZ+\'" 1i="fR" 1l="2m">\'+4A+\'</a>\'+\'</3l>\'+\'</J>\';if(1q(F.3Y)=="k"){B 2T=F.3Y(i,G,T,6O);T=(2T!=Q)?2T:T}C $("<J></J>").1p(47).T(T)};k 9k(){4e();if(F.e1){ec()}L{e3()}};k e3(){3R(1e["e6"]);$("<J></J>").1Y("id","7W").1p("7W").T((("<J>{0}<br/><br/> <a 1E=\\"{1}\\" 1l=\\"2m\\">{2}</a></J>".V(\'{0}\',1e["e7"])).V(\'{1}\',1I["e8"])).V(\'{2}\',1e["e9"])).2r(1a)};k ec(){3R(1e["ed"]);$("<J></J>").1Y("id","7W").1p("7W").T(("<J id=\\"jG\\"><h2 U=\\"7G\\">{0}: </h2><4J H=\\"1v\\" id=\\"7G\\"><4J H=\\"4f\\" W=\\"{1}\\" id=\\"aF\\"></J>".V("{0}",1e["er"])).V("{1}",1e["3W"])).2r(1a);$("#aF").2V(k(e){$4J=$("#7G");if($4J.1h().N>0){O.aC(1I["et"].V("{0}",$4J.1h()),"jW")}C S});$("#7G").eF(k(e){if(56(e.4R)==13){$("#aF").2y("2V")}})};k dp(G){3R(1e["eM"]);$2J=$("<J></J>").1p("7o").1p("7f").2r(1a);$.Y(G.hj,k(2f,d){$2J.2O(eL(2f,d))});if(F.9V){$("a",$2J).9g()}L{$("a",$2J).1Y("1c","")}};k eL(i,G){B 47="6W";B I=G.I;B 1c=(!G.1c)?I:G.1c;B T=\'<eQ>\'+(i+1)+\'. </eQ>\'+\'<a 1E="\'+I+\'" 1c="\'+1c+\'">\'+1c+\'</a>\'+\'<em> (\'+G.cn+\' \'+1e["eT"]+\')</em>\';if(1q(F.3Y)=="k"){B 2T=F.3Y(i,G,T,5Z);T=(2T!=Q)?2T:T}C $("<J></J>").1p(47).T(T)};k d2(){4e();3R(1e["eY"])};k dx(G,6T){B 5X;B 7c;B 51=0;B 6b=S;if(6T==5k){5X=1e["f0"];7c=39(\'bo:bm 2N:\'+F.82)}L if(6T==5G){5X=1e["hf"];7c=39(\'bo:bm 2N:\'+F.8M+\' a6:fc\');51=G.8w.N}L if(6T==5V){5X=1e["h9"];7c=39(\'bo:bm 2N:\'+F.8H+\' a6:fc|4T\');$.Y(G.8w,k(2f,d){if(d.H==8o)51++});if(51>0&&51!=G.8w.N)6b=R}3R(5X);$2J=$("<J></J>").1p("7o").1p("7f").2r(1a);B 6Z=0;$.Y(G.8w,k(2f,d){B 2U=hp(2f,d,6Z,51,6b);if(d.H==8o)6Z++;2U[0].G=d;$2J.2O(2U)});6N($2J);B 7P=\'1B://4O.2h.2e/3W?q=\'+7c;B 2N=\'<a 1i="gL" 1E="\'+7P+\'" 1c="\'+1e["aZ"]+\'" 1l="2m">\'+1e["aZ"]+\'</a>\';$(2N).2r(1a)};k hp(i,G,6Z,51,6b){B 8r=(!G.7N)?1I["aV.3"]:1I["7O.3"];B T=\'<2I 2S="\'+F.4B+8r+\'" 1i="8c">\';B 47="6W";if(6b&&G.H==8g)47+=\' kU\';L if(G.H==8o)47+=\' l0\';B aY=1I["fq"];if(6b)aY=1I["gb"];B 3K=24;if(F.3K==ae)3K=36;if(F.3K==ai)3K=48;B 1c=(!G.1c)?G.I:G.1c;B 5M=(!G.5M)?G.2N:G.5M;B 4A=(!G.6G)?G.5I:G.6G;B fF=(!G.H)?8g:G.H;if(fF==8g){if(F.fH){T+=\'<J 1i="71"><a 1i="8E" 1E="\'+G.2N+\'" 1c="\'+5M+\'">\'+5M+\'</a></J>\'+\'<J 1i="78 7C"><3l>\'+1e[\'4X\']+\':&5s;<a 1i="fJ" 1E="\'+G.I+\'" 1c="\'+1c+\'" 1l="2m">\'+1c+\'</a></3l></J><J 1i="aK">\'+F.6l(1e,G.6C)+\'</J>\'}L{T+=\'<J 1i="71"><a 1i="8E" 1E="\'+G.I+\'" 1c="\'+1c+\'" 1l="2m">\'+1c+\'</a></J>\'+\'<J 1i="78 7C"><3l><a 1i="fJ" 1E="\'+G.5I+\'" 1c="\'+4A+\'" 1l="2m">\'+4A+\'</a></3l></J><J 1i="aK">\'+F.6l(1e,G.6C)+\'</J>\'}}L{if(G.1c){1c=gg(1c,G.I)}T+=\'<J 1i="78 7C">\'+\'<J 1i="lR">\'+\'<a 1l="2m" 1i="fR" 1E="\'+G.5I+\'" 1c="">\'+\'<2I 2S="\'+aY+8Q+\'" 1f="3o: \'+3K+\'4h; 2W:\'+(51*3K)+\'4h;2A:-\'+(6Z*3K)+\'4h;4r:mf;45:0;" />\'+\'</a></J>\'+\'<3l 1i="mq">\'+\'<p 1i="h1"><a 1E="\'+G.I+\'" 1l="2m">\'+1c+\'</a></p>\'+\'<J 1i="aK"><a 1E="\'+G.5I+\'" 1l="2m">\'+4A+\'</a> &mx; \'+F.6l(1e,G.6C)+\'</J>\'+\'</3l></J>\'}if(1q(F.3Y)=="k"){B 2T=F.3Y(i,G,T,6T);T=(2T!=Q)?2T:T}C $("<J></J>").1p(47).T(T)};k gg(5B,gq){B go=/(1B:\\/\\/\\w+\\.\\w+[^\\s]*)/ig;C 5B.V(go,k(I){C\'</a><a 1i="mL" 1E="\'+I+\'" 1l="2m">\'+I+\'</a><a 1E="\'+gq+\'" 1l="2m">\'})}k d3(){4e();3R(1e["gu"])};k dz(G){3R(G.1c);$2J=$("<J></J>").1p("7o").1p("7f").2r(1a);$.Y(G.mP,k(2f,d){B 2U=gR(2f,d);2U[0].G=d;$2J.2O(2U)});6N($2J);B 7P=\'1B://4O.2h.2e/3W?q=\'+39(cB(G.n8));B 2N=\'<J 1i="gL"><a 1E="\'+7P+\'" 1c="\'+1e["b8"]+\'" 1l="2m">\'+1e["b8"]+\'</a></J>\';$(2N).2r(1a)};k gR(i,G){B T=\'\';B 47="6W";B 1c=(!G.1c)?G.I:G.1c;B 5M=1c;B 4A=(!G.6G)?G.5I:G.6G;T+=\'<J 1i="bV"><a 1E="\'+G.I+\'" 1c="\'+1c+\'" 1l="2m">\'+1c+\'</a></J>\'+\'<J 1i="h1">\'+G.ni+\'</J>\'+\'<J 1i="nj">\'+F.6l(1e,G.6C)+\'</J>\';if(1q(F.3Y)=="k"){B 2T=F.3Y(i,G,T,5S);T=(2T!=Q)?2T:T}C $("<J></J>").1p(47).T(T)};k d4(){4e();3R(1e["h6"])};k dB(G){B he=bs+\'nx/\'+F.bt(G.nB);$(1a).2O(bA(G.1c,he));$2J=$("<J></J>").1p("7o").1p("7f").2r(1a);$.Y(G.hj,k(2f,d){B 2U=bH(2f,d);2U[0].G=d;$2J.2O(2U)});$(1a).2O(bB(1e["by"]))};k bA(1c,7k){B T=\'<J 1i="eC"><J 1i="eI">\'+1c+\'&5s;<2I 2S="\'+7k+\'" /></J></J>\';C $("<J></J>").1p("8R").T(T)};k bB(1v){B T=\'<a 1E="\'+1I["4i"]+\'" 1c="\'+1v+\'">\'+1v+\'&5s;<2I 2S="\'+1I["7k"]+\'" 9I="F dP" /></a>\';C $("<J></J>").1p("hu").T(T)};k bH(i,G){if(!G.1c||!G.I)C"";B T=\'\';B I=F.bI+\'&I=\'+39(G.I);T+=\'<J 1f="hz: I(\\\'\'+G.hC+\'\\\') no-hG 52 hI;">\'+\'<J 1f="7g: 1z; 3o: 0; 2W: hO"></J>\'+\'<J 1i="bV">\'+\'<3l 1i="hS">\'+(i+1)+\'</3l>&5s;\'+\'<a 1i="8E" 1l="2m" 1c="\'+G.1c+\'" 1E="\'+I+\'">\'+G.1c+\'</a>\'+\'</J>\'+\'<J 1i="78 7C">\'+\'<p 1i="hZ">i1 i3, i4. <br /><3l>\'+G.cn+\' i8&ia;ib</3l></p>\'+\'</J>\'+\'<J 1f="ic:ih;"></J>\'+\'</J>\';if(1q(F.3Y)=="k"){B 2T=F.3Y(i,G,T,5O);T=(2T!=Q)?2T:T}B 9h=\'6W\';if(i%2==0)9h+=\' 9I\';C $("<J></J>").1p(9h).T(T)};k d8(){4e();3R("iq iu")};k d0(){if(1m==5Z||1m==6P||1m==6I){d2()}L if(1m==5k||1m==5G||1m==5V){d3()}L if(1m==5S){d4()}L if(1m==5O){d8()}L{9k()}$(1a).1A()};k 9l(){$(1a+" J.iT").1u()};k de(G){F[9J]=G;if(1m==6O){4e();dj(G)}L if(1m==5Z||1m==6P||1m==6I){4e();dp(G)}L if(1m==5k||1m==5G||1m==5V){4e();dx(G,1m)}L if(1m==5S){4e();dz(G)}L if(1m==5O){dB(G)}};k 4e(){$("<J><J>").1p("8R").T((((\'<J 1i="jq"><a 1i="jr" 1E="{0}" 1l="2m"><2I 9I="F dP" 3o="38" 2W="14" 2S="{1}"></a><a 1i="jB" 1E="{2}" 1l="2m">{3}</a></J>\'.V("{0}",1I["4i"])).V("{1}",1I["7k"])).V("{2}",1I["4i"])).V("{3}",1e["es"])).2r(1a)};k 3R(T){$("<J></J>").1p("eC").2O($("<J></J>").1p("eI").T(T)).2r($("J.8R",1a))};k eK(T){$("<J></J>").1p("k7").T(T).2r($("J.8R",1a))};k 6N($1a){if(F.9V){$("a",$1a).9g()}L{$("a",$1a).1Y("1c","")}$("3l",$1a).fa(k(){$("a.a5 2I",u).1C("2t","1")},k(){$("a.a5 2I",u).1C("2t","0.3")});$("2I.8c",$1a).2V(bU);$("a",$1a).2V(fC)};k fk(88){B 4Z=2v.bX(88/F.5L);B $5r=$("<J><J 1i=\'1z-68\'></J><ab></ab><J 1i=\'52-68\'></J></J>").1p("kX").2r(1a);$3k=$5r.1R("ab");$6h=$5r;F.5U=1;F.40=4Z;if(F.7s){$6n=6R("3p","ft",bd,$5r.1R("J.1z-68"),R)}if(F.7x){$6s=6R("fy","fz",gZ,$5r.1R("J.1z-68"),R)}if(F.3L){F.3L=(4Z>F.3L)?F.3L:4Z;if(F.3L<4Z){$3k.77($(\'<J 1i="52-3z-5m">\'+1e.8f+\'</J>\'))}L{$3k.77($(\'<J 1i="52-3z-5m 2F">\'+1e.8f+\'</J>\'))}$3k.7X($(\'<J 1i="1z-3z-5m 2F">\'+1e.8f+\'</J>\'));U(B i=0;i<F.3L;i++){aM(i)}}L{U(B i=0;i<4Z;i++){aM(i)}}if(F.7x){B 1u=F.fY<4Z;$6M=6R("fN","fX",gU,$5r.1R("J.52-68"),1u)}if(F.7s){B 1u=F.fY<4Z;$6o=6R("37","g5",bi,$5r.1R("J.52-68"),1u)}};k aM(i){$("<li></li>").1p((i==0)?"3n":"").T((i+1)).2V(hk).gi(hb).2r($3k)};k 6R(1W,gy,M,1a,1u){B b4=$("<a></a>").1Y("1E","#").1p(1W).T(1e[gy]).2V(M).2r(1a);if(1u){b4.1u()}C b4};k bd(e){B 1M=1;$3k.1R("li:3p").2y("2V",[1M]);C S};k gU(e){B 1M=F.5U+1;if(1M==F.40){C bi(e)}L{$3k.1R("li.3n").2y("2V",[1M]);C S}};k gZ(e){B 1M=F.5U-1;if(1M==1){C bd(e)}L{$3k.1R("li.3n").2y("2V",[1M]);C S}};k bi(e){B 1M=F.40;$3k.1R("li:37").2y("2V",[1M]);C S};k hb(){u.nC=k(){C S};C S};k hk(e,1M){if(!1M){B 1M=56($(u).1v())}if(F.7s){if(1M==1){$6n.1u();$6o.2i(":3d").1A()}L if(1M==F.40){$6o.1u();$6n.2i(":3d").1A()}L{$6n.2i(":3d").1A();$6o.2i(":3d").1A()}}if(F.5U!==1M&&1M<=(F.40)){$("li",$3k).bN("3n");if(F.7x){if(1M==1){$6s.1u();$6M.1A()}L if(1M==F.40){$6M.1u();$6s.1A()}L{$6s.1A();$6M.1A()}}if(F.3L>0){B 2Y=2v.bX((F.3L-1)/2);B 6B=1M-2Y;if(6B<1){6B=1}if((1M+2Y)>=F.40){6B=(F.40-F.3L)+1}if(F.3L<F.40&&(1M+2Y)<F.40){$6h.1R("J.52-3z-5m").2i(":3d").1A()}L{$6h.1R("J.52-3z-5m").1u()}if(F.3L<F.40&&(1M-2Y)>1){$6h.1R("J.1z-3z-5m").2i(":3d").1A()}L{$6h.1R("J.1z-3z-5m").1u()}$3k.1R("li").Y(k(i){B a4=6B+i;$(u).T(a4);if(a4==1M){$(u).1p("3n")}})}L{$3k.1R("li").Y(k(i){if((i+1)==1M){$(u).1p("3n")}})}B 76=((1M-1)*F.5L);B 8a=76+F.5L;dI($2J,76,8a);F.5U=1M}};k dI($1a,76,8a){$1a[0].6K="";B 9Y=F[9J].7U.41(76,8a);U(B i=0;i<9Y.N;i++){B G=9Y[i];7L($1a,i,G,R);B 2U=7L(i,G,R);2U[0].G=G;$1a.2O(2U)}6N($1a)};k eP(G){B bE=G.I;B $s=$("<4g>");B s=$s[0];s.1d[s.1d.N]=2H 83(1e["fs"],Q);s.1d[s.1d.N]=2H 83(1e["ao"],"ao");s.1d[s.1d.N]=2H 83(1e["am"],"am");s.1d[s.1d.N]=2H 83(1e["aS"],"aS");$s.gA(k(e){B 1h=$(u).1h();if(1h){B 7A;if(1m==5k){7A=G.2N}L{7A=(O.8N)?O.8N:""}B I=1I["hm"]+bE+"&hA="+1h+"&hU="+7A;$.97(I);G.7N=R;$(u).1Q().1u();$("2I.8c",$(u).1Q().1Q()).1Y("2S",F.4B+1I["7O.3"]).1p("jm").5Q("2V").1A();if(1q(F.9T)=="k"){F.9T()}}}).6y(k(){B f3=u;B f=k(){$(f3).1Q().1u().1Q().1R("2I").1A()};u.ld=4I(f,F.g3)});$s.1A();C $("<J></J>").1p("ng").2O($s).1A()};k bU(e){B G=$(u).1Q()[0].G;if(!G.7N){$(u).1u().7X(eP(G))}};k fC(e){3x{8j=e.1l.1E;bw(7e,8j,2,0)}3v(e){}C R};k cB(5B){C $("<p>"+5B+"</p>").1v()}}})(F.v);',62,1474,'||||||||||||||||||||function||||||||||this|jQuery||||||var|return||elem|Twingly|data|type|url|div|name|else|event|length|window|ret|null|true|false|html|for|replace|value||each||||||||||document|callback|container|selector|title|options|tw_ui|style|langHash|val|class|xhr|feedURL|target|widgetMode|undefined|string|addClass|typeof|test|nodeName|handler|hide|text|nodeType|browser|prop|left|show|http|css|script|href|offsetParent|add|speed|tw_conf|utftext|confHash|events|page|display|body|context|parent|find|arguments|elems|loader|parentNode|className|result|attr|match||||||request_id|msie|parts|String|status|extend|cur|indexOf|opt|com|index|handle|twingly|not|doc|encode|fromCharCode|_blank||Url|array|call|appendTo|filter|opacity|push|Math|tbody|now|trigger|md5_hh|top|md5_ff|md5_gg|while|md5_ii|hidden|constructor|new|img|feedItemList|object|done|documentElement|link|append|num|apply|firstChild|src|tmpHtml|item|click|height|args|offset|timers|Twingly_jQuery|||isFunction|dataType|toLowerCase||last||encodeURIComponent|complete|table|scrollLeft|visible|scrollTop|tmp|split|minutes|confFilesLoaded|cache|pagerList|span|merge|selected|width|first|Array|success|easing|jsonp|head|catch|queue|try|timeout|has||types|one|ready|end|chrsz|remove|classNames|break|special|microblogAvatarSize|pagerLimit|www2|128|tags|guid|urlKey|buildHeader|start|twinglyWidget|charCodeAt|jsonCallbackKey|search|json|onItemComplete|expando|pageTotal|slice|toUpperCase|global|curCSS|border|animate|cssItemName||makeArray|key|unit|safari|all|buildCoreStructure|button|select|px|webpageUrl|self|originalEvent|tagName|map|expr|max|userAgent|ownerDocument|position|SERGEYCHE|toggle|clone|inArray|delete|duration|scripts|copy|siteName|scriptPath|safe_add|system_date|proxy|dir|props|old|setTimeout|input|opera|oid|pushStack|xml|www|exec|swap|which|to|blog|stack|params|GET|from|empty|pages||noOfMicroblogItemsTotal|right|handlers|nextSibling|bind|parseInt|createElement|none|setAttribute|overflow|tag|removeChild|core_md5|async|feedItems|step|removeData|insertBefore|load|LATEST_BLOGGED_MODE|jsre|more|isReady|styleFloat|preventDefault|parseFloat|pager|nbsp|values|namespace|fixed|nth|widget|pos|appendChild|gotoEnd|str|delta_minutes|force|multiFilter|childNodes|LATEST_MICROBLOGGED_MODE|option|websiteUrl|wrap|padding|pageSize|linkTitle|hex_md5|AFFILIATE_TOPLIST_MODE|getElementsByTagName|unbind|readyState|SEARCH_RESULT_MODE|feedLimit|pageCurrent|LATEST_MIXED_MODE|ajax|header|size|TOPLIST_MODE||deep|_|||error|re|get|buttons|node|trim|isMixed|param|str2binl|chars|rl|leftPadString|pagerContainer|method|scrptElement|latestblogged|getLocalTimeForDate|results|pagerFirst|pagerLast|mouseenter|offsetChild|notxml|pagerPrev|curAnim|parentOffset|custom|callee|password|mouseout|getScriptWithCache|color|begin|date|charAt|remoteloader|prototype|websiteName|onComplete|TOPLIST_MIXED_MODE|onreadystatechange|innerHTML|refUrlHash|pagerNext|attachLinksEvents|LINK_MODE|TOPLIST_MICROBLOG_MODE|onSuccess|appendPagerButtonItem|form|mode|disabled|res|tw_item|addEventListener|re2|noOfMicroblogItemsSeen|stopPropagation|headline|mouseleave|readyList|offsetTop|defaultView|startIndex|after|sub|grep|md5_cmn|Width|queryComponent|charCode|normalizedUrl|tw_list|float|mozilla|origStr|computedStyle|logoUrl|javascript|set|block|tw_panel|domManip|timerId|orig|pagerAddFirstLast|detach|letter|update|loaders|pagerAddNextPrev|toplist|scroll|ref|margin|tall|mouseover|location|diff|tw_searchbox|_default|core_hmac_md5|default_conf|loadCSS|buildListItem|links|reported|reportXIcon_1|searchUrl|currentStyle|enableStatistics|tr|Date|linkingDocuments|clean|tw_lw_c|before|article|previousSibling|concat|Top|latestbloggedUrl|Option|nodeIndex|child|getAttribute|RegExp|posts|isXMLDoc|endIndex|relatedTarget|tw_reportbutton|exclusive|timeStamp|has_more_pages|TYPE_BLOG|on|teardown|toUrl|numStyles|absolute|pageX|off|TYPE_MICRO|checked|setup|reportImgURL|tl|application|foundToken|time_string|documents|setRequestHeader|accepts|modRes|ival|requestDone|active|lastModified|tw_postlink|responseText|extra|latestmixedUrl|state|shift|224|Number|latestmicrobloggedUrl|tw_url|firstNum|setInterval|dataHash|tw_lw_header|unique|fromElement|swing|callbacks|tools|speeds|version|box||safari2|offsetLeft|affiliatetoplist|second|inner|pageY|getScript|tw_tooltip|toplistUrl|toplistSection|tw_tt|mixedToplistUrl|startTime|mixedToplistSection|latestmixedSection|twinglyTooltip|itemClass|default_ui|selectedIndex|blogsNotFound|hideLoading|eval|parsererror|Latest|binl2b64|100|onCancel|linked|your|binl2hex|the|Show|Blog|numberOfDocuments|normalizeUrl|widgetdata|linkingUrlHashes|referrer|createTextNode|gif|allFilesLoadedActualAttempts|filesLoaded|default|alt|feedDataKey|isTimeout|round|user_date|andSelf|feedRetried|reverse|obj|loadFeed|lastChild|onReportDone|Modified|addToolTip|onFailure|numberOfPads|tmpArr|ts|00|jquery|radio|init|pageNum|tw_rss_icon|content|removeAttribute|decode|outline|affiliateToplistName|ul|searchresultName|classFilter|MICROBLOG_AVATAR_SIZE_MEDIUM|runtimeStyle|getWH|matched|MICROBLOG_AVATAR_SIZE_LARGE|clientX|tw_lb|latestmicrobloggedSection|irrelevant|latestbloggedSection|spam|triggered|microblogToplistSection|keyCode|||metaKey|ctrlKey|sibling|lastToggle|triggerHandler|bindReady|microblogToplistUrl|readyBound|open|styleSheets|_title|tw_searchbutton|submit|withinElement|pass|unload|timestamp|getElementById|appendPagerItem|Twingly_|isSimple|tooltip|ajaxSettings|checkbox|inappropriate|remote|windowData|reportIcon_1|username|prevObject|microavatar|show_all_links|client|opad|Left|0xFFFF|pagerButtonItem|getPropertyValue|ifModified|binl2str|show_all_results|handleError|file|getResponseHeader|0xFF|pagerEventFirst||visibility|globalEval|getComputedStyle|pagerEventLast|oldblock|fn2|wrapAll|published|hash|sort|optall|1440||imagesURL|getHashValue|dequeue|throw|sendStatEvent|and|blogdata_from|linear|buildAffiliateToplistHeader|buildAffiliateToplistFooter|add_js|200|reportURL|def|callback_data|buildAffiliateToplistItem|affiliateUrl|u00D8|allFilesLoaded|alpha|getBoundingClientRect|removeClass|clientLeft|clientTop|getDefaultLanguage|getDefaultConfig|borderTopWidth|borderLeftWidth|reportEvent|tw_headline|zoom|ceil|boxModel|tw_link_widget|tw_toplist_widget||||Right|Bottom|tw_microblog_toplist_widget|tw_mixed_toplist_widget|tw_latestblogged_widget|tw_latestmicroblogged_widget|tw_latestmixed_widget|tooltipCreated|tw_searchresult_widget|tw_affiliatetoplist_widget|baseDataStore|toplist_baseDataStore|rel|stylesheet|tw_scriptPath|microblogToplist_baseDataStore|tw_pageSize|tw_onComplete|tw_onReportDone|count||mixedToplist_baseDataStore|tw_useSearchBox|tw_toplistUrl|tw_microblogToplistUrl||tw_mixedToplistUrl|latestblogged_baseDataStore|tw_mixedToplistSection|tw_pagerLimit|latestmicroblogged_baseDataStore|tw_useNumericalDate|tw_latestbloggedUrl|htmlDecode|latestmixed_baseDataStore|tw_latestbloggedSection|tw_latestmicrobloggedSection|tw_latestmixedSection|tw_highlightLinkedPage|tw_searchresultName|tw_enableStatistics|searchresult_baseDataStore|tw_statisticsUrl|tw_affiliateToplistName|tw_microblogAvatarSize|searchName|affiliatetoplist_baseDataStore|affiliatetoplist_baseImageStore|tw_language|langConf|conf|tw_conf_|toplistName|u00E6|scriptConf|imagesUrlKey|tw_css_id|tw_localCss|dataNotFound|MICROBLOG_AVATAR_SIZE_SMALL|topListNotFound|latestbloggedNotFound|searchResultNotFound|valid|minute|missing_twingly_link|affiliateToplistNotFound|One|day|comments|No||buildWidget|nodeValue|microblogged|blogged|feedRetriesLimit|buildLink|If|post|httpNotModified|feedLoadTimeout|hasTwinglyLink|buildToplist|subheader|alwaysShowPager|specified|col|ago|colgroup|tw_numberOfPosts|buildLatestBlogged|ashx|buildSearchResult|avatarstripes|buildAffiliateToplist|u00DC|ping|allFilesLoadedMaxAttempts|statisticsUrl|statsBaseUrl|fromUrl|renderPages|regex|u00E9|urlfilter|timeOnPage|statUrl|time_lessThanOneMinute|logo|time_minute|multiple|time_minutes_plural|rssURL|u00F6|time_oneHour|rssIcon|time_hours|time_oneDay|siteURL|fieldset|useSearchBox|time_approxOneDay|buildPingInformation|time_days|time|blog_about_this_article|ping_info_text|ping_info_url|ping_info_link_text|u00C4|useNumericalDate|buildSearchForm|no_blog_comments_yet|numericalDatePattern|you|yyyy|quickExpr|setArray|front|cloneNode|timePattern||u00C5|min|ss||blog_search|twingly_blog_search|searchPattern||uuid|distanceOfTimeInWords|exclude|time_since_format|u00E4|rsLeft|save|tw_headerarea|desiredLength|origLength|keydown|camelCase|padChar|tw_header|u00E5|buildSubHeader|buildTopListItem|toplist_headline|u00D6|u00FC|buildReportForm|strong|u00C9|u00DF|toplist_blog_links|u00FB|u00DB|getAttributeNode|u00C6|no_toplist_headline|u00F8|latestblogged_headline|inv|_utf8_encode|oThis|webkit|2048|cssFloat|textarea|191|contents|hover|prepend|microblog|Utf8|replaceWith|original|compatMode|CSS1Compat|handleSpecialUrlCharacters|unescape|buildPager|reset|tw_conf_id||quickID|quickClass|latestmicroblogged_baseAvatarStore|tw_conf_path|choose|first_button|scriptLangURL|tw_ui_id|distance||prev|prev_button|tw_affiliateUrl|attachEvent|postClickEvent|detachEvent|unshift|itemType|fix|highlightLinkedPage|_jQuery|tw_bloglink|donative|tw_latestmixedUrl|tw_latestmicrobloggedUrl|next|srcElement|tw_useFirstLast|tw_useNextPrev|tw_rss_link|toElement|tw_microblogToplistSection|tw_toplistSection|clientY|removeEventListener|next_button|pageLimit|fnOver|fnOut|tw_alwaysShowPager|tw_onItemComplete|dropTimeout|DOMContentLoaded|last_button|tw_postLimit|even|odd|abs|substr|latestmixed_baseAvatarStore|_load|parse|serializeArray|timePostfix|makeUrlsClickable|quickChild|mousedown|POST|evalScript|continue|settings|processData|linkRegexp|jsc|permalink|ajaxStart|image||latestblogged_not_found_headline|scriptCharset|loaded|ActiveXObject|uiKey|contentType|change|512|dateTimeDivider|Height|textContent|XMLHttpRequest|loadConfData|beforeSend|ajaxSend|notmodified|bit_rol|tw_showall|abort|ajaxSuccess|ajaxComplete|ajaxStop|ajaxError|buildSearchResultItem|httpSuccess|hexcase|pagerEventNext|Last|0xF|304|xhrRes|pagerEventPrev|httpData|tw_excerpt|label|b64pad|join|_toggle|searchresult_not_found_headline|toString|clearQueue|latestmixed_headline|bDefer|cancelSelection|127|_utf8_decode|campaignLogoUrl|latestmicroblogged_headline|splice||clearInterval|items|pagerEvent|isArrayLike|abuseHandler|property|192|buildLatestBloggedItem|slow||600|fast|tw_footer|400|with|522|adobeair|background|action|able|imageUrl|inline|toplistmicroblog|toplistmixed|repeat|latestmicroblogged|3px|latestmixed|searchresult|marginTop|marginLeft|small|55px|medium|static|large|tw_number|scrollTo|refurl|pageYOffset|pageXOffset|outer|calcScroll|tw_info|FeedData|Av|twinglywidget|Antonsson|Monica|tw_exposejQuery|1500|2000|bloggl|tw_useToolTip|auml|nkar|clear|||||both|stats|Stats|tw_sq|tw_ui_|tw_at||tw_skipDefaultCss|tw_css_|hittade|widget2|||inget|tw_widget|tw_small|Choose|Spam|tw_medium|Irrelevant|Inappropriate|tw_large|Showing|most|latest|Search|time_since|alert|Less|than|time_minutes_plural_suffix|hour|hours|days|About|time_from_now|yet|articles|loading|list|found|From|rsaquo|lsaquo|laquo|raquo|hellip|comment|will|here|Ping|us|about|Sorry|need|into|documentation|hasPager|api|abusereport|numberOfPosts|widgetsearch|images|feed|icon|12x12|png|nopointer|twingly_blogsearch_logotype|report|report_x|tw_logo|tw_logolink||timeonpage|isNaN|websiteRssUrl|1080|2880|floor|1000|getTimezoneOffset|tw_link|getDate|getMonth|getFullYear|wrapInner|tw_searchframe|hasClass|getHours|attributes|getMinutes|getSeconds|getData|setData|Boolean|weight|line|noConflict|offsetWidth|offsetHeight|solid|black|tw_window|toLocaleDateString|pixelLeft|abbr|meta|area|embed|leg|thead|tfoot|colg|tw_sub_header|cap|td|th|can|changed|cssText|NaN|escape|navigator|rv|ra|compatible|htmlFor|readonly|readOnly|maxlength|cellspacing|cellSpacing|parents|prevAll|siblings|children|iframe|contentDocument|contentWindow|prependTo|insertAfter|replaceAll|removeAttr|toggleClass|u0128|b64_md5|uFFFF|str_md5|hex_hmac_md5|b64_hmac_md5|contains|str_hmac_md5|innerText|md5_vm_test|enabled|abc|900150983cd24fb0d6963f7d28e17f72|0x80|animated|1732584193|271733879|1732584194|mb_exists|271733878|680876936|tw_pager|389564586|606105819|tw_microitem|1044525330|176418897|1200080426|1473231341|45705983|1770035416|1958414417|42063|0n|1990404162|1804603682|40341101|_twTimeout|1502002290|1236535329|165796510|1069501632||643717713|373897302|701558691|38016083|altKey|660478335|405537848|cancelable|568446438|1019803690||eventPhase|newValue|187363961|originalTarget|prevValue|1163531501|relatedNode|screenX|1444681467|screenY|shiftKey|51403784|view|wheelDelta|detail|currentTarget|1735328473|bubbles|attrName|attrChange|1926607734|returnValue|378558|tw_avatar|cancelBubble|2022574463|1839030562|35309556|1530992060|1272893353|155497632|1094730640|681279174|358537222|722521979|76029189|640364487|421815835|530742520|doScroll|995338651|198630844|1126891415||blur|focus|1416354905|relative|resize|dblclick|57434055|mouseup|mousemove|keypress||1700485571|keyup|1894986606|tw_micropost|1051523|substring|2054922799|1873313359|serialize|30611744|middot|elements|1560198380|1309151649|145523070|getJSON|1120210379|ajaxSetup|urlencoded|718787259|plain|font|343485551|1_|extlink|host|charset|onload|matchingDocuments|Microsoft|XMLHTTP|Content|0x36363636|Type|0x5C5C5C5C|Since|Thu|01|only|Jan|1970|GMT|Requested|With|417|Accept|dataFilter|query|send|protocol|0123456789ABCDEF|300|1223|0123456789abcdef|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|tw_selectbox|responseXML|summary|tw_timestamp|slideDown|slideUp|0x3F|slideToggle||fadeIn|fadeOut|fadeTo|stop|language|JavaScript|Object|nextAll|logos|Function|defer|maxLength|campaignName|onselectstart|cos|PI|cancel|10000|Loader|must|1px|have|least'.split('|'),0,{}))
;
(function(){if(window.Twingly_jQuery){var _jQuery=window.Twingly_jQuery}var jQuery=window.Twingly_jQuery=function(selector,context){return new jQuery.prototype.init(selector,context)};if(window.Twingly_$){var _$=window.Twingly_$}window.Twingly_$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}else{if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}else{this[0]=elem;this.length=1;return this}}else{selector=[]}}}else{return new jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}}return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&jQuery.makeArray(selector)||[selector])},jquery:"1.2.3",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;this.each(function(i){if(this==elem){ret=i}});return ret},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],name)||undefined}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return !selector?this:this.pushStack(jQuery.merge(this.get(),selector.constructor==String?jQuery(selector).get():selector.length!=undefined&&(!selector.nodeName||jQuery.nodeName(selector,"form"))?selector:[selector]))},is:function(selector){return selector?jQuery.multiFilter(selector,this).length>0:false},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=value.constructor==Array?value:[value];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this.length?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value==null){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data==undefined&&this.length){data=jQuery.data(this[0],key)}return data==null&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.prototype.init.prototype=jQuery.prototype;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==1){target=this;i=0}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){if(target===options[name]){continue}if(deep&&options[name]&&typeof options[name]=="object"&&target[name]&&!options[name].nodeType){target[name]=jQuery.extend(target[name],options[name])}else{if(options[name]!=undefined){target[name]=options[name]}}}}}return target};var expando="jQuery"+(new Date()).getTime(),uuid=0,windowData={};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;jQuery.extend({noConflict:function(deep){window.Twingly_$=_$;if(deep){window.Twingly_jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.appendChild(script);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!=undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){if(args){if(object.length==undefined){for(var name in object){if(callback.apply(object[name],args)===false){break}}}else{for(var i=0,length=object.length;i<length;i++){if(callback.apply(object[i],args)===false){break}}}}else{if(object.length==undefined){for(var name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var i=0,length=object.length,value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret;function color(elem){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=elem.style.outline;elem.style.outline="0 solid black";elem.style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&elem.style&&elem.style[name]){ret=elem.style[name]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var getComputedStyle=document.defaultView.getComputedStyle(elem,null);if(getComputedStyle&&!color(elem)){ret=getComputedStyle.getPropertyValue(name)}else{var swap=[],stack=[];for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(var i=0;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(getComputedStyle&&getComputedStyle.getPropertyValue(name))||"";for(var i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left,runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem=elem.toString()}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(jQuery.browser.msie&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem.setAttribute(name,""+value)}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(typeof array!="array"){for(var i=0,length=array.length;i<length;i++){ret.push(array[i])}}else{ret=array.slice(0)}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]==elem){return i}}return -1},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv&&callback(elems[i],i)||inv&&!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!==null&&value!=undefined){if(value.constructor!=Array){value=[value]}ret=ret.concat(value)}}return ret}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(jQuery.browser.msie&&elem.setInterval!=undefined){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(arguments.callee.elem,arguments);return val});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data||[]);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift(this.fix({type:type,target:elem}))}data[0].type=type;if(exclusive){data[0].exclusive=true}if(jQuery.isFunction(jQuery.data(elem,"handle"))){val=jQuery.data(elem,"handle").apply(elem,data)}if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var handlers=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in handlers){var handler=handlers[j];args[0].handler=handler;args[0].data=handler.data;if(!parts[1]&&!event.exclusive||handler.type==parts[1]){var ret=handler.apply(this,args);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}if(jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=originalEvent.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}arguments[0].type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}arguments[0].type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){if(this[0]){return jQuery.event.trigger(type,data,this[0],false,fn)}return undefined},toggle:function(){var args=arguments;return this.click(function(event){this.lastToggle=0==this.lastToggle?1:0;event.preventDefault();return args[this.lastToggle].apply(this,arguments)||false})},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url)){return this.bind("load",url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,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(s){var jsonp,jsre=/=\?(&|$)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&s.type.toLowerCase()=="get"){var ts=(new Date()).getTime();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if((!s.url.indexOf("http")||!s.url.indexOf("//"))&&s.dataType=="script"&&s.type.toLowerCase()=="get"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async,s.username,s.password);try{if(s.data){xml.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xml.setRequestHeader("X-Requested-With","XMLHttpRequest");xml.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend){s.beforeSend(xml)}if(s.global){jQuery.event.trigger("ajaxSend",[xml,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xml,s.dataType)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xml,status)}complete();if(s.async){xml=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xml.send(s.data)}catch(e){jQuery.handleError(s,xml,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}function complete(){if(s.complete){s.complete(xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xml},handleError:function(s,xml,status,e){if(s.error){s.error(xml,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xml,s,e])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||r.status==1223||jQuery.browser.safari&&r.status==undefined}catch(e){}return false},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined}catch(e){}return false},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall);var hidden=jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return jQuery.isFunction(opt.complete)&&opt.complete.apply(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.apply(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(!elem){return undefined}type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[])}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].apply(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.apply(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this])}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=(new Date()).getTime();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),fixed=jQuery.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&jQuery.css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||jQuery.css(offsetChild,"position")=="absolute"))||(mozilla&&jQuery.css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}return results}})();(function(B){B.dimensions={version:"@VERSION"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.css("display")!="none"?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.css("display")!="none"?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(Twingly_jQuery);(function(E){var I,H,G,D,F,J,C;E.fn.cluetip=function(L,K){if(typeof L=="object"){K=L;L=null}return this.each(function(j){var U=E(this);var f=E.extend(false,{},E.fn.cluetip.defaults,K||{},E.metadata?U.metadata():E.meta?U.data():{});var O=false;var Y=parseInt(f.cluezIndex,10)-1;var r=false,q=0;if(!E("#cluetip").length){H=E('<div id="cluetip-inner"></div>');D=E('<h3 id="cluetip-title"></h3>');G=E('<div id="cluetip-outer"></div>').append(H).prepend(D);I=E('<div id="cluetip"></div>').css({zIndex:f.cluezIndex}).append(G).append('<div id="cluetip-extra"></div>')[B](A).hide();E('<div id="cluetip-waitimage"></div>').css({position:"absolute",zIndex:Y-1}).insertBefore("#cluetip").hide();I.css({position:"absolute",zIndex:Y});G.css({position:"relative",zIndex:Y+1});F=E('<div id="cluetip-arrows" class="cluetip-arrows"></div>').css({zIndex:Y+1}).appendTo("#cluetip")}var h=(f.dropShadow)?+f.dropShadowSteps:0;if(!J){J=E([]);for(var u=0;u<h;u++){J=J.add(E("<div></div>").css({zIndex:Y-u-1,opacity:0.1,top:1+u,left:1+u}))}J.css({position:"absolute",backgroundColor:"#000"}).prependTo(I)}var d=U.attr(f.attribute),R=f.cluetipClass;if(!d&&!f.splitTitle&&!L){return true}if(f.local&&f.hideLocal){E(d+":first").hide()}var e=parseInt(f.topOffset,10),a=parseInt(f.leftOffset,10);var Z,s;var W=isNaN(parseInt(f.height,10))?"auto":(/\D/g).test(f.height)?f.height:f.height+"px";var M,S,k,x,m,t;var X=isNaN(parseInt(f.width,10))?275:parseInt(f.width,10);var v=X+(parseInt(I.css("paddingLeft"))||0)+(parseInt(I.css("paddingRight"))||0)+h;var b=this.offsetWidth;var T,l,y,n,N;var p;var g=(f.attribute!="title")?U.attr(f.titleAttribute):"";if(f.splitTitle){if(g==undefined){g=""}p=g.split(f.splitTitle);g=p.shift()}var Q;var V=function(AD){if(!f.onActivate(U)){return false}r=true;I.removeClass().css({width:X});if(d==U.attr("href")){U.css("cursor",f.cursor)}U.attr("title","");if(f.hoverClass){U.addClass(f.hoverClass)}S=k=U.offset().top;T=U.offset().left;n=AD.pageX;m=AD.pageY;if(U[0].tagName.toLowerCase()!="area"){M=E(document).scrollTop();N=E(window).width()}if(f.positionBy=="fixed"){l=b+T+a;I.css({left:l})}else{l=(b>T&&T>v)||T+b+v+a>N?T-v-a:b+T+a;if(U[0].tagName.toLowerCase()=="area"||f.positionBy=="mouse"||b+v>N){if(n+20+v>N){I.addClass(" cluetip-"+R);l=(n-v-a)>=0?n-v-a-parseInt(I.css("marginLeft"),10)+parseInt(H.css("marginRight"),10):n-(v/2)}else{l=n+a}}var AA=l<0?AD.pageY+e:AD.pageY;I.css({left:(l>0&&f.positionBy!="bottomTop")?l:(n+(v/2)>N)?N/2-v/2:Math.max(n-(v/2),0)})}s=E(window).height();if(L){H.html(L);o(AA)}else{if(p){var AB=p.length;for(var AC=0;AC<AB;AC++){if(AC==0){H.html(p[AC])}else{H.append('<div class="split-body">'+p[AC]+"</div>")}}o(AA)}else{if(!f.local&&d.indexOf("#")!=0){if(O&&f.ajaxCache){H.html(O);o(AA)}else{var AE=f.ajaxSettings;AE.url=d;AE.beforeSend=function(){G.children().empty();if(f.waitImage){E("#cluetip-waitimage").css({top:m+20,left:n+20}).show()}};AE.error=function(){if(r){H.html("<i>sorry, the contents could not be loaded</i>")}};AE.success=function(i){O=f.ajaxProcess(i);if(r){H.html(O)}};AE.complete=function(){C=E("#cluetip-inner img").length;if(C&&!E.browser.opera){E("#cluetip-inner img").load(function(){C--;if(C<1){E("#cluetip-waitimage").hide();if(r){o(AA)}}})}else{E("#cluetip-waitimage").hide();if(r){o(AA)}}};E.ajax(AE)}}else{if(f.local){var AF=E(d+":first");var z=E.fn.wrapInner?AF.wrapInner("<div></div>").children().clone(true):AF.html();E.fn.wrapInner?H.empty().append(z):H.html(z);o(AA)}}}}};var o=function(AA){I.addClass("cluetip-"+R);if(f.truncate){var AB=H.text().slice(0,f.truncate)+"...";H.html(AB)}function i(){}g?D.show().html(g):(f.showTitle)?D.show().html("&nbsp;"):D.hide();if(f.sticky){var z=E('<div id="cluetip-close"><a href="#">'+f.closeText+"</a></div>");(f.closePosition=="bottom")?z.appendTo(H):(f.closePosition=="title")?z.prependTo(D):z.prependTo(H);z.click(function(){c();return false});if(f.mouseOutClose){if(E.fn.hoverIntent&&f.hoverIntent){I.hoverIntent({over:i,timeout:f.hoverIntent.timeout,out:function(){z.trigger("click")}})}else{I.hover(i,function(){z.trigger("click")})}}else{I.unbind("mouseout")}}var AC="";G.css({overflow:W=="auto"?"visible":"auto",height:W});Z=W=="auto"?Math.max(I.outerHeight(),I.height()):parseInt(W,10);x=k;t=M+s;if(f.positionBy=="fixed"){x=k-f.dropShadowSteps+e}else{if((l<n&&Math.max(l,0)+v>n)||f.positionBy=="bottomTop"){if(k+Z+e>t&&m-M>Z+e){x=m-Z-e;AC="top"}else{x=m+e;AC="bottom"}}else{if(k+Z+e>t){x=(Z>=s)?M:t-Z-e}else{if(U.css("display")=="block"||U[0].tagName.toLowerCase()=="area"||f.positionBy=="mouse"){x=AA-e}else{x=k-f.dropShadowSteps}}}}if(AC==""){l<T?AC="left":AC="right"}I.css({top:x+"px"}).removeClass().addClass("clue-"+AC+"-"+R).addClass(" cluetip-"+R);if(f.arrows){var AD=(k-x-f.dropShadowSteps);F.css({top:(/(left|right)/.test(AC)&&l>=0&&AD>0)?AD+"px":/(left|right)/.test(AC)?0:""}).show()}else{F.hide()}J.hide();I.hide()[f.fx.open](f.fx.open!="show"&&f.fx.openSpeed);if(f.dropShadow){J.css({height:Z,width:X}).show()}if(E.fn.bgiframe){I.bgiframe()}if(f.delayedClose>0){q=setTimeout(c,f.delayedClose)}f.onShow(I,H)};var w=function(){r=false;E("#cluetip-waitimage").hide();if(!f.sticky||(/click|toggle/).test(f.activation)){c();clearTimeout(q)}if(f.hoverClass){U.removeClass(f.hoverClass)}E(".cluetip-clicked").removeClass("cluetip-clicked")};var c=function(){G.parent().hide().removeClass().end().children().empty();if(g){U.attr(f.titleAttribute,g)}U.css("cursor","");if(f.arrows){F.css({top:""})}};if((/click|toggle/).test(f.activation)){U.click(function(i){if(I.is(":hidden")||!U.is(".cluetip-clicked")){V(i);E(".cluetip-clicked").removeClass("cluetip-clicked");U.addClass("cluetip-clicked")}else{w(i)}this.blur();return false})}else{if(f.activation=="focus"){U.focus(function(i){V(i)});U.blur(function(i){w(i)})}else{U.click(function(){if(U.attr("href")&&U.attr("href")==d&&!f.clickThrough){return false}});var P=function(i){if(f.tracking==true){var AA=l-i.pageX;var z=x?x-i.pageY:k-i.pageY;U.mousemove(function(AB){I.css({left:AB.pageX+AA,top:AB.pageY+z})})}};if(E.fn.hoverIntent&&f.hoverIntent){U.mouseover(function(){U.attr("title","")}).hoverIntent({sensitivity:f.hoverIntent.sensitivity,interval:f.hoverIntent.interval,over:function(i){V(i);P(i)},timeout:f.hoverIntent.timeout,out:function(i){w(i);U.unbind("mousemove")}})}else{U.hover(function(i){V(i);P(i)},function(i){w(i);U.unbind("mousemove")})}}}})};E.fn.cluetip.defaults={width:275,height:"auto",cluezIndex:97,positionBy:"auto",topOffset:15,leftOffset:15,local:false,hideLocal:true,attribute:"rel",titleAttribute:"title",splitTitle:"",showTitle:true,cluetipClass:"default",hoverClass:"",waitImage:true,cursor:"help",arrows:false,dropShadow:true,dropShadowSteps:6,sticky:false,mouseOutClose:false,activation:"hover",clickThrough:false,tracking:false,delayedClose:0,closePosition:"top",closeText:"Close",truncate:0,fx:{open:"show",openSpeed:""},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(K){return true},onShow:function(K,L){},ajaxCache:true,ajaxProcess:function(K){K=K.replace(/<s(cript|tyle)(.|\s)*?\/s(cript|tyle)>/g,"").replace(/<(link|title)(.|\s)*?\/(link|title)>/g,"");return K},ajaxSettings:{dataType:"html"},debug:false};var B="appendTo",A="body";E.cluetip={};E.cluetip.setup=function(K){if(K&&K.insertionType&&(K.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){B=K.insertionType}if(K&&K.insertionElement){A=K.insertionElement}}})(Twingly_jQuery);(function(A){A.extend({loadCSS:function(B){var C=document.createElement("link");C.setAttribute("rel","stylesheet");C.setAttribute("type","text/css");C.setAttribute("href",B);A("head")[0].appendChild(C)}})})(Twingly_jQuery);(function(B){var A=window.Twingly={VERSION:"1.1.1",conf:{jsapiUrl:"http://static.twingly.com/jsapi/1.1.1/twingly.js",css:["http://static.twingly.com/jsapi/1.1.1/twingly.css"]},extend:function(C){B.extend(this,C)},util:{trim:function(C){return B.trim(C)},escapeHtml:function(C){return B("<div/>").text(C).html()},unescapeHtml:function(C){return B("<div>"+C+"</div>").text()},leftPadString:function(D,G,C){var F=C-D.length;if(F>0){for(var E=0;E<F;E++){D=G+D}}return D},getDateString:function(D){var C=A.util.leftPadString(""+D.getDate(),"0",2);var F=A.util.leftPadString(""+(D.getMonth()+1),"0",2);var G=D.getFullYear();var E=(("{0}-{1}-{2}".replace("{0}",G)).replace("{1}",F)).replace("{2}",C);return E},getTimeSinceDateString:function(G){var F=new Date();var J=Math.floor((F-G)/(60*1000));if(J<0){J=0}var D=Math.floor(J/(30*24*60));var I=Math.floor((J-(D*30*24*60))/(24*60));var C=Math.floor((J-(I*24*60))/60);var E=Math.floor(J-(C*60));var H="";if(D>0){return A.util.getDateString(G)}else{if(I>0){if(I>0){if(I==1){H=A.widget.conf.strings.time_Day}else{H=A.widget.conf.strings.time_Days}H=H.replace("{0}",I)}}else{if(C>0){if(C>0){if(C==1){H=A.widget.conf.strings.time_Hour}else{H=A.widget.conf.strings.time_Hours}H=H.replace("{0}",C)}}else{if(E>0){if(E>0){if(E==1){H=A.widget.conf.strings.time_Minute}else{H=A.widget.conf.strings.time_Minutes}H=H.replace("{0}",E)}}else{H=A.widget.conf.strings.time_Minute.replace("{0}",0)}}}}H+=A.widget.conf.strings.time_ago;return H}},_onLoad:function(){for(var C=0;C<A.conf.css.length;C++){B.loadCSS(A.conf.css[C])}}};B(document).ready(function(){A._onLoad()})})(Twingly_jQuery);(function(A){Twingly.extend({search:{conf:{searchUrl:{json:"http://www.twingly.com/search.json?callback=?&",rss:"http://www.twingly.com/search.rss?",web:"http://www.twingly.com/search?"}},perform:function(F,E,C,B,G){var D=Twingly.search._getRequestUrl(F,E,C,B,"json");A.getJSON(D,null,function(H){Twingly.search._handleResponse(H,G)})},_getRequestUrl:function(F,E,D,B,G){if(G==undefined||Twingly.search.conf.searchUrl[G]==undefined){return""}else{var C=Twingly.search.conf.searchUrl[G]+"q="+encodeURIComponent(F);if(E!=undefined&&E!=null&&E!="undefined"&&E!=""){C+="&content="+encodeURIComponent(E)}if(D!=undefined&&D!=null&&D!="undefined"&&D!=""){C+="&site="+encodeURIComponent(D)}if(B!=undefined&&B!=null&&B!="undefined"&&B!=""){C+="&excludesite="+encodeURIComponent(B)}return C}},_handleResponse:function(B,D){var C=B;if(B.items==undefined){C={items:B,totalFound:B.length+1}}D(C)},_isQuerySpamFree:function(C){var B=new RegExp(/approved:1/);return B.test(C)}}})})(Twingly_jQuery);(function(A){Twingly.extend({widget:{currentGetThisWidgetId:0,conf:{emailNotificationUrl:"http://www.twingly.com/rsstoemail/subscribe?rssurl={rssurl}&redirectToReferrer=true",strings:{time_Day:"{0} day",time_Days:"{0} days",time_Hour:"{0} hour",time_Hours:"{0} hours",time_Minute:"{0} minute",time_Minutes:"{0} minutes",time_ago:" ago"},images:{logo:"http://static.twingly.com/content/images/twingly-logo-mini.png",logo_gif:"http://static.twingly.com/content/images/twingly-logo-mini.gif"},viewTemplates:{"showblog=no":{css:{".twingly_item_websitename":{display:"none"},".twingly_item_rss":{display:"none"},".twingly_item_date":{"float":"none",display:"block","text-align":"right"}}}},widgetTemplates:{RecentPosts:{viewTemplate:"ShowBlog=no",requireUrl:true,query:"blog:{url} sort:published",options:{spamFree:true,title:"Recent posts",count:5}},RecentLinkingPosts:{requireUrl:true,query:"link:{url}* sort:published",options:{spamFree:true,title:"Recent linking posts",count:5}},MostLinkedPosts:{viewTemplate:"ShowBlog=no",requireUrl:true,query:"blog:{url} sort:inlinks",options:{spamFree:true,title:"Most linked posts",count:5}}}},add:function(B,G,F,E,C,D){Twingly.widget._add(Twingly.widget._newWidget(B,G,F,E,C,D))},_newWidget:function(E,H,F,D,B,C){var G={element:E,query:H,content:F,site:D,excludesite:B,options:C};G.config={query:G.query,content:G.content,site:D,excludesite:B,title:C.title,count:C.count};return G},_add:function(D){var B=D.options.spamFree;if(D.query&&B){var C=new RegExp(/approved:[01]/);if(!C.test(D.query)){D.query+=" approved:1";D.options.spamFree=true}}if(D.options&&!D.options.count){D.options.count=5}A(D.element).hide();Twingly.search.perform(Twingly.util.unescapeHtml(D.query),Twingly.util.unescapeHtml(D.content),Twingly.util.unescapeHtml(D.site),Twingly.util.unescapeHtml(D.excludesite),function(E){A(D.element).each(function(){D.element=this;Twingly.widget._buildWidget(D,E)})})},_onLoad:function(){A.each(Twingly.widget._findWidgets(".twingly_widget"),function(){Twingly.widget._add(this)})},_findWidgets:function(B){var D=[];var E=A(B);for(var C=0;C<E.length;C++){D[C]=Twingly.widget._getWidgetConfiguration(E[C])}return D},_getWidgetConfiguration:function(E){var F={element:E,options:{},config:{}};var N=Twingly.util.trim(A(E).find(".widget:first").html());if(N!=undefined&&N!=null&&N!=""){F.config.templateName=N;var L=Twingly.widget.conf.widgetTemplates[N];if(L!=undefined&&L!=null){F.query=Twingly.util.unescapeHtml(L.query);F.options=(L.options==undefined?{}:L.options);if(L.viewTemplate){F.options.template=L.viewTemplate}var B=A(E).find(".url:first").html();if(L.requireUrl){if(B!=null){B=Twingly.util.trim(Twingly.util.unescapeHtml(B));F.config.url=B;F.query=F.query.replace(/{url}/,B)}else{F.error="No URL configured. Please check the configuration."}}}else{F.error='No such widget ("'+N+'") exists. Please check the configuration.'}}var I=A(E).find(".query:first").html();var H=A(E).find(".content:first").html();var C=A(E).find(".site:first").html();var J=A(E).find(".excludesite:first").html();var K=A(E).find(".title:first").html();var G=A(E).find(".count:first").html();var D=A(E).find(".spam-free:first").html();var M=A(E).find(".template:first").html();if(I!=null){F.query=Twingly.util.trim(Twingly.util.unescapeHtml(I));F.config.query=F.query}if(H!=null){F.content=Twingly.util.trim(Twingly.util.unescapeHtml(H));F.config.content=F.content}if(C!=null){F.site=Twingly.util.trim(Twingly.util.unescapeHtml(C));F.config.site=F.site}if(J!=null){F.excludesite=Twingly.util.trim(Twingly.util.unescapeHtml(J));F.config.excludesite=F.excludesite}if(K!=null){F.options.title=Twingly.util.trim(Twingly.util.unescapeHtml(K));F.config.title=F.options.title}if(G!=null){F.options.count=Twingly.util.trim(G);F.config.count=F.options.count}if(D!=null){D=Twingly.util.trim(D).toLowerCase();if(D=="yes"||D=="true"||D=="1"){F.options.spamFree=true}else{F.options.spamFree=false}F.config.spamFree=F.options.spamFree}if(M!=null){F.options.template=Twingly.util.trim(M);F.config.template=F.options.template}return F},_applyTemplate:function(E,D){if(D){D=D.toLowerCase();if(Twingly.widget.conf.viewTemplates[D]){var C=Twingly.widget.conf.viewTemplates[D].css;for(var B in C){A(E).find(B).css(C[B])}}}},_buildWidget:function(F,D){var B=A(F.element).html("");var E=A("<div></div>").addClass("twingly_header").appendTo(B);var H=A("<div></div>").addClass("twingly_list").appendTo(B);var I=A("<div></div>").addClass("twingly_footer").appendTo(B);var J=F.options;J.title=((J.title==undefined||J.title==null)?"Twingly Widget":J.title);Twingly.widget._buildHeader(E,J.title);if(F.error!=undefined||F.error!=null){Twingly.widget._buildErrorMessage(H,F.error)}else{var G=(J.count==undefined||J.count==null?D.items.length:J.count);if(D.items.length>0){for(var C=0;C<G&&C<D.items.length;C++){Twingly.widget._buildListItem(H,D.items[C])}}else{Twingly.widget._buildNoResultsInfo(H,F.query,F.content,F.site,F.excludesite,J.spamFree)}Twingly.widget._buildFooter(I,F.query,F.content,F.site,F.excludesite,D.totalFound,Math.min(D.items.length,G));Twingly.widget._buildGetThisWidget(B,F.query,F.content,F.site,F.excludesite,F.config);Twingly.widget._applyTemplate(B,J.template)}A(F.element).show()},_buildErrorMessage:function(B,D){var C='<div class="twingly_error"><p><strong>An error occured</strong></p><strong>Message:</strong> '+D+"</div>";C+='<p><a href="http://www.twingly.com/feedback" target="_blank">Leave Feedback</a></p>';A(C).appendTo(B)},_buildNoResultsInfo:function(D,H,G,E,C,B){var F='<div class="twingly_no_results"><p>No results found.</p><ul><li>Try <a href="http://www.twingly.com/ping">pinging your blog at Twingly</a> if you expected it to show up here.</li>';if(Twingly.search._isQuerySpamFree(H)){H=H.replace(/approved\:1/g,"");F+='<li>This widget only shows approved blogs. Search for all posts at <a href="'+Twingly.util.escapeHtml(Twingly.search._getRequestUrl(H,G,E,C,"web"))+'">Twingly Blog Search</a>.</li>'}F+="<li>Or perhaps there aren't any results for this query.</li></ul></div>";A(F).appendTo(D)},_buildHeader:function(C,D){var B='<div class="twingly_logo"><a href="http://www.twingly.com/" title="Twingly Blog Search"><img src="'+Twingly.widget._getLogoUrl()+'" alt="Twingly" /></a></div><div class="twingly_title">'+D+"</div>";A(B).appendTo(C)},_buildFooter:function(E,H,G,C,B,F,I){var D='<div class="twingly_showall">';if(I>0&&F>I){D+='<a href="'+Twingly.util.escapeHtml(Twingly.search._getRequestUrl(H,G,C,B,"web"))+'">Show all results</a>'}D+='</div><div class="twingly_subscribe">Subscribe: <a href="'+Twingly.util.escapeHtml(Twingly.search._getRequestUrl(H,G,C,B,"rss"))+'" class="twingly_subscribe_rss" target="_blank">RSS</a> <a href="'+Twingly.util.escapeHtml(Twingly.widget._getEmailNotificationUrl(H,G,C,B))+'" class="twingly_subscribe_email" target="_blank">E-mail</a></div>';A(D).appendTo(E)},_buildListItem:function(D,C){var B='<div class="twingly_item"><span class="twingly_item_title"><a href="'+Twingly.util.escapeHtml(encodeURI(C.url))+'" title="'+C.title+'">'+C.title+'</a></span><span class="twingly_item_date">'+Twingly.util.getTimeSinceDateString(new Date(C.pubDateMs))+'</span><a class="twingly_item_rss" href="'+Twingly.util.escapeHtml(C.websiteRssUrl)+'">&nbsp;</a><span class="twingly_item_websitename"><a href="'+Twingly.util.escapeHtml(encodeURI(C.websiteUrl))+'" title="'+C.websiteName+'">'+C.websiteName+"</a></span></div>";A(B).appendTo(D)},_buildGetThisWidget:function(G,H,F,D,B,C){A('<div class="twingly_get_this_widget_popup" style="display:none;"></div>').appendTo(G);var I="get_this_widget_content_"+Twingly.widget.currentGetThisWidgetId;Twingly.widget.currentGetThisWidgetId+=1;var E='<div class="twingly_get_widget"><a rel="#'+I+'" href="javascript:void(0)" title="Get this widget for your blog!"><span>Get this widget for your blog</span></a></div>';A(E).appendTo(G);Twingly.widget._buildGetThisWidgetContent(G,I,H,F,D,B,C);Twingly.widget._setupGetThisWidgetWindow(A(G).find(".twingly_get_widget a"))},_setupGetThisWidgetWindow:function(B){A(B).cluetip({activation:"click",local:true,hideLocal:true,attribute:"rel",closePosition:"title",mouseOutClose:false,sticky:true,width:400,waitImage:false,topOffset:15,leftOffset:15,cluezIndex:2000,onShow:function(C,D){A('<a href="http://www.twingly.com" title="Twingly Blog Search"><img src="'+Twingly.widget._getLogoUrl()+'" alt="Twingly Blog Search" /></a>').prependTo("#cluetip-title")}})},_getEmailNotificationUrl:function(G,F,E,C){var D=Twingly.widget.conf.emailNotificationUrl;var B=Twingly.search._getRequestUrl(G,F,E,C,"rss");D=D.replace(/{rssurl}/,encodeURIComponent(encodeURIComponent(B)));return D},_buildGetThisWidgetContent:function(E,I,G,F,D,B,C){var H='<div id="'+I+'" style="display:none;"><p>Add this in the html page where you want the widget:</p><textarea style="width:100%;" rows="7" wrap="off">';H+=Twingly.util.escapeHtml('<div class="twingly_widget">\n  <a href="http://www.twingly.com">Twingly Blog Search</a>\n'+(C.templateName==undefined?"":'  <span class="widget">'+C.templateName+"</span>\n")+(C.template==undefined?"":'  <span class="template">'+C.template+"</span>\n")+(C.url==undefined?"":'  <span class="url">'+C.url+"</span>\n")+(C.query==undefined?"":'  <span class="query">'+C.query+"</span>\n")+(C.content==undefined?"":'  <span class="content">'+C.content+"</span>\n")+(C.site==undefined?"":'  <span class="site">'+C.site+"</span>\n")+(C.excludesite==undefined?"":'  <span class="excludesite">'+C.excludesite+"</span>\n")+(C.title==undefined?"":'  <span class="title">'+C.title+"</span>\n")+(C.count==undefined?"":'  <span class="count">'+C.count+"</span>\n")+(C.spamFree==undefined?"":'  <span class="spam-free">'+(C.spamFree?"yes":"no")+"</span>\n")+"</div>\n");H+='</textarea><p>and this just before the ending body tag:</p><textarea style="width:100%;" rows="2" wrap="off">'+Twingly.util.escapeHtml('<script type="text/javascript" src="'+Twingly.util.escapeHtml(Twingly.conf.jsapiUrl)+'"><\/script>')+'</textarea><p>By using this widget you agree to the <a href="http://www.twingly.com/terms" target="_blank">Terms of use</a>.</p><div style="text-align: right""><a href="http://www.twingly.com/help#widget" target="_blank">Help</a> | <a href="http://www.twingly.com/feedback" target="_blank">Feedback</a></div></div>';A(H).appendTo(E)},_getLogoUrl:function(){if(A.browser.msie&&A.browser.version=="6.0"){return Twingly.widget.conf.images.logo_gif}else{return Twingly.widget.conf.images.logo}}}});A(document).ready(function(){Twingly.widget._onLoad()})})(Twingly_jQuery);;
// Twingly
var tw_toplistUrl = "http://www.vf.se";
var tw_language = "swedish";
var tw_skipDefaultCss = true;
var maxItems = 5;

var tw_onItemComplete = function (i, data, html, mode) {
	if(mode == "toplist"){
		if(i > maxItems-1)
			html = "";
	}	
	return html;
};
;
/*
 * jQuery UI 1.7.3
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.3",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},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(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(j,k){return this.each(function(){if(!k){if(!j||c.filter(j,[this]).length){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")})}}return i.call(c(this),j,k)})},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;
/*
 * jQuery UI Accordion 1.7.3
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Accordion
 *
 * Depends:
 *	ui.core.js
 */(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.3",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;
/*
 * jQuery UI Dialog 1.7.3
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Dialog
 *
 * Depends:
 *	ui.core.js
 *	ui.draggable.js
 *	ui.resizable.js
 */(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),i=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"]}if(i.constructor!=Array){i=["center","middle"]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.3",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);;
/*!
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
;(function($) {

var ver = '2.88';

// if $.support is not defined (pre jQuery 1.3) add what I need
if ($.support == undefined) {
	$.support = {
		opacity: !($.browser.msie)
	};
}

function debug(s) {
	if ($.fn.cycle.debug)
		log(s);
}		
function log() {
	if (window.console && window.console.log)
		window.console.log('[cycle] ' + Array.prototype.join.call(arguments,' '));
};

// the options arg can be...
//   a number  - indicates an immediate transition should occur to the given slide index
//   a string  - 'pause', 'resume', 'toggle', 'next', 'prev', 'stop', 'destroy' or the name of a transition effect (ie, 'fade', 'zoom', etc)
//   an object - properties to control the slideshow
//
// the arg2 arg can be...
//   the name of an fx (only used in conjunction with a numeric value for 'options')
//   the value true (only used in first arg == 'resume') and indicates
//	 that the resume should occur immediately (not wait for next timeout)

$.fn.cycle = function(options, arg2) {
	var o = { s: this.selector, c: this.context };

	// in 1.3+ we can fix mistakes with the ready state
	if (this.length === 0 && options != 'stop') {
		if (!$.isReady && o.s) {
			log('DOM not ready, queuing slideshow');
			$(function() {
				$(o.s,o.c).cycle(options,arg2);
			});
			return this;
		}
		// is your DOM ready?  http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
		log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
		return this;
	}

	// iterate the matched nodeset
	return this.each(function() {
		var opts = handleArguments(this, options, arg2);
		if (opts === false)
			return;

		opts.updateActivePagerLink = opts.updateActivePagerLink || $.fn.cycle.updateActivePagerLink;
		
		// stop existing slideshow for this container (if there is one)
		if (this.cycleTimeout)
			clearTimeout(this.cycleTimeout);
		this.cycleTimeout = this.cyclePause = 0;

		var $cont = $(this);
		var $slides = opts.slideExpr ? $(opts.slideExpr, this) : $cont.children();
		var els = $slides.get();
		if (els.length < 2) {
			log('terminating; too few slides: ' + els.length);
			return;
		}

		var opts2 = buildOptions($cont, $slides, els, opts, o);
		if (opts2 === false)
			return;

		var startTime = opts2.continuous ? 10 : getTimeout(els[opts2.currSlide], els[opts2.nextSlide], opts2, !opts2.rev);

		// if it's an auto slideshow, kick it off
		if (startTime) {
			startTime += (opts2.delay || 0);
			if (startTime < 10)
				startTime = 10;
			debug('first timeout: ' + startTime);
			this.cycleTimeout = setTimeout(function(){go(els,opts2,0,(!opts2.rev && !opts.backwards))}, startTime);
		}
	});
};

// process the args that were passed to the plugin fn
function handleArguments(cont, options, arg2) {
	if (cont.cycleStop == undefined)
		cont.cycleStop = 0;
	if (options === undefined || options === null)
		options = {};
	if (options.constructor == String) {
		switch(options) {
		case 'destroy':
		case 'stop':
			var opts = $(cont).data('cycle.opts');
			if (!opts)
				return false;
			cont.cycleStop++; // callbacks look for change
			if (cont.cycleTimeout)
				clearTimeout(cont.cycleTimeout);
			cont.cycleTimeout = 0;
			$(cont).removeData('cycle.opts');
			if (options == 'destroy')
				destroy(opts);
			return false;
		case 'toggle':
			cont.cyclePause = (cont.cyclePause === 1) ? 0 : 1;
			checkInstantResume(cont.cyclePause, arg2, cont);
			return false;
		case 'pause':
			cont.cyclePause = 1;
			return false;
		case 'resume':
			cont.cyclePause = 0;
			checkInstantResume(false, arg2, cont);
			return false;
		case 'prev':
		case 'next':
			var opts = $(cont).data('cycle.opts');
			if (!opts) {
				log('options not found, "prev/next" ignored');
				return false;
			}
			$.fn.cycle[options](opts);
			return false;
		default:
			options = { fx: options };
		};
		return options;
	}
	else if (options.constructor == Number) {
		// go to the requested slide
		var num = options;
		options = $(cont).data('cycle.opts');
		if (!options) {
			log('options not found, can not advance slide');
			return false;
		}
		if (num < 0 || num >= options.elements.length) {
			log('invalid slide index: ' + num);
			return false;
		}
		options.nextSlide = num;
		if (cont.cycleTimeout) {
			clearTimeout(cont.cycleTimeout);
			cont.cycleTimeout = 0;
		}
		if (typeof arg2 == 'string')
			options.oneTimeFx = arg2;
		go(options.elements, options, 1, num >= options.currSlide);
		return false;
	}
	return options;
	
	function checkInstantResume(isPaused, arg2, cont) {
		if (!isPaused && arg2 === true) { // resume now!
			var options = $(cont).data('cycle.opts');
			if (!options) {
				log('options not found, can not resume');
				return false;
			}
			if (cont.cycleTimeout) {
				clearTimeout(cont.cycleTimeout);
				cont.cycleTimeout = 0;
			}
			go(options.elements, options, 1, (!opts.rev && !opts.backwards));
		}
	}
};

function removeFilter(el, opts) {
	if (!$.support.opacity && opts.cleartype && el.style.filter) {
		try { el.style.removeAttribute('filter'); }
		catch(smother) {} // handle old opera versions
	}
};

// unbind event handlers
function destroy(opts) {
	if (opts.next)
		$(opts.next).unbind(opts.prevNextEvent);
	if (opts.prev)
		$(opts.prev).unbind(opts.prevNextEvent);
	
	if (opts.pager || opts.pagerAnchorBuilder)
		$.each(opts.pagerAnchors || [], function() {
			this.unbind().remove();
		});
	opts.pagerAnchors = null;
	if (opts.destroy) // callback
		opts.destroy(opts);
};

// one-time initialization
function buildOptions($cont, $slides, els, options, o) {
	// support metadata plugin (v1.0 and v2.0)
	var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});
	if (opts.autostop)
		opts.countdown = opts.autostopCount || els.length;

	var cont = $cont[0];
	$cont.data('cycle.opts', opts);
	opts.$cont = $cont;
	opts.stopCount = cont.cycleStop;
	opts.elements = els;
	opts.before = opts.before ? [opts.before] : [];
	opts.after = opts.after ? [opts.after] : [];
	opts.after.unshift(function(){ opts.busy=0; });

	// push some after callbacks
	if (!$.support.opacity && opts.cleartype)
		opts.after.push(function() { removeFilter(this, opts); });
	if (opts.continuous)
		opts.after.push(function() { go(els,opts,0,(!opts.rev && !opts.backwards)); });

	saveOriginalOpts(opts);

	// clearType corrections
	if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
		clearTypeFix($slides);

	// container requires non-static position so that slides can be position within
	if ($cont.css('position') == 'static')
		$cont.css('position', 'relative');
	if (opts.width)
		$cont.width(opts.width);
	if (opts.height && opts.height != 'auto')
		$cont.height(opts.height);

	if (opts.startingSlide)
		opts.startingSlide = parseInt(opts.startingSlide);
	else if (opts.backwards)
		opts.startingSlide = els.length - 1;

	// if random, mix up the slide array
	if (opts.random) {
		opts.randomMap = [];
		for (var i = 0; i < els.length; i++)
			opts.randomMap.push(i);
		opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;});
		opts.randomIndex = 1;
		opts.startingSlide = opts.randomMap[1];
	}
	else if (opts.startingSlide >= els.length)
		opts.startingSlide = 0; // catch bogus input
	opts.currSlide = opts.startingSlide || 0;
	var first = opts.startingSlide;

	// set position and zIndex on all the slides
	$slides.css({position: 'absolute', top:0, left:0}).hide().each(function(i) {
		var z;
		if (opts.backwards)
			z = first ? i <= first ? els.length + (i-first) : first-i : els.length-i;
		else
			z = first ? i >= first ? els.length - (i-first) : first-i : els.length-i;
		$(this).css('z-index', z)
	});

	// make sure first slide is visible
	$(els[first]).css('opacity',1).show(); // opacity bit needed to handle restart use case
	removeFilter(els[first], opts);

	// stretch slides
	if (opts.fit && opts.width)
		$slides.width(opts.width);
	if (opts.fit && opts.height && opts.height != 'auto')
		$slides.height(opts.height);

	// stretch container
	var reshape = opts.containerResize && !$cont.innerHeight();
	if (reshape) { // do this only if container has no size http://tinyurl.com/da2oa9
		var maxw = 0, maxh = 0;
		for(var j=0; j < els.length; j++) {
			var $e = $(els[j]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight();
			if (!w) w = e.offsetWidth || e.width || $e.attr('width')
			if (!h) h = e.offsetHeight || e.height || $e.attr('height');
			maxw = w > maxw ? w : maxw;
			maxh = h > maxh ? h : maxh;
		}
		if (maxw > 0 && maxh > 0)
			$cont.css({width:maxw+'px',height:maxh+'px'});
	}

	if (opts.pause)
		$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});

	if (supportMultiTransitions(opts) === false)
		return false;

	// apparently a lot of people use image slideshows without height/width attributes on the images.
	// Cycle 2.50+ requires the sizing info for every slide; this block tries to deal with that.
	var requeue = false;
	options.requeueAttempts = options.requeueAttempts || 0;
	$slides.each(function() {
		// try to get height/width of each slide
		var $el = $(this);
		this.cycleH = (opts.fit && opts.height) ? opts.height : ($el.height() || this.offsetHeight || this.height || $el.attr('height') || 0);
		this.cycleW = (opts.fit && opts.width) ? opts.width : ($el.width() || this.offsetWidth || this.width || $el.attr('width') || 0);

		if ( $el.is('img') ) {
			// sigh..  sniffing, hacking, shrugging...  this crappy hack tries to account for what browsers do when
			// an image is being downloaded and the markup did not include sizing info (height/width attributes);
			// there seems to be some "default" sizes used in this situation
			var loadingIE	= ($.browser.msie  && this.cycleW == 28 && this.cycleH == 30 && !this.complete);
			var loadingFF	= ($.browser.mozilla && this.cycleW == 34 && this.cycleH == 19 && !this.complete);
			var loadingOp	= ($.browser.opera && ((this.cycleW == 42 && this.cycleH == 19) || (this.cycleW == 37 && this.cycleH == 17)) && !this.complete);
			var loadingOther = (this.cycleH == 0 && this.cycleW == 0 && !this.complete);
			// don't requeue for images that are still loading but have a valid size
			if (loadingIE || loadingFF || loadingOp || loadingOther) {
				if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { // track retry count so we don't loop forever
					log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ', this.src, this.cycleW, this.cycleH);
					setTimeout(function() {$(o.s,o.c).cycle(options)}, opts.requeueTimeout);
					requeue = true;
					return false; // break each loop
				}
				else {
					log('could not determine size of image: '+this.src, this.cycleW, this.cycleH);
				}
			}
		}
		return true;
	});

	if (requeue)
		return false;

	opts.cssBefore = opts.cssBefore || {};
	opts.animIn = opts.animIn || {};
	opts.animOut = opts.animOut || {};

	$slides.not(':eq('+first+')').css(opts.cssBefore);
	if (opts.cssFirst)
		$($slides[first]).css(opts.cssFirst);

	if (opts.timeout) {
		opts.timeout = parseInt(opts.timeout);
		// ensure that timeout and speed settings are sane
		if (opts.speed.constructor == String)
			opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed);
		if (!opts.sync)
			opts.speed = opts.speed / 2;
		
		var buffer = opts.fx == 'shuffle' ? 500 : 250;
		while((opts.timeout - opts.speed) < buffer) // sanitize timeout
			opts.timeout += opts.speed;
	}
	if (opts.easing)
		opts.easeIn = opts.easeOut = opts.easing;
	if (!opts.speedIn)
		opts.speedIn = opts.speed;
	if (!opts.speedOut)
		opts.speedOut = opts.speed;

	opts.slideCount = els.length;
	opts.currSlide = opts.lastSlide = first;
	if (opts.random) {
		if (++opts.randomIndex == els.length)
			opts.randomIndex = 0;
		opts.nextSlide = opts.randomMap[opts.randomIndex];
	}
	else if (opts.backwards)
		opts.nextSlide = opts.startingSlide == 0 ? (els.length-1) : opts.startingSlide-1;
	else
		opts.nextSlide = opts.startingSlide >= (els.length-1) ? 0 : opts.startingSlide+1;

	// run transition init fn
	if (!opts.multiFx) {
		var init = $.fn.cycle.transitions[opts.fx];
		if ($.isFunction(init))
			init($cont, $slides, opts);
		else if (opts.fx != 'custom' && !opts.multiFx) {
			log('unknown transition: ' + opts.fx,'; slideshow terminating');
			return false;
		}
	}

	// fire artificial events
	var e0 = $slides[first];
	if (opts.before.length)
		opts.before[0].apply(e0, [e0, e0, opts, true]);
	if (opts.after.length > 1)
		opts.after[1].apply(e0, [e0, e0, opts, true]);

	if (opts.next)
		$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1)});
	if (opts.prev)
		$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1)});
	if (opts.pager || opts.pagerAnchorBuilder)
		buildPager(els,opts);

	exposeAddSlide(opts, els);

	return opts;
};

// save off original opts so we can restore after clearing state
function saveOriginalOpts(opts) {
	opts.original = { before: [], after: [] };
	opts.original.cssBefore = $.extend({}, opts.cssBefore);
	opts.original.cssAfter  = $.extend({}, opts.cssAfter);
	opts.original.animIn	= $.extend({}, opts.animIn);
	opts.original.animOut   = $.extend({}, opts.animOut);
	$.each(opts.before, function() { opts.original.before.push(this); });
	$.each(opts.after,  function() { opts.original.after.push(this); });
};

function supportMultiTransitions(opts) {
	var i, tx, txs = $.fn.cycle.transitions;
	// look for multiple effects
	if (opts.fx.indexOf(',') > 0) {
		opts.multiFx = true;
		opts.fxs = opts.fx.replace(/\s*/g,'').split(',');
		// discard any bogus effect names
		for (i=0; i < opts.fxs.length; i++) {
			var fx = opts.fxs[i];
			tx = txs[fx];
			if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) {
				log('discarding unknown transition: ',fx);
				opts.fxs.splice(i,1);
				i--;
			}
		}
		// if we have an empty list then we threw everything away!
		if (!opts.fxs.length) {
			log('No valid transitions named; slideshow terminating.');
			return false;
		}
	}
	else if (opts.fx == 'all') {  // auto-gen the list of transitions
		opts.multiFx = true;
		opts.fxs = [];
		for (p in txs) {
			tx = txs[p];
			if (txs.hasOwnProperty(p) && $.isFunction(tx))
				opts.fxs.push(p);
		}
	}
	if (opts.multiFx && opts.randomizeEffects) {
		// munge the fxs array to make effect selection random
		var r1 = Math.floor(Math.random() * 20) + 30;
		for (i = 0; i < r1; i++) {
			var r2 = Math.floor(Math.random() * opts.fxs.length);
			opts.fxs.push(opts.fxs.splice(r2,1)[0]);
		}
		debug('randomized fx sequence: ',opts.fxs);
	}
	return true;
};

// provide a mechanism for adding slides after the slideshow has started
function exposeAddSlide(opts, els) {
	opts.addSlide = function(newSlide, prepend) {
		var $s = $(newSlide), s = $s[0];
		if (!opts.autostopCount)
			opts.countdown++;
		els[prepend?'unshift':'push'](s);
		if (opts.els)
			opts.els[prepend?'unshift':'push'](s); // shuffle needs this
		opts.slideCount = els.length;

		$s.css('position','absolute');
		$s[prepend?'prependTo':'appendTo'](opts.$cont);

		if (prepend) {
			opts.currSlide++;
			opts.nextSlide++;
		}

		if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
			clearTypeFix($s);

		if (opts.fit && opts.width)
			$s.width(opts.width);
		if (opts.fit && opts.height && opts.height != 'auto')
			$slides.height(opts.height);
		s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height();
		s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width();

		$s.css(opts.cssBefore);

		if (opts.pager || opts.pagerAnchorBuilder)
			$.fn.cycle.createPagerAnchor(els.length-1, s, $(opts.pager), els, opts);

		if ($.isFunction(opts.onAddSlide))
			opts.onAddSlide($s);
		else
			$s.hide(); // default behavior
	};
}

// reset internal state; we do this on every pass in order to support multiple effects
$.fn.cycle.resetState = function(opts, fx) {
	fx = fx || opts.fx;
	opts.before = []; opts.after = [];
	opts.cssBefore = $.extend({}, opts.original.cssBefore);
	opts.cssAfter  = $.extend({}, opts.original.cssAfter);
	opts.animIn	= $.extend({}, opts.original.animIn);
	opts.animOut   = $.extend({}, opts.original.animOut);
	opts.fxFn = null;
	$.each(opts.original.before, function() { opts.before.push(this); });
	$.each(opts.original.after,  function() { opts.after.push(this); });

	// re-init
	var init = $.fn.cycle.transitions[fx];
	if ($.isFunction(init))
		init(opts.$cont, $(opts.elements), opts);
};

// this is the main engine fn, it handles the timeouts, callbacks and slide index mgmt
function go(els, opts, manual, fwd) {
	// opts.busy is true if we're in the middle of an animation
	if (manual && opts.busy && opts.manualTrump) {
		// let manual transitions requests trump active ones
		debug('manualTrump in go(), stopping active transition');
		$(els).stop(true,true);
		opts.busy = false;
	}
	// don't begin another timeout-based transition if there is one active
	if (opts.busy) {
		debug('transition active, ignoring new tx request');
		return;
	}

	var p = opts.$cont[0], curr = els[opts.currSlide], next = els[opts.nextSlide];

	// stop cycling if we have an outstanding stop request
	if (p.cycleStop != opts.stopCount || p.cycleTimeout === 0 && !manual)
		return;

	// check to see if we should stop cycling based on autostop options
	if (!manual && !p.cyclePause && !opts.bounce &&
		((opts.autostop && (--opts.countdown <= 0)) ||
		(opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) {
		if (opts.end)
			opts.end(opts);
		return;
	}

	// if slideshow is paused, only transition on a manual trigger
	var changed = false;
	if ((manual || !p.cyclePause) && (opts.nextSlide != opts.currSlide)) {
		changed = true;
		var fx = opts.fx;
		// keep trying to get the slide size if we don't have it yet
		curr.cycleH = curr.cycleH || $(curr).height();
		curr.cycleW = curr.cycleW || $(curr).width();
		next.cycleH = next.cycleH || $(next).height();
		next.cycleW = next.cycleW || $(next).width();

		// support multiple transition types
		if (opts.multiFx) {
			if (opts.lastFx == undefined || ++opts.lastFx >= opts.fxs.length)
				opts.lastFx = 0;
			fx = opts.fxs[opts.lastFx];
			opts.currFx = fx;
		}

		// one-time fx overrides apply to:  $('div').cycle(3,'zoom');
		if (opts.oneTimeFx) {
			fx = opts.oneTimeFx;
			opts.oneTimeFx = null;
		}

		$.fn.cycle.resetState(opts, fx);

		// run the before callbacks
		if (opts.before.length)
			$.each(opts.before, function(i,o) {
				if (p.cycleStop != opts.stopCount) return;
				o.apply(next, [curr, next, opts, fwd]);
			});

		// stage the after callacks
		var after = function() {
			$.each(opts.after, function(i,o) {
				if (p.cycleStop != opts.stopCount) return;
				o.apply(next, [curr, next, opts, fwd]);
			});
		};

		debug('tx firing; currSlide: ' + opts.currSlide + '; nextSlide: ' + opts.nextSlide);
		
		// get ready to perform the transition
		opts.busy = 1;
		if (opts.fxFn) // fx function provided?
			opts.fxFn(curr, next, opts, after, fwd, manual && opts.fastOnEvent);
		else if ($.isFunction($.fn.cycle[opts.fx])) // fx plugin ?
			$.fn.cycle[opts.fx](curr, next, opts, after, fwd, manual && opts.fastOnEvent);
		else
			$.fn.cycle.custom(curr, next, opts, after, fwd, manual && opts.fastOnEvent);
	}

	if (changed || opts.nextSlide == opts.currSlide) {
		// calculate the next slide
		opts.lastSlide = opts.currSlide;
		if (opts.random) {
			opts.currSlide = opts.nextSlide;
			if (++opts.randomIndex == els.length)
				opts.randomIndex = 0;
			opts.nextSlide = opts.randomMap[opts.randomIndex];
			if (opts.nextSlide == opts.currSlide)
				opts.nextSlide = (opts.currSlide == opts.slideCount - 1) ? 0 : opts.currSlide + 1;
		}
		else if (opts.backwards) {
			var roll = (opts.nextSlide - 1) < 0;
			if (roll && opts.bounce) {
				opts.backwards = !opts.backwards;
				opts.nextSlide = 1;
				opts.currSlide = 0;
			}
			else {
				opts.nextSlide = roll ? (els.length-1) : opts.nextSlide-1;
				opts.currSlide = roll ? 0 : opts.nextSlide+1;
			}
		}
		else { // sequence
			var roll = (opts.nextSlide + 1) == els.length;
			if (roll && opts.bounce) {
				opts.backwards = !opts.backwards;
				opts.nextSlide = els.length-2;
				opts.currSlide = els.length-1;
			}
			else {
				opts.nextSlide = roll ? 0 : opts.nextSlide+1;
				opts.currSlide = roll ? els.length-1 : opts.nextSlide-1;
			}
		}
	}
	if (changed && opts.pager)
		opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass);
	
	// stage the next transition
	var ms = 0;
	if (opts.timeout && !opts.continuous)
		ms = getTimeout(els[opts.currSlide], els[opts.nextSlide], opts, fwd);
	else if (opts.continuous && p.cyclePause) // continuous shows work off an after callback, not this timer logic
		ms = 10;
	if (ms > 0)
		p.cycleTimeout = setTimeout(function(){ go(els, opts, 0, (!opts.rev && !opts.backwards)) }, ms);
};

// invoked after transition
$.fn.cycle.updateActivePagerLink = function(pager, currSlide, clsName) {
   $(pager).each(function() {
       $(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);
   });
};

// calculate timeout value for current transition
function getTimeout(curr, next, opts, fwd) {
	if (opts.timeoutFn) {
		// call user provided calc fn
		var t = opts.timeoutFn.call(curr,curr,next,opts,fwd);
		while ((t - opts.speed) < 250) // sanitize timeout
			t += opts.speed;
		debug('calculated timeout: ' + t + '; speed: ' + opts.speed);
		if (t !== false)
			return t;
	}
	return opts.timeout;
};

// expose next/prev function, caller must pass in state
$.fn.cycle.next = function(opts) { advance(opts, opts.rev?-1:1); };
$.fn.cycle.prev = function(opts) { advance(opts, opts.rev?1:-1);};

// advance slide forward or back
function advance(opts, val) {
	var els = opts.elements;
	var p = opts.$cont[0], timeout = p.cycleTimeout;
	if (timeout) {
		clearTimeout(timeout);
		p.cycleTimeout = 0;
	}
	if (opts.random && val < 0) {
		// move back to the previously display slide
		opts.randomIndex--;
		if (--opts.randomIndex == -2)
			opts.randomIndex = els.length-2;
		else if (opts.randomIndex == -1)
			opts.randomIndex = els.length-1;
		opts.nextSlide = opts.randomMap[opts.randomIndex];
	}
	else if (opts.random) {
		opts.nextSlide = opts.randomMap[opts.randomIndex];
	}
	else {
		opts.nextSlide = opts.currSlide + val;
		if (opts.nextSlide < 0) {
			if (opts.nowrap) return false;
			opts.nextSlide = els.length - 1;
		}
		else if (opts.nextSlide >= els.length) {
			if (opts.nowrap) return false;
			opts.nextSlide = 0;
		}
	}

	var cb = opts.onPrevNextEvent || opts.prevNextClick; // prevNextClick is deprecated
	if ($.isFunction(cb))
		cb(val > 0, opts.nextSlide, els[opts.nextSlide]);
	go(els, opts, 1, val>=0);
	return false;
};

function buildPager(els, opts) {
	var $p = $(opts.pager);
	$.each(els, function(i,o) {
		$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);
	});
	opts.updateActivePagerLink(opts.pager, opts.startingSlide, opts.activePagerClass);
};

$.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) {
	var a;
	if ($.isFunction(opts.pagerAnchorBuilder)) {
		a = opts.pagerAnchorBuilder(i,el);
		debug('pagerAnchorBuilder('+i+', el) returned: ' + a);
	}
	else
		a = '<a href="#">'+(i+1)+'</a>';
		
	if (!a)
		return;
	var $a = $(a);
	// don't reparent if anchor is in the dom
	if ($a.parents('body').length === 0) {
		var arr = [];
		if ($p.length > 1) {
			$p.each(function() {
				var $clone = $a.clone(true);
				$(this).append($clone);
				arr.push($clone[0]);
			});
			$a = $(arr);
		}
		else {
			$a.appendTo($p);
		}
	}

	opts.pagerAnchors =  opts.pagerAnchors || [];
	opts.pagerAnchors.push($a);
	$a.bind(opts.pagerEvent, function(e) {
		e.preventDefault();
		opts.nextSlide = i;
		var p = opts.$cont[0], timeout = p.cycleTimeout;
		if (timeout) {
			clearTimeout(timeout);
			p.cycleTimeout = 0;
		}
		var cb = opts.onPagerEvent || opts.pagerClick; // pagerClick is deprecated
		if ($.isFunction(cb))
			cb(opts.nextSlide, els[opts.nextSlide]);
		go(els,opts,1,opts.currSlide < i); // trigger the trans
//		return false; // <== allow bubble
	});
	
	if ( ! /^click/.test(opts.pagerEvent) && !opts.allowPagerClickBubble)
		$a.bind('click.cycle', function(){return false;}); // suppress click
	
	if (opts.pauseOnPagerHover)
		$a.hover(function() { opts.$cont[0].cyclePause++; }, function() { opts.$cont[0].cyclePause--; } );
};

// helper fn to calculate the number of slides between the current and the next
$.fn.cycle.hopsFromLast = function(opts, fwd) {
	var hops, l = opts.lastSlide, c = opts.currSlide;
	if (fwd)
		hops = c > l ? c - l : opts.slideCount - l;
	else
		hops = c < l ? l - c : l + opts.slideCount - c;
	return hops;
};

// fix clearType problems in ie6 by setting an explicit bg color
// (otherwise text slides look horrible during a fade transition)
function clearTypeFix($slides) {
	debug('applying clearType background-color hack');
	function hex(s) {
		s = parseInt(s).toString(16);
		return s.length < 2 ? '0'+s : s;
	};
	function getBg(e) {
		for ( ; e && e.nodeName.toLowerCase() != 'html'; e = e.parentNode) {
			var v = $.css(e,'background-color');
			if (v.indexOf('rgb') >= 0 ) {
				var rgb = v.match(/\d+/g);
				return '#'+ hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]);
			}
			if (v && v != 'transparent')
				return v;
		}
		return '#ffffff';
	};
	$slides.each(function() { $(this).css('background-color', getBg(this)); });
};

// reset common props before the next transition
$.fn.cycle.commonReset = function(curr,next,opts,w,h,rev) {
	$(opts.elements).not(curr).hide();
	opts.cssBefore.opacity = 1;
	opts.cssBefore.display = 'block';
	if (w !== false && next.cycleW > 0)
		opts.cssBefore.width = next.cycleW;
	if (h !== false && next.cycleH > 0)
		opts.cssBefore.height = next.cycleH;
	opts.cssAfter = opts.cssAfter || {};
	opts.cssAfter.display = 'none';
	$(curr).css('zIndex',opts.slideCount + (rev === true ? 1 : 0));
	$(next).css('zIndex',opts.slideCount + (rev === true ? 0 : 1));
};

// the actual fn for effecting a transition
$.fn.cycle.custom = function(curr, next, opts, cb, fwd, speedOverride) {
	var $l = $(curr), $n = $(next);
	var speedIn = opts.speedIn, speedOut = opts.speedOut, easeIn = opts.easeIn, easeOut = opts.easeOut;
	$n.css(opts.cssBefore);
	if (speedOverride) {
		if (typeof speedOverride == 'number')
			speedIn = speedOut = speedOverride;
		else
			speedIn = speedOut = 1;
		easeIn = easeOut = null;
	}
	var fn = function() {$n.animate(opts.animIn, speedIn, easeIn, cb)};
	$l.animate(opts.animOut, speedOut, easeOut, function() {
		if (opts.cssAfter) $l.css(opts.cssAfter);
		if (!opts.sync) fn();
	});
	if (opts.sync) fn();
};

// transition definitions - only fade is defined here, transition pack defines the rest
$.fn.cycle.transitions = {
	fade: function($cont, $slides, opts) {
		$slides.not(':eq('+opts.currSlide+')').css('opacity',0);
		opts.before.push(function(curr,next,opts) {
			$.fn.cycle.commonReset(curr,next,opts);
			opts.cssBefore.opacity = 0;
		});
		opts.animIn	   = { opacity: 1 };
		opts.animOut   = { opacity: 0 };
		opts.cssBefore = { top: 0, left: 0 };
	}
};

$.fn.cycle.ver = function() { return ver; };

// override these globally if you like (they are all optional)
$.fn.cycle.defaults = {
	fx:			  'fade', // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
	timeout:	   4000,  // milliseconds between slide transitions (0 to disable auto advance)
	timeoutFn:     null,  // callback for determining per-slide timeout value:  function(currSlideElement, nextSlideElement, options, forwardFlag)
	continuous:	   0,	  // true to start next transition immediately after current one completes
	speed:		   1000,  // speed of the transition (any valid fx speed value)
	speedIn:	   null,  // speed of the 'in' transition
	speedOut:	   null,  // speed of the 'out' transition
	next:		   null,  // selector for element to use as event trigger for next slide
	prev:		   null,  // selector for element to use as event trigger for previous slide
//	prevNextClick: null,  // @deprecated; please use onPrevNextEvent instead
	onPrevNextEvent: null,  // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement)
	prevNextEvent:'click.cycle',// event which drives the manual transition to the previous or next slide
	pager:		   null,  // selector for element to use as pager container
	//pagerClick   null,  // @deprecated; please use onPagerEvent instead
	onPagerEvent:  null,  // callback fn for pager events: function(zeroBasedSlideIndex, slideElement)
	pagerEvent:	  'click.cycle', // name of event which drives the pager navigation
	allowPagerClickBubble: false, // allows or prevents click event on pager anchors from bubbling
	pagerAnchorBuilder: null, // callback fn for building anchor links:  function(index, DOMelement)
	before:		   null,  // transition callback (scope set to element to be shown):	 function(currSlideElement, nextSlideElement, options, forwardFlag)
	after:		   null,  // transition callback (scope set to element that was shown):  function(currSlideElement, nextSlideElement, options, forwardFlag)
	end:		   null,  // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options)
	easing:		   null,  // easing method for both in and out transitions
	easeIn:		   null,  // easing for "in" transition
	easeOut:	   null,  // easing for "out" transition
	shuffle:	   null,  // coords for shuffle animation, ex: { top:15, left: 200 }
	animIn:		   null,  // properties that define how the slide animates in
	animOut:	   null,  // properties that define how the slide animates out
	cssBefore:	   null,  // properties that define the initial state of the slide before transitioning in
	cssAfter:	   null,  // properties that defined the state of the slide after transitioning out
	fxFn:		   null,  // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
	height:		  'auto', // container height
	startingSlide: 0,	  // zero-based index of the first slide to be displayed
	sync:		   1,	  // true if in/out transitions should occur simultaneously
	random:		   0,	  // true for random, false for sequence (not applicable to shuffle fx)
	fit:		   0,	  // force slides to fit container
	containerResize: 1,	  // resize container to fit largest slide
	pause:		   0,	  // true to enable "pause on hover"
	pauseOnPagerHover: 0, // true to pause when hovering over pager link
	autostop:	   0,	  // true to end slideshow after X transitions (where X == slide count)
	autostopCount: 0,	  // number of transitions (optionally used with autostop to define X)
	delay:		   0,	  // additional delay (in ms) for first transition (hint: can be negative)
	slideExpr:	   null,  // expression for selecting slides (if something other than all children is required)
	cleartype:	   !$.support.opacity,  // true if clearType corrections should be applied (for IE)
	cleartypeNoBg: false, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
	nowrap:		   0,	  // true to prevent slideshow from wrapping
	fastOnEvent:   0,	  // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
	randomizeEffects: 1,  // valid when multiple effects are used; true to make the effect sequence random
	rev:		   0,	 // causes animations to transition in reverse
	manualTrump:   true,  // causes manual transition to stop an active transition instead of being ignored
	requeueOnImageNotLoaded: true, // requeue the slideshow if any image slides are not yet loaded
	requeueTimeout: 250,  // ms delay for requeue
	activePagerClass: 'activeSlide', // class name used for the active pager link
	updateActivePagerLink: null, // callback fn invoked to update the active pager link (adds/removes activePagerClass style)
	backwards:     false  // true to start slideshow at last slide and move backwards through the stack
};

})(jQuery);


/*!
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($) {

//
// These functions define one-time slide initialization for the named
// transitions. To save file size feel free to remove any of these that you
// don't need.
//
$.fn.cycle.transitions.none = function($cont, $slides, opts) {
	opts.fxFn = function(curr,next,opts,after){
		$(next).show();
		$(curr).hide();
		after();
	};
}

// scrollUp/Down/Left/Right
$.fn.cycle.transitions.scrollUp = function($cont, $slides, opts) {
	$cont.css('overflow','hidden');
	opts.before.push($.fn.cycle.commonReset);
	var h = $cont.height();
	opts.cssBefore ={ top: h, left: 0 };
	opts.cssFirst = { top: 0 };
	opts.animIn	  = { top: 0 };
	opts.animOut  = { top: -h };
};
$.fn.cycle.transitions.scrollDown = function($cont, $slides, opts) {
	$cont.css('overflow','hidden');
	opts.before.push($.fn.cycle.commonReset);
	var h = $cont.height();
	opts.cssFirst = { top: 0 };
	opts.cssBefore= { top: -h, left: 0 };
	opts.animIn	  = { top: 0 };
	opts.animOut  = { top: h };
};
$.fn.cycle.transitions.scrollLeft = function($cont, $slides, opts) {
	$cont.css('overflow','hidden');
	opts.before.push($.fn.cycle.commonReset);
	var w = $cont.width();
	opts.cssFirst = { left: 0 };
	opts.cssBefore= { left: w, top: 0 };
	opts.animIn	  = { left: 0 };
	opts.animOut  = { left: 0-w };
};
$.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) {
	$cont.css('overflow','hidden');
	opts.before.push($.fn.cycle.commonReset);
	var w = $cont.width();
	opts.cssFirst = { left: 0 };
	opts.cssBefore= { left: -w, top: 0 };
	opts.animIn	  = { left: 0 };
	opts.animOut  = { left: w };
};
$.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) {
	$cont.css('overflow','hidden').width();
	opts.before.push(function(curr, next, opts, fwd) {
		$.fn.cycle.commonReset(curr,next,opts);
		opts.cssBefore.left = fwd ? (next.cycleW-1) : (1-next.cycleW);
		opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW;
	});
	opts.cssFirst = { left: 0 };
	opts.cssBefore= { top: 0 };
	opts.animIn   = { left: 0 };
	opts.animOut  = { top: 0 };
};
$.fn.cycle.transitions.scrollVert = function($cont, $slides, opts) {
	$cont.css('overflow','hidden');
	opts.before.push(function(curr, next, opts, fwd) {
		$.fn.cycle.commonReset(curr,next,opts);
		opts.cssBefore.top = fwd ? (1-next.cycleH) : (next.cycleH-1);
		opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH;
	});
	opts.cssFirst = { top: 0 };
	opts.cssBefore= { left: 0 };
	opts.animIn   = { top: 0 };
	opts.animOut  = { left: 0 };
};

// slideX/slideY
$.fn.cycle.transitions.slideX = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$(opts.elements).not(curr).hide();
		$.fn.cycle.commonReset(curr,next,opts,false,true);
		opts.animIn.width = next.cycleW;
	});
	opts.cssBefore = { left: 0, top: 0, width: 0 };
	opts.animIn	 = { width: 'show' };
	opts.animOut = { width: 0 };
};
$.fn.cycle.transitions.slideY = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$(opts.elements).not(curr).hide();
		$.fn.cycle.commonReset(curr,next,opts,true,false);
		opts.animIn.height = next.cycleH;
	});
	opts.cssBefore = { left: 0, top: 0, height: 0 };
	opts.animIn	 = { height: 'show' };
	opts.animOut = { height: 0 };
};

// shuffle
$.fn.cycle.transitions.shuffle = function($cont, $slides, opts) {
	var i, w = $cont.css('overflow', 'visible').width();
	$slides.css({left: 0, top: 0});
	opts.before.push(function(curr,next,opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,true,true);
	});
	// only adjust speed once!
	if (!opts.speedAdjusted) {
		opts.speed = opts.speed / 2; // shuffle has 2 transitions
		opts.speedAdjusted = true;
	}
	opts.random = 0;
	opts.shuffle = opts.shuffle || {left:-w, top:15};
	opts.els = [];
	for (i=0; i < $slides.length; i++)
		opts.els.push($slides[i]);

	for (i=0; i < opts.currSlide; i++)
		opts.els.push(opts.els.shift());

	// custom transition fn (hat tip to Benjamin Sterling for this bit of sweetness!)
	opts.fxFn = function(curr, next, opts, cb, fwd) {
		var $el = fwd ? $(curr) : $(next);
		$(next).css(opts.cssBefore);
		var count = opts.slideCount;
		$el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function() {
			var hops = $.fn.cycle.hopsFromLast(opts, fwd);
			for (var k=0; k < hops; k++)
				fwd ? opts.els.push(opts.els.shift()) : opts.els.unshift(opts.els.pop());
			if (fwd) {
				for (var i=0, len=opts.els.length; i < len; i++)
					$(opts.els[i]).css('z-index', len-i+count);
			}
			else {
				var z = $(curr).css('z-index');
				$el.css('z-index', parseInt(z)+1+count);
			}
			$el.animate({left:0, top:0}, opts.speedOut, opts.easeOut, function() {
				$(fwd ? this : curr).hide();
				if (cb) cb();
			});
		});
	};
	opts.cssBefore = { display: 'block', opacity: 1, top: 0, left: 0 };
};

// turnUp/Down/Left/Right
$.fn.cycle.transitions.turnUp = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,false);
		opts.cssBefore.top = next.cycleH;
		opts.animIn.height = next.cycleH;
	});
	opts.cssFirst  = { top: 0 };
	opts.cssBefore = { left: 0, height: 0 };
	opts.animIn	   = { top: 0 };
	opts.animOut   = { height: 0 };
};
$.fn.cycle.transitions.turnDown = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,false);
		opts.animIn.height = next.cycleH;
		opts.animOut.top   = curr.cycleH;
	});
	opts.cssFirst  = { top: 0 };
	opts.cssBefore = { left: 0, top: 0, height: 0 };
	opts.animOut   = { height: 0 };
};
$.fn.cycle.transitions.turnLeft = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,true);
		opts.cssBefore.left = next.cycleW;
		opts.animIn.width = next.cycleW;
	});
	opts.cssBefore = { top: 0, width: 0  };
	opts.animIn	   = { left: 0 };
	opts.animOut   = { width: 0 };
};
$.fn.cycle.transitions.turnRight = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,true);
		opts.animIn.width = next.cycleW;
		opts.animOut.left = curr.cycleW;
	});
	opts.cssBefore = { top: 0, left: 0, width: 0 };
	opts.animIn	   = { left: 0 };
	opts.animOut   = { width: 0 };
};

// zoom
$.fn.cycle.transitions.zoom = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,false,true);
		opts.cssBefore.top = next.cycleH/2;
		opts.cssBefore.left = next.cycleW/2;
		opts.animIn	   = { top: 0, left: 0, width: next.cycleW, height: next.cycleH };
		opts.animOut   = { width: 0, height: 0, top: curr.cycleH/2, left: curr.cycleW/2 };
	});
	opts.cssFirst = { top:0, left: 0 };
	opts.cssBefore = { width: 0, height: 0 };
};

// fadeZoom
$.fn.cycle.transitions.fadeZoom = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,false);
		opts.cssBefore.left = next.cycleW/2;
		opts.cssBefore.top = next.cycleH/2;
		opts.animIn	= { top: 0, left: 0, width: next.cycleW, height: next.cycleH };
	});
	opts.cssBefore = { width: 0, height: 0 };
	opts.animOut  = { opacity: 0 };
};

// blindX
$.fn.cycle.transitions.blindX = function($cont, $slides, opts) {
	var w = $cont.css('overflow','hidden').width();
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts);
		opts.animIn.width = next.cycleW;
		opts.animOut.left   = curr.cycleW;
	});
	opts.cssBefore = { left: w, top: 0 };
	opts.animIn = { left: 0 };
	opts.animOut  = { left: w };
};
// blindY
$.fn.cycle.transitions.blindY = function($cont, $slides, opts) {
	var h = $cont.css('overflow','hidden').height();
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts);
		opts.animIn.height = next.cycleH;
		opts.animOut.top   = curr.cycleH;
	});
	opts.cssBefore = { top: h, left: 0 };
	opts.animIn = { top: 0 };
	opts.animOut  = { top: h };
};
// blindZ
$.fn.cycle.transitions.blindZ = function($cont, $slides, opts) {
	var h = $cont.css('overflow','hidden').height();
	var w = $cont.width();
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts);
		opts.animIn.height = next.cycleH;
		opts.animOut.top   = curr.cycleH;
	});
	opts.cssBefore = { top: h, left: w };
	opts.animIn = { top: 0, left: 0 };
	opts.animOut  = { top: h, left: w };
};

// growX - grow horizontally from centered 0 width
$.fn.cycle.transitions.growX = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,true);
		opts.cssBefore.left = this.cycleW/2;
		opts.animIn = { left: 0, width: this.cycleW };
		opts.animOut = { left: 0 };
	});
	opts.cssBefore = { width: 0, top: 0 };
};
// growY - grow vertically from centered 0 height
$.fn.cycle.transitions.growY = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,false);
		opts.cssBefore.top = this.cycleH/2;
		opts.animIn = { top: 0, height: this.cycleH };
		opts.animOut = { top: 0 };
	});
	opts.cssBefore = { height: 0, left: 0 };
};

// curtainX - squeeze in both edges horizontally
$.fn.cycle.transitions.curtainX = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,true,true);
		opts.cssBefore.left = next.cycleW/2;
		opts.animIn = { left: 0, width: this.cycleW };
		opts.animOut = { left: curr.cycleW/2, width: 0 };
	});
	opts.cssBefore = { top: 0, width: 0 };
};
// curtainY - squeeze in both edges vertically
$.fn.cycle.transitions.curtainY = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,false,true);
		opts.cssBefore.top = next.cycleH/2;
		opts.animIn = { top: 0, height: next.cycleH };
		opts.animOut = { top: curr.cycleH/2, height: 0 };
	});
	opts.cssBefore = { left: 0, height: 0 };
};

// cover - curr slide covered by next slide
$.fn.cycle.transitions.cover = function($cont, $slides, opts) {
	var d = opts.direction || 'left';
	var w = $cont.css('overflow','hidden').width();
	var h = $cont.height();
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts);
		if (d == 'right')
			opts.cssBefore.left = -w;
		else if (d == 'up')
			opts.cssBefore.top = h;
		else if (d == 'down')
			opts.cssBefore.top = -h;
		else
			opts.cssBefore.left = w;
	});
	opts.animIn = { left: 0, top: 0};
	opts.animOut = { opacity: 1 };
	opts.cssBefore = { top: 0, left: 0 };
};

// uncover - curr slide moves off next slide
$.fn.cycle.transitions.uncover = function($cont, $slides, opts) {
	var d = opts.direction || 'left';
	var w = $cont.css('overflow','hidden').width();
	var h = $cont.height();
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,true,true);
		if (d == 'right')
			opts.animOut.left = w;
		else if (d == 'up')
			opts.animOut.top = -h;
		else if (d == 'down')
			opts.animOut.top = h;
		else
			opts.animOut.left = -w;
	});
	opts.animIn = { left: 0, top: 0 };
	opts.animOut = { opacity: 1 };
	opts.cssBefore = { top: 0, left: 0 };
};

// toss - move top slide and fade away
$.fn.cycle.transitions.toss = function($cont, $slides, opts) {
	var w = $cont.css('overflow','visible').width();
	var h = $cont.height();
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,true,true,true);
		// provide default toss settings if animOut not provided
		if (!opts.animOut.left && !opts.animOut.top)
			opts.animOut = { left: w*2, top: -h/2, opacity: 0 };
		else
			opts.animOut.opacity = 0;
	});
	opts.cssBefore = { left: 0, top: 0 };
	opts.animIn = { left: 0 };
};

// wipe - clip animation
$.fn.cycle.transitions.wipe = function($cont, $slides, opts) {
	var w = $cont.css('overflow','hidden').width();
	var h = $cont.height();
	opts.cssBefore = opts.cssBefore || {};
	var clip;
	if (opts.clip) {
		if (/l2r/.test(opts.clip))
			clip = 'rect(0px 0px '+h+'px 0px)';
		else if (/r2l/.test(opts.clip))
			clip = 'rect(0px '+w+'px '+h+'px '+w+'px)';
		else if (/t2b/.test(opts.clip))
			clip = 'rect(0px '+w+'px 0px 0px)';
		else if (/b2t/.test(opts.clip))
			clip = 'rect('+h+'px '+w+'px '+h+'px 0px)';
		else if (/zoom/.test(opts.clip)) {
			var top = parseInt(h/2);
			var left = parseInt(w/2);
			clip = 'rect('+top+'px '+left+'px '+top+'px '+left+'px)';
		}
	}

	opts.cssBefore.clip = opts.cssBefore.clip || clip || 'rect(0px 0px 0px 0px)';

	var d = opts.cssBefore.clip.match(/(\d+)/g);
	var t = parseInt(d[0]), r = parseInt(d[1]), b = parseInt(d[2]), l = parseInt(d[3]);

	opts.before.push(function(curr, next, opts) {
		if (curr == next) return;
		var $curr = $(curr), $next = $(next);
		$.fn.cycle.commonReset(curr,next,opts,true,true,false);
		opts.cssAfter.display = 'block';

		var step = 1, count = parseInt((opts.speedIn / 13)) - 1;
		(function f() {
			var tt = t ? t - parseInt(step * (t/count)) : 0;
			var ll = l ? l - parseInt(step * (l/count)) : 0;
			var bb = b < h ? b + parseInt(step * ((h-b)/count || 1)) : h;
			var rr = r < w ? r + parseInt(step * ((w-r)/count || 1)) : w;
			$next.css({ clip: 'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)' });
			(step++ <= count) ? setTimeout(f, 13) : $curr.css('display', 'none');
		})();
	});
	opts.cssBefore = { display: 'block', opacity: 1, top: 0, left: 0 };
	opts.animIn	   = { left: 0 };
	opts.animOut   = { left: 0 };
};

})(jQuery);
;
/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};;
// jQuery
Drupal.behaviors.vfCustom = function() {

  $(".pane-ns-news-latest, .pane-ns-news-latest-local").accordion({
    header: 'h2'
  });

  $('.view-ns-leader-slideshow').cycle({
    fx: 'fade'
  });

  $('#openx-popup script').remove();
  $('#openx-popup').show();
  $('#openx-popup').dialog({
    modal: true,
    width: Drupal.settings.vfCustom.openxPopup.width,
    height: Drupal.settings.vfCustom.openxPopup.height,
    close: function (event, ui) {
      $.cookie('vf_openx_popup_hide', 'true', {path: '/'});
    }
  });
  // When the timer runs out the dialog will popup next time again. So use the
  // "destory" method, so we won't set the cookie.
  setTimeout(function(){$('#openx-popup').dialog('destroy')}, Drupal.settings.vfCustom.openxPopup.delay);

};
;
// $Id: base.js,v 1.11.2.1 2010/03/10 20:08:58 merlinofchaos Exp $
/**
 * @file base.js
 *
 * Some basic behaviors and utility functions for Views.
 */

Drupal.Views = {};

/**
 * jQuery UI tabs, Views integration component
 */
Drupal.behaviors.viewsTabs = function (context) {
  $('#views-tabset:not(.views-processed)').addClass('views-processed').each(function() {
    new Drupal.Views.Tabs($(this), {selectedClass: 'active'});
  });

  $('a.views-remove-link')
    .addClass('views-processed')
    .click(function() {
      var id = $(this).attr('id').replace('views-remove-link-', '');
      $('#views-row-' + id).hide();
      $('#views-removed-' + id).attr('checked', true);
      return false;
    });
}

/**
 * For IE, attach some javascript so that our hovers do what they're supposed
 * to do.
 */
Drupal.behaviors.viewsHoverlinks = function() {
  if ($.browser.msie) {
    // If IE, attach a hover event so we can see our admin links.
    $("div.view:not(.views-hover-processed)").addClass('views-hover-processed').hover(
      function() {
        $('div.views-hide', this).addClass("views-hide-hover"); return true;
      },
      function(){
        $('div.views-hide', this).removeClass("views-hide-hover"); return true;
      }
    );
    $("div.views-admin-links:not(.views-hover-processed)")
      .addClass('views-hover-processed')
      .hover(
        function() {
          $(this).addClass("views-admin-links-hover"); return true;
        },
        function(){
          $(this).removeClass("views-admin-links-hover"); return true;
        }
      );
  }
}

/**
 * Helper function to parse a querystring.
 */
Drupal.Views.parseQueryString = function (query) {
  var args = {};
  var pos = query.indexOf('?');
  if (pos != -1) {
    query = query.substring(pos + 1);
  }
  var pairs = query.split('&');
  for(var i in pairs) {
    var pair = pairs[i].split('=');
    // Ignore the 'q' path argument, if present.
    if (pair[0] != 'q' && pair[1]) {
      args[pair[0]] = decodeURIComponent(pair[1].replace(/\+/g, ' '));
    }
  }
  return args;
};

/**
 * Helper function to return a view's arguments based on a path.
 */
Drupal.Views.parseViewArgs = function (href, viewPath) {
  var returnObj = {};
  var path = Drupal.Views.getPath(href);
  // Ensure we have a correct path.
  if (viewPath && path.substring(0, viewPath.length + 1) == viewPath + '/') {
    var args = decodeURIComponent(path.substring(viewPath.length + 1, path.length));
    returnObj.view_args = args;
    returnObj.view_path = path;
  }
  return returnObj;
};

/**
 * Strip off the protocol plus domain from an href.
 */
Drupal.Views.pathPortion = function (href) {
  // Remove e.g. http://example.com if present.
  var protocol = window.location.protocol;
  if (href.substring(0, protocol.length) == protocol) {
    // 2 is the length of the '//' that normally follows the protocol
    href = href.substring(href.indexOf('/', protocol.length + 2));
  }
  return href;
};

/**
 * Return the Drupal path portion of an href.
 */
Drupal.Views.getPath = function (href) {
  href = Drupal.Views.pathPortion(href);
  href = href.substring(Drupal.settings.basePath.length, href.length);
  // 3 is the length of the '?q=' added to the url without clean urls.
  if (href.substring(0, 3) == '?q=') {
    href = href.substring(3, href.length);
  }
  var chars = ['#', '?', '&'];
  for (i in chars) {
    if (href.indexOf(chars[i]) > -1) {
      href = href.substr(0, href.indexOf(chars[i]));
    }
  }
  return href;
};
;
// $Id: ajax_view.js,v 1.19.2.5 2010/03/25 18:25:28 merlinofchaos Exp $

/**
 * @file ajaxView.js
 *
 * Handles AJAX fetching of views, including filter submission and response.
 */

Drupal.Views.Ajax = Drupal.Views.Ajax || {};

/**
 * An ajax responder that accepts a packet of JSON data and acts appropriately.
 *
 * The following fields control behavior.
 * - 'display': Display the associated data in the view area.
 */
Drupal.Views.Ajax.ajaxViewResponse = function(target, response) {

  if (response.debug) {
    alert(response.debug);
  }

  var $view = $(target);

  // Check the 'display' for data.
  if (response.status && response.display) {
    var $newView = $(response.display);
    $view.replaceWith($newView);
    $view = $newView;
    Drupal.attachBehaviors($view.parent());
  }

  if (response.messages) {
    // Show any messages (but first remove old ones, if there are any).
    $view.find('.views-messages').remove().end().prepend(response.messages);
  }
};

/**
 * Ajax behavior for views.
 */
Drupal.behaviors.ViewsAjaxView = function() {
  if (Drupal.settings && Drupal.settings.views && Drupal.settings.views.ajaxViews) {
    var ajax_path = Drupal.settings.views.ajax_path;
    // If there are multiple views this might've ended up showing up multiple times.
    if (ajax_path.constructor.toString().indexOf("Array") != -1) {
      ajax_path = ajax_path[0];
    }
    $.each(Drupal.settings.views.ajaxViews, function(i, settings) {
      var view = '.view-dom-id-' + settings.view_dom_id;
      if (!$(view).size()) {
        // Backward compatibility: if 'views-view.tpl.php' is old and doesn't
        // contain the 'view-dom-id-#' class, we fall back to the old way of
        // locating the view:
        view = '.view-id-' + settings.view_name + '.view-display-id-' + settings.view_display_id;
      }


      // Process exposed filter forms.
      $('form#views-exposed-form-' + settings.view_name.replace(/_/g, '-') + '-' + settings.view_display_id.replace(/_/g, '-'))
      .filter(':not(.views-processed)')
      .each(function () {
        // remove 'q' from the form; it's there for clean URLs
        // so that it submits to the right place with regular submit
        // but this method is submitting elsewhere.
        $('input[name=q]', this).remove();
        var form = this;
        // ajaxSubmit doesn't accept a data argument, so we have to
        // pass additional fields this way.
        $.each(settings, function(key, setting) {
          $(form).append('<input type="hidden" name="'+ key + '" value="'+ setting +'"/>');
        });
      })
      .addClass('views-processed')
      .submit(function () {
        $('input[type=submit], button', this).after('<span class="views-throbbing">&nbsp</span>');
        var object = this;
        $(this).ajaxSubmit({
          url: ajax_path,
          type: 'GET',
          success: function(response) {
            // Call all callbacks.
            if (response.__callbacks) {
              $.each(response.__callbacks, function(i, callback) {
                eval(callback)(view, response);
              });
              $('.views-throbbing', object).remove();
            }
          },
          error: function(xhr) { Drupal.Views.Ajax.handleErrors(xhr, ajax_path); $('.views-throbbing', object).remove(); },
          dataType: 'json'
        });

        return false;
      });

      $(view).filter(':not(.views-processed)')
        // Don't attach to nested views. Doing so would attach multiple behaviors
        // to a given element.
        .filter(function() {
          // If there is at least one parent with a view class, this view
          // is nested (e.g., an attachment). Bail.
          return !$(this).parents('.view').size();
        })
        .each(function() {
          // Set a reference that will work in subsequent calls.
          var target = this;
          $(this)
            .addClass('views-processed')
            // Process pager, tablesort, and attachment summary links.
            .find('ul.pager > li > a, th.views-field a, .attachment .views-summary a')
            .each(function () {
              var viewData = { 'js': 1 };
              // Construct an object using the settings defaults and then overriding
              // with data specific to the link.
              $.extend(
                viewData,
                Drupal.Views.parseQueryString($(this).attr('href')),
                // Extract argument data from the URL.
                Drupal.Views.parseViewArgs($(this).attr('href'), settings.view_base_path),
                // Settings must be used last to avoid sending url aliases to the server.
                settings
              );
              $(this).click(function () {
                $.extend(viewData, Drupal.Views.parseViewArgs($(this).attr('href'), settings.view_base_path));
                $(this).addClass('views-throbbing');
                $.ajax({
                  url: ajax_path,
                  type: 'GET',
                  data: viewData,
                  success: function(response) {
                    $(this).removeClass('views-throbbing');
                    // Scroll to the top of the view. This will allow users
                    // to browse newly loaded content after e.g. clicking a pager
                    // link.
                    var offset = $(target).offset();
                    // We can't guarantee that the scrollable object should be
                    // the body, as the view could be embedded in something
                    // more complex such as a modal popup. Recurse up the DOM
                    // and scroll the first element that has a non-zero top.
                    var scrollTarget = target;
                    while ($(scrollTarget).scrollTop() == 0 && $(scrollTarget).parent()) {
                      scrollTarget = $(scrollTarget).parent()
                    }
                    // Only scroll upward
                    if (offset.top - 10 < $(scrollTarget).scrollTop()) {
                      $(scrollTarget).animate({scrollTop: (offset.top - 10)}, 500);
                    }
                    // Call all callbacks.
                    if (response.__callbacks) {
                      $.each(response.__callbacks, function(i, callback) {
                        eval(callback)(target, response);
                      });
                    }
                  },
                  error: function(xhr) { $(this).removeClass('views-throbbing'); Drupal.Views.Ajax.handleErrors(xhr, ajax_path); },
                  dataType: 'json'
                });

                return false;
              });
            }); // .each function () {
      }); // $view.filter().each
    }); // .each Drupal.settings.views.ajaxViews
  } // if
};
;
;
/*
 In-Field Label jQuery Plugin
 http://fuelyourcoding.com/scripts/infield.html

 Copyright (c) 2009 Doug Neiner
 Dual licensed under the MIT and GPL licenses.
 Uses the same license as jQuery, see:
 http://docs.jquery.com/License

*/
(function(d){d.InFieldLabels=function(e,b,f){var a=this;a.$label=d(e);a.label=e;a.$field=d(b);a.field=b;a.$label.data("InFieldLabels",a);a.showing=true;a.init=function(){a.options=d.extend({},d.InFieldLabels.defaultOptions,f);if(a.$field.val()!==""){a.$label.hide();a.showing=false}a.$field.focus(function(){a.fadeOnFocus()}).blur(function(){a.checkForEmpty(true)}).bind("keydown.infieldlabel",function(c){a.hideOnChange(c)}).bind("paste",function(){a.setOpacity(0)}).change(function(){a.checkForEmpty()}).bind("onPropertyChange",
function(){a.checkForEmpty()})};a.fadeOnFocus=function(){a.showing&&a.setOpacity(a.options.fadeOpacity)};a.setOpacity=function(c){a.$label.stop().animate({opacity:c},a.options.fadeDuration);a.showing=c>0};a.checkForEmpty=function(c){if(a.$field.val()===""){a.prepForShow();a.setOpacity(c?1:a.options.fadeOpacity)}else a.setOpacity(0)};a.prepForShow=function(){if(!a.showing){a.$label.css({opacity:0}).show();a.$field.bind("keydown.infieldlabel",function(c){a.hideOnChange(c)})}};a.hideOnChange=function(c){if(!(c.keyCode===
16||c.keyCode===9)){if(a.showing){a.$label.hide();a.showing=false}a.$field.unbind("keydown.infieldlabel")}};a.init()};d.InFieldLabels.defaultOptions={fadeOpacity:0.5,fadeDuration:300};d.fn.inFieldLabels=function(e){return this.each(function(){var b=d(this).attr("for");if(b){b=d("input#"+b+"[type='text'],input#"+b+"[type='search'],input#"+b+"[type='tel'],input#"+b+"[type='url'],input#"+b+"[type='email'],input#"+b+"[type='password'],textarea#"+b);b.length!==0&&new d.InFieldLabels(this,b[0],e)}})}})(jQuery);
;
// Display labels in fields
Drupal.behaviors.inFieldLabels = function(context) {
  $('.pane-apachesolr-form:not(.infieldlabels-processed)', context).each(function() {
    var $label = $('label', this);
    var $element = $('.form-text', this);
    $label.attr('for', $element.attr('id')).css({}).html($label.html().replace(':', '')).inFieldLabels();
  }).addClass('infieldlabels-processed');
}

// Close page status messages.
Drupal.behaviors.hidePageMessage = function(context) {
  $('.pane-page-messages span.icon', context).click(function() {
    $('.pane-page-messages').fadeOut('slow');
  });
}
;

