/*
 * 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 = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;

/**
 * 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;
  if (Drupal.jsEnabled) {
    // 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).text())) {
      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, '@text': xmlhttp.responseText });
    }
  }
  else {
    var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
  }
  return message;
}

// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
  // Global Killswitch on the <html> element
  $(document.documentElement).addClass('js');
  // 'js enabled' cookie
  document.cookie = 'has_js=1; path=/';
  // 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>';
  }
};
;
// ColorBox v1.3.18 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b,c){function Y(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function Z(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}function $(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function _(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function ba(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.slice(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function bb(b,c){a.event.trigger(b),c&&c.call(P)}function bc(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(Q<y.length-1||K.loop)a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function bd(b){if(!U){P=b,ba(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1));if(!S){S=T=!0,r.show();if(K.returnFocus)try{P.blur(),a(P).one(l,function(){try{this.focus()}catch(a){}})}catch(c){}q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=$(K.initialWidth,"x"),K.h=$(K.initialHeight,"y"),W.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bb(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()}W.load(!0)}}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=a.browser.msie&&!a.support.opacity,o=n&&a.browser.version<7,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div";W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},W.init();if(!f[0]){if(f.selector)return f;f=a("<a/>"),b.open=!0}return c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addClass(g)}),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&bd(f[0]),f},W.init=function(){if(!r){if(!a("body")[0]){a(W.init);return}z=a(c),r=Y(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}),q=Y(X,"Overlay",o?"position:absolute":"").hide(),s=Y(X,"Wrapper"),t=Y(X,"Content").append(A=Y(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Y(X,"LoadingOverlay").add(Y(X,"LoadingGraphic")),D=Y(X,"Title"),E=Y(X,"Current"),G=Y(X,"Next"),H=Y(X,"Previous"),F=Y(X,"Slideshow").bind(h,bc),I=Y(X,"Close")),s.append(Y(X).append(Y(X,"TopLeft"),u=Y(X,"TopCenter"),Y(X,"TopRight")),Y(X,!1,"clear:left").append(v=Y(X,"MiddleLeft"),t,w=Y(X,"MiddleRight")),Y(X,!1,"clear:left").append(Y(X,"BottomLeft"),x=Y(X,"BottomCenter"),Y(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Y(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(q,r.append(s,B)),L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}).hide(),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),J=G.add(H).add(E).add(F),q.click(function(){K.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),W.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))})}},W.remove=function(){r.add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g)},W.position=function(a,b){function g(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,C[0].style.height=C[1].style.height=t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset();z.unbind("resize."+f),r.css({top:-99999,left:-99999}),K.fixed&&!o?r.css({position:"fixed"}):(c=z.scrollTop(),d=z.scrollLeft(),r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-$(K.right,"x"),0):K.left!==!1?d+=$(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-$(K.bottom,"y"),0):K.top!==!1?c+=$(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left:e.left}),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){g(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",b&&b(),setTimeout(function(){z.bind("resize."+f,W.position)},1)},step:function(){g(this)}})},W.resize=function(a){S&&(a=a||{},a.width&&(K.w=$(a.width,"x")-O-M),a.innerWidth&&(K.w=$(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=$(a.height,"y")-N-L),a.innerHeight&&(K.h=$(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w,K.w}function h(){return K.h=K.h||A.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h,K.h}if(!S)return;var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Y(X,"LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function q(){n&&r[0].style.removeAttribute("filter")}var b,c,g=y.length,h,i="frameBorder",k="allowTransparency",l,o,p;if(!S)return;l=function(){clearTimeout(V),C.hide(),bb(j,K.onComplete)},n&&R&&A.fadeIn(100),D.html(K.title).add(A).show();if(g>1){typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||Q<g-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),K.slideshow&&F.show();if(K.preloading){b=[Z(-1),Z(1)];while(c=y[b.pop()])o=a.data(c,e).href||c.href,a.isFunction(o)&&(o=o.call(c)),_(o)&&(p=new Image,p.src=o)}}else J.hide();K.iframe?(h=Y("iframe")[0],i in h&&(h[i]=0),k in h&&(h[k]="true"),h.name=f+ +(new Date),K.fastIframe?l():a(h).one("load",l),h.src=K.href,K.scrolling||(h.scrolling="no"),a(h).addClass(f+"Iframe").appendTo(A).one(m,function(){h.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,q):q()},K.transition==="fade"?r.fadeTo(d,0,function(){W.position(0,c)}):W.position(d,c)},W.load=function(b){var c,d,e=W.prep;T=!0,R=!1,P=y[Q],b||ba(),bb(m),bb(i,K.onLoad),K.h=K.height?$(K.height,"y")-N-L:K.innerHeight&&$(K.innerHeight,"y"),K.w=K.width?$(K.width,"x")-O-M:K.innerWidth&&$(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=$(K.maxWidth,"x")-O-M,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=$(K.maxHeight,"y")-N-L,K.mh=K.h&&K.h<K.mh?K.h:K.mh),c=K.href,V=setTimeout(function(){C.show()},100),K.inline?(Y(X).hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):_(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Y(X,"Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&&(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&&R.width>K.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(Q<y.length-1||K.loop)&&(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Y(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&&y[1]&&(Q<y.length-1||K.loop)&&(Q=Z(1),W.load())},W.prev=function(){!T&&y[1]&&(Q||K.loop)&&(Q=Z(-1),W.load())},W.close=function(){S&&!U&&(U=!0,S=!1,bb(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bb(m),A.remove(),setTimeout(function(){U=!1,bb(l,K.onClosed)},1)}))},W.element=function(){return a(P)},W.settings=d,a("."+g,b).live("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),bd(this))}),W.init()})(jQuery,document,this);;
(function ($) {

Drupal.behaviors.initColorbox = function (context) {
  if (!$.isFunction($.colorbox)) {
    return;
  }
  $('a, area, input', context)
    .filter('.colorbox:not(.initColorbox-processed)')
    .addClass('initColorbox-processed')
    .colorbox(Drupal.settings.colorbox);
};

{
  $(document).bind('cbox_complete', function () {
    Drupal.attachBehaviors('#cboxLoadedContent');
  });
}

})(jQuery);
;
(function ($) {

Drupal.behaviors.initColorboxLoad = function (context) {
  if (!$.isFunction($.colorbox)) {
    return;
  }
  var settings = Drupal.settings.colorbox;
  $.urlParam = function(name, url){
    var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(url);
    if (!results) { return ''; }
    return results[1] || '';
  };
  $('a, area, input', context).filter('.colorbox-load:not(.initColorboxLoad-processed)').addClass('initColorboxLoad-processed').colorbox({
    transition:settings.transition,
    speed:settings.speed,
    opacity:settings.opacity,
    slideshowAuto:settings.slideshowAuto,
    slideshowSpeed:settings.slideshowSpeed,
    slideshowStart:settings.slideshowStart,
    slideshowStop:settings.slideshowStop,
    current:settings.current,
    previous:settings.previous,
    next:settings.next,
    close:settings.close,
    overlayClose:settings.overlayClose,
    maxWidth:settings.maxWidth,
    maxHeight:settings.maxHeight,
    innerWidth:function(){
      return $.urlParam('width', $(this).attr('href'));
    },
    innerHeight:function(){
      return $.urlParam('height', $(this).attr('href'));
    },
    iframe:function(){
      return $.urlParam('iframe', $(this).attr('href'));
    },
    slideshow:function(){
      return $.urlParam('slideshow', $(this).attr('href'));
    }
  });
};

})(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==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(els[opts2.currSlide],els[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&&!opts.backwards));},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,(!opts.rev&&!opts.backwards));}}}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&&!opts.backwards));});}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);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}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;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);});$(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{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;}}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.bounce&&((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{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{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);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));},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.call(curr,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,backwards:false};})(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($){$.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){$.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.39 2010/07/01 03:29:08 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);
    }
    
    // Pause if hidden.
    if (settings.pause_when_hidden) {
      var checkPause = function(settings) {
        // If the slideshow is visible and it is paused then resume.
        // otherwise if the slideshow is not visible and it is not paused then
        // pause it.
        var visible = viewsSlideshowSingleFrameIsVisible(settings.targetId, settings.pause_when_hidden_type, settings.amount_allowed_visible);
        if (visible && settings.paused) {
          viewsSlideshowSingleFrameResume(settings);
        }
        else if (!visible && !settings.paused) {
          viewsSlideshowSingleFramePause(settings);
        }
      }
     
      // Check when scrolled.
      $(window).scroll(function() {
       checkPause(settings);
      });
      
      // Check when the window is resized.
      $(window).resize(function() {
        checkPause(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);
}

/**
 * Checks to see if the slide is visible enough.
 * elem = element to check.
 * type = The way to calculate how much is visible.
 * amountVisible = amount that should be visible. Either in percent or px. If
 *                it's not defined then all of the slide must be visible.
 *
 * Returns true or false
 */
function viewsSlideshowSingleFrameIsVisible(elem, type, amountVisible) {
  // Get the top and bottom of the window;
  var docViewTop = $(window).scrollTop();
  var docViewBottom = docViewTop + $(window).height();
  var docViewLeft = $(window).scrollLeft();
  var docViewRight = docViewLeft + $(window).width();

  // Get the top, bottom, and height of the slide;
  var elemTop = $(elem).offset().top;
  var elemHeight = $(elem).height();
  var elemBottom = elemTop + elemHeight;
  var elemLeft = $(elem).offset().left;
  var elemWidth = $(elem).width();
  var elemRight = elemLeft + elemWidth;
  var elemArea = elemHeight * elemWidth;
  
  // Calculate what's hiding in the slide.
  var missingLeft = 0;
  var missingRight = 0;
  var missingTop = 0;
  var missingBottom = 0;
  
  // Find out how much of the slide is missing from the left.
  if (elemLeft < docViewLeft) {
    missingLeft = docViewLeft - elemLeft;
  }

  // Find out how much of the slide is missing from the right.
  if (elemRight > docViewRight) {
    missingRight = elemRight - docViewRight;
  }
  
  // Find out how much of the slide is missing from the top.
  if (elemTop < docViewTop) {
    missingTop = docViewTop - elemTop;
  }

  // Find out how much of the slide is missing from the bottom.
  if (elemBottom > docViewBottom) {
    missingBottom = elemBottom - docViewBottom;
  }
  
  // If there is no amountVisible defined then check to see if the whole slide
  // is visible.
  if (type == 'full') {
    return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom)
    && (elemBottom <= docViewBottom) &&  (elemTop >= docViewTop)
    && (elemLeft >= docViewLeft) && (elemRight <= docViewRight)
    && (elemLeft <= docViewRight) && (elemRight >= docViewLeft));
  }
  else if(type == 'vertical') {
    var verticalShowing = elemHeight - missingTop - missingBottom;
    
    // If user specified a percentage then find out if the current shown percent
    // is larger than the allowed percent.
    // Otherwise check to see if the amount of px shown is larger than the
    // allotted amount.
    if (amountVisible.indexOf('%')) {
      return (((verticalShowing/elemHeight)*100) >= parseInt(amountVisible));
    }
    else {
      return (verticalShowing >= parseInt(amountVisible));
    }
  }
  else if(type == 'horizontal') {
    var horizontalShowing = elemWidth - missingLeft - missingRight;
    
    // If user specified a percentage then find out if the current shown percent
    // is larger than the allowed percent.
    // Otherwise check to see if the amount of px shown is larger than the
    // allotted amount.
    if (amountVisible.indexOf('%')) {
      return (((horizontalShowing/elemWidth)*100) >= parseInt(amountVisible));
    }
    else {
      return (horizontalShowing >= parseInt(amountVisible));
    }
  }
  else if(type == 'area') {
    var areaShowing = (elemWidth - missingLeft - missingRight) * (elemHeight - missingTop - missingBottom);
    
    // If user specified a percentage then find out if the current shown percent
    // is larger than the allowed percent.
    // Otherwise check to see if the amount of px shown is larger than the
    // allotted amount.
    if (amountVisible.indexOf('%')) {
      return (((areaShowing/elemArea)*100) >= parseInt(amountVisible));
    }
    else {
      return (areaShowing >= parseInt(amountVisible));
    }
  }
}

;
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09i
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());;
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Generated in 2009 by FontLab Studio. Copyright info pending.
 */
Cufon.registerFont({"w":176,"face":{"font-family":"League Gothic","font-weight":400,"font-stretch":"normal","units-per-em":"550","panose-1":"0 0 0 0 0 0 0 0 0 0","ascent":"404","descent":"-146","x-height":"4","bbox":"-18 -512 427 138","underline-thickness":"27.3926","underline-position":"-27.3926","unicode-range":"U+0020-U+FB04"},"glyphs":{" ":{"w":84},"!":{"d":"20,-404r64,0r-15,295r-34,0xm23,0r0,-61r58,0r0,61r-58,0","w":103},"\"":{"d":"15,-404r58,0r-8,148r-41,0","w":88},"#":{"d":"13,-118r7,-52r54,0r10,-69r-53,0r7,-52r53,0r15,-113r53,0r-15,113r70,0r15,-113r53,0r-16,113r52,0r-7,52r-52,0r-10,69r51,0r-7,52r-51,0r-16,118r-53,0r16,-118r-70,0r-16,118r-53,0r17,-118r-54,0xm126,-170r70,0r10,-69r-70,0","w":330},"$":{"d":"122,-321v-2,-17,-7,-34,-25,-34v-28,-1,-28,71,-7,90r67,101v35,50,18,166,-47,163r0,59r-33,0r0,-60v-42,-7,-64,-38,-67,-94r51,-4v2,33,14,51,35,51v30,1,31,-76,9,-97v-32,-51,-86,-89,-86,-164v0,-52,20,-83,58,-92r0,-35r33,0r0,33v36,4,57,30,63,76","w":185},"%":{"d":"99,-374v0,68,25,177,-41,177v-68,0,-38,-104,-43,-170v-4,-48,84,-57,84,-7xm42,0r149,-404r35,0r-147,404r-37,0xm58,-377v-7,1,-10,6,-10,15r0,117v-4,19,19,18,19,4r0,-121v0,-10,-2,-15,-9,-15xm254,-172v0,68,26,176,-42,176v-67,0,-38,-105,-42,-168v-4,-51,84,-57,84,-8xm222,-160v1,-19,-20,-17,-20,-3r0,121v-4,18,19,19,19,4v0,-38,-1,-82,1,-122","w":268},"&":{"d":"162,-33v-50,71,-150,29,-149,-52v2,-52,22,-79,46,-117v-37,-73,-54,-207,44,-207v51,0,70,39,71,88v0,29,-18,68,-55,117v14,31,26,56,39,76v6,-17,10,-35,13,-56r47,9v-3,38,-10,70,-24,96v10,11,17,18,24,20r0,63v-18,-3,-42,-22,-56,-37xm84,-150v-14,23,-27,103,13,103v11,0,22,-8,34,-23v-16,-25,-32,-52,-47,-80xm114,-357v-20,-14,-32,11,-32,36v0,20,5,42,15,66v25,-41,37,-66,17,-102","w":229},"'":{"d":"12,-272r19,-71r-19,0r0,-61r58,0r0,61r-31,71r-27,0","w":82},"(":{"d":"96,80v-62,-89,-107,-268,-51,-402v16,-39,32,-76,51,-105r44,23v-62,77,-94,253,-45,371v14,34,27,66,45,90","w":150},")":{"d":"55,-427v62,89,108,269,50,402v-17,38,-31,76,-50,105r-44,-23v73,-89,93,-305,24,-419v-11,-19,-14,-29,-24,-42","w":150},"*":{"d":"20,-336r11,-40r44,19r-5,-47r42,0r-5,47r44,-19r11,40r-46,9r31,37r-35,22r-21,-41r-21,41r-35,-22r31,-37","w":181},"+":{"d":"20,-174r0,-46r99,0r0,-93r46,0r0,93r100,0r0,46r-100,0r0,93r-46,0r0,-93r-99,0","w":284},",":{"d":"12,0r0,-61r58,0r0,61r-31,71r-27,0r19,-71r-19,0","w":82},"-":{"d":"20,-122r0,-52r80,0r0,52r-80,0","w":119},".":{"d":"14,0r0,-61r58,0r0,61r-58,0","w":86},"\/":{"d":"2,39r146,-443r43,0r-144,443r-45,0","w":193},"0":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":194},"1":{"d":"7,-317r0,-38v30,-6,53,-26,63,-49r36,0r0,404r-60,0r0,-317r-39,0","w":127},"2":{"d":"15,0v1,-27,-5,-62,10,-75v34,-60,90,-139,90,-229v0,-33,-6,-50,-19,-50v-19,-4,-21,48,-20,78r-60,0v-5,-78,17,-133,80,-133v53,0,79,34,79,101v0,60,-31,143,-93,249r94,0r0,59r-161,0","w":196},"3":{"d":"88,-356v-23,5,-15,29,-18,68r-58,0v-1,-67,12,-121,76,-121v51,0,77,38,77,87v0,52,-10,88,-29,107v49,38,55,219,-43,219v-66,0,-79,-55,-79,-121r59,0v2,40,-4,62,20,69v32,-8,30,-128,-10,-132v-7,-1,-13,-4,-22,-3r0,-49v50,5,49,-43,45,-91v-1,-13,-2,-36,-18,-33","w":184},"4":{"d":"7,-88r0,-52r86,-264r60,0r0,264r27,0r0,52r-27,0r0,88r-54,0r0,-88r-92,0xm57,-140r42,0r0,-139v-7,-1,-5,8,-7,12","w":183},"5":{"d":"109,-275v78,2,64,95,66,174v2,86,-49,124,-114,97v-36,-15,-41,-61,-41,-114r59,0v1,32,-5,68,18,71v19,-4,18,-24,18,-54r0,-90v0,-20,-5,-30,-18,-30v-11,0,-24,20,-23,30r-50,0r0,-213r143,0r0,59r-92,0r0,84v6,-5,21,-15,34,-14","w":189},"6":{"d":"95,4v-54,0,-76,-37,-77,-87r0,-230v0,-64,25,-96,77,-96v61,0,83,48,78,121r-60,0v-3,-42,6,-62,-18,-69v-32,8,-13,78,-18,116v53,-31,96,18,96,76v0,84,7,169,-78,169xm113,-186v0,-21,-35,-25,-36,-2r0,122v0,29,36,20,36,0r0,-120","w":187},"7":{"d":"2,-345r0,-59r150,0r0,59r-60,345r-61,0r60,-345r-89,0","w":158},"8":{"d":"93,4v-72,-1,-79,-63,-79,-138v0,-34,10,-60,31,-80v-46,-49,-43,-195,48,-195v91,0,96,143,49,195v35,29,35,83,30,142v-4,42,-28,76,-79,76xm93,-182v-26,6,-21,32,-21,72v0,34,-1,55,21,60v25,-5,22,-28,22,-60v0,-41,5,-65,-22,-72xm93,-356v-20,4,-17,25,-17,55v0,34,-4,56,17,61v22,-4,18,-27,18,-61v0,-31,3,-51,-18,-55","w":186},"9":{"d":"93,-409v54,0,78,39,78,88r0,230v0,64,-26,95,-78,95v-61,0,-83,-48,-78,-121r60,0v3,42,-7,63,18,70v33,-9,12,-81,18,-120v-53,31,-96,-18,-96,-76v0,-83,-4,-166,78,-166xm93,-357v-10,0,-18,11,-18,18r0,117v1,7,7,19,18,18v11,1,17,-8,18,-16r0,-119v-1,-8,-7,-18,-18,-18","w":187},":":{"d":"20,0r0,-61r58,0r0,61r-58,0xm20,-240r0,-61r58,0r0,61r-58,0","w":97},";":{"d":"20,0r0,-61r58,0r0,61r-31,71r-27,0r19,-71r-19,0xm20,-240r0,-61r58,0r0,61r-58,0","w":97},"<":{"d":"20,-174r0,-43r245,-128r0,54r-188,95r188,96r0,53","w":284},"=":{"d":"20,-128r0,-46r245,0r0,46r-245,0xm20,-232r0,-46r245,0r0,46r-245,0","w":284},">":{"d":"20,-47r0,-53r187,-96r-187,-95r0,-54r245,128r0,43","w":284},"?":{"d":"105,-346v-18,-26,-47,10,-50,30r-48,-22v14,-33,37,-69,84,-68v72,2,92,80,50,135v-27,35,-37,94,-33,162r-51,0v-3,-77,3,-147,36,-190v10,-21,21,-27,12,-47xm53,0r58,0r0,-61r-58,0r0,61","w":173},"@":{"d":"204,-34v-45,65,-186,44,-186,-47r0,-239v3,-55,40,-88,100,-89v61,0,101,35,101,89r0,213r-44,0r-6,-15v-16,30,-69,22,-69,-28r0,-130v-7,-48,52,-59,69,-28v3,-33,-17,-55,-51,-55v-30,0,-51,20,-51,43r0,239v-3,42,73,54,96,24xm144,-154v0,9,4,14,12,14v9,0,13,-5,13,-14r0,-122v0,-9,-4,-14,-13,-14v-8,0,-12,5,-12,14r0,122","w":234},"A":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10","w":205},"B":{"d":"146,-214v27,17,41,53,41,100v0,105,-63,122,-165,114r0,-404v97,-5,165,8,161,107v-2,44,-11,60,-37,83xm125,-121v0,-38,-7,-64,-44,-62r0,124v38,1,43,-22,44,-62xm125,-292v0,-34,-11,-54,-44,-53r0,107v33,1,44,-20,44,-54","w":200},"C":{"d":"97,4v-53,0,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v73,0,84,66,79,143r-55,0v-3,-33,12,-85,-22,-85v-14,0,-21,14,-21,30r0,246v1,8,10,23,21,22v33,-2,19,-52,22,-86r55,0v4,78,-5,143,-79,143","w":190},"D":{"d":"22,0r0,-404v71,-2,140,-2,153,56v18,77,18,214,0,292v-13,56,-79,59,-153,56xm125,-156v-10,-87,29,-192,-44,-189r0,286v53,-3,38,-28,44,-97","w":204},"E":{"d":"22,0r0,-404r136,0r0,61r-77,0r0,106r55,0r0,65r-55,0r0,111r77,0r0,61r-136,0","w":168},"F":{"d":"22,0r0,-404r141,0r0,61r-82,0r0,106r55,0r0,61r-55,0r0,176r-59,0","w":165},"G":{"d":"134,-19v-44,52,-116,10,-116,-64r1,-247v4,-44,30,-79,78,-79v76,0,84,70,79,150r-59,0v-3,-35,12,-92,-20,-92v-14,0,-19,14,-19,30r0,251v1,7,9,24,19,22v35,-5,15,-66,20,-103r-24,0r0,-50r83,0r0,201r-35,0","w":197},"H":{"d":"22,0r0,-404r59,0r0,167r47,0r0,-167r59,0r0,404r-59,0r0,-176r-47,0r0,176r-59,0","w":208},"I":{"d":"22,0r0,-404r59,0r0,404r-59,0","w":103},"J":{"d":"95,-75v-1,53,-32,83,-92,79r0,-59v18,4,32,-8,32,-29r0,-320r60,0r0,329","w":113},"K":{"d":"22,0r0,-404r59,0r0,141v5,1,4,-4,5,-7r50,-134r58,0r-55,133r62,271r-58,0r-44,-184r-18,41r0,143r-59,0","w":206},"L":{"d":"22,0r0,-404r59,0r0,349r79,0r0,55r-138,0","w":162},"M":{"d":"22,0r0,-404r73,0r39,206v9,-72,26,-137,38,-206r72,0r0,404r-55,0r0,-271v-7,0,-3,12,-5,17r-38,254r-25,0r-41,-271v-7,0,-1,12,-3,17r0,254r-55,0","w":266},"N":{"d":"22,0r0,-404r53,0r63,229r3,0r0,-229r54,0r0,404r-53,0r-62,-229v-7,0,-1,13,-3,18r0,211r-55,0","w":216},"O":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":194},"P":{"d":"186,-283v0,78,-37,119,-105,121r0,162r-59,0r0,-404v103,-9,164,19,164,121xm81,-222v40,-1,45,-16,45,-59v0,-43,-5,-62,-45,-63r0,122","w":193},"Q":{"d":"127,-1v-63,19,-110,-21,-109,-82r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,238v0,17,-4,33,-12,49v6,8,14,12,24,14r0,51v-29,0,-49,-11,-61,-32xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":195},"R":{"d":"22,0r0,-404v100,-7,163,12,161,116v0,46,-11,77,-33,92r37,196r-59,0r-31,-171r-16,0r0,171r-59,0xm81,-226v54,8,54,-84,28,-111v-9,-6,-14,-9,-28,-8r0,119","w":198},"S":{"d":"45,-230v-42,-57,-37,-182,53,-179v61,2,80,47,81,108r-58,5v0,-39,-8,-58,-24,-58v-28,-2,-23,68,-6,83v30,55,80,96,88,174v11,99,-90,128,-146,77v-20,-19,-22,-54,-23,-93r58,-6v0,46,9,69,28,69v37,1,25,-80,4,-97","w":188},"T":{"d":"1,-343r0,-61r172,0r0,61r-56,0r0,343r-60,0r0,-343r-56,0","w":173},"U":{"d":"101,4v-54,0,-80,-38,-80,-87r0,-321r60,0r0,329v1,8,9,23,20,22v14,0,19,-16,20,-30r0,-321r59,0r-1,330v-5,43,-28,79,-78,78","w":201},"V":{"d":"5,-404r58,0r32,239v7,0,3,-12,5,-17r30,-222r57,0r-61,404r-59,0","w":192},"W":{"d":"7,-404r54,0r25,223v8,2,5,-8,6,-13r26,-210r43,0r26,223v8,2,5,-8,6,-13r24,-210r55,0r-55,404r-46,0r-31,-215r-2,0r-31,215r-46,0","w":278},"X":{"d":"4,0r66,-212r-65,-192r59,0v13,35,20,76,36,107r34,-107r59,0r-65,192r66,212r-59,0v-14,-40,-20,-88,-37,-125r-35,125r-59,0","w":197},"Y":{"d":"4,-404r58,0v12,43,17,93,33,133r31,-133r58,0r-60,232r0,172r-60,0r0,-172","w":187},"Z":{"d":"5,0r0,-64r94,-281r-80,0r0,-59r144,0r0,59r-95,286r95,0r0,59r-158,0","w":168},"[":{"d":"22,57r0,-461r107,0r0,52r-54,0r0,356r54,0r0,53r-107,0","w":144},"\\":{"d":"2,-454r44,0r165,502r-46,0","w":212},"]":{"d":"15,4r55,0r0,-356r-55,0r0,-52r108,0r0,461r-108,0r0,-53","w":144},"^":{"d":"14,-217r103,-187r62,0r103,187r-54,0r-80,-146r-80,146r-54,0","w":295},"_":{"d":"20,41r285,0r0,47r-285,0r0,-47","w":324},"`":{"d":"79,-400r57,0r29,50r-43,0","w":275},"a":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28","w":182},"b":{"d":"164,-55v1,36,-26,75,-62,53v-11,-6,-17,-10,-24,-18r0,20r-56,0r0,-404r56,0r0,123v16,-16,30,-24,44,-24v28,-1,42,31,42,58r0,192xm94,-253v-8,-1,-16,11,-16,18r0,169v0,10,7,18,16,18v9,0,16,-8,15,-18r0,-169v1,-10,-6,-18,-15,-18","w":184},"c":{"d":"160,-111v3,69,-6,115,-71,115v-93,0,-71,-130,-71,-220v0,-59,24,-89,71,-89v63,0,74,43,71,110r-56,0v-3,-23,9,-60,-15,-61v-10,0,-16,9,-16,25r0,162v0,16,6,24,16,24v26,0,11,-43,15,-66r56,0","w":173},"d":{"d":"63,4v-29,1,-43,-31,-43,-59r0,-192v-2,-35,27,-73,62,-52v11,6,17,11,25,18r0,-123r55,0r0,404r-55,0r0,-20v-16,16,-30,24,-44,24xm107,-235v-1,-20,-32,-25,-32,0r0,169v0,9,7,18,15,18v9,0,17,-9,17,-18r0,-169","w":184},"e":{"d":"89,4v-102,0,-64,-140,-71,-239v6,-37,26,-70,72,-70v80,0,73,85,71,165r-92,0v6,33,-15,88,21,95v25,-1,19,-37,20,-63r51,0v4,64,-12,112,-72,112xm90,-257v-27,3,-20,43,-21,73r41,0v-2,-30,6,-69,-20,-73"},"f":{"d":"123,-355v-31,-11,-34,14,-34,54r28,0r0,50r-28,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-7,-68,21,-120,89,-102r0,48","w":127},"g":{"d":"92,108v-52,0,-87,-11,-89,-59v0,-17,15,-31,44,-45v-51,-10,-35,-72,1,-85v-40,-24,-32,-93,-32,-156v0,-35,26,-69,70,-68v24,0,43,9,56,27v18,-18,33,-27,45,-27r0,49v-13,0,-23,3,-32,7v8,79,16,188,-79,178v-20,14,2,29,19,29v46,0,92,17,92,73v0,55,-43,77,-95,77xm93,61v24,0,57,-14,37,-34v-8,-7,-37,-10,-52,-13v-31,15,-29,47,15,47xm100,-245v-11,-18,-33,-4,-30,18v5,38,-14,98,16,110v13,0,18,-14,17,-27v-2,-33,4,-73,-3,-101","w":187},"h":{"d":"109,-238v-1,-22,-31,-12,-31,1r0,237r-56,0r0,-404r56,0r0,128v11,-11,25,-28,45,-29v28,-1,41,30,41,58r0,247r-55,0r0,-238","w":185},"i":{"d":"22,0r0,-301r56,0r0,301r-56,0xm22,-349r0,-55r56,0r0,55r-56,0","w":99},"j":{"d":"76,8v5,64,-27,108,-88,92r0,-51v26,9,33,-8,32,-42r0,-308r56,0r0,309xm20,-349r0,-55r56,0r0,55r-56,0","w":97},"k":{"d":"22,0r0,-404r56,0r0,192v15,-23,21,-61,33,-89r50,0r-40,98r50,203r-53,0r-29,-126v-21,22,-7,84,-11,126r-56,0","w":172},"l":{"d":"22,0r0,-404r56,0r0,404r-56,0","w":99},"m":{"d":"113,-238v-1,-22,-32,-12,-35,1r0,237r-56,0r0,-301r56,0r0,25v19,-27,71,-47,83,4v9,-7,31,-33,51,-33v28,0,42,31,42,58r0,247r-53,0r0,-238v-2,-22,-31,-11,-36,1r0,237r-52,0r0,-238","w":274},"n":{"d":"109,-238v-1,-22,-31,-12,-31,1r0,237r-56,0r0,-301r56,0r0,25v11,-11,25,-28,45,-29v28,-1,41,30,41,58r0,247r-55,0r0,-238","w":185},"o":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171"},"p":{"d":"164,-55v1,36,-26,75,-62,53v-11,-6,-17,-10,-24,-18r0,123r-56,0r0,-404r56,0r0,20v16,-16,30,-24,44,-24v28,-1,42,31,42,58r0,192xm94,-253v-9,0,-16,8,-16,18r0,169v0,7,8,19,16,18v9,0,16,-8,15,-18r0,-169v1,-10,-6,-18,-15,-18","w":184},"q":{"d":"63,4v-29,1,-43,-31,-43,-59r0,-192v-2,-35,27,-73,62,-52v11,6,17,11,25,18r0,-20r55,0r0,404r-55,0r0,-123v-16,16,-30,24,-44,24xm90,-253v-8,0,-15,9,-15,18r0,169v0,9,7,18,15,18v8,0,16,-11,17,-18r0,-169v0,-9,-8,-18,-17,-18","w":184},"r":{"d":"133,-244v-28,-11,-55,8,-55,35r0,209r-56,0r0,-301r56,0r0,34v4,-19,25,-41,55,-38r0,61","w":135},"s":{"d":"158,-78v14,84,-114,114,-140,37v-6,-16,-9,-27,-8,-47r51,0v0,30,10,46,27,46v13,0,19,-12,19,-36v0,-48,-91,-79,-88,-146v-14,-86,122,-114,137,-28v2,8,2,17,2,28r-52,0v0,-23,-6,-35,-18,-35v-27,0,-15,58,1,71v33,26,74,77,69,110","w":169},"t":{"d":"127,1v-66,17,-93,-27,-93,-98r0,-154r-29,0r0,-50r29,0r0,-74r55,0r0,74r38,0r0,50r-38,0r0,150v1,46,7,54,38,47r0,55","w":134},"u":{"d":"81,-2v-35,22,-60,-18,-60,-53r0,-246r56,0r0,238v1,24,28,12,31,-1r0,-237r55,0r0,301r-55,0r0,-25v-9,8,-16,16,-27,23","w":185},"v":{"d":"4,-301r54,0r21,194v9,0,3,-13,6,-19r18,-175r54,0r-49,301r-55,0","w":161},"w":{"d":"5,-301r51,0r20,175v7,-1,3,-13,6,-18r23,-157r33,0r26,175v7,-1,3,-13,5,-18r18,-157r51,0r-45,301r-46,0v-10,-52,-12,-112,-26,-161r-25,161r-46,0","w":243},"x":{"d":"4,0r52,-155r-47,-146r52,0v9,25,11,57,23,79v5,-29,14,-52,21,-79r52,0r-47,146r52,155r-54,0v-8,-28,-18,-54,-24,-84v-9,22,-17,57,-26,84r-54,0","w":165},"y":{"d":"9,57v31,8,53,-21,49,-48r-51,-310r54,0r23,200v13,-56,16,-136,26,-200r54,0r-53,324v-8,48,-40,96,-102,84r0,-50","w":170},"z":{"d":"3,0r0,-45r77,-205r-65,0r0,-51r124,0r0,45r-77,206r77,0r0,50r-136,0","w":142},"{":{"d":"52,23v-3,-55,20,-140,-36,-145r0,-43v79,-8,1,-183,62,-225v18,-12,47,-20,91,-19r0,46v-46,1,-63,8,-65,53v-3,67,17,142,-34,166v51,27,31,99,34,167v2,44,19,51,65,52r0,47v-86,0,-113,-15,-117,-99","w":184},"|":{"d":"22,138r0,-592r52,0r0,592r-52,0","w":95},"}":{"d":"168,-122v-78,10,0,182,-61,225v-18,12,-48,20,-92,19r0,-47v46,-1,65,-7,65,-52v0,-68,-17,-140,34,-167v-52,-25,-31,-99,-34,-166v-2,-45,-18,-51,-65,-53r0,-46v87,1,114,15,118,99v3,55,-21,140,35,145r0,43","w":184},"~":{"d":"241,-349v-47,6,-106,-77,-151,-35v-13,12,-19,20,-23,36r-37,-15v16,-37,39,-80,91,-83v60,-4,98,76,149,35v14,-11,17,-22,23,-37r36,16v-15,37,-38,77,-88,83","w":343},"\u00a0":{"w":84},"\u00a1":{"d":"20,103r15,-295r34,0r15,295r-64,0xm23,-240r0,-61r58,0r0,61r-58,0","w":103},"\u00a2":{"d":"158,-163v1,60,-1,109,-51,115r0,81r-33,0r0,-81v-76,-6,-56,-136,-56,-220v0,-53,19,-82,56,-88r0,-65r33,0r0,66v47,6,52,50,51,108r-51,0v-1,-24,6,-62,-19,-60v-13,0,-20,8,-20,24r0,162v0,16,7,24,20,24v27,1,17,-41,19,-66r51,0","w":170},"\u00a3":{"d":"144,4v-28,1,-83,-55,-100,-6r-4,6r-39,-21v6,-22,31,-52,57,-57v13,-40,14,-60,1,-100r-50,0r0,-37r39,0v-11,-42,-24,-83,-22,-98v-14,-91,106,-134,151,-66v13,20,17,43,17,74r-57,0v0,-27,-6,-53,-31,-53v-18,1,-24,25,-24,45v0,20,10,59,20,98r57,0r0,37r-47,0v11,43,9,68,-9,105v10,4,21,17,36,16v13,-1,21,-18,22,-51r51,6v-3,53,-22,99,-68,102","w":219},"\u00a5":{"d":"7,-404r58,0r32,133v13,-42,21,-89,32,-133r58,0r-53,202r40,0r0,37r-48,0r0,37r48,0r0,37r-48,0r0,91r-59,0r0,-91r-47,0r0,-37r47,0r0,-37r-47,0r0,-37r39,0","w":193},"\u00a8":{"d":"73,-350r0,-54r51,0r0,54r-51,0xm151,-350r0,-54r51,0r0,54r-51,0","w":275},"\u00a9":{"d":"221,4v-112,0,-207,-95,-207,-206v0,-110,96,-207,207,-207v111,0,206,97,206,207v0,111,-95,206,-206,206xm220,-377v-93,0,-174,82,-174,175v0,93,81,175,174,175v92,0,176,-81,176,-175v0,-94,-83,-175,-176,-175xm271,-164v3,48,-6,86,-51,86v-82,0,-51,-125,-51,-201v0,-27,19,-48,51,-47v45,0,54,38,51,86r-37,0v-2,-20,7,-50,-14,-50v-10,-1,-13,9,-13,17r0,142v-3,22,27,21,27,5r0,-38r37,0","w":441},"\u00aa":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28","w":182},"\u00ad":{"d":"20,-122r0,-52r80,0r0,52r-80,0","w":119},"\u00ae":{"d":"221,4v-112,0,-207,-95,-207,-206v0,-110,96,-207,207,-207v111,0,206,97,206,207v0,111,-95,206,-206,206xm220,-377v-93,0,-174,82,-174,175v0,93,81,175,174,175v92,0,176,-81,176,-175v0,-94,-83,-175,-176,-175xm220,-320v67,-11,82,98,39,129r29,107r-41,0r-25,-98r-15,0r0,98r-39,0r0,-236r52,0xm245,-250v0,-27,-10,-38,-38,-35r0,69v27,2,38,-8,38,-34","w":441},"\u00af":{"d":"84,-353r0,-44r107,0r0,44r-107,0","w":275},"\u00b2":{"d":"15,0v1,-27,-5,-62,10,-75v34,-60,90,-139,90,-229v0,-33,-6,-50,-19,-50v-19,-4,-21,48,-20,78r-60,0v-5,-78,17,-133,80,-133v53,0,79,34,79,101v0,60,-31,143,-93,249r94,0r0,59r-161,0","w":196},"\u00b3":{"d":"88,-356v-23,5,-15,29,-18,68r-58,0v-1,-67,12,-121,76,-121v51,0,77,38,77,87v0,52,-10,88,-29,107v49,38,55,219,-43,219v-66,0,-79,-55,-79,-121r59,0v2,40,-4,62,20,69v32,-8,30,-128,-10,-132v-7,-1,-13,-4,-22,-3r0,-49v50,5,49,-43,45,-91v-1,-13,-2,-36,-18,-33","w":184},"\u00b4":{"d":"110,-350r29,-50r57,0r-43,50r-43,0","w":275},"\u00b7":{"d":"0,-174r0,-62r58,0r0,62r-58,0","w":57},"\u00b8":{"d":"114,30r47,0v2,31,-3,53,-12,73r-28,0r10,-35r-17,0r0,-38","w":275},"\u00b9":{"d":"7,-317r0,-38v30,-6,53,-26,63,-49r36,0r0,404r-60,0r0,-317r-39,0","w":127},"\u00ba":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171"},"\u00bf":{"d":"82,106v-72,0,-92,-81,-50,-136v27,-36,38,-94,34,-162r51,0v3,78,-6,144,-37,190v-13,19,-19,26,-12,47v19,26,48,-10,51,-30r48,22v-14,34,-38,69,-85,69xm62,-240r0,-61r58,0r0,61r-58,0","w":173},"\u00c0":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm38,-490r58,0r28,50r-43,0xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10","w":205},"\u00c1":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm79,-440r28,-50r58,0r-43,50r-43,0xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10","w":205},"\u00c2":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm36,-440r38,-50r59,0r38,50r-51,0r-17,-19r-17,19r-50,0xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10","w":205},"\u00c3":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm156,-447v-29,27,-76,-16,-107,9r0,-41v29,-29,77,16,107,-9r0,41xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10","w":205},"\u00c4":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm38,-440r0,-54r52,0r0,54r-52,0xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10xm116,-440r0,-54r51,0r0,54r-51,0","w":205},"\u00c5":{"d":"5,0r62,-404r72,0r61,404r-58,0r-11,-82r-57,0r-11,82r-58,0xm104,-435v-22,0,-42,-16,-42,-38v0,-23,20,-39,42,-39v21,0,40,17,40,39v0,22,-19,38,-40,38xm82,-145r41,0r-19,-138v-6,-1,-3,7,-4,10xm124,-473v-1,-23,-41,-25,-41,0v0,24,40,24,41,0","w":205},"\u00c6":{"d":"4,0r113,-404r167,0r0,61r-76,0r0,106r55,0r0,65r-55,0r0,111r76,0r0,61r-135,0r0,-82r-61,0r-25,82r-59,0xm106,-145r43,0r0,-138r-3,0","w":295},"\u00c7":{"d":"97,4v-53,0,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v73,0,84,66,79,143r-55,0v-3,-33,12,-85,-22,-85v-14,0,-21,14,-21,30r0,246v1,8,10,23,21,22v33,-2,19,-52,22,-86r55,0v4,78,-5,143,-79,143xm72,30r0,38r17,0r-11,35r28,0v8,-20,15,-42,12,-73r-46,0","w":190},"\u00c8":{"d":"22,0r0,-404r136,0r0,61r-77,0r0,106r55,0r0,65r-55,0r0,111r77,0r0,61r-136,0xm30,-490r58,0r28,50r-43,0","w":168},"\u00c9":{"d":"22,0r0,-404r136,0r0,61r-77,0r0,106r55,0r0,65r-55,0r0,111r77,0r0,61r-136,0xm63,-440r29,-50r58,0r-44,50r-43,0","w":168},"\u00ca":{"d":"22,0r0,-404r136,0r0,61r-77,0r0,106r55,0r0,65r-55,0r0,111r77,0r0,61r-136,0xm23,-440r37,-50r59,0r38,50r-50,0r-17,-19r-17,19r-50,0","w":168},"\u00cb":{"d":"22,0r0,-404r136,0r0,61r-77,0r0,106r55,0r0,65r-55,0r0,111r77,0r0,61r-136,0xm25,-440r0,-54r52,0r0,54r-52,0xm103,-440r0,-54r51,0r0,54r-51,0","w":168},"\u00cc":{"d":"-2,-490r58,0r29,50r-43,0xm26,0r0,-404r60,0r0,404r-60,0","w":107},"\u00cd":{"d":"22,0r0,-404r59,0r0,404r-59,0xm23,-440r29,-50r58,0r-44,50r-43,0","w":107},"\u00ce":{"d":"-18,-440r38,-50r59,0r38,50r-50,0r-18,-19r-16,19r-51,0xm20,0r0,-404r59,0r0,404r-59,0","w":99},"\u00cf":{"d":"-14,-440r0,-54r51,0r0,54r-51,0xm20,0r0,-404r60,0r0,404r-60,0xm63,-440r0,-54r51,0r0,54r-51,0","w":99},"\u00d0":{"d":"5,-176r0,-61r17,0r0,-167v71,-2,140,-2,153,56v18,77,18,214,0,292v-13,56,-79,59,-153,56r0,-176r-17,0xm81,-59v63,6,44,-71,44,-143v0,-67,-1,-108,-6,-122v-6,-17,-18,-21,-38,-21r0,108r23,0r0,61r-23,0r0,117","w":204},"\u00d1":{"d":"22,0r0,-404r53,0r63,229r3,0r0,-229r54,0r0,404r-53,0r-62,-229v-7,0,-1,13,-3,18r0,211r-55,0xm162,-447v-29,28,-76,-17,-106,9r0,-41v28,-29,76,16,106,-9r0,41","w":216},"\u00d2":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm32,-490r58,0r29,50r-43,0xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":194},"\u00d3":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm77,-440r28,-50r58,0r-44,50r-42,0xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":194},"\u00d4":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm30,-440r38,-50r59,0r38,50r-51,0r-17,-19r-16,19r-51,0xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":194},"\u00d5":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm151,-447v-29,27,-77,-16,-107,9r0,-41v28,-29,77,16,107,-9r0,41xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22","w":194},"\u00d6":{"d":"97,4v-53,-1,-79,-37,-79,-87r1,-247v4,-44,30,-79,78,-79v53,0,79,37,79,88r0,247v-6,42,-28,79,-79,78xm33,-440r0,-54r51,0r0,54r-51,0xm97,-351v-13,2,-19,14,-19,30r0,246v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-246v0,-7,-8,-24,-20,-22xm111,-440r0,-54r51,0r0,54r-51,0","w":194},"\u00d8":{"d":"176,-83v5,66,-63,108,-121,76r-5,12r-34,0r12,-42v-22,-79,-6,-198,-9,-293v-1,-59,66,-100,121,-67r4,-13r32,0r-12,40v7,13,13,30,12,49r0,238xm97,-53v14,0,20,-14,20,-30r0,-131v-12,47,-30,88,-39,139v1,8,9,23,19,22xm117,-324v2,-36,-38,-33,-39,-5r0,134","w":194},"\u00d9":{"d":"101,-53v-14,0,-20,-14,-20,-30r0,-321r-60,0r1,330v6,42,28,79,79,78v53,-1,79,-38,79,-87r0,-321r-59,0r-1,329v-1,8,-9,23,-19,22xm39,-490r58,0r28,50r-43,0","w":201},"\u00da":{"d":"101,-53v-14,0,-20,-14,-20,-30r0,-321r-60,0r1,330v6,42,28,79,79,78v53,-1,79,-38,79,-87r0,-321r-59,0r-1,329v-1,8,-9,23,-19,22xm82,-440r29,-50r58,0r-44,50r-43,0","w":201},"\u00db":{"d":"101,-53v-14,0,-20,-14,-20,-30r0,-321r-60,0r1,330v6,42,28,79,79,78v53,-1,79,-38,79,-87r0,-321r-59,0r-1,329v-1,8,-9,23,-19,22xm34,-440r37,-50r59,0r38,50r-50,0r-17,-19r-17,19r-50,0","w":201},"\u00dc":{"d":"101,4v-54,0,-80,-38,-80,-87r0,-321r60,0r0,329v1,8,9,23,20,22v14,0,19,-16,20,-30r0,-321r59,0r-1,330v-5,43,-28,79,-78,78xm36,-440r0,-54r52,0r0,54r-52,0xm114,-440r0,-54r51,0r0,54r-51,0","w":201},"\u00dd":{"d":"4,-404r61,232r0,172r59,0r0,-172r61,-232r-59,0r-32,133v-13,-42,-20,-89,-31,-133r-59,0xm68,-440r29,-50r57,0r-43,50r-43,0","w":189},"\u00de":{"d":"186,-218v0,78,-37,119,-105,121r0,97r-59,0r0,-404r59,0r0,65v68,1,105,44,105,121xm81,-157v40,-1,45,-16,45,-59v0,-43,-5,-62,-45,-63r0,122","w":194},"\u00df":{"d":"116,-332v0,-15,-7,-28,-23,-27v-13,0,-20,9,-20,27r0,332r-55,0r0,-332v0,-44,28,-77,75,-77v67,0,97,87,49,124v27,16,41,59,41,131v0,87,-6,155,-90,154r0,-52v40,-5,34,-52,34,-102v0,-46,-1,-80,-15,-102v-5,-5,-11,-7,-19,-7r0,-38v13,0,24,-16,23,-31","w":196},"\u00e0":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm27,-400r58,0r29,50r-43,0xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28","w":182},"\u00e1":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28xm71,-350r29,-50r57,0r-43,50r-43,0","w":182},"\u00e2":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm24,-350r38,-50r59,0r38,50r-51,0r-17,-20r-16,20r-51,0xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28","w":182},"\u00e3":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm145,-359v-29,27,-77,-16,-107,9r0,-41v30,-28,79,16,107,-9r0,41xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28","w":182},"\u00e4":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm27,-350r0,-54r52,0r0,54r-52,0xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28xm105,-350r0,-54r51,0r0,54r-51,0","w":182},"\u00e5":{"d":"102,-24v-29,51,-89,25,-89,-46v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-4,-52,28,-93,75,-93v36,-1,68,31,68,68r0,185v0,20,0,37,3,52r-54,0v-3,-4,-5,-11,-5,-24r-4,0xm92,-343v-22,0,-42,-17,-42,-39v0,-21,21,-38,42,-38v21,0,41,16,41,38v0,22,-19,39,-41,39xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28xm112,-382v0,-24,-40,-24,-41,0v0,9,10,20,21,19v10,1,21,-9,20,-19","w":182},"\u00e6":{"d":"117,-31v-37,56,-104,42,-104,-39v0,-74,50,-97,93,-126v0,-22,4,-62,-15,-61v-19,1,-16,25,-16,45r-56,0v-9,-69,61,-118,116,-79v49,-35,115,0,115,63r0,88r-92,0v5,33,-14,87,20,95v26,0,19,-36,20,-63r52,0v4,62,-12,111,-72,112v-28,0,-49,-12,-61,-35xm83,-50v38,0,18,-60,23,-95v-26,11,-38,33,-38,67v0,19,5,28,15,28xm178,-257v-27,3,-19,43,-20,73r40,0v-1,-31,7,-69,-20,-73","w":265},"\u00e7":{"d":"160,-111v3,69,-6,115,-71,115v-93,0,-71,-130,-71,-220v0,-59,24,-89,71,-89v63,0,74,43,71,110r-56,0v-3,-23,9,-60,-15,-61v-10,0,-16,9,-16,25r0,162v0,16,6,24,16,24v26,0,11,-43,15,-66r56,0xm64,30r0,38r17,0r-11,35r28,0v8,-20,15,-42,12,-73r-46,0","w":173},"\u00e8":{"d":"89,4v-102,0,-64,-140,-71,-239v6,-37,26,-70,72,-70v80,0,73,85,71,165r-92,0v6,33,-15,88,21,95v25,-1,19,-37,20,-63r51,0v4,64,-12,112,-72,112xm27,-400r58,0r29,50r-43,0xm90,-257v-27,3,-20,43,-21,73r41,0v-2,-30,6,-69,-20,-73"},"\u00e9":{"d":"89,4v-102,0,-64,-140,-71,-239v6,-37,26,-70,72,-70v80,0,73,85,71,165r-92,0v6,33,-15,88,21,95v25,-1,19,-37,20,-63r51,0v4,64,-12,112,-72,112xm90,-257v-27,3,-20,43,-21,73r41,0v-2,-30,6,-69,-20,-73xm71,-350r29,-50r57,0r-43,50r-43,0"},"\u00ea":{"d":"89,4v-102,0,-64,-140,-71,-239v6,-37,26,-70,72,-70v80,0,73,85,71,165r-92,0v6,33,-15,88,21,95v25,-1,19,-37,20,-63r51,0v4,64,-12,112,-72,112xm21,-350r38,-50r59,0r38,50r-50,0r-17,-20r-17,20r-51,0xm90,-257v-27,3,-20,43,-21,73r41,0v-2,-30,6,-69,-20,-73"},"\u00eb":{"d":"89,4v-102,0,-64,-140,-71,-239v6,-37,26,-70,72,-70v80,0,73,85,71,165r-92,0v6,33,-15,88,21,95v25,-1,19,-37,20,-63r51,0v4,64,-12,112,-72,112xm24,-350r0,-54r51,0r0,54r-51,0xm90,-257v-27,3,-20,43,-21,73r41,0v-2,-30,6,-69,-20,-73xm102,-350r0,-54r51,0r0,54r-51,0"},"\u00ec":{"d":"-9,-400r58,0r29,50r-43,0xm22,0r56,0r0,-301r-56,0r0,301","w":99},"\u00ed":{"d":"22,0r56,0r0,-301r-56,0r0,301xm22,-350r28,-50r58,0r-43,50r-43,0","w":99},"\u00ee":{"d":"-18,-350r38,-50r59,0r38,50r-50,0r-18,-20r-16,20r-51,0xm22,0r56,0r0,-301r-56,0r0,301","w":99},"\u00ef":{"d":"-14,-350r0,-54r51,0r0,54r-51,0xm22,0r0,-301r56,0r0,301r-56,0xm63,-350r0,-54r51,0r0,54r-51,0","w":99},"\u00f0":{"d":"91,4v-101,-2,-66,-139,-71,-234v-4,-75,45,-95,88,-54v-2,-20,-6,-38,-13,-55r-22,19r-15,-16r27,-24r-12,-18r29,-27r14,17r25,-22r15,17r-27,24v50,73,33,191,33,304v0,38,-26,70,-71,69xm107,-246v-8,-21,-35,-8,-34,12v4,58,-5,126,3,179v13,21,37,4,35,-20v-4,-56,4,-121,-4,-171","w":180},"\u00f1":{"d":"109,-238v-1,-22,-31,-12,-31,1r0,237r-56,0r0,-301r56,0r0,25v11,-11,25,-28,45,-29v28,-1,41,30,41,58r0,247r-55,0r0,-238xm146,-359v-30,28,-73,-17,-107,9r0,-41v30,-28,79,16,107,-9r0,41","w":185},"\u00f2":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm26,-400r58,0r29,50r-43,0xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171"},"\u00f3":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171xm70,-350r29,-50r57,0r-43,50r-43,0"},"\u00f4":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm21,-350r38,-50r59,0r38,50r-51,0r-17,-20r-17,20r-50,0xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171"},"\u00f5":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm142,-359v-29,28,-77,-17,-107,9r0,-41v30,-28,79,16,107,-9r0,41xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171"},"\u00f6":{"d":"88,4v-102,-2,-71,-140,-71,-239v0,-38,26,-71,71,-70v103,1,71,143,71,240v0,38,-27,70,-71,69xm24,-350r0,-54r51,0r0,54r-51,0xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171xm102,-350r0,-54r51,0r0,54r-51,0"},"\u00f8":{"d":"42,-12v-42,-42,-25,-143,-25,-223v0,-48,45,-84,100,-65r5,-22r20,0r-8,33v43,40,25,146,25,224v0,47,-45,82,-99,65r-5,21r-21,0xm103,-248v-13,-19,-34,-3,-34,22r0,109xm74,-53v12,18,38,2,33,-22r0,-108"},"\u00f9":{"d":"81,-2v-35,22,-60,-18,-60,-53r0,-246r56,0r0,238v1,24,28,12,31,-1r0,-237r55,0r0,301r-55,0r0,-25v-9,8,-16,16,-27,23xm30,-400r58,0r29,50r-43,0","w":185},"\u00fa":{"d":"81,-2v-35,22,-60,-18,-60,-53r0,-246r56,0r0,238v1,24,28,12,31,-1r0,-237r55,0r0,301r-55,0r0,-25v-9,8,-16,16,-27,23xm74,-350r28,-50r58,0r-43,50r-43,0","w":185},"\u00fb":{"d":"81,-2v-35,22,-60,-18,-60,-53r0,-246r56,0r0,238v1,24,28,12,31,-1r0,-237r55,0r0,301r-55,0r0,-25v-9,8,-16,16,-27,23xm25,-350r38,-50r59,0r38,50r-50,0r-18,-20r-16,20r-51,0","w":185},"\u00fc":{"d":"81,-2v-35,22,-60,-18,-60,-53r0,-246r56,0r0,238v1,24,28,12,31,-1r0,-237r55,0r0,301r-55,0r0,-25v-9,8,-16,16,-27,23xm28,-350r0,-54r52,0r0,54r-52,0xm106,-350r0,-54r51,0r0,54r-51,0","w":185},"\u00fd":{"d":"58,9v-1,27,-17,55,-49,48r0,50v65,12,94,-34,102,-84r53,-324r-54,0r-24,200v-11,-57,-16,-135,-25,-200r-54,0xm62,-350r29,-50r58,0r-44,50r-43,0","w":170},"\u00fe":{"d":"164,-55v1,36,-26,75,-62,53v-11,-6,-17,-10,-24,-18r0,123r-56,0r0,-507r56,0r0,123v16,-16,30,-24,44,-24v28,-1,42,31,42,58r0,192xm94,-253v-9,0,-16,8,-16,18r0,169v0,7,8,19,16,18v9,0,16,-8,15,-18r0,-169v1,-10,-6,-18,-15,-18","w":184},"\u00ff":{"d":"9,57v31,8,53,-21,49,-48r-51,-310r54,0r23,200v13,-56,16,-136,26,-200r54,0r-53,324v-8,48,-40,96,-102,84r0,-50xm21,-350r0,-54r51,0r0,54r-51,0xm99,-350r0,-54r51,0r0,54r-51,0","w":170},"\u0152":{"d":"97,0v-53,0,-79,-35,-79,-83r1,-247v4,-42,30,-74,78,-74r156,0r0,61r-77,0r0,106r55,0r0,65r-55,0r0,111r77,0r0,61r-156,0xm117,-325v1,-34,-39,-31,-39,-4r0,254v1,8,9,23,19,22v14,0,20,-14,20,-30r0,-242","w":263},"\u0153":{"d":"134,-11v-49,37,-122,1,-117,-64v7,-95,-29,-230,71,-230v19,0,34,5,46,16v46,-38,117,-4,117,61r0,88r-91,0v4,35,-13,89,20,95v25,-1,19,-37,20,-63r51,0v4,64,-12,111,-72,112v-19,0,-34,-5,-45,-15xm104,-246v-8,-21,-36,-7,-35,12v3,58,-4,126,4,179v12,21,36,5,34,-20v-5,-56,5,-121,-3,-171xm180,-257v-28,0,-18,44,-20,73r40,0v-2,-30,7,-73,-20,-73","w":267},"\u0178":{"d":"4,-404r59,0r32,133v13,-42,20,-89,31,-133r59,0r-61,232r0,172r-59,0r0,-172xm30,-440r0,-54r51,0r0,54r-51,0xm108,-440r0,-54r51,0r0,54r-51,0","w":189},"\u02c6":{"d":"70,-350r38,-50r59,0r38,50r-51,0r-17,-20r-16,20r-51,0","w":274},"\u02dc":{"d":"191,-359v-29,28,-77,-17,-107,9r0,-41v30,-28,79,16,107,-9r0,41","w":275},"\u2000":{"w":255},"\u2001":{"w":511},"\u2002":{"w":255},"\u2003":{"w":511},"\u2004":{"w":170},"\u2005":{"w":127},"\u2006":{"w":85},"\u2007":{"w":85},"\u2008":{"w":63},"\u2009":{"w":102},"\u200a":{"w":27},"\u2010":{"d":"20,-122r0,-52r80,0r0,52r-80,0","w":119},"\u2011":{"d":"20,-122r0,-52r80,0r0,52r-80,0","w":119},"\u2012":{"d":"20,-122r0,-52r80,0r0,52r-80,0","w":119},"\u2013":{"d":"20,-174r0,-53r177,0r0,53r-177,0","w":216},"\u2014":{"d":"20,-174r0,-53r221,0r0,53r-221,0","w":261},"\u2018":{"d":"13,-272r0,-61r31,-71r27,0r-19,71r19,0r0,61r-58,0","w":82},"\u2019":{"d":"12,-272r19,-71r-19,0r0,-61r58,0r0,61r-31,71r-27,0","w":82},"\u201a":{"d":"12,0r0,-61r58,0r0,61r-31,71r-27,0r19,-71r-19,0","w":82},"\u201c":{"d":"14,-272r0,-61r31,-71r27,0r-19,71r19,0r0,61r-58,0xm96,-272r0,-61r30,-71r27,0r-19,71r19,0r0,61r-57,0","w":167},"\u201d":{"d":"14,-272r20,-71r-20,0r0,-61r58,0r0,61r-30,71r-28,0xm96,-272r19,-71r-19,0r0,-61r57,0r0,61r-30,71r-27,0","w":167},"\u201e":{"d":"14,0r0,-61r58,0r0,61r-30,71r-28,0r20,-71r-20,0xm96,0r0,-61r57,0r0,61r-30,71r-27,0r19,-71r-19,0","w":167},"\u2022":{"d":"90,-152v-37,0,-68,-30,-68,-67v0,-37,31,-67,68,-67v36,0,66,31,66,67v0,37,-30,67,-66,67","w":178},"\u2026":{"d":"14,0r0,-61r58,0r0,61r-58,0xm101,0r0,-61r57,0r0,61r-57,0xm187,0r0,-61r58,0r0,61r-58,0","w":258},"\u202f":{"w":102},"\u2039":{"d":"20,-174r0,-43r245,-128r0,54r-188,95r188,96r0,53","w":284},"\u203a":{"d":"20,-47r0,-53r187,-96r-187,-95r0,-54r245,128r0,43","w":284},"\u205f":{"w":127},"\u20ac":{"d":"122,4v-77,0,-83,-71,-79,-151r-29,0r0,-37r29,0r0,-36r-29,0r0,-37r29,0v-3,-79,3,-152,79,-152v60,0,82,46,79,110r-55,0v0,-25,2,-52,-23,-52v-33,0,-18,59,-21,94r63,0r0,37r-63,0r0,36r63,0r0,37r-63,0v4,35,-11,87,21,94v24,0,24,-27,23,-53r55,0v3,64,-18,110,-79,110","w":218},"\u2122":{"d":"20,-376r0,-28r86,0r0,28r-28,0r0,156r-30,0r0,-156r-28,0xm118,-220r0,-184r37,0v8,27,9,61,20,85r18,-85r37,0r0,184r-28,0r0,-121r-21,121r-14,0r-21,-121r0,121r-28,0","w":251},"\ue000":{"d":"0,-301r301,0r0,301r-301,0r0,-301","w":300},"\ufb01":{"d":"112,-358v-25,0,-23,31,-23,57r96,0r0,301r-55,0r0,-251r-41,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-2,-60,8,-109,68,-107v13,0,29,2,39,4r0,49v-7,-2,-17,-3,-29,-3","w":207},"\ufb02":{"d":"130,-357v-38,-9,-43,19,-41,56r28,0r0,50r-28,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-2,-60,8,-109,68,-107v28,1,53,6,83,4r0,404r-55,0r0,-357","w":207},"\ufb03":{"d":"277,0r0,-301r56,0r0,301r-56,0xm277,-349r0,-55r56,0r0,55r-56,0xm251,-355v-31,-11,-34,14,-34,54r28,0r0,50r-28,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-7,-68,21,-120,89,-102r0,48xm123,-355v-31,-11,-34,14,-34,54r28,0r0,50r-28,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-7,-68,21,-120,89,-102r0,48","w":354},"\ufb04":{"d":"277,0r0,-404r56,0r0,404r-56,0xm251,-355v-31,-11,-34,14,-34,54r28,0r0,50r-28,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-7,-68,21,-120,89,-102r0,48xm123,-355v-31,-11,-34,14,-34,54r28,0r0,50r-28,0r0,251r-55,0r0,-251r-29,0r0,-50r29,0v-7,-68,21,-120,89,-102r0,48","w":354}}});
;
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright (c) Walter Velez, 2000. All rights reserved.
 */
Cufon.registerFont({"w":162,"face":{"font-family":"Minotaur","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"0 0 0 0 0 0 0 0 0 0","ascent":"288","descent":"-72","bbox":"4.38834 -255.955 306 19","underline-thickness":"18","underline-position":"-27","unicode-range":"U+0020-U+E001"},"glyphs":{" ":{"w":144},"\"":{"d":"74,-252v-1,31,6,71,-11,87r-33,0r10,-19r-32,0r0,-68r66,0xm152,-252v-1,31,5,69,-9,87r-35,0r8,-19r-32,0r0,-68r68,0","w":158},"$":{"d":"153,-88v-2,35,-24,60,-57,66r0,22r-32,0r0,-20r-45,0r-10,-71r54,0v-50,-7,-74,-90,-28,-123v9,-7,18,-12,29,-15r0,-23r32,0r0,21r49,0r9,71r-55,0v30,9,57,32,54,72"},"&":{"d":"126,-252r9,72r-54,0r35,49r0,-30r72,0r0,161v-81,-1,-189,20,-179,-80v2,-20,12,-36,26,-45v-27,-16,-38,-77,-9,-102v17,-24,55,-27,100,-25xm116,-70r0,-55r-36,54","w":198},"'":{"d":"75,-251v-1,31,5,69,-9,87r-35,0r9,-19r-32,0r0,-68r67,0","w":82},"(":{"d":"77,-252v-42,58,-45,196,2,252r-37,0v-45,-57,-45,-192,-1,-252r36,0","w":83},")":{"d":"9,0v42,-58,45,-196,-2,-252r37,0v45,57,45,192,1,252r-36,0","w":86},",":{"d":"76,-68v-1,31,6,69,-8,87r-35,0r9,-19r-32,0r0,-68r66,0","w":86},"-":{"d":"119,-161r0,68r-109,0r0,-68r109,0","w":132},".":{"d":"76,0r-68,0r0,-68r68,0r0,68","w":85},"\/":{"d":"48,0r-42,0r74,-252r40,0","w":124},"0":{"d":"193,-82v5,70,-57,93,-129,80v-33,-6,-54,-33,-55,-71v-2,-94,-15,-194,111,-179v47,5,73,29,73,81r0,89xm121,-181r-40,0r0,112r40,0r0,-112","w":203},"1":{"d":"85,0r-72,0r0,-210r72,-42r0,252","w":96},"2":{"d":"91,-252v51,4,72,61,51,113r-27,68r38,0r-9,71r-134,0r71,-180r-71,0r10,-72r71,0","w":163},"3":{"d":"21,-252v82,-11,148,29,117,105v-4,9,-11,15,-18,21v27,19,36,76,8,101v-19,27,-60,26,-107,25r-8,-71r59,0r-38,-54r39,-55r-62,0","w":155},"4":{"d":"113,-140r55,0r0,140r-69,0r0,-69r-91,0r72,-183r77,0","w":182},"5":{"d":"145,-180r-52,0v19,44,76,95,36,153v-19,28,-62,27,-108,27r-10,-72r65,0r-65,-108r0,-72r125,0","w":154},"6":{"d":"19,-33v42,58,199,43,174,-54r-17,-54r-73,-1r35,-110r-74,0r-50,154v-9,21,-6,48,5,65xm125,-71r-44,0r21,-69","w":203},"7":{"d":"84,0r-76,0r63,-180r-63,0r10,-72r153,0","w":178},"8":{"d":"75,-252v72,0,128,8,124,77v-1,23,-13,37,-25,49v48,34,22,125,-39,125v-70,0,-127,-7,-126,-74v1,-23,12,-39,25,-50v-46,-33,-24,-127,41,-127xm131,-180r-50,0r24,55r-24,53r49,0r-25,-54","w":207},"9":{"d":"183,-219v-41,-60,-202,-43,-173,53r16,55r74,0r-36,111r75,0r50,-155v9,-21,5,-48,-6,-64xm78,-181r44,0r-22,69","w":200},":":{"d":"80,-91r-70,0r0,-70r70,0r0,70xm80,-70r0,70r-70,0r0,-70r70,0","w":90},";":{"d":"84,-91r-74,0r0,-71r74,0r0,71xm84,-71v-1,32,6,73,-11,90r-36,0r9,-19r-36,0r0,-71r74,0","w":93},"?":{"d":"18,-252v94,-23,157,59,98,125v-10,11,-27,14,-26,36r-72,0r0,-39r51,-51r-61,0xm91,-71r0,71r-73,0r0,-71r73,0","w":148},"A":{"d":"246,0r-79,0r-39,-82r-41,82r-79,0r120,-252","w":252},"B":{"d":"180,-126v28,18,37,79,7,103v-29,38,-115,18,-178,23r0,-252r154,5v47,14,59,93,17,121xm137,-181r-56,0r-1,109r54,0r-54,-54","w":215},"C":{"d":"121,-180v-58,13,-52,116,17,110v18,-2,32,-9,41,-21r56,43v-38,61,-157,60,-200,0v-22,-30,-32,-81,-18,-126v25,-78,169,-107,219,-30r-56,43v-12,-13,-33,-25,-59,-19","w":243},"D":{"d":"207,-79v40,-126,-69,-192,-198,-173r0,252v64,0,129,3,163,-31v14,-14,29,-28,35,-48xm79,-182v69,-14,90,98,23,110v-5,3,-19,2,-23,1r0,-111","w":221},"E":{"d":"178,-252r8,72r-52,-1r32,54r-32,56r52,0r-8,71r-172,0r77,-126r-77,-126r172,0","w":192},"F":{"d":"188,-181r-54,0r56,91r-77,0r0,90r-72,0r0,-162r20,0r-55,-90r173,0","w":195},"G":{"d":"256,-161v46,143,-162,219,-234,98v-72,-123,93,-253,202,-152r-50,49v-39,-40,-121,3,-92,66v15,33,76,41,96,9r-45,0r0,-70r123,0","w":264},"H":{"d":"221,-252r-71,0r0,92r-69,0r0,-92r-72,0r0,252r72,0r0,-91r70,0r0,91r70,0r0,-252","w":231},"I":{"d":"79,-252r-70,0r0,252r70,0r0,-252","w":87},"J":{"d":"14,0v65,6,113,-13,113,-68r0,-184r-72,0r0,181r-49,0","w":137},"K":{"d":"81,-252r-72,0r0,252r72,0r1,-123r51,123r75,0r-51,-127r51,-125r-75,0r-51,124","w":214},"L":{"d":"84,-252r0,180r71,0r-8,72r-136,0r0,-252r73,0","w":159},"M":{"d":"285,0r-72,0r-21,-73r-46,72r-44,-72r-21,73r-74,0r72,-250r67,108r68,-110","w":291},"N":{"d":"202,0r-124,-100r0,100r-70,0r0,-252r121,99r0,-99r73,0r0,252","w":210},"O":{"d":"23,-68v-73,-143,131,-253,220,-126v28,41,23,120,-10,149v-29,41,-107,61,-160,28v-21,-12,-38,-29,-50,-51xm82,-134v-13,62,86,83,105,25v21,-66,-76,-95,-101,-38","w":271},"P":{"d":"120,-252v76,-9,104,80,59,126r-13,19r-86,0r0,107r-71,0r0,-252r111,0xm131,-181r-51,0r0,72","w":207},"Q":{"d":"246,-68v58,-109,-60,-227,-179,-165v-54,29,-82,133,-32,185v26,42,109,64,162,31r16,17r52,-50xm110,-76v-58,-23,-28,-127,38,-104v25,7,43,25,42,57r-12,-12r-50,49r13,15v-11,2,-21,0,-31,-5","w":271},"R":{"d":"8,-252v85,3,220,-15,188,97v-5,19,-22,32,-32,48r47,107r-83,0r-48,-109r52,-72r-55,0r0,181r-69,0r0,-252","w":217},"S":{"d":"8,-180v0,-63,54,-77,123,-72r9,71r-57,0v19,38,58,60,58,112v0,61,-55,74,-123,69r-10,-71r61,0v-20,-40,-61,-55,-61,-109","w":148},"T":{"d":"179,-180r-49,0r0,180r-72,0r0,-180r-50,0r10,-72r152,0","w":187},"U":{"d":"139,-1v-69,9,-129,-7,-129,-68r0,-183r72,0r0,181r48,0r0,-181r72,0r0,189v-3,37,-29,58,-63,62","w":212},"V":{"d":"8,-252r79,0r39,82r40,-82r79,0r-119,252","w":252},"W":{"d":"239,-1v-98,0,-229,33,-229,-75r0,-176r71,0r0,181r41,0r0,-181r71,0r0,181r40,0r0,-181r73,0r-1,183v-3,39,-27,68,-66,68","w":316},"X":{"d":"116,-203r26,-49r82,0r-67,126r66,126r-82,0v-9,-15,-16,-33,-26,-47r-25,47r-82,0r66,-126r-66,-126r82,0","w":230},"Y":{"d":"118,-193r31,-59r70,0r-72,137r0,115r-72,0r0,-115r-69,-137r81,0","w":226},"Z":{"d":"168,-252r-61,181r61,0r-10,71r-150,0r61,-180r-61,-1r9,-71r151,0","w":176},"a":{"d":"185,0r-60,0r-29,-62r-30,62r-60,0r90,-189","w":190},"b":{"d":"136,-94v37,-27,18,-95,-38,-95r-90,0r0,189v64,-2,154,18,147,-61v-1,-14,-9,-26,-19,-33xm104,-136r-43,42r41,40r-41,0r1,-82r42,0"},"c":{"d":"61,-93v-1,39,55,52,75,25r42,32v-29,45,-118,45,-150,0v-47,-67,2,-172,96,-151v23,6,41,18,55,34r-42,33v-22,-31,-83,-10,-76,27","w":186},"d":{"d":"8,-189v90,-6,165,17,155,108v-7,66,-70,90,-155,81r0,-189xm60,-53v61,9,65,-78,14,-83v-6,1,-10,-2,-14,0r0,83","w":169},"e":{"d":"136,-189r6,54r-39,0r24,40r-24,42r39,0r-6,53r-129,0r58,-94r-58,-95r129,0","w":150},"f":{"d":"143,-136r-41,0r42,69r-58,0r0,67r-54,0r0,-121r16,0r-42,-68r130,0","w":150},"g":{"d":"8,-97v-2,-82,107,-119,164,-65r-38,38v-29,-31,-89,2,-69,49v11,26,58,31,72,7r-34,0r0,-52r93,0v15,67,-25,120,-90,120v-60,0,-96,-36,-98,-97","w":206},"h":{"d":"168,-189r0,189r-53,0r0,-68r-53,0r0,68r-53,0r0,-189r54,0r0,69r51,0r0,-69r54,0","w":177},"i":{"d":"60,-189r0,189r-52,0r0,-189r52,0","w":68},"j":{"d":"98,-189v-6,86,33,208,-85,189r-7,-53v12,-1,28,2,38,-1r0,-135r54,0","w":106},"k":{"d":"62,-189r0,93r39,-93r56,0r-39,94r39,95r-56,0r-39,-92r0,92r-54,0r0,-189r54,0","w":163},"l":{"d":"62,-189r0,135r54,0r-7,54r-101,0r0,-189r54,0","w":120},"m":{"d":"215,0r-53,0r-16,-55r-35,54r-33,-54r-15,55r-56,0r54,-188r50,82r51,-83","w":222},"n":{"d":"154,0r-92,-75r0,75r-53,0r0,-189r90,74r0,-74r55,0r0,189","w":163},"o":{"d":"55,-12v-99,-57,-24,-212,84,-170v51,20,78,98,37,148v-24,29,-80,45,-121,22xm97,-54v48,8,62,-68,15,-79v-52,-12,-67,63,-22,77v3,2,6,0,7,2","w":205},"p":{"d":"154,-134v-1,26,-14,34,-27,54r-65,0r0,80r-53,0r0,-189v66,1,148,-13,145,55xm100,-135r-38,0r0,54","w":161},"q":{"d":"186,-51v51,-92,-75,-186,-154,-108v-27,26,-35,93,-5,123v21,32,82,48,122,23r12,13r39,-37xm84,-57v-43,-17,-23,-93,29,-78v18,5,31,19,31,42r-9,-9r-38,38r10,11v-8,1,-16,-1,-23,-4","w":207},"r":{"d":"97,-189v49,-2,71,56,41,90r-13,19r35,80r-63,0r-36,-82r39,-54r-41,0r0,136r-51,0r0,-189r89,0","w":167},"s":{"d":"14,-108v-26,-51,19,-93,85,-81r6,53r-43,0v16,29,44,44,44,84v0,45,-41,57,-93,52r-7,-53r46,0","w":113},"t":{"d":"129,-189r7,54r-37,0r0,135r-54,0r0,-135r-38,0r7,-54r115,0","w":142},"u":{"d":"106,0v-52,6,-97,-4,-97,-51r0,-138r54,0r0,136r36,0r0,-136r54,0r0,141v-2,29,-21,45,-47,48"},"v":{"d":"7,-189r60,0r29,62r30,-62r59,0r-89,189","w":192},"w":{"d":"182,0v-73,0,-171,24,-171,-57r0,-132r53,0r0,136r31,0r0,-136r53,0r0,136r30,0r0,-136r55,0v-7,73,25,189,-51,189","w":244},"x":{"d":"90,-153r20,-36r61,0r-50,95r49,94r-61,0r-19,-35r-19,35r-62,0r50,-94r-50,-95r62,0","w":180},"y":{"d":"92,-145r23,-44r53,0r-54,103r0,86r-55,0r0,-86r-51,-103r61,0","w":176},"z":{"d":"127,-189r-46,136r46,0r-7,53r-113,0r46,-135r-46,0r7,-54r113,0","w":136},"\u201a":{"d":"75,-68v-1,31,5,69,-9,87r-35,0r9,-19r-32,0r0,-68r67,0","w":83},"\u201e":{"d":"75,-69v-1,32,6,72,-11,88r-33,0r9,-19r-32,0r0,-69r67,0xm153,-69v-1,31,5,70,-9,88r-35,0r8,-19r-32,0r0,-69r68,0"},"\u2018":{"d":"10,-165v1,-31,-5,-69,9,-87r34,0r-8,19r32,0r0,68r-67,0","w":85},"\u2019":{"d":"78,-251v-1,31,5,69,-9,87r-34,0r8,-19r-32,0r0,-68r67,0","w":87},"\u201c":{"d":"87,-163v1,-32,-6,-72,11,-88r33,0r-10,19r33,0r0,69r-67,0xm9,-163v1,-31,-5,-70,9,-88r35,0r-9,19r33,0r0,69r-68,0"},"\u201d":{"d":"76,-251v-1,31,6,71,-11,87r-33,0r9,-19r-32,0r0,-68r67,0xm154,-251v-1,31,5,69,-9,87r-35,0r8,-19r-32,0r0,-68r68,0","w":163},"\ue000":{"w":0},"\ue001":{"w":180},"\u00a0":{"w":144}}});
;
/**
 * jQuery.labelify - Display in-textbox hints
 * Stuart Langridge, http://www.kryogenix.org/
 * Released into the public domain
 * Date: 25th June 2008
 * @author Stuart Langridge
 * @version 1.3
 *
 *
 * Basic calling syntax: $("input").labelify();
 * Defaults to taking the in-field label from the field's title attribute
 *
 * You can also pass an options object with the following keys:
 *   text
 *     "title" to get the in-field label from the field's title attribute 
 *      (this is the default)
 *     "label" to get the in-field label from the inner text of the field's label
 *      (note that the label must be attached to the field with for="fieldid")
 *     a function which takes one parameter, the input field, and returns
 *      whatever text it likes
 *
 *   labelledClass
 *     a class that will be applied to the input field when it contains the
 *      label and removed when it contains user input. Defaults to blank.
 *  
 */
jQuery.fn.labelify = function(settings) {
  settings = jQuery.extend({
    text: "title",
    labelledClass: ""
  }, settings);
  var lookups = {
    title: function(input) {
      return $(input).attr("title");
    },
    label: function(input) {
      return $("label[for=" + input.id +"]").text();
    }
  };
  var lookup;
  var jQuery_labellified_elements = $(this);
  return $(this).each(function() {
    if (typeof settings.text === "string") {
      lookup = lookups[settings.text]; // what if not there?
    } else {
      lookup = settings.text; // what if not a fn?
    };
    // bail if lookup isn't a function or if it returns undefined
    if (typeof lookup !== "function") { return; }
    var lookupval = lookup(this);
    if (!lookupval) { return; }

    // need to strip newlines because the browser strips them
    // if you set textbox.value to a string containing them    
    $(this).data("label",lookup(this).replace(/\n/g,''));
    $(this).focus(function() {
      if (this.value === $(this).data("label")) {
        this.value = this.defaultValue;
        $(this).removeClass(settings.labelledClass);
      }
    }).blur(function(){
      if (this.value === this.defaultValue) {
        this.value = $(this).data("label");
        $(this).addClass(settings.labelledClass);
      }
    });
    
    var removeValuesOnExit = function() {
      jQuery_labellified_elements.each(function(){
        if (this.value === $(this).data("label")) {
          this.value = this.defaultValue;
          $(this).removeClass(settings.labelledClass);
        }
      })
    };
    
    $(this).parents("form").submit(removeValuesOnExit);
    $(window).unload(removeValuesOnExit);
    
    if (this.value !== this.defaultValue) {
      // user already started typing; don't overwrite their work!
      return;
    }
    // actually set the value
    this.value = $(this).data("label");
    $(this).addClass(settings.labelledClass);
    //.replace(':','')

  });
};
;
$(document).ready(function() {

  /**
   * Hover effect for nav drop-downs
   */
  $('#nav li.expanded').hover(function() {
    $('ul', this).css('visibility', 'visible').hide();
    $('ul', this).stop(true, true).fadeIn('fast');
  }, function(){
    $('ul', this).slideUp('fast');
  });

  /**
   * Make entire block clickable (front and products)
   * uses first (only) a href
   */
  $('#content-top .block:not(.fk-advertising), #content-bottom .block').click(function() {
  //$('#content-top .block, #content-bottom .block').click(function() {
    //...
    var href = $(this).find('.content a:first').attr('href');
    if(href) {
      window.location = href;
    }
  });

  $('.fk-advertising .views-row-1 img').attr('src', '/sites/default/files/FK-Buttons2.jpg');

  // same as above but for products page(s)
  $('.view-products .views-row').click(function() {
    //var href = $(this).find('.views-field-field-product-image-fid .field-content a').attr('href');
    var href = $(this).find('.views-field-path .field-content').text();
    if(href) {
      window.location = href;
    }
  });

  /**
   * Product page fadeIn effect
   */
  $('.node-type-product .field-field-product-image img').css({ opacity: 0 }).fadeTo(1500, 1);

  /**
   * Sliders
   */
  //$('#slider-images').cycle({timeout: 5000, fx: 'scrollHorz', speed: 500, prev: '.slider-prev', next: '.slider-next'});
  $('#slider-images').cycle({timeout: 5000, fx: 'scrollHorz', speed: 500, prev: '.slider-prev', next: '.slider-next', pause: 1});
  
  $('.slider-prev, .slider-next, .xlinks a, .view-products .item-list .pager li a ').hover(
    function() {
      $(this).stop(true, true).fadeTo(400, 0.6);
    },
    function () {
      $(this).stop(true, true).fadeTo(400, 1);
    }
  );

  // Slider Links - see template.php _xslider()
  $('#field_slider_images_values .widget-edit label').text('Path:');
  
  /**
   * Webform / Contact labels inside text (labelify)
   */
  $('#webform-client-form-69 input, #webform-client-form-69 textarea, #forward-form input, #forward-form textarea').labelify({
    text: 'label'
  });

  /**
   * New window links
   */
  $('a.new-window').click(function(){
    window.open($(this).attr('href'));
    return false;
  });

  /**
   * Rider Video
   */
  $('#video-0').addClass('active');

  // every 2nd remove right margin.
  $('.rider-video-title:nth-child(2n+2)').css('margin-right', 0);
  
  $('.rider-video-title').click(function() {
     var id = $(this).attr('id');
     $('.video-display').hide();
     $('.'+id).show();
     $('.rider-video-title.active').removeClass('active');
     $(this).addClass('active');

  });

  // Insert magical title textfield in video. Last minute hackery for a faux cck mutli-field.
  $('.node-type-rider #field_rider_videos_values textarea').each(function(){

    // create input fields
    var titleStrip = ''; 
    var title = $(this).text().match(/<h3>.*<\/h3>/);
    if (title !== null) {
      titleStrip = title[0].replace(/(<([^>]+)>)/ig, '');
    }
    // populate input fields from textarea's <h3>
    $(this).before('<label>Title:</label><input type="text" value="' + titleStrip + '" size="60" class="video-title-input" /><label>Embed Code:</label>');

    // hide <h3> in textarea until submit
    // $(this).val($(this).text().replace(/<h3>.*<\/h3>/, ''));
  });
  
  $('.node-type-rider #edit-submit').click(function() {
    $('.node-type-rider #field_rider_videos_values textarea').each(function(){
      
      var code = $(this).text().replace(/<h3>.*<\/h3>/, '');
      var inputText = $(this).parent().find('.video-title-input').val();
      
      if(inputText) {
        $(this).text('<h3>' + inputText + '</h3>' + code);
      }
      
    });
  });

  // move the <h3> text into the buttons
  $('.rider-video-title').each(function() {
    var id = $(this).attr('id');
    var title = $('.'+id+' h3').text();
    if (title) {
      $(this).text(title);
    }
    else {
      $(this).text(id);
    }
  });

  // Scroll page to the bottom
  $('li.scroll-to-bottom').click(function(){
    $('html, body').animate({scrollTop: $(document).height()}, 1000);
    $('#stockists').fadeTo('slow', 0.5).fadeTo('slow', 1).fadeTo('slow', 0.5).fadeTo('slow', 1).fadeTo('slow', 0.5).fadeTo('slow', 1);
    return false;
  });

  $('.view-products .views-row:nth-child(4n+4)').css('margin-right', 0);

});
;

