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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * Formats text for emphasized display in a placeholder inside a sentence.
   *
   * @param str
   *   The text to format (plain-text).
   * @return
   *   The formatted text (html).
   */
  placeholder: function(str) {
    return '<em>' + Drupal.checkPlain(str) + '</em>';
  }
};
;
// $Id: block_edit.js,v 1.1.2.14 2010/02/17 18:24:24 psynaptic Exp $

Drupal.behaviors.block_edit = function (context) {
  if (Drupal.settings.block_edit.hover_links) {
    $('.node-edit-link, .block-edit-link').hide();
    $('div.block, div.node').mouseover(function() {
      $(this).find('.node-edit-link, .block-edit-link').css('display', 'block');
    });

    $('div.block, div.node').mouseout(function() {
      $(this).find('.node-edit-link, .block-edit-link').css('display', 'none');
    });
  };
};
;

$(document).ready(function() {

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

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

      // Is the clicked URL internal?
      if (isInternal.test(this.href)) {
        // Is download tracking activated and the file extension configured for download tracking?
        if (ga.trackDownload && isDownload.test(this.href)) {
          // Download link clicked.
          var extension = isDownload.exec(this.href);
          _gaq.push(["_trackEvent", "Downloads", extension[1].toUpperCase(), this.href.replace(isInternal, '')]);
        }
        else if (isInternalSpecial.test(this.href)) {
          // Keep the internal URL for Google Analytics website overlay intact.
          _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]);
        }
      }
      else {
        if (ga.trackMailto && $(this).is("a[href^=mailto:],area[href^=mailto:]")) {
          // Mailto link clicked.
          _gaq.push(["_trackEvent", "Mails", "Click", this.href.substring(7)]);
        }
        else if (ga.trackOutgoing && this.href) {
          if (ga.trackOutboundAsPageview) {
            // Track all external links as page views after URL cleanup.
            // Currently required, if click should be tracked as goal.
            _gaq.push(["_trackPageview", '/outbound/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--')]);
          }
          else {
            // External link clicked.
            _gaq.push(["_trackEvent", "Outbound links", "Click", this.href]);
          }
        }
      }
    });
  });
});
;
/**
 * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com
 *
 * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/,  http://www.vinterwebb.se/
 *
 * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */


/* ******************* */
/* Constructor & Init  */
/* ******************* */
var SWFUpload;

if (SWFUpload == undefined) {
	SWFUpload = function (settings) {
		this.initSWFUpload(settings);
	};
}

SWFUpload.prototype.initSWFUpload = function (settings) {
	try {
		this.customSettings = {};	// A container where developers can place their own settings associated with this instance.
		this.settings = settings;
		this.eventQueue = [];
		this.movieName = "SWFUpload_" + SWFUpload.movieCount++;
		this.movieElement = null;


		// Setup global control tracking
		SWFUpload.instances[this.movieName] = this;

		// Load the settings.  Load the Flash movie.
		this.initSettings();
		this.loadFlash();
		this.displayDebugInfo();
	} catch (ex) {
		delete SWFUpload.instances[this.movieName];
		throw ex;
	}
};

/* *************** */
/* Static Members  */
/* *************** */
SWFUpload.instances = {};
SWFUpload.movieCount = 0;
SWFUpload.version = "2.2.0 2009-03-25";
SWFUpload.QUEUE_ERROR = {
	QUEUE_LIMIT_EXCEEDED	  		: -100,
	FILE_EXCEEDS_SIZE_LIMIT  		: -110,
	ZERO_BYTE_FILE			  		: -120,
	INVALID_FILETYPE		  		: -130
};
SWFUpload.UPLOAD_ERROR = {
	HTTP_ERROR				  		: -200,
	MISSING_UPLOAD_URL	      		: -210,
	IO_ERROR				  		: -220,
	SECURITY_ERROR			  		: -230,
	UPLOAD_LIMIT_EXCEEDED	  		: -240,
	UPLOAD_FAILED			  		: -250,
	SPECIFIED_FILE_ID_NOT_FOUND		: -260,
	FILE_VALIDATION_FAILED	  		: -270,
	FILE_CANCELLED			  		: -280,
	UPLOAD_STOPPED					: -290
};
SWFUpload.FILE_STATUS = {
	QUEUED		 : -1,
	IN_PROGRESS	 : -2,
	ERROR		 : -3,
	COMPLETE	 : -4,
	CANCELLED	 : -5
};
SWFUpload.BUTTON_ACTION = {
	SELECT_FILE  : -100,
	SELECT_FILES : -110,
	START_UPLOAD : -120
};
SWFUpload.CURSOR = {
	ARROW : -1,
	HAND : -2
};
SWFUpload.WINDOW_MODE = {
	WINDOW : "window",
	TRANSPARENT : "transparent",
	OPAQUE : "opaque"
};

// Private: takes a URL, determines if it is relative and converts to an absolute URL
// using the current site. Only processes the URL if it can, otherwise returns the URL untouched
SWFUpload.completeURL = function(url) {
	if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) {
		return url;
	}
	
	var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
	
	var indexSlash = window.location.pathname.lastIndexOf("/");
	if (indexSlash <= 0) {
		path = "/";
	} else {
		path = window.location.pathname.substr(0, indexSlash) + "/";
	}
	
	return /*currentURL +*/ path + url;
	
};


/* ******************** */
/* Instance Members  */
/* ******************** */

// Private: initSettings ensures that all the
// settings are set, getting a default value if one was not assigned.
SWFUpload.prototype.initSettings = function () {
	this.ensureDefault = function (settingName, defaultValue) {
		this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName];
	};
	
	// Upload backend settings
	this.ensureDefault("upload_url", "");
	this.ensureDefault("preserve_relative_urls", false);
	this.ensureDefault("file_post_name", "Filedata");
	this.ensureDefault("post_params", {});
	this.ensureDefault("use_query_string", false);
	this.ensureDefault("requeue_on_error", false);
	this.ensureDefault("http_success", []);
	this.ensureDefault("assume_success_timeout", 0);
	
	// File Settings
	this.ensureDefault("file_types", "*.*");
	this.ensureDefault("file_types_description", "All Files");
	this.ensureDefault("file_size_limit", 0);	// Default zero means "unlimited"
	this.ensureDefault("file_upload_limit", 0);
	this.ensureDefault("file_queue_limit", 0);

	// Flash Settings
	this.ensureDefault("flash_url", "swfupload.swf");
	this.ensureDefault("prevent_swf_caching", true);
	
	// Button Settings
	this.ensureDefault("button_image_url", "");
	this.ensureDefault("button_width", 1);
	this.ensureDefault("button_height", 1);
	this.ensureDefault("button_text", "");
	this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;");
	this.ensureDefault("button_text_top_padding", 0);
	this.ensureDefault("button_text_left_padding", 0);
	this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES);
	this.ensureDefault("button_disabled", false);
	this.ensureDefault("button_placeholder_id", "");
	this.ensureDefault("button_placeholder", null);
	this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW);
	this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW);
	
	// Debug Settings
	this.ensureDefault("debug", false);
	this.settings.debug_enabled = this.settings.debug;	// Here to maintain v2 API
	
	// Event Handlers
	this.settings.return_upload_start_handler = this.returnUploadStart;
	this.ensureDefault("swfupload_loaded_handler", null);
	this.ensureDefault("file_dialog_start_handler", null);
	this.ensureDefault("file_queued_handler", null);
	this.ensureDefault("file_queue_error_handler", null);
	this.ensureDefault("file_dialog_complete_handler", null);
	
	this.ensureDefault("upload_start_handler", null);
	this.ensureDefault("upload_progress_handler", null);
	this.ensureDefault("upload_error_handler", null);
	this.ensureDefault("upload_success_handler", null);
	this.ensureDefault("upload_complete_handler", null);
	
	this.ensureDefault("debug_handler", this.debugMessage);

	this.ensureDefault("custom_settings", {});

	// Other settings
	this.customSettings = this.settings.custom_settings;
	
	// Update the flash url if needed
	if (!!this.settings.prevent_swf_caching) {
		this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime();
	}
	
	if (!this.settings.preserve_relative_urls) {
		//this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url);	// Don't need to do this one since flash doesn't look at it
		this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);
		this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
	}
	
	delete this.ensureDefault;
};

// Private: loadFlash replaces the button_placeholder element with the flash movie.
SWFUpload.prototype.loadFlash = function () {
	var targetElement, tempParent;

	// Make sure an element with the ID we are going to use doesn't already exist
	if (document.getElementById(this.movieName) !== null) {
		throw "ID " + this.movieName + " is already in use. The Flash Object could not be added";
	}

	// Get the element where we will be placing the flash movie
	targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder;

	if (targetElement == undefined) {
		throw "Could not find the placeholder element: " + this.settings.button_placeholder_id;
	}

	// Append the container and load the flash
	tempParent = document.createElement("div");
	tempParent.innerHTML = this.getFlashHTML();	// Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers)
	targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement);

	// Fix IE Flash/Form bug
	if (window[this.movieName] == undefined) {
		window[this.movieName] = this.getMovieElement();
	}
	
};

// Private: getFlashHTML generates the object tag needed to embed the flash in to the document
SWFUpload.prototype.getFlashHTML = function () {
	// Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay
	return ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">',
				'<param name="wmode" value="', this.settings.button_window_mode, '" />',
				'<param name="movie" value="', this.settings.flash_url, '" />',
				'<param name="quality" value="high" />',
				'<param name="menu" value="false" />',
				'<param name="allowScriptAccess" value="always" />',
				'<param name="flashvars" value="' + this.getFlashVars() + '" />',
				'</object>'].join("");
};

// Private: getFlashVars builds the parameter string that will be passed
// to flash in the flashvars param.
SWFUpload.prototype.getFlashVars = function () {
	// Build a string from the post param object
	var paramString = this.buildParamString();
	var httpSuccessString = this.settings.http_success.join(",");
	
	// Build the parameter string
	return ["movieName=", encodeURIComponent(this.movieName),
			"&amp;uploadURL=", encodeURIComponent(this.settings.upload_url),
			"&amp;useQueryString=", encodeURIComponent(this.settings.use_query_string),
			"&amp;requeueOnError=", encodeURIComponent(this.settings.requeue_on_error),
			"&amp;httpSuccess=", encodeURIComponent(httpSuccessString),
			"&amp;assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout),
			"&amp;params=", encodeURIComponent(paramString),
			"&amp;filePostName=", encodeURIComponent(this.settings.file_post_name),
			"&amp;fileTypes=", encodeURIComponent(this.settings.file_types),
			"&amp;fileTypesDescription=", encodeURIComponent(this.settings.file_types_description),
			"&amp;fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit),
			"&amp;fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit),
			"&amp;fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit),
			"&amp;debugEnabled=", encodeURIComponent(this.settings.debug_enabled),
			"&amp;buttonImageURL=", encodeURIComponent(this.settings.button_image_url),
			"&amp;buttonWidth=", encodeURIComponent(this.settings.button_width),
			"&amp;buttonHeight=", encodeURIComponent(this.settings.button_height),
			"&amp;buttonText=", encodeURIComponent(this.settings.button_text),
			"&amp;buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding),
			"&amp;buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding),
			"&amp;buttonTextStyle=", encodeURIComponent(this.settings.button_text_style),
			"&amp;buttonAction=", encodeURIComponent(this.settings.button_action),
			"&amp;buttonDisabled=", encodeURIComponent(this.settings.button_disabled),
			"&amp;buttonCursor=", encodeURIComponent(this.settings.button_cursor)
		].join("");
};

// Public: getMovieElement retrieves the DOM reference to the Flash element added by SWFUpload
// The element is cached after the first lookup
SWFUpload.prototype.getMovieElement = function () {
	if (this.movieElement == undefined) {
		this.movieElement = document.getElementById(this.movieName);
	}

	if (this.movieElement === null) {
		throw "Could not find Flash element";
	}
	
	return this.movieElement;
};

// Private: buildParamString takes the name/value pairs in the post_params setting object
// and joins them up in to a string formatted "name=value&amp;name=value"
SWFUpload.prototype.buildParamString = function () {
	var postParams = this.settings.post_params; 
	var paramStringPairs = [];

	if (typeof(postParams) === "object") {
		for (var name in postParams) {
			if (postParams.hasOwnProperty(name)) {
				paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString()));
			}
		}
	}

	return paramStringPairs.join("&amp;");
};

// Public: Used to remove a SWFUpload instance from the page. This method strives to remove
// all references to the SWF, and other objects so memory is properly freed.
// Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state.
// Credits: Major improvements provided by steffen
SWFUpload.prototype.destroy = function () {
	try {
		// Make sure Flash is done before we try to remove it
		this.cancelUpload(null, false);
		

		// Remove the SWFUpload DOM nodes
		var movieElement = null;
		movieElement = this.getMovieElement();
		
		if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE
			// Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround)
			for (var i in movieElement) {
				try {
					if (typeof(movieElement[i]) === "function") {
						movieElement[i] = null;
					}
				} catch (ex1) {}
			}

			// Remove the Movie Element from the page
			try {
				movieElement.parentNode.removeChild(movieElement);
			} catch (ex) {}
		}
		
		// Remove IE form fix reference
		window[this.movieName] = null;

		// Destroy other references
		SWFUpload.instances[this.movieName] = null;
		delete SWFUpload.instances[this.movieName];

		this.movieElement = null;
		this.settings = null;
		this.customSettings = null;
		this.eventQueue = null;
		this.movieName = null;
		
		
		return true;
	} catch (ex2) {
		return false;
	}
};


// Public: displayDebugInfo prints out settings and configuration
// information about this SWFUpload instance.
// This function (and any references to it) can be deleted when placing
// SWFUpload in production.
SWFUpload.prototype.displayDebugInfo = function () {
	this.debug(
		[
			"---SWFUpload Instance Info---\n",
			"Version: ", SWFUpload.version, "\n",
			"Movie Name: ", this.movieName, "\n",
			"Settings:\n",
			"\t", "upload_url:               ", this.settings.upload_url, "\n",
			"\t", "flash_url:                ", this.settings.flash_url, "\n",
			"\t", "use_query_string:         ", this.settings.use_query_string.toString(), "\n",
			"\t", "requeue_on_error:         ", this.settings.requeue_on_error.toString(), "\n",
			"\t", "http_success:             ", this.settings.http_success.join(", "), "\n",
			"\t", "assume_success_timeout:   ", this.settings.assume_success_timeout, "\n",
			"\t", "file_post_name:           ", this.settings.file_post_name, "\n",
			"\t", "post_params:              ", this.settings.post_params.toString(), "\n",
			"\t", "file_types:               ", this.settings.file_types, "\n",
			"\t", "file_types_description:   ", this.settings.file_types_description, "\n",
			"\t", "file_size_limit:          ", this.settings.file_size_limit, "\n",
			"\t", "file_upload_limit:        ", this.settings.file_upload_limit, "\n",
			"\t", "file_queue_limit:         ", this.settings.file_queue_limit, "\n",
			"\t", "debug:                    ", this.settings.debug.toString(), "\n",

			"\t", "prevent_swf_caching:      ", this.settings.prevent_swf_caching.toString(), "\n",

			"\t", "button_placeholder_id:    ", this.settings.button_placeholder_id.toString(), "\n",
			"\t", "button_placeholder:       ", (this.settings.button_placeholder ? "Set" : "Not Set"), "\n",
			"\t", "button_image_url:         ", this.settings.button_image_url.toString(), "\n",
			"\t", "button_width:             ", this.settings.button_width.toString(), "\n",
			"\t", "button_height:            ", this.settings.button_height.toString(), "\n",
			"\t", "button_text:              ", this.settings.button_text.toString(), "\n",
			"\t", "button_text_style:        ", this.settings.button_text_style.toString(), "\n",
			"\t", "button_text_top_padding:  ", this.settings.button_text_top_padding.toString(), "\n",
			"\t", "button_text_left_padding: ", this.settings.button_text_left_padding.toString(), "\n",
			"\t", "button_action:            ", this.settings.button_action.toString(), "\n",
			"\t", "button_disabled:          ", this.settings.button_disabled.toString(), "\n",

			"\t", "custom_settings:          ", this.settings.custom_settings.toString(), "\n",
			"Event Handlers:\n",
			"\t", "swfupload_loaded_handler assigned:  ", (typeof this.settings.swfupload_loaded_handler === "function").toString(), "\n",
			"\t", "file_dialog_start_handler assigned: ", (typeof this.settings.file_dialog_start_handler === "function").toString(), "\n",
			"\t", "file_queued_handler assigned:       ", (typeof this.settings.file_queued_handler === "function").toString(), "\n",
			"\t", "file_queue_error_handler assigned:  ", (typeof this.settings.file_queue_error_handler === "function").toString(), "\n",
			"\t", "upload_start_handler assigned:      ", (typeof this.settings.upload_start_handler === "function").toString(), "\n",
			"\t", "upload_progress_handler assigned:   ", (typeof this.settings.upload_progress_handler === "function").toString(), "\n",
			"\t", "upload_error_handler assigned:      ", (typeof this.settings.upload_error_handler === "function").toString(), "\n",
			"\t", "upload_success_handler assigned:    ", (typeof this.settings.upload_success_handler === "function").toString(), "\n",
			"\t", "upload_complete_handler assigned:   ", (typeof this.settings.upload_complete_handler === "function").toString(), "\n",
			"\t", "debug_handler assigned:             ", (typeof this.settings.debug_handler === "function").toString(), "\n"
		].join("")
	);
};

/* Note: addSetting and getSetting are no longer used by SWFUpload but are included
	the maintain v2 API compatibility
*/
// Public: (Deprecated) addSetting adds a setting value. If the value given is undefined or null then the default_value is used.
SWFUpload.prototype.addSetting = function (name, value, default_value) {
    if (value == undefined) {
        return (this.settings[name] = default_value);
    } else {
        return (this.settings[name] = value);
	}
};

// Public: (Deprecated) getSetting gets a setting. Returns an empty string if the setting was not found.
SWFUpload.prototype.getSetting = function (name) {
    if (this.settings[name] != undefined) {
        return this.settings[name];
	}

    return "";
};



// Private: callFlash handles function calls made to the Flash element.
// Calls are made with a setTimeout for some functions to work around
// bugs in the ExternalInterface library.
SWFUpload.prototype.callFlash = function (functionName, argumentArray) {
	argumentArray = argumentArray || [];
	
	var movieElement = this.getMovieElement();
	var returnValue, returnString;

	// Flash's method if calling ExternalInterface methods (code adapted from MooTools).
	try {
		returnString = movieElement.CallFunction('<invoke name="' + functionName + '" returntype="javascript">' + __flash__argumentsToXML(argumentArray, 0) + '</invoke>');
		returnValue = eval(returnString);
	} catch (ex) {
		throw "Call to " + functionName + " failed";
	}
	
	// Unescape file post param values
	if (returnValue != undefined && typeof returnValue.post === "object") {
		returnValue = this.unescapeFilePostParams(returnValue);
	}

	return returnValue;
};

/* *****************************
	-- Flash control methods --
	Your UI should use these
	to operate SWFUpload
   ***************************** */

// WARNING: this function does not work in Flash Player 10
// Public: selectFile causes a File Selection Dialog window to appear.  This
// dialog only allows 1 file to be selected.
SWFUpload.prototype.selectFile = function () {
	this.callFlash("SelectFile");
};

// WARNING: this function does not work in Flash Player 10
// Public: selectFiles causes a File Selection Dialog window to appear/ This
// dialog allows the user to select any number of files
// Flash Bug Warning: Flash limits the number of selectable files based on the combined length of the file names.
// If the selection name length is too long the dialog will fail in an unpredictable manner.  There is no work-around
// for this bug.
SWFUpload.prototype.selectFiles = function () {
	this.callFlash("SelectFiles");
};


// Public: startUpload starts uploading the first file in the queue unless
// the optional parameter 'fileID' specifies the ID 
SWFUpload.prototype.startUpload = function (fileID) {
	this.callFlash("StartUpload", [fileID]);
};

// Public: cancelUpload cancels any queued file.  The fileID parameter may be the file ID or index.
// If you do not specify a fileID the current uploading file or first file in the queue is cancelled.
// If you do not want the uploadError event to trigger you can specify false for the triggerErrorEvent parameter.
SWFUpload.prototype.cancelUpload = function (fileID, triggerErrorEvent) {
	if (triggerErrorEvent !== false) {
		triggerErrorEvent = true;
	}
	this.callFlash("CancelUpload", [fileID, triggerErrorEvent]);
};

// Public: stopUpload stops the current upload and requeues the file at the beginning of the queue.
// If nothing is currently uploading then nothing happens.
SWFUpload.prototype.stopUpload = function () {
	this.callFlash("StopUpload");
};

/* ************************
 * Settings methods
 *   These methods change the SWFUpload settings.
 *   SWFUpload settings should not be changed directly on the settings object
 *   since many of the settings need to be passed to Flash in order to take
 *   effect.
 * *********************** */

// Public: getStats gets the file statistics object.
SWFUpload.prototype.getStats = function () {
	return this.callFlash("GetStats");
};

// Public: setStats changes the SWFUpload statistics.  You shouldn't need to 
// change the statistics but you can.  Changing the statistics does not
// affect SWFUpload accept for the successful_uploads count which is used
// by the upload_limit setting to determine how many files the user may upload.
SWFUpload.prototype.setStats = function (statsObject) {
	this.callFlash("SetStats", [statsObject]);
};

// Public: getFile retrieves a File object by ID or Index.  If the file is
// not found then 'null' is returned.
SWFUpload.prototype.getFile = function (fileID) {
	if (typeof(fileID) === "number") {
		return this.callFlash("GetFileByIndex", [fileID]);
	} else {
		return this.callFlash("GetFile", [fileID]);
	}
};

// Public: addFileParam sets a name/value pair that will be posted with the
// file specified by the Files ID.  If the name already exists then the
// exiting value will be overwritten.
SWFUpload.prototype.addFileParam = function (fileID, name, value) {
	return this.callFlash("AddFileParam", [fileID, name, value]);
};

// Public: removeFileParam removes a previously set (by addFileParam) name/value
// pair from the specified file.
SWFUpload.prototype.removeFileParam = function (fileID, name) {
	this.callFlash("RemoveFileParam", [fileID, name]);
};

// Public: setUploadUrl changes the upload_url setting.
SWFUpload.prototype.setUploadURL = function (url) {
	this.settings.upload_url = url.toString();
	this.callFlash("SetUploadURL", [url]);
};

// Public: setPostParams changes the post_params setting
SWFUpload.prototype.setPostParams = function (paramsObject) {
	this.settings.post_params = paramsObject;
	this.callFlash("SetPostParams", [paramsObject]);
};

// Public: addPostParam adds post name/value pair.  Each name can have only one value.
SWFUpload.prototype.addPostParam = function (name, value) {
	this.settings.post_params[name] = value;
	this.callFlash("SetPostParams", [this.settings.post_params]);
};

// Public: removePostParam deletes post name/value pair.
SWFUpload.prototype.removePostParam = function (name) {
	delete this.settings.post_params[name];
	this.callFlash("SetPostParams", [this.settings.post_params]);
};

// Public: setFileTypes changes the file_types setting and the file_types_description setting
SWFUpload.prototype.setFileTypes = function (types, description) {
	this.settings.file_types = types;
	this.settings.file_types_description = description;
	this.callFlash("SetFileTypes", [types, description]);
};

// Public: setFileSizeLimit changes the file_size_limit setting
SWFUpload.prototype.setFileSizeLimit = function (fileSizeLimit) {
	this.settings.file_size_limit = fileSizeLimit;
	this.callFlash("SetFileSizeLimit", [fileSizeLimit]);
};

// Public: setFileUploadLimit changes the file_upload_limit setting
SWFUpload.prototype.setFileUploadLimit = function (fileUploadLimit) {
	this.settings.file_upload_limit = fileUploadLimit;
	this.callFlash("SetFileUploadLimit", [fileUploadLimit]);
};

// Public: setFileQueueLimit changes the file_queue_limit setting
SWFUpload.prototype.setFileQueueLimit = function (fileQueueLimit) {
	this.settings.file_queue_limit = fileQueueLimit;
	this.callFlash("SetFileQueueLimit", [fileQueueLimit]);
};

// Public: setFilePostName changes the file_post_name setting
SWFUpload.prototype.setFilePostName = function (filePostName) {
	this.settings.file_post_name = filePostName;
	this.callFlash("SetFilePostName", [filePostName]);
};

// Public: setUseQueryString changes the use_query_string setting
SWFUpload.prototype.setUseQueryString = function (useQueryString) {
	this.settings.use_query_string = useQueryString;
	this.callFlash("SetUseQueryString", [useQueryString]);
};

// Public: setRequeueOnError changes the requeue_on_error setting
SWFUpload.prototype.setRequeueOnError = function (requeueOnError) {
	this.settings.requeue_on_error = requeueOnError;
	this.callFlash("SetRequeueOnError", [requeueOnError]);
};

// Public: setHTTPSuccess changes the http_success setting
SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) {
	if (typeof http_status_codes === "string") {
		http_status_codes = http_status_codes.replace(" ", "").split(",");
	}
	
	this.settings.http_success = http_status_codes;
	this.callFlash("SetHTTPSuccess", [http_status_codes]);
};

// Public: setHTTPSuccess changes the http_success setting
SWFUpload.prototype.setAssumeSuccessTimeout = function (timeout_seconds) {
	this.settings.assume_success_timeout = timeout_seconds;
	this.callFlash("SetAssumeSuccessTimeout", [timeout_seconds]);
};

// Public: setDebugEnabled changes the debug_enabled setting
SWFUpload.prototype.setDebugEnabled = function (debugEnabled) {
	this.settings.debug_enabled = debugEnabled;
	this.callFlash("SetDebugEnabled", [debugEnabled]);
};

// Public: setButtonImageURL loads a button image sprite
SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) {
	if (buttonImageURL == undefined) {
		buttonImageURL = "";
	}
	
	this.settings.button_image_url = buttonImageURL;
	this.callFlash("SetButtonImageURL", [buttonImageURL]);
};

// Public: setButtonDimensions resizes the Flash Movie and button
SWFUpload.prototype.setButtonDimensions = function (width, height) {
	this.settings.button_width = width;
	this.settings.button_height = height;
	
	var movie = this.getMovieElement();
	if (movie != undefined) {
		movie.style.width = width + "px";
		movie.style.height = height + "px";
	}
	
	this.callFlash("SetButtonDimensions", [width, height]);
};
// Public: setButtonText Changes the text overlaid on the button
SWFUpload.prototype.setButtonText = function (html) {
	this.settings.button_text = html;
	this.callFlash("SetButtonText", [html]);
};
// Public: setButtonTextPadding changes the top and left padding of the text overlay
SWFUpload.prototype.setButtonTextPadding = function (left, top) {
	this.settings.button_text_top_padding = top;
	this.settings.button_text_left_padding = left;
	this.callFlash("SetButtonTextPadding", [left, top]);
};

// Public: setButtonTextStyle changes the CSS used to style the HTML/Text overlaid on the button
SWFUpload.prototype.setButtonTextStyle = function (css) {
	this.settings.button_text_style = css;
	this.callFlash("SetButtonTextStyle", [css]);
};
// Public: setButtonDisabled disables/enables the button
SWFUpload.prototype.setButtonDisabled = function (isDisabled) {
	this.settings.button_disabled = isDisabled;
	this.callFlash("SetButtonDisabled", [isDisabled]);
};
// Public: setButtonAction sets the action that occurs when the button is clicked
SWFUpload.prototype.setButtonAction = function (buttonAction) {
	this.settings.button_action = buttonAction;
	this.callFlash("SetButtonAction", [buttonAction]);
};

// Public: setButtonCursor changes the mouse cursor displayed when hovering over the button
SWFUpload.prototype.setButtonCursor = function (cursor) {
	this.settings.button_cursor = cursor;
	this.callFlash("SetButtonCursor", [cursor]);
};

/* *******************************
	Flash Event Interfaces
	These functions are used by Flash to trigger the various
	events.
	
	All these functions a Private.
	
	Because the ExternalInterface library is buggy the event calls
	are added to a queue and the queue then executed by a setTimeout.
	This ensures that events are executed in a determinate order and that
	the ExternalInterface bugs are avoided.
******************************* */

SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) {
	// Warning: Don't call this.debug inside here or you'll create an infinite loop
	
	if (argumentArray == undefined) {
		argumentArray = [];
	} else if (!(argumentArray instanceof Array)) {
		argumentArray = [argumentArray];
	}
	
	var self = this;
	if (typeof this.settings[handlerName] === "function") {
		// Queue the event
		this.eventQueue.push(function () {
			this.settings[handlerName].apply(this, argumentArray);
		});
		
		// Execute the next queued event
		setTimeout(function () {
			self.executeNextEvent();
		}, 0);
		
	} else if (this.settings[handlerName] !== null) {
		throw "Event handler " + handlerName + " is unknown or is not a function";
	}
};

// Private: Causes the next event in the queue to be executed.  Since events are queued using a setTimeout
// we must queue them in order to garentee that they are executed in order.
SWFUpload.prototype.executeNextEvent = function () {
	// Warning: Don't call this.debug inside here or you'll create an infinite loop

	var  f = this.eventQueue ? this.eventQueue.shift() : null;
	if (typeof(f) === "function") {
		f.apply(this);
	}
};

// Private: unescapeFileParams is part of a workaround for a flash bug where objects passed through ExternalInterface cannot have
// properties that contain characters that are not valid for JavaScript identifiers. To work around this
// the Flash Component escapes the parameter names and we must unescape again before passing them along.
SWFUpload.prototype.unescapeFilePostParams = function (file) {
	var reg = /[$]([0-9a-f]{4})/i;
	var unescapedPost = {};
	var uk;

	if (file != undefined) {
		for (var k in file.post) {
			if (file.post.hasOwnProperty(k)) {
				uk = k;
				var match;
				while ((match = reg.exec(uk)) !== null) {
					uk = uk.replace(match[0], String.fromCharCode(parseInt("0x" + match[1], 16)));
				}
				unescapedPost[uk] = file.post[k];
			}
		}

		file.post = unescapedPost;
	}

	return file;
};

// Private: Called by Flash to see if JS can call in to Flash (test if External Interface is working)
SWFUpload.prototype.testExternalInterface = function () {
	try {
		return this.callFlash("TestExternalInterface");
	} catch (ex) {
		return false;
	}
};

// Private: This event is called by Flash when it has finished loading. Don't modify this.
// Use the swfupload_loaded_handler event setting to execute custom code when SWFUpload has loaded.
SWFUpload.prototype.flashReady = function () {
	// Check that the movie element is loaded correctly with its ExternalInterface methods defined
	var movieElement = this.getMovieElement();

	if (!movieElement) {
		this.debug("Flash called back ready but the flash movie can't be found.");
		return;
	}

	this.cleanUp(movieElement);
	
	this.queueEvent("swfupload_loaded_handler");
};

// Private: removes Flash added fuctions to the DOM node to prevent memory leaks in IE.
// This function is called by Flash each time the ExternalInterface functions are created.
SWFUpload.prototype.cleanUp = function (movieElement) {
	// Pro-actively unhook all the Flash functions
	try {
		if (this.movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE
			this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");
			for (var key in movieElement) {
				try {
					if (typeof(movieElement[key]) === "function") {
						movieElement[key] = null;
					}
				} catch (ex) {
				}
			}
		}
	} catch (ex1) {
	
	}

	// Fix Flashes own cleanup code so if the SWFMovie was removed from the page
	// it doesn't display errors.
	window["__flash__removeCallback"] = function (instance, name) {
		try {
			if (instance) {
				instance[name] = null;
			}
		} catch (flashEx) {
		
		}
	};

};


/* This is a chance to do something before the browse window opens */
SWFUpload.prototype.fileDialogStart = function () {
	this.queueEvent("file_dialog_start_handler");
};


/* Called when a file is successfully added to the queue. */
SWFUpload.prototype.fileQueued = function (file) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("file_queued_handler", file);
};


/* Handle errors that occur when an attempt to queue a file fails. */
SWFUpload.prototype.fileQueueError = function (file, errorCode, message) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("file_queue_error_handler", [file, errorCode, message]);
};

/* Called after the file dialog has closed and the selected files have been queued.
	You could call startUpload here if you want the queued files to begin uploading immediately. */
SWFUpload.prototype.fileDialogComplete = function (numFilesSelected, numFilesQueued, numFilesInQueue) {
	this.queueEvent("file_dialog_complete_handler", [numFilesSelected, numFilesQueued, numFilesInQueue]);
};

SWFUpload.prototype.uploadStart = function (file) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("return_upload_start_handler", file);
};

SWFUpload.prototype.returnUploadStart = function (file) {
	var returnValue;
	if (typeof this.settings.upload_start_handler === "function") {
		file = this.unescapeFilePostParams(file);
		returnValue = this.settings.upload_start_handler.call(this, file);
	} else if (this.settings.upload_start_handler != undefined) {
		throw "upload_start_handler must be a function";
	}

	// Convert undefined to true so if nothing is returned from the upload_start_handler it is
	// interpretted as 'true'.
	if (returnValue === undefined) {
		returnValue = true;
	}
	
	returnValue = !!returnValue;
	
	this.callFlash("ReturnUploadStart", [returnValue]);
};



SWFUpload.prototype.uploadProgress = function (file, bytesComplete, bytesTotal) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("upload_progress_handler", [file, bytesComplete, bytesTotal]);
};

SWFUpload.prototype.uploadError = function (file, errorCode, message) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("upload_error_handler", [file, errorCode, message]);
};

SWFUpload.prototype.uploadSuccess = function (file, serverData, responseReceived) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("upload_success_handler", [file, serverData, responseReceived]);
};

SWFUpload.prototype.uploadComplete = function (file) {
	file = this.unescapeFilePostParams(file);
	this.queueEvent("upload_complete_handler", file);
};

/* Called by SWFUpload JavaScript and Flash functions when debug is enabled. By default it writes messages to the
   internal debug console.  You can override this event and have messages written where you want. */
SWFUpload.prototype.debug = function (message) {
	this.queueEvent("debug_handler", message);
};


/* **********************************
	Debug Console
	The debug console is a self contained, in page location
	for debug message to be sent.  The Debug Console adds
	itself to the body if necessary.

	The console is automatically scrolled as messages appear.
	
	If you are using your own debug handler or when you deploy to production and
	have debug disabled you can remove these functions to reduce the file size
	and complexity.
********************************** */
   
// Private: debugMessage is the default debug_handler.  If you want to print debug messages
// call the debug() function.  When overriding the function your own function should
// check to see if the debug setting is true before outputting debug information.
SWFUpload.prototype.debugMessage = function (message) {
	if (this.settings.debug) {
		var exceptionMessage, exceptionValues = [];

		// Check for an exception object and print it nicely
		if (typeof message === "object" && typeof message.name === "string" && typeof message.message === "string") {
			for (var key in message) {
				if (message.hasOwnProperty(key)) {
					exceptionValues.push(key + ": " + message[key]);
				}
			}
			exceptionMessage = exceptionValues.join("\n") || "";
			exceptionValues = exceptionMessage.split("\n");
			exceptionMessage = "EXCEPTION: " + exceptionValues.join("\nEXCEPTION: ");
			SWFUpload.Console.writeLine(exceptionMessage);
		} else {
			SWFUpload.Console.writeLine(message);
		}
	}
};

SWFUpload.Console = {};
SWFUpload.Console.writeLine = function (message) {
	var console, documentForm;

	try {
		console = document.getElementById("SWFUpload_Console");

		if (!console) {
			documentForm = document.createElement("form");
			document.getElementsByTagName("body")[0].appendChild(documentForm);

			console = document.createElement("textarea");
			console.id = "SWFUpload_Console";
			console.style.fontFamily = "monospace";
			console.setAttribute("wrap", "off");
			console.wrap = "off";
			console.style.overflow = "auto";
			console.style.width = "700px";
			console.style.height = "350px";
			console.style.margin = "5px";
			documentForm.appendChild(console);
		}

		console.value += message + "\n";

		console.scrollTop = console.scrollHeight - console.clientHeight;
	} catch (ex) {
		alert("Exception: " + ex.name + " Message: " + ex.message);
	}
};
;
/*
	Queue Plug-in
	
	Features:
		*Adds a cancelQueue() method for cancelling the entire queue.
		*All queued files are uploaded when startUpload() is called.
		*If false is returned from uploadComplete then the queue upload is stopped.
		 If false is not returned (strict comparison) then the queue upload is continued.
		*Adds a QueueComplete event that is fired when all the queued files have finished uploading.
		 Set the event handler with the queue_complete_handler setting.
		
	*/

var SWFUpload;
if (typeof(SWFUpload) === "function") {
	SWFUpload.queue = {};
	
	SWFUpload.prototype.initSettings = (function (oldInitSettings) {
		return function () {
			if (typeof(oldInitSettings) === "function") {
				oldInitSettings.call(this);
			}
			
			this.queueSettings = {};
			
			this.queueSettings.queue_cancelled_flag = false;
			this.queueSettings.queue_upload_count = 0;
			
			this.queueSettings.user_upload_complete_handler = this.settings.upload_complete_handler;
			this.queueSettings.user_upload_start_handler = this.settings.upload_start_handler;
			this.settings.upload_complete_handler = SWFUpload.queue.uploadCompleteHandler;
			this.settings.upload_start_handler = SWFUpload.queue.uploadStartHandler;
			
			this.settings.queue_complete_handler = this.settings.queue_complete_handler || null;
		};
	})(SWFUpload.prototype.initSettings);

	SWFUpload.prototype.startUpload = function (fileID) {
		this.queueSettings.queue_cancelled_flag = false;
		this.callFlash("StartUpload", [fileID]);
	};

	SWFUpload.prototype.cancelQueue = function () {
		this.queueSettings.queue_cancelled_flag = true;
		this.stopUpload();
		
		var stats = this.getStats();
		while (stats.files_queued > 0) {
			this.cancelUpload();
			stats = this.getStats();
		}
	};
	
	SWFUpload.queue.uploadStartHandler = function (file) {
		var returnValue;
		if (typeof(this.queueSettings.user_upload_start_handler) === "function") {
			returnValue = this.queueSettings.user_upload_start_handler.call(this, file);
		}
		
		// To prevent upload a real "FALSE" value must be returned, otherwise default to a real "TRUE" value.
		returnValue = (returnValue === false) ? false : true;
		
		this.queueSettings.queue_cancelled_flag = !returnValue;

		return returnValue;
	};
	
	SWFUpload.queue.uploadCompleteHandler = function (file) {
		var user_upload_complete_handler = this.queueSettings.user_upload_complete_handler;
		var continueUpload;
		
		if (file.filestatus === SWFUpload.FILE_STATUS.COMPLETE) {
			this.queueSettings.queue_upload_count++;
		}

		if (typeof(user_upload_complete_handler) === "function") {
			continueUpload = (user_upload_complete_handler.call(this, file) === false) ? false : true;
		} else if (file.filestatus === SWFUpload.FILE_STATUS.QUEUED) {
			// If the file was stopped and re-queued don't restart the upload
			continueUpload = false;
		} else {
			continueUpload = true;
		}
		
		if (continueUpload) {
			var stats = this.getStats();
			if (stats.files_queued > 0 && this.queueSettings.queue_cancelled_flag === false) {
				this.startUpload();
			} else if (this.queueSettings.queue_cancelled_flag === false) {
				this.queueEvent("queue_complete_handler", [this.queueSettings.queue_upload_count]);
				this.queueSettings.queue_upload_count = 0;
			} else {
				this.queueSettings.queue_cancelled_flag = false;
				this.queueSettings.queue_upload_count = 0;
			}
		}
	};
};
/*
	A simple class for displaying file information and progress
	Note: This is a demonstration only and not part of SWFUpload.
	Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
*/

// Constructor
// file is a SWFUpload file object
// targetID is the HTML element id attribute that the FileProgress HTML structure will be added to.
// Instantiating a new FileProgress object with an existing file will reuse/update the existing DOM elements
function FileProgress(file, targetID) {
	this.fileProgressID = file.id;

	this.opacity = 100;
	this.height = 0;
	

	this.fileProgressWrapper = document.getElementById(this.fileProgressID);
	if (!this.fileProgressWrapper) {
		this.fileProgressWrapper = document.createElement("div");
		this.fileProgressWrapper.className = "progressWrapper";
		this.fileProgressWrapper.id = this.fileProgressID;

		this.fileProgressElement = document.createElement("div");
		this.fileProgressElement.className = "progressContainer";

		var progressCancel = document.createElement("a");
		progressCancel.className = "progressCancel";
		progressCancel.href = "#";
		progressCancel.style.visibility = "hidden";
		progressCancel.appendChild(document.createTextNode(" "));

		var progressText = document.createElement("div");
		progressText.className = "progressName";
		progressText.appendChild(document.createTextNode(file.name));

		var progressBar = document.createElement("div");
		progressBar.className = "progressBarInProgress";

		var progressStatus = document.createElement("div");
		progressStatus.className = "progressBarStatus";
		progressStatus.innerHTML = "&nbsp;";

		this.fileProgressElement.appendChild(progressCancel);
		this.fileProgressElement.appendChild(progressText);
		this.fileProgressElement.appendChild(progressStatus);
		this.fileProgressElement.appendChild(progressBar);

		this.fileProgressWrapper.appendChild(this.fileProgressElement);

		document.getElementById(targetID).appendChild(this.fileProgressWrapper);
	} else {
		this.fileProgressElement = this.fileProgressWrapper.firstChild;
		this.reset();
	}

	this.height = this.fileProgressWrapper.offsetHeight;
	this.setTimer(null);


}

FileProgress.prototype.setTimer = function (timer) {
	this.fileProgressElement["FP_TIMER"] = timer;
};
FileProgress.prototype.getTimer = function (timer) {
	return this.fileProgressElement["FP_TIMER"] || null;
};

FileProgress.prototype.reset = function () {
	this.fileProgressElement.className = "progressContainer";

	this.fileProgressElement.childNodes[2].innerHTML = "&nbsp;";
	this.fileProgressElement.childNodes[2].className = "progressBarStatus";
	
	this.fileProgressElement.childNodes[3].className = "progressBarInProgress";
	this.fileProgressElement.childNodes[3].style.width = "0%";
	
	this.appear();	
};

FileProgress.prototype.setProgress = function (percentage) {
	this.fileProgressElement.className = "progressContainer green";
	this.fileProgressElement.childNodes[3].className = "progressBarInProgress";
	this.fileProgressElement.childNodes[3].style.width = percentage + "%";

	this.appear();	
};
FileProgress.prototype.setComplete = function () {
	this.fileProgressElement.className = "progressContainer blue";
	this.fileProgressElement.childNodes[3].className = "progressBarComplete";
	this.fileProgressElement.childNodes[3].style.width = "";

	var oSelf = this;
	this.setTimer(setTimeout(function () {
		oSelf.disappear();
	}, 1000));
};
FileProgress.prototype.setError = function () {
	this.fileProgressElement.className = "progressContainer red";
	this.fileProgressElement.childNodes[3].className = "progressBarError";
	this.fileProgressElement.childNodes[3].style.width = "";

	var oSelf = this;
	this.setTimer(setTimeout(function () {
		oSelf.disappear();
	}, 5000));
};
FileProgress.prototype.setCancelled = function () {
	this.fileProgressElement.className = "progressContainer";
	this.fileProgressElement.childNodes[3].className = "progressBarError";
	this.fileProgressElement.childNodes[3].style.width = "";

	var oSelf = this;
	this.setTimer(setTimeout(function () {
		oSelf.disappear();
	}, 2000));
};
FileProgress.prototype.setStatus = function (status) {
	this.fileProgressElement.childNodes[2].innerHTML = status;
};

// Show/Hide the cancel button
FileProgress.prototype.toggleCancel = function (show, swfUploadInstance) {
	this.fileProgressElement.childNodes[0].style.visibility = show ? "visible" : "hidden";
	if (swfUploadInstance) {
		var fileID = this.fileProgressID;
		this.fileProgressElement.childNodes[0].onclick = function () {
			swfUploadInstance.cancelUpload(fileID);
			return false;
		};
	}
};

FileProgress.prototype.appear = function () {
	if (this.getTimer() !== null) {
		clearTimeout(this.getTimer());
		this.setTimer(null);
	}
	
	if (this.fileProgressWrapper.filters) {
		try {
			this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 100;
		} catch (e) {
			// If it is not set initially, the browser will throw an error.  This will set it if it is not set yet.
			this.fileProgressWrapper.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
		}
	} else {
		this.fileProgressWrapper.style.opacity = 1;
	}
		
	this.fileProgressWrapper.style.height = "";
	
	this.height = this.fileProgressWrapper.offsetHeight;
	this.opacity = 100;
	this.fileProgressWrapper.style.display = "";
	
};

// Fades out and clips away the FileProgress box.
FileProgress.prototype.disappear = function () {

	var reduceOpacityBy = 15;
	var reduceHeightBy = 4;
	var rate = 30;	// 15 fps

	if (this.opacity > 0) {
		this.opacity -= reduceOpacityBy;
		if (this.opacity < 0) {
			this.opacity = 0;
		}

		if (this.fileProgressWrapper.filters) {
			try {
				this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity = this.opacity;
			} catch (e) {
				// If it is not set initially, the browser will throw an error.  This will set it if it is not set yet.
				this.fileProgressWrapper.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + this.opacity + ")";
			}
		} else {
			this.fileProgressWrapper.style.opacity = this.opacity / 100;
		}
	}

	if (this.height > 0) {
		this.height -= reduceHeightBy;
		if (this.height < 0) {
			this.height = 0;
		}

		this.fileProgressWrapper.style.height = this.height + "px";
	}

	if (this.height > 0 || this.opacity > 0) {
		var oSelf = this;
		this.setTimer(setTimeout(function () {
			oSelf.disappear();
		}, rate));
	} else {
		this.fileProgressWrapper.style.display = "none";
		this.setTimer(null);
	}
};;
Drupal.behaviors.commentForm = function(context) {
  var $form = $(context).find('#comment-form'),
  $images = $form.find('#pixiq_comment_swfupload-images');
  $images.find('.image').live('mouseover', function(){
    $(this).find('a.icon').show();
  });
  $images.find('.image').live('mouseout', function(){
    $(this).find('a.icon').hide();
  });
  $images.find('.image a.remove').live('click', function(){
    $(this).parent('.image').remove();
    return false;
  });
  
};
var images = [];

function pixiq_comment_swfUploadPreLoad() {
  var self = this;
}
function pixiq_comment_swfUploadLoaded() {
  var self = this;
}
   
function pixiq_comment_swfUploadLoadFailed() {
}
   
   
function pixiq_comment_fileQueued(file) {
  try {   
    var progress = new FileProgress(file, this.customSettings.progressTarget);
    progress.setStatus("Waiting...");
  } catch (ex) {
    this.debug(ex);
  }

}

function pixiq_comment_fileQueueError(file, errorCode, message) {
  try {
    if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) {
      alert("You have attempted to queue too many files.\n" + (message === 0 ? "You have reached the upload limit." : "You may select " + (message > 1 ? "up to " + message + " files." : "one file.")));
      return;
    }

    var progress = new FileProgress(file, this.customSettings.progressTarget);
    progress.setError();

    switch (errorCode) {
    case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:
      progress.setStatus("File is too big.");
      this.debug("Error Code: File too big, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:
      progress.setStatus("Cannot upload Zero Byte files.");
      this.debug("Error Code: Zero byte file, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:
      progress.setStatus("Invalid File Type.");
      this.debug("Error Code: Invalid File Type, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    default:
      if (file !== null) {
        progress.setStatus("Unhandled Error");
      }
      this.debug("Error Code: " + errorCode + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    }
  } catch (ex) {
        this.debug(ex);
    }
}

function pixiq_comment_fileDialogComplete(numFilesSelected, numFilesQueued) {
  try {
    /* Autostart upload */
    this.startUpload();
  } catch (ex)  {
    this.debug(ex);
  }
}

function pixiq_comment_uploadStart(file) {
  try {
    var progress = new FileProgress(file, this.customSettings.progressTarget);
    progress.setStatus("Uploading...");
    progress.toggleCancel(true, this);
  }
  catch (ex) {}
  
  return true;
}

function pixiq_comment_uploadProgress(file, bytesLoaded, bytesTotal) {
  try {
    var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);
    var progress = new FileProgress(file, this.customSettings.progressTarget);
    progress.setProgress(percent);
    progress.setStatus(percent+"%");
  } catch (ex) {
    this.debug(ex);
  }
}

function pixiq_comment_uploadSuccess(file, serverData) {
  try {
    var progress = new FileProgress(file, this.customSettings.progressTarget),
    data = eval('('+serverData+')');
    if (data.error) {
      alert("Please try again.\n"+data.errors.join("\n"));
      progress.setStatus('Error');
      progress.setError();
    }
    else {
      var file = data.file,
      wrapper = $('#pixiq_comment_swfupload-images'),
      image = $('<div>').addClass('image'),
      id = randomstring();
      images.push(file);
      image.append($('<a/>').attr({href: '#'}).addClass('remove icon').text('Remove'));
      if (file.thumbnail) {
        image.append($('<img>').attr({src: Drupal.settings.basePath+file.thumbnail}));
      }
      else {
        image.append($('<img>').attr({src: Drupal.settings.basePath+file.filepath}));
      }
      image.append($('<input type="hidden">').attr({value: file.fid, name: 'images['+id+'][fid]'}));
      wrapper.append(image);
      progress.setStatus("100%");
      progress.setComplete();
    }
    progress.toggleCancel(false);
  } catch (ex) {
    this.debug(ex);
  }
}

function pixiq_comment_uploadError(file, errorCode, message) {
  try {
    var progress = new FileProgress(file, this.customSettings.progressTarget);
    progress.setError();
    progress.toggleCancel(false);

    switch (errorCode) {
    case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:
      progress.setStatus("Upload Error: " + message);
      this.debug("Error Code: HTTP Error, File name: " + file.name + ", Message: " + message);
      break;
    case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:
      progress.setStatus("Upload Failed.");
      this.debug("Error Code: Upload Failed, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    case SWFUpload.UPLOAD_ERROR.IO_ERROR:
      progress.setStatus("Server (IO) Error");
      this.debug("Error Code: IO Error, File name: " + file.name + ", Message: " + message);
      break;
    case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:
      progress.setStatus("Security Error");
      this.debug("Error Code: Security Error, File name: " + file.name + ", Message: " + message);
      break;
    case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:
      progress.setStatus("Upload limit exceeded.");
      this.debug("Error Code: Upload Limit Exceeded, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED:
      progress.setStatus("Failed Validation.  Upload skipped.");
      this.debug("Error Code: File Validation Failed, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:
      // If there aren't any files left (they were all cancelled) disable the cancel button
      if (this.getStats().files_queued === 0) {
        document.getElementById(this.customSettings.cancelButtonId).disabled = true;
      }
      progress.setStatus("Cancelled");
      progress.setCancelled();
      break;
    case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:
      progress.setStatus("Stopped");
      break;
    default:
      progress.setStatus("Unhandled Error: " + errorCode);
      this.debug("Error Code: " + errorCode + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
      break;
    }
  } catch (ex) {
        this.debug(ex);
    }
}

function pixiq_comment_uploadComplete(file) {

}

function pixiq_comment_queueComplete(numFilesUploaded) {
}
;
jQuery.fn.tabBlock = function() {
  return this.each(function(){
    var $block = $(this),
    resize = $block.hasClass('resize'),
    $tabs = $block.find('.tab-navigation li'),
    page = 0,
    height = 0,
    $current_tab,
    id,
    $lists = $block.find('.tab-content-wrapper'),
    $current_list = $lists.find('.tab-content.active'),
    $pages = $current_list.find('li.branch'),
    pages = $pages.length,
    has_page = (pages > 0 ? true : false),
    has_pages = (pages > 1 ? true : false),
    $pager_wrapper,
    $pager,
    next = function() {
      page++;
      if (page >= pages) {
        page = 0;
      }
      swap(page);
    },
    prev = function() {
      page--;
      if (page < 0) {
        page = pages - 1;
      }
      swap(page);
    },
    swap = function(i) {
      if (resize) {
        var top = 0; 
        for (j = 0; j < i; j++) { 
          top += $pages.eq(j).outerHeight(true); 
        } 
        height = $pages.eq(i).outerHeight(); 
        $lists.animate({height: height});
      }
      else {
        var top = i * height;
      }
      $current_list.animate({top: '-'+top+'px'});
      $page = $pages.eq(i);
      $page.show();
      $pager.find('a').removeClass('active').eq(i).addClass('active');
      page = i;
    },
    initPager = function() {
      var ul = $('<ul>');
      height = $pages.outerHeight(true);
      for (i = 1; i <= pages; i++) {
        var a = $('<a/>').attr({href: '#', title: i}).text(i).click(function(){
          var j = $(this).attr('title') - 1;
          swap(j);
          return false;
        });
        if (i == (page + 1)) a.addClass('active');
        var li = $('<li>').append(a);
        ul.append(li);
      }
      $pager.html(ul);
      $pager_wrapper.show();
      $block.find('ul.tab-pager').show();
      $block.find('a.next').unbind('click').click(function(){
        next();
        return false;
      });
      $block.find('a.prev').unbind('click').click(function(){
        prev();
        return false;
      });
    },
    adjust = function() {
      if (resize) {
        height = $pages.outerHeight(); 
        $lists.css({height: height});
      }
      else {
        var page_height = 0;
        height = 0;
        for (i = 0; i < pages; i++) {
          var temp = $pages.eq(i).outerHeight(true);
          if (temp > height) {
            height = temp;
            page_height = $pages.eq(i).outerHeight();
          }
        }
        $lists.css({height: page_height});
        $pages.css({height: page_height});
      }
    },
    init = function() {
      $pager_wrapper = $block.find('ul.tab-pager');
      $pager = $pager_wrapper.find('li.pager');
      $tabs.data('page', page);
      if (has_page) {
        $page = $pages.eq(page);
        adjust();
        if (has_pages) {
          initPager();
        }
        if ($tabs.length > 1) {
          $current_tab = $tabs.find('span.active').parent();
          id = $current_tab.attr('class').match(/tab-(\w*)/g);
          $tabs.click(function(){
            $current_tab.data('page', page);
            $current_tab.find('span').removeClass('active');
            $current_tab = $(this);
            $current_tab.find('span').addClass('active');
            id = $current_tab.attr('class').match(/tab-(\w*)/g);
            $current_list.removeClass('active');
            $current_list = $lists.find('ul.'+id).addClass('active');
            $pages = $current_list.find('li.branch');
            page = $current_tab.data('page');
            $page = $pages.eq(page);
            pages = $pages.length;
            has_page = (pages > 0 ? true : false);
            has_pages = (pages > 1 ? true : false);
            adjust();
            $pager_wrapper.hide();
            if (has_pages) {
              initPager();
            }
          });
        }
      }
      if ($current_list.length && $current_list[0].nodeName != 'UL') {
        $current_tab = $tabs.find('span.active').parent();
        id = $current_tab.attr('class').match(/tab-(\w*)/g);
        $tabs.click(function(){
          $current_tab.data('page', page);
          $current_tab.find('span').removeClass('active');
          $current_tab = $(this);
          $current_tab.find('span').addClass('active');
          id = $current_tab.attr('class').match(/tab-(\w*)/g);
          $current_list.removeClass('active');
          $current_list = $lists.find('.'+id).addClass('active');
          $pages = $current_list.find('li.branch');
          page = $current_tab.data('page');
          $page = $pages.eq(page);
          pages = $pages.length;
          has_page = (pages > 0 ? true : false);
          has_pages = (pages > 1 ? true : false);
        });
      }
    };
    init();
  });
};


Drupal.behaviors.tabbedBlock = function() { 
  $('.tab-block').tabBlock();
};
Drupal.behaviors.pixiqAnalytics = function(context){
  if (Drupal.settings.analytics.nid) {
    var url = Drupal.settings.basePath+'pixiq_analytics.php';
    $.ajax({
      url: url,
      data: Drupal.settings.analytics,
      cache: false
    });
  }
};
/**
 * jquery.simpletip 1.3.1. A simple tooltip plugin
 * 
 * Copyright (c) 2009 Craig Thompson
 * http://craigsworks.com
 *
 * Licensed under GPLv3
 * http://www.opensource.org/licenses/gpl-3.0.html
 *
 * Launch  : February 2009
 * Version : 1.3.1
 * Released: February 5, 2009 - 11:04am
 */
(function($){function Simpletip(elem,conf){var self=this;elem=jQuery(elem);var tooltip=jQuery(document.createElement('div')).addClass(conf.baseClass).addClass((conf.fixed)?conf.fixedClass:'').addClass((conf.persistent)?conf.persistentClass:'').html(conf.content).appendTo(elem);if(!conf.hidden)tooltip.show();else tooltip.hide();if(!conf.persistent){elem.hover(function(event){self.show(event)},function(){self.hide()});if(!conf.fixed){elem.mousemove(function(event){if(tooltip.css('display')!=='none')self.updatePos(event);});};}else
{elem.click(function(event){if(event.target===elem.get(0)){if(tooltip.css('display')!=='none')self.hide();else
self.show();};});jQuery(window).mousedown(function(event){if(tooltip.css('display')!=='none'){var check=(conf.focus)?jQuery(event.target).parents('.tooltip').andSelf().filter(function(){return this===tooltip.get(0)}).length:0;if(check===0)self.hide();};});};jQuery.extend(self,{getVersion:function(){return[1,2,0];},getParent:function(){return elem;},getTooltip:function(){return tooltip;},getPos:function(){return tooltip.offset();},setPos:function(posX,posY){var elemPos=elem.offset();if(typeof posX=='string')posX=parseInt(posX)+elemPos.left;if(typeof posY=='string')posY=parseInt(posY)+elemPos.top;tooltip.css({left:posX,top:posY});return self;},show:function(event){conf.onBeforeShow.call(self);self.updatePos((conf.fixed)?null:event);switch(conf.showEffect){case'fade':tooltip.fadeIn(conf.showTime);break;case'slide':tooltip.slideDown(conf.showTime,self.updatePos);break;case'custom':conf.showCustom.call(tooltip,conf.showTime);break;default:case'none':tooltip.show();break;};tooltip.addClass(conf.activeClass);conf.onShow.call(self);return self;},hide:function(){conf.onBeforeHide.call(self);switch(conf.hideEffect){case'fade':tooltip.fadeOut(conf.hideTime);break;case'slide':tooltip.slideUp(conf.hideTime);break;case'custom':conf.hideCustom.call(tooltip,conf.hideTime);break;default:case'none':tooltip.hide();break;};tooltip.removeClass(conf.activeClass);conf.onHide.call(self);return self;},update:function(content){tooltip.html(content);conf.content=content;return self;},load:function(uri,data){conf.beforeContentLoad.call(self);tooltip.load(uri,data,function(){conf.onContentLoad.call(self);});return self;},boundryCheck:function(posX,posY){var newX=posX+tooltip.outerWidth();var newY=posY+tooltip.outerHeight();var windowWidth=jQuery(window).width()+jQuery(window).scrollLeft();var windowHeight=jQuery(window).height()+jQuery(window).scrollTop();return[(newX>=windowWidth),(newY>=windowHeight)];},updatePos:function(event){var tooltipWidth=tooltip.outerWidth();var tooltipHeight=tooltip.outerHeight();if(!event&&conf.fixed){if(conf.position.constructor==Array){posX=parseInt(conf.position[0]);posY=parseInt(conf.position[1]);}else if(jQuery(conf.position).attr('nodeType')===1){var offset=jQuery(conf.position).offset();posX=offset.left;posY=offset.top;}else
{var elemPos=elem.offset();var elemWidth=elem.outerWidth();var elemHeight=elem.outerHeight();switch(conf.position){case'top':var posX=elemPos.left-(tooltipWidth/2)+(elemWidth/2);var posY=elemPos.top-tooltipHeight;break;case'bottom':var posX=elemPos.left-(tooltipWidth/2)+(elemWidth/2);var posY=elemPos.top+elemHeight;break;case'left':var posX=elemPos.left-tooltipWidth;var posY=elemPos.top-(tooltipHeight/2)+(elemHeight/2);break;case'right':var posX=elemPos.left+elemWidth;var posY=elemPos.top-(tooltipHeight/2)+(elemHeight/2);break;default:case'default':var posX=(elemWidth/2)+elemPos.left+20;var posY=elemPos.top;break;};};}else
{var posX=event.pageX;var posY=event.pageY;};if(typeof conf.position!='object'){posX=posX+conf.offset[0];posY=posY+conf.offset[1];if(conf.boundryCheck){var overflow=self.boundryCheck(posX,posY);if(overflow[0])posX=posX-(tooltipWidth/2)-(2*conf.offset[0]);if(overflow[1])posY=posY-(tooltipHeight/2)-(2*conf.offset[1]);}}else
{if(typeof conf.position[0]=="string")posX=String(posX);if(typeof conf.position[1]=="string")posY=String(posY);};self.setPos(posX,posY);return self;}});};jQuery.fn.simpletip=function(conf){var api=jQuery(this).eq(typeof conf=='number'?conf:0).data("simpletip");if(api)return api;var defaultConf={content:'A simple tooltip',persistent:false,focus:false,hidden:true,position:'default',offset:[0,0],boundryCheck:true,fixed:true,showEffect:'fade',showTime:150,showCustom:null,hideEffect:'fade',hideTime:150,hideCustom:null,baseClass:'tooltip',activeClass:'active',fixedClass:'fixed',persistentClass:'persistent',focusClass:'focus',onBeforeShow:function(){},onShow:function(){},onBeforeHide:function(){},onHide:function(){},beforeContentLoad:function(){},onContentLoad:function(){}};jQuery.extend(defaultConf,conf);this.each(function(){var el=new Simpletip(jQuery(this),defaultConf);jQuery(this).data("simpletip",el);});return this;};})();;
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */
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("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}})());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}})());;
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright © 2008 - 2009 Linotype GmbH, www.linotype.com. All rights reserved.
 * This font software may not be reproduced, modified, disclosed or transferred
 * without the express written approval of Linotype GmbH.
 * 
 * Trademark:
 * Please refer to the Copyright section for the font trademark attribution
 * notices.
 * 
 * Full name:
 * DINNextRoundedLTPro-Regular
 * 
 * Description:
 * DIN Next is a typeface family inspired by the classic industrial German
 * engineering designs, DIN 1451 Engschrift and Mittelschrift. Akira Kobayashi
 * began by revising these two faces—who names just mean condensed and
 * regular—before expanding them into a new family with seven weights (Light to
 * Black). Each weight ships in three varieties: Regular, Italic, and Condensed,
 * bringing the total number of fonts in the DIN Next family to 21. DIN Next is
 * part of Linotype’s Platinum Collection. Linotype has been supplying its
 * customers with the two DIN 1451 fonts since 1980. Recently, they have become
 * more popular than ever, with designers regularly asking for additional weights.
 * The abbreviation "DIN" stands for “Deutsches Institut für Normung e.V.,” which
 * is the German Institute for Industrial Standardization. In 1936 the German
 * Standard Committee settled upon DIN 1451 as the standard font for the areas of
 * technology, traffic, administration and business. The design was to be used on
 * German street signs and house numbers. The committee wanted a sans serif,
 * thinking it would be more legible, straightforward, and easy to reproduce. They
 * did not intend for the design to be used for advertisements and other
 * artistically oriented purposes. Nevertheless, because DIN 1451 was seen all over
 * Germany on signs for town names and traffic directions, it became familiar
 * enough to make its way onto the palettes of graphic designers and advertising
 * art directors. The digital version of DIN 1451 would go on to be adopted and
 * used by designers in other countries as well, solidifying its worldwide design
 * reputation. There are many subtle differences in DIN Next’s letters when
 * compared withe DIN 1451 original. These were added by Kobayashi to make the new
 * family even more versatile in 21st-century media. For instance, although DIN
 * 1451’s corners are all pointed angles, DIN Next has rounded them all slightly.
 * Even this softening is a nod to part of DIN 1451’s past, however. Many of the
 * signs that use DIN 1451 are cut with routers, which cannot make perfect corners;
 * their rounded heads cut rounded corners best. Linotype’s DIN 1451 Engschrift and
 * Mittelschrift are certified by the German DIN Institute for use on official
 * signage projects. Since DIN Next is a new design, these applications within
 * Germany are not possible with it. However, DIN Next may be used for any other
 * project, and it may be used for industrial signage in any other country! DIN
 * Next has been tailored especially for graphic designers, but its industrial
 * heritage makes it surprisingly functional in just about any application.
 * 
 * Manufacturer:
 * Linotype GmbH
 * 
 * Designer:
 * Linotype Design Studio
 * 
 * Vendor URL:
 * http://www.linotype.com
 * 
 * License information:
 * http://www.linotype.com/license
 */
Cufon.registerFont({"w":195,"face":{"font-family":"DIN Next Round","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 15 5 3 2 2 3 5 2 3","ascent":"270","descent":"-90","x-height":"4","cap-height":"2","bbox":"-4 -271.926 301 69","underline-thickness":"18","underline-position":"-18","stemh":"22","stemv":"23","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":87,"k":{"Y":5,"W":6,"T":4,"V":10}},"!":{"d":"51,-66v-9,0,-15,-5,-15,-15r0,-149v0,-10,6,-17,15,-17v9,0,15,7,15,17r0,149v0,10,-6,15,-15,15xm30,-19v0,-11,10,-20,21,-20v11,0,20,9,20,20v0,11,-9,21,-20,21v-11,0,-21,-10,-21,-21","w":101},"\"":{"d":"83,-179v-20,-1,-12,-36,-12,-55v0,-8,5,-13,12,-13v19,2,11,36,11,55v0,8,-4,13,-11,13xm36,-179v-20,-1,-12,-36,-12,-55v0,-8,5,-13,12,-13v19,2,11,36,11,55v0,8,-4,13,-11,13","w":118,"k":{"V":-6,",":31,".":31,"T":-14,"W":-6,"Y":-3,"t":-1,"A":27,"J":35}},"#":{"d":"30,-13r8,-64v-14,0,-33,3,-33,-12v0,-16,22,-10,36,-11r7,-50v-14,-1,-34,4,-34,-11v0,-16,23,-10,37,-11r9,-63v1,-7,5,-12,12,-12v8,0,12,6,11,15r-8,60r47,0r9,-63v1,-7,6,-12,12,-12v8,0,12,6,11,15r-8,60v14,1,35,-4,35,11v0,16,-23,10,-38,11r-7,50v14,1,36,-5,36,11v0,17,-23,11,-39,12r-9,68v-1,7,-5,11,-12,11v-8,0,-12,-6,-11,-15r8,-64r-47,0r-9,68v-1,7,-5,11,-12,11v-8,0,-12,-6,-11,-15xm65,-100r48,0r7,-50r-48,0","w":189},"$":{"d":"90,4v-31,-4,-60,-8,-69,-31v9,-33,45,7,69,3r0,-87v-90,-7,-81,-133,0,-137v-6,-19,13,-35,18,-14r0,14v22,3,47,6,53,25v-5,29,-33,2,-53,3r0,83v91,7,82,134,0,140v0,11,2,24,-9,24v-10,0,-9,-13,-9,-23xm90,-140r0,-80v-44,4,-51,73,0,80xm108,-25v43,-5,52,-75,0,-82r0,82"},"%":{"d":"72,5v-9,0,-13,-9,-9,-17r135,-232v3,-9,21,-7,20,4v0,2,0,5,-1,7r-135,232v-2,4,-5,6,-10,6xm71,-248v35,6,45,15,45,65v0,51,-11,57,-45,64v-34,-6,-44,-15,-44,-64v0,-51,9,-58,44,-65xm71,-227v-21,6,-21,8,-21,44v0,36,0,37,21,43v21,-5,22,-7,22,-43v0,-37,-1,-38,-22,-44xm209,3v-34,-5,-44,-14,-44,-64v0,-52,10,-58,44,-65v34,6,44,16,44,65v0,51,-9,57,-44,64xm209,-105v-21,6,-21,7,-21,44v0,37,0,37,21,43v21,-5,21,-7,21,-43v0,-37,0,-37,-21,-44","w":280},"&":{"d":"25,-59v0,-28,16,-51,49,-78v-23,-31,-31,-42,-31,-59v0,-31,24,-53,56,-53v33,0,57,23,57,52v0,21,-11,38,-44,64r46,60v10,-9,15,-25,30,-29v29,8,-4,38,-13,51v8,7,13,22,26,23v9,0,14,6,14,14v-10,32,-52,2,-59,-15v-37,52,-133,40,-131,-30xm96,-154v27,-22,31,-30,31,-43v0,-15,-12,-26,-28,-26v-17,0,-27,11,-27,26v0,10,5,17,24,43xm54,-62v0,47,55,54,86,11r-50,-65v-25,20,-36,35,-36,54","w":227},"'":{"d":"36,-179v-20,-1,-12,-36,-12,-55v0,-8,5,-13,12,-13v19,2,11,36,11,55v0,8,-4,13,-11,13","w":71,"k":{"V":-6,",":31,".":31,"T":-14,"W":-6,"Y":-3,"t":-1,"A":27,"J":35}},"(":{"d":"84,-257v-41,90,-42,188,0,278v0,13,-19,14,-24,3v-49,-88,-49,-196,0,-284v5,-11,23,-10,24,3","w":102,"k":{"j":-3}},")":{"d":"18,21v42,-90,43,-188,0,-278v1,-12,18,-14,24,-3v48,89,49,195,0,284v-6,11,-23,10,-24,-3","w":102},"*":{"d":"62,-140v-14,0,-8,-24,-9,-38v-11,4,-32,27,-39,7v3,-13,21,-14,30,-22v-9,-8,-27,-9,-30,-23v7,-19,28,3,39,8v-4,-19,5,-56,18,-29r-1,29v11,-4,31,-27,39,-8v-2,14,-22,15,-31,23v10,8,28,9,31,22v-6,20,-28,-4,-39,-8v-1,14,7,39,-8,39","w":123},"+":{"d":"98,-22v-25,1,-7,-46,-16,-64v-21,-3,-61,9,-61,-13v0,-26,45,-7,63,-16v3,-22,-9,-62,14,-62v24,0,6,46,15,64v22,3,62,-9,62,14v0,24,-46,6,-64,15v-3,22,9,61,-13,62"},",":{"d":"16,36v0,-22,12,-39,18,-59v5,-15,28,-15,28,3v0,22,-13,39,-19,59v-4,16,-27,14,-27,-3","w":82,"k":{" ":8,"\"":31,"'":31}},"-":{"d":"30,-82v-9,0,-15,-6,-15,-14v0,-8,6,-14,15,-14r77,0v9,0,15,6,15,14v0,8,-6,14,-15,14r-77,0","w":136,"k":{"y":5,"x":12,"v":5,"X":17,"V":22,"T":25,"W":8,"Y":32,"w":3,"A":4,"J":15,"S":3}},".":{"d":"22,-19v0,-11,9,-20,20,-20v11,0,21,9,21,20v0,11,-10,21,-21,21v-11,0,-20,-10,-20,-21","w":84,"k":{" ":8,"\"":31,"'":31}},"\/":{"d":"39,5v-10,0,-17,-8,-13,-18r73,-226v3,-15,27,-14,26,2r-74,232v-2,7,-6,10,-12,10","w":150,"k":{"7":-9}},"0":{"d":"31,-42v-3,-9,-6,-22,-6,-80v0,-58,3,-71,6,-80v14,-62,120,-62,134,0v3,9,5,22,5,80v0,58,-2,71,-5,80v-14,61,-120,61,-134,0xm60,-49v10,33,66,33,75,0v3,-8,4,-17,4,-73v0,-56,-1,-66,-4,-74v-9,-33,-65,-33,-75,0v-3,8,-3,18,-3,74v0,56,0,65,3,73"},"1":{"d":"90,-14r-1,-193v-13,8,-23,21,-40,25v-15,0,-19,-21,-6,-28v19,-11,38,-32,61,-37v9,0,16,7,16,18r0,215v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16"},"2":{"d":"96,-221v-34,-3,-31,35,-52,42v-11,0,-19,-9,-15,-20v6,-25,28,-50,69,-50v70,-1,82,78,44,126r-75,95r87,0v9,0,14,6,14,14v0,8,-5,14,-14,14r-114,0v-20,-2,-16,-20,-5,-33r83,-107v27,-27,23,-78,-22,-81"},"3":{"d":"97,4v-39,0,-64,-19,-70,-49v0,-8,6,-14,14,-14v20,7,25,35,56,35v27,0,42,-18,42,-44v0,-28,-19,-46,-48,-45v-9,0,-14,-6,-14,-14v0,-9,6,-15,17,-14v24,0,40,-15,40,-41v0,-23,-15,-39,-39,-39v-31,0,-30,29,-51,34v-8,0,-14,-5,-14,-13v0,-31,28,-46,66,-49v73,-5,88,92,39,120v16,6,35,28,35,61v0,42,-30,72,-73,72"},"4":{"d":"33,-44v-18,-1,-19,-17,-11,-33r74,-159v5,-16,29,-13,29,4v-21,56,-50,105,-73,160v21,-2,49,3,67,-2v3,-24,-10,-66,15,-67v28,-1,6,51,18,69v27,-8,41,25,14,28v-6,1,-14,-2,-17,2v0,19,5,44,-15,44v-22,0,-11,-31,-17,-46r-84,0"},"5":{"d":"100,4v-37,0,-68,-19,-68,-49v0,-8,6,-14,15,-14v20,6,23,38,53,35v28,-3,39,-19,39,-55v0,-36,-10,-53,-38,-55v-25,-2,-33,30,-52,30v-9,0,-14,-6,-14,-16r0,-111v0,-8,5,-14,13,-14r104,0v9,0,15,6,15,14v0,8,-6,14,-15,14v-29,2,-64,-4,-89,2v1,23,-2,49,1,70v6,-9,21,-17,41,-17v45,2,65,29,65,83v0,54,-24,83,-70,83"},"6":{"d":"98,4v-67,0,-89,-75,-59,-131r60,-111v5,-13,27,-11,27,5v-11,36,-34,61,-48,94v45,-20,95,13,95,67v0,48,-33,76,-75,76xm54,-71v0,27,17,47,44,47v27,0,44,-20,44,-47v0,-27,-17,-46,-44,-46v-27,0,-44,19,-44,46"},"7":{"d":"72,2v-10,0,-19,-12,-13,-21r77,-198r-74,0v-6,10,4,38,-17,38v-21,0,-12,-32,-14,-52v0,-9,5,-14,14,-14r110,0v18,2,18,16,11,34r-80,203v-3,6,-8,10,-14,10","k":{"\/":18}},"8":{"d":"98,4v-77,8,-100,-105,-41,-133v-50,-28,-31,-120,41,-120v71,0,90,91,41,120v57,27,36,142,-41,133xm98,-143v24,0,38,-17,38,-39v0,-22,-15,-39,-38,-39v-23,0,-39,17,-39,39v0,22,15,39,39,39xm53,-69v0,26,18,45,45,45v27,0,44,-19,44,-45v0,-26,-17,-45,-44,-45v-27,0,-45,19,-45,45"},"9":{"d":"83,2v-11,0,-18,-13,-12,-23r46,-85v-45,20,-95,-13,-95,-67v0,-48,34,-76,76,-76v67,0,88,76,58,131r-60,111v-3,5,-7,9,-13,9xm98,-128v27,0,43,-19,43,-46v0,-27,-16,-47,-43,-47v-27,0,-45,20,-45,47v0,27,18,46,45,46"},":":{"d":"44,-133v-11,0,-21,-10,-21,-21v0,-11,10,-20,21,-20v11,0,20,9,20,20v0,11,-9,21,-20,21xm23,-19v0,-11,10,-20,21,-20v11,0,20,9,20,20v0,11,-9,21,-20,21v-11,0,-21,-10,-21,-21","w":87},";":{"d":"44,-133v-11,0,-21,-10,-21,-21v0,-11,10,-20,21,-20v11,0,20,9,20,20v0,11,-9,21,-20,21xm13,36v0,-22,12,-39,18,-59v5,-15,28,-15,28,3v0,22,-12,39,-18,59v-5,15,-28,15,-28,-3","w":87},"<":{"d":"35,-82v-19,-7,-19,-27,0,-34r126,-51v17,-1,18,22,4,27r-103,41r103,41v14,4,12,27,-4,26v-45,-14,-83,-34,-126,-50"},"=":{"d":"35,-122v-9,0,-14,-5,-14,-13v0,-8,5,-14,14,-14r125,0v9,0,15,6,15,14v0,8,-6,13,-15,13r-125,0xm35,-50v-9,0,-14,-5,-14,-13v0,-8,5,-14,14,-14r125,0v9,0,15,6,15,14v0,8,-6,13,-15,13r-125,0"},">":{"d":"40,-33v-10,3,-19,-2,-19,-12v0,-6,3,-10,9,-13r103,-42r-103,-40v-17,-7,-7,-33,10,-26r120,50v20,7,20,27,0,34"},"?":{"d":"16,-195v4,-32,29,-53,66,-54v63,-1,86,71,45,112v-10,16,-33,34,-32,57v0,10,-6,16,-15,16v-38,-15,4,-69,18,-83v29,-29,25,-74,-16,-74v-19,0,-33,10,-37,27v-5,19,-28,15,-29,-1xm60,-19v0,-11,9,-20,20,-20v11,0,21,9,21,20v0,11,-10,21,-21,21v-11,0,-20,-10,-20,-21","w":164},"@":{"d":"160,22v35,0,56,-7,78,-16v11,0,14,16,4,21v-99,50,-225,-7,-225,-123v0,-83,58,-142,142,-142v84,0,142,59,142,142v0,80,-71,97,-101,50v-8,17,-23,26,-48,26v-39,0,-56,-28,-56,-75v0,-71,64,-93,97,-54v-1,-11,2,-18,13,-18v8,0,12,5,12,13v3,39,-14,111,26,111v18,0,31,-15,31,-53v0,-70,-45,-118,-116,-118v-71,0,-117,48,-117,118v0,71,47,118,118,118xm122,-95v0,33,8,51,35,51v27,0,36,-18,36,-51v0,-33,-9,-50,-36,-50v-27,0,-35,18,-35,50","w":321},"A":{"d":"27,2v-10,2,-18,-11,-14,-22r76,-209v5,-25,34,-23,42,0r76,216v0,18,-25,20,-31,3r-17,-47r-100,0v-10,19,-9,55,-32,59xm69,-86r80,0r-40,-112","w":218,"k":{"y":9,"v":10,"V":15,"?":13}},"B":{"d":"30,-14r0,-216v0,-9,6,-15,15,-15r76,0v80,-10,95,95,40,118v16,8,38,23,38,57v0,75,-78,73,-154,70v-9,0,-15,-5,-15,-14xm62,-141v35,5,101,9,101,-36v0,-44,-54,-40,-99,-39v-6,20,0,51,-2,75xm64,-110v-5,21,-3,60,0,81v46,1,103,6,103,-40v0,-46,-56,-43,-103,-41","w":217,"k":{"Y":5,"J":3,"A":1,"X":4,"V":1}},"C":{"d":"110,4v-64,0,-88,-44,-88,-126v0,-83,23,-127,88,-127v34,0,66,17,75,50v0,9,-7,15,-15,15v-21,-7,-32,-39,-60,-35v-48,7,-56,35,-56,97v0,63,8,89,56,96v28,4,39,-27,60,-35v8,0,15,6,15,15v-8,33,-42,50,-75,50","w":202,"k":{"y":6,"T":4}},"D":{"d":"203,-122v0,110,-52,129,-158,122v-9,0,-15,-5,-15,-14r0,-216v3,-28,51,-10,77,-15v74,3,96,40,96,123xm170,-122v10,-83,-36,-102,-108,-91r2,183v75,5,114,-10,106,-92","w":224,"k":{"X":6,"V":4,",":6,".":6,"T":6,"W":3,"Y":6,"A":4,"J":4,"Z":2}},"E":{"d":"30,-14r0,-216v0,-9,6,-15,15,-15r126,0v10,0,15,7,15,15v0,9,-5,15,-15,15v-35,2,-78,-4,-109,2v2,24,-3,54,2,74r89,0v10,0,16,7,16,15v0,9,-6,15,-16,15v-29,2,-66,-4,-91,2v2,25,-3,56,2,77r107,0v10,0,15,7,15,15v0,9,-5,15,-15,15r-126,0v-9,0,-15,-5,-15,-14","w":202,"k":{"y":6,"v":6,"w":6}},"F":{"d":"30,-15r0,-215v0,-9,6,-15,15,-15r125,0v10,0,16,7,16,15v0,9,-6,15,-16,15v-35,2,-77,-4,-108,2v2,25,-3,56,2,77r89,0v10,0,15,7,15,15v0,9,-5,15,-15,15v-29,2,-66,-4,-91,2r0,89v0,11,-7,17,-16,17v-10,0,-16,-6,-16,-17","w":200,"k":{"u":11,"s":6,"r":11,"q":5,"p":11,"o":13,"n":11,"m":11,"g":5,"e":13,"d":5,"c":13,"a":17,"J":18,"A":22,".":36,",":36,"y":11}},"G":{"d":"111,4v-66,-3,-89,-44,-89,-126v0,-84,23,-127,89,-127v40,0,72,16,79,50v0,16,-22,18,-29,5v-10,-18,-27,-25,-50,-25v-50,0,-57,34,-57,97v0,64,7,90,57,96v39,4,66,-35,56,-75v-21,-2,-54,7,-53,-15v1,-25,47,-15,72,-15v12,0,15,9,15,22v0,66,-30,115,-90,113","w":222,"k":{"X":3,"V":3,",":3,".":3,"T":9,"W":3,"Y":5,"A":5,"J":3}},"H":{"d":"30,-15r0,-214v0,-11,6,-18,16,-18v9,0,16,7,16,18v2,29,-4,65,2,90v35,-2,78,4,109,-2r0,-88v0,-11,6,-18,16,-18v9,0,16,7,16,18r0,214v0,11,-7,17,-16,17v-10,0,-16,-6,-16,-17v-2,-30,4,-68,-2,-94v-35,2,-78,-4,-109,2r0,92v0,11,-7,17,-16,17v-10,0,-16,-6,-16,-17","w":235},"I":{"d":"30,-15r0,-214v0,-11,6,-18,16,-18v9,0,16,7,16,18r0,214v0,11,-7,17,-16,17v-10,0,-16,-6,-16,-17","w":92},"J":{"d":"71,4v-26,0,-53,-9,-58,-30v8,-30,37,0,58,0v27,0,45,-15,45,-52r0,-151v0,-11,6,-18,16,-18v9,0,16,7,16,18r0,151v0,55,-29,82,-77,82","w":176,"k":{"A":4,"J":3}},"K":{"d":"30,-15r0,-214v0,-11,6,-18,16,-18v9,0,16,7,16,18r0,116r105,-127v7,-11,28,-8,27,7v-15,35,-46,55,-67,85v24,46,54,86,75,135v0,17,-22,19,-30,5r-66,-115r-44,53v-3,25,11,71,-16,72v-10,0,-16,-6,-16,-17","w":214,"k":{"y":9,"v":13,"-":15,"\"":2,"'":2,"C":6,"G":6,"O":6,"Q":6,"*":8,"c":9,"e":9,"o":9,"U":6,"d":1,"q":1,"u":4,"w":9,"S":1,"g":1,"a":4}},"L":{"d":"30,-16r0,-213v0,-11,7,-18,16,-18v9,0,16,7,16,18r2,199r107,0v10,0,15,7,15,15v0,9,-5,15,-15,15r-125,0v-10,0,-16,-6,-16,-16","w":193,"k":{"y":6,"v":12,"V":26,"?":4,"-":11,",":-5,".":-5,"\"":35,"'":35,"C":9,"G":9,"O":9,"Q":9,"*":18,"U":9,"T":32,"W":13,"Y":32,"w":11}},"M":{"d":"30,-14r0,-213v0,-25,33,-27,38,-2r69,153r67,-153v5,-24,38,-24,38,2r0,213v0,10,-7,16,-16,16v-9,0,-14,-6,-14,-16r-1,-160r-57,124v-10,23,-27,22,-37,0r-57,-124r0,160v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16","w":271},"N":{"d":"30,-14r0,-213v1,-26,32,-25,39,-3r106,172r0,-172v0,-10,6,-17,15,-17v9,0,15,7,15,17r0,212v0,27,-31,24,-39,3r-106,-171r0,172v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16","w":235},"O":{"d":"201,-122v0,83,-24,126,-90,126v-66,0,-89,-44,-89,-126v0,-84,23,-127,89,-127v66,0,90,45,90,127xm111,-219v-50,6,-57,34,-57,97v0,64,7,89,57,96v50,-6,59,-33,58,-96v0,-65,-8,-90,-58,-97","w":222,"k":{"X":3,"V":3,",":3,".":3,"T":9,"W":3,"Y":5,"A":5,"J":3}},"P":{"d":"30,-15r0,-215v0,-9,6,-15,15,-15r75,0v49,0,79,29,79,73v0,65,-62,80,-135,73v-6,23,0,57,-2,84v0,11,-7,17,-16,17v-10,0,-16,-6,-16,-17xm62,-131v43,7,110,6,105,-41v4,-47,-61,-48,-105,-41r0,82","w":213,"k":{"o":2,"e":2,"c":2,"a":7,"Y":1,"J":25,"A":23,".":50,",":50,"'":-8,"\"":-8,"X":5}},"Q":{"d":"201,-122v0,47,-3,63,-16,88v13,9,39,39,9,46v-14,-2,-19,-16,-29,-23v-75,40,-160,-6,-143,-111v-5,-84,23,-127,89,-127v66,0,90,45,90,127xm54,-122v0,77,30,110,88,88v-12,-9,-41,-39,-11,-47v16,1,20,15,30,23v6,-17,8,-27,8,-64v0,-65,-8,-90,-58,-97v-50,6,-57,34,-57,97","w":222,"k":{"Y":6,"W":3,";":-1,":":-1,".":-1,",":-1,"V":4,"!":-4}},"R":{"d":"46,2v-10,0,-16,-6,-16,-17r0,-215v0,-9,6,-15,15,-15r76,0v88,-9,104,118,31,137v15,32,34,60,46,95v1,17,-23,20,-31,5r-48,-96v-18,1,-42,-3,-57,2r0,87v0,11,-7,17,-16,17xm62,-136v42,6,105,9,105,-38v0,-47,-62,-45,-105,-39r0,77","w":222,"k":{"V":3,"-":9,"c":3,"e":3,"o":3,"T":2,"W":3,"Y":5,"d":3,"q":3,"J":1,"a":4}},"S":{"d":"179,-218v-10,33,-48,-7,-74,-1v-31,0,-47,17,-47,40v0,24,27,36,63,41v49,7,73,30,73,69v0,42,-31,73,-90,73v-38,0,-74,-10,-84,-37v0,-8,7,-15,16,-15v24,7,43,22,71,22v35,0,54,-17,54,-42v0,-24,-23,-36,-63,-41v-49,-6,-72,-29,-72,-68v0,-44,31,-72,80,-72v31,0,66,6,73,31","w":212,"k":{"y":3,"x":3,"v":5,"V":3,"-":-5,"W":3,"Y":8,"w":3,"A":2}},"T":{"d":"22,-245r149,0v10,0,16,6,16,15v-1,28,-52,8,-74,17r0,198v0,11,-7,17,-16,17v-10,0,-16,-6,-16,-17r0,-198v-20,-10,-75,12,-75,-17v0,-9,6,-15,16,-15","w":193,"k":{"y":24,"x":17,"v":24,"?":-7," ":4,"-":25,",":35,".":35,":":9,";":9,"\"":-14,"'":-14,"C":9,"G":9,"O":9,"Q":9,"c":32,"e":32,"o":32,"T":-4,"d":17,"q":17,"f":3,"u":26,"t":3,"w":24,"A":28,"J":39,"a":32,"m":24,"n":24,"p":24,"r":24,"s":24,"z":13}},"U":{"d":"170,-86r0,-143v0,-11,6,-18,16,-18v9,0,16,7,16,18r0,143v0,60,-34,90,-87,90v-52,0,-87,-30,-87,-90r0,-143v0,-11,7,-18,17,-18v9,0,15,7,15,18v6,77,-27,205,55,203v32,0,55,-20,55,-60","w":230,"k":{",":8,".":8,"A":4,"J":3}},"V":{"d":"40,-234r63,182r60,-182v4,-18,30,-16,30,3v-21,74,-50,142,-72,214v-8,25,-30,25,-39,0r-73,-214v0,-18,25,-21,31,-3","w":202,"k":{"z":6,"w":3,"u":10,"s":12,"r":11,"q":15,"p":11,"o":16,"n":11,"m":11,"g":15,"f":1,"e":16,"d":15,"c":16,"a":15,"S":3,"Q":3,"O":3,"J":20,"G":3,"C":3,"A":15,";":11,":":11,".":32,"-":22,",":32,"'":-6,"\"":-6,"y":3,"x":5,"v":3," ":10}},"W":{"d":"231,-15v-4,23,-28,23,-34,0r-49,-171r-49,171v-5,23,-30,23,-35,0r-54,-216v-1,-19,26,-22,31,-2r43,174r48,-172v4,-21,28,-21,33,0r49,172r41,-174v2,-21,35,-15,31,2","w":295,"k":{"y":3,"x":3,"v":3," ":6,"-":8,",":22,".":22,":":5,";":5,"\"":-6,"'":-6,"C":3,"G":3,"O":3,"Q":3,"c":9,"e":9,"o":9,"d":8,"q":8,"f":1,"u":4,"A":6,"J":16,"S":1,"g":8,"a":11,"m":3,"n":3,"p":3,"r":3,"s":12,"z":4}},"X":{"d":"157,-7r-57,-92r-57,92v-7,15,-29,10,-29,-6v17,-43,47,-75,68,-114v-20,-36,-46,-66,-62,-105v0,-15,20,-20,29,-6r51,82r52,-82v6,-15,29,-9,29,6v-16,40,-43,69,-63,105r66,104v11,20,-16,34,-27,16","w":200,"k":{"w":8,"q":1,"o":1,"e":1,"d":1,"c":1,"Q":3,"O":3,"G":3,"C":3,"-":17,"y":9,"v":10}},"Y":{"d":"180,-232v-20,47,-47,88,-69,133r0,84v0,11,-7,17,-16,17v-9,0,-16,-6,-16,-17r0,-84r-70,-133v-1,-17,22,-19,30,-5r57,104r55,-104v5,-15,30,-11,29,5","w":189,"k":{"y":11,"x":14,"v":9," ":5,"-":32,",":35,".":35,":":18,";":18,"\"":-3,"'":-3,"C":5,"G":5,"O":5,"Q":5,"c":18,"e":18,"o":18,"d":19,"q":19,"f":1,"u":17,"w":8,"A":19,"J":25,"S":8,"g":19,"a":19,"m":17,"n":17,"p":17,"r":17,"s":19,"z":14}},"Z":{"d":"162,0r-130,0v-22,-2,-19,-21,-8,-38r115,-177r-104,0v-10,0,-16,-7,-16,-15v0,-9,6,-15,16,-15r126,0v20,3,21,19,9,37r-116,178r108,0v10,0,16,7,16,15v0,9,-6,15,-16,15","w":192,"k":{"y":6,"v":3,"c":6,"e":6,"o":6,"u":6,"w":6}},"[":{"d":"90,18v0,19,-31,10,-49,12v-8,0,-12,-4,-12,-12r0,-272v0,-20,30,-12,47,-12v9,0,14,4,14,12v2,17,-23,9,-33,14r2,246v0,0,32,-2,31,12","w":101,"k":{"j":-3}},"\\":{"d":"125,-8v1,16,-21,17,-26,3r-74,-232v0,-15,21,-17,26,-2","w":150},"]":{"d":"72,18v0,20,-30,12,-47,12v-9,0,-13,-4,-13,-12v0,-17,22,-9,32,-14r-2,-246v-14,0,-30,3,-30,-12v0,-20,31,-12,48,-12v8,0,12,4,12,12r0,272","w":101},"^":{"d":"169,-109v1,16,-20,16,-26,3r-46,-101r-44,101v-4,14,-27,13,-27,-3v15,-44,38,-83,55,-125v6,-17,25,-17,33,0"},"_":{"d":"173,48r-173,0r0,-21r173,0r0,21","w":172},"`":{"d":"98,-218v9,14,-11,29,-20,15v-8,-13,-20,-24,-23,-40v-2,-11,16,-16,23,-6","w":155},"a":{"d":"31,-151v7,-20,30,-23,60,-25v72,-4,71,57,68,126v-2,19,9,23,12,37v-4,26,-32,12,-36,-4v-26,35,-122,25,-114,-31v-5,-54,58,-52,109,-55v11,-52,-55,-52,-86,-35v-8,0,-13,-5,-13,-13xm86,-22v35,-1,48,-18,44,-53v-24,-6,-86,-5,-80,26v0,18,13,27,36,27","w":187,"k":{"y":1,"v":2,"w":1}},"b":{"d":"175,-86v0,52,-20,90,-66,90v-26,0,-41,-9,-49,-23v1,13,-4,21,-15,21v-9,0,-15,-6,-15,-16r0,-216v0,-10,6,-17,15,-17v29,6,10,64,15,94v8,-13,23,-23,49,-23v46,0,67,39,66,90xm60,-86v0,37,11,62,42,62v31,0,42,-25,42,-62v0,-37,-11,-62,-42,-62v-31,0,-42,25,-42,62","w":193,"k":{"y":1,"x":3,"v":1}},"c":{"d":"152,-32v-6,24,-29,36,-59,36v-48,0,-74,-31,-74,-90v0,-59,25,-90,74,-90v30,0,53,12,59,36v-13,34,-35,-13,-59,-8v-31,0,-43,25,-43,62v0,38,12,61,43,62v22,1,28,-22,46,-22v8,0,13,6,13,14","w":169,"k":{"a":4}},"d":{"d":"19,-86v0,-52,20,-90,66,-90v26,0,41,10,49,23r0,-77v0,-10,6,-17,15,-17v9,0,15,7,15,17r0,216v0,10,-6,16,-15,16v-11,0,-16,-8,-15,-21v-8,14,-23,23,-49,23v-45,0,-66,-37,-66,-90xm50,-86v0,37,11,62,42,62v31,0,42,-25,42,-62v0,-37,-11,-62,-42,-62v-31,0,-42,25,-42,62","w":193},"e":{"d":"161,-31v-8,24,-37,35,-67,35v-51,0,-75,-32,-75,-90v0,-60,25,-89,73,-90v49,-1,74,34,73,87v0,7,-5,12,-12,12v-33,2,-74,-4,-103,2v0,31,18,51,46,51v21,0,35,-13,52,-19v7,0,13,5,13,12xm92,-150v-25,-1,-47,23,-40,49v26,-2,60,4,82,-2v2,-31,-17,-46,-42,-47","w":184,"k":{"y":1,"x":4}},"f":{"d":"106,-160v1,18,-28,8,-40,14r0,132v0,10,-7,16,-16,16v-9,0,-15,-6,-15,-16v-2,-43,4,-95,-2,-134v-23,7,-32,-22,-10,-24v12,3,12,-5,12,-18v0,-42,19,-55,56,-55v10,0,16,6,16,14v-2,25,-50,3,-41,39v-9,39,39,5,40,32","w":114,"k":{"o":1,"e":1,"c":1,".":13,"-":2,",":13,"'":-5,"\"":-5,"?":-9}},"g":{"d":"19,-89v0,-53,19,-87,63,-87v26,0,41,9,49,22v-1,-12,5,-20,15,-20v9,0,15,6,15,16r0,149v0,51,-27,78,-75,78v-27,0,-53,-10,-59,-30v8,-34,38,6,60,2v35,2,48,-25,44,-66v-9,14,-24,23,-49,23v-44,-1,-63,-35,-63,-87xm50,-89v0,35,10,59,40,59v30,0,41,-24,41,-59v0,-35,-11,-59,-41,-59v-30,0,-40,24,-40,59","w":190},"h":{"d":"30,-14r0,-216v0,-10,6,-17,15,-17v29,6,10,64,15,94v27,-42,108,-23,108,41r0,98v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16v-4,-53,18,-134,-39,-134v-55,0,-36,81,-39,134v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16","w":196,"k":{"y":3,"v":3,"w":3}},"i":{"d":"45,-207v-11,0,-20,-9,-20,-20v0,-11,9,-20,20,-20v11,0,19,9,19,20v0,11,-8,20,-19,20xm30,-14r0,-144v0,-10,6,-16,15,-16v9,0,15,6,15,16r0,144v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16","w":89},"j":{"d":"45,-207v-11,0,-20,-9,-20,-20v0,-11,9,-20,20,-20v11,0,19,9,19,20v0,11,-8,20,-19,20xm-4,51v0,-23,41,-6,34,-38r0,-171v0,-10,6,-16,15,-16v9,0,15,6,15,16r0,171v0,37,-17,52,-50,52v-9,0,-14,-6,-14,-14","w":89},"k":{"d":"30,-14r0,-216v0,-10,6,-17,15,-17v9,0,15,7,15,17r0,141r70,-80v7,-9,25,-7,24,7v-8,23,-31,35,-44,54v18,33,43,59,57,96v0,16,-20,18,-28,5r-49,-79r-30,33v-2,21,8,55,-15,55v-9,0,-15,-6,-15,-16","w":183,"k":{"y":6,"-":12,"c":4,"e":4,"o":4,"d":3,"q":3,"u":6,"g":3,"a":2,"s":4}},"l":{"d":"90,-12v0,9,-7,15,-19,14v-31,0,-42,-15,-42,-46r0,-186v0,-10,6,-17,15,-17v9,0,15,7,15,17r0,184v-4,28,31,12,31,34","w":100,"k":{"y":1,"v":1,"-":4,",":-1,".":-1,"\"":5,"'":5,"*":8,"t":1,"w":1}},"m":{"d":"30,-14r0,-144v0,-10,6,-16,15,-16v11,0,16,8,15,21v16,-31,86,-30,99,4v27,-45,117,-33,117,37r0,98v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16v-5,-52,19,-134,-38,-134v-56,0,-37,81,-40,134v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16v-4,-53,18,-134,-39,-134v-55,0,-36,81,-39,134v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16","w":304,"k":{"y":3,"v":3,"w":3}},"n":{"d":"30,-14r0,-144v0,-10,6,-16,15,-16v11,0,16,8,15,21v27,-42,108,-23,108,41r0,98v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16v-4,-53,18,-134,-39,-134v-55,0,-36,81,-39,134v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16","k":{"y":3,"v":3,"w":3}},"o":{"d":"167,-86v0,57,-25,90,-74,90v-49,0,-74,-33,-74,-90v0,-57,25,-90,74,-90v49,0,74,33,74,90xm50,-86v0,39,11,62,43,62v31,0,43,-23,43,-62v0,-39,-11,-62,-43,-62v-31,0,-43,23,-43,62","w":185,"k":{"y":1,"x":4,"v":1,"w":1}},"p":{"d":"175,-86v0,51,-20,90,-66,90v-26,0,-41,-10,-49,-23v-4,29,13,80,-15,86v-9,0,-15,-7,-15,-17r0,-208v0,-10,6,-16,15,-16v11,0,16,8,15,21v8,-14,23,-23,49,-23v46,0,67,39,66,90xm60,-86v0,37,11,62,42,62v31,0,42,-25,42,-62v0,-37,-11,-62,-42,-62v-31,0,-42,25,-42,62","w":193,"k":{"y":1,"x":3,"v":1}},"q":{"d":"19,-86v0,-53,20,-90,66,-90v26,0,41,9,49,23v-1,-13,4,-21,15,-21v9,0,15,6,15,16r0,208v0,10,-6,17,-15,17v-28,0,-10,-57,-15,-86v-8,13,-23,23,-49,23v-45,0,-66,-38,-66,-90xm50,-86v0,37,11,62,42,62v31,0,42,-25,42,-62v0,-37,-11,-62,-42,-62v-31,0,-42,25,-42,62","w":193},"r":{"d":"139,-157v-2,23,-27,9,-43,9v-53,0,-32,83,-36,134v0,10,-6,16,-15,16v-9,0,-15,-6,-15,-16r0,-144v0,-10,6,-16,15,-16v12,0,16,10,15,24v6,-27,71,-38,79,-7","w":146,"k":{"?":-7,"-":6,",":24,".":24,"\"":-5,"'":-5,"c":6,"e":6,"o":6,"d":6,"q":6,"g":3,"a":9,"s":3}},"s":{"d":"149,-151v-7,29,-40,1,-62,1v-22,0,-33,10,-33,24v-5,19,28,23,52,25v36,4,52,21,52,49v0,65,-121,74,-140,24v12,-32,46,11,72,5v25,0,38,-11,38,-26v5,-19,-28,-24,-52,-26v-34,-3,-51,-21,-51,-49v0,-58,103,-69,124,-27","w":176},"t":{"d":"101,-12v0,9,-7,14,-20,14v-74,0,-38,-94,-50,-150v-23,7,-32,-22,-10,-24v4,-1,12,2,12,-3v1,-21,-7,-54,15,-54v25,-1,8,41,18,57v15,0,35,-3,35,12v0,18,-26,8,-38,14r0,96v-7,33,36,14,38,38","w":114,"k":{"-":5,",":-1,".":-1,"\"":-1,"'":-1}},"u":{"d":"165,-158r0,144v0,10,-7,16,-16,16v-11,0,-16,-8,-15,-21v-27,42,-107,23,-107,-42r0,-97v0,-10,6,-16,15,-16v9,0,15,6,15,16v5,52,-19,134,38,134v55,0,36,-81,39,-134v0,-10,6,-16,15,-16v9,0,16,6,16,16","w":194},"v":{"d":"106,-17v-9,26,-31,25,-40,0r-53,-143v-1,-17,24,-17,29,-3r45,119r44,-119v4,-15,30,-14,29,3v-16,50,-38,94,-54,143","w":172,"k":{"s":4,"q":3,"o":1,"g":3,"e":1,"d":3,"c":1,"a":4,".":19,"-":5,",":19}},"w":{"d":"206,-14v-6,22,-30,21,-36,0r-36,-113r-36,113v-6,22,-29,21,-36,0r-47,-146v0,-17,24,-19,30,-1r37,117r36,-115v4,-20,27,-19,33,0r37,115r36,-117v2,-18,30,-16,29,1v-13,51,-32,97,-47,146","w":268,"k":{"-":3,",":13,".":13,"a":1,"s":3}},"x":{"d":"155,-12v0,14,-17,18,-26,6r-43,-60r-42,60v-7,13,-27,8,-27,-6v13,-30,36,-51,52,-78v-15,-24,-35,-43,-46,-71v0,-14,18,-17,26,-6r37,53v17,-19,25,-51,51,-60v13,0,15,14,9,23r-43,61v17,27,40,47,52,78","w":172,"k":{"q":3,"o":4,"g":3,"e":4,"d":3,"c":4,"-":12}},"y":{"d":"93,17v-15,41,-27,48,-56,48v-9,0,-15,-6,-15,-14v7,-26,39,-4,45,-40r5,-16r-60,-155v-1,-16,24,-18,30,-3r45,119r44,-119v3,-16,29,-14,28,3v-18,63,-44,117,-66,177","w":171,"k":{"s":3,"q":2,"o":3,"g":2,"e":3,"d":2,"c":3,"a":2,".":19,"-":5,",":19}},"z":{"d":"136,0r-109,0v-19,-2,-15,-20,-5,-33r89,-112r-79,0v-9,0,-14,-6,-14,-14v0,-8,5,-13,14,-13r104,0v19,1,17,20,6,32r-90,113r84,0v9,0,14,5,14,13v0,8,-5,14,-14,14","w":163},"{":{"d":"19,-119v3,-21,29,-9,29,-43v0,-49,-15,-104,47,-104v9,0,13,5,13,12v1,20,-32,3,-32,30v0,40,8,98,-22,106v31,5,20,67,22,105v-4,26,32,11,32,31v1,10,-9,12,-21,12v-53,0,-39,-60,-39,-106v0,-34,-27,-21,-29,-43","w":119,"k":{"j":-3}},"|":{"d":"52,32v-8,0,-13,-5,-13,-14r0,-272v0,-9,5,-14,13,-14v8,0,13,5,13,14r0,272v0,9,-5,14,-13,14","w":104},"}":{"d":"100,-119v0,22,-28,10,-28,43v0,50,15,106,-47,106v-9,0,-13,-5,-13,-12v0,-20,32,-4,32,-31v0,-39,-8,-99,22,-106v-31,-6,-20,-67,-22,-105v4,-26,-32,-10,-32,-30v-1,-10,8,-12,20,-12v52,0,40,57,40,104v0,33,28,21,28,43","w":119},"~":{"d":"174,-109v-5,21,-27,34,-46,34v-26,0,-39,-20,-62,-23v-16,-2,-35,39,-45,8v6,-20,27,-34,46,-34v26,0,40,20,62,24v15,3,34,-38,45,-9"},"\u00a0":{"w":87,"k":{"Y":5,"W":6,"T":4,"V":10}}}});
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright © 2008 - 2009 Linotype GmbH, www.linotype.com. All rights reserved.
 * This font software may not be reproduced, modified, disclosed or transferred
 * without the express written approval of Linotype GmbH.
 * 
 * Trademark:
 * Please refer to the Copyright section for the font trademark attribution
 * notices.
 * 
 * Full name:
 * DINNextRoundedLTPro-Medium
 * 
 * Description:
 * DIN Next is a typeface family inspired by the classic industrial German
 * engineering designs, DIN 1451 Engschrift and Mittelschrift. Akira Kobayashi
 * began by revising these two faces—who names just mean condensed and
 * regular—before expanding them into a new family with seven weights (Light to
 * Black). Each weight ships in three varieties: Regular, Italic, and Condensed,
 * bringing the total number of fonts in the DIN Next family to 21. DIN Next is
 * part of Linotype’s Platinum Collection. Linotype has been supplying its
 * customers with the two DIN 1451 fonts since 1980. Recently, they have become
 * more popular than ever, with designers regularly asking for additional weights.
 * The abbreviation "DIN" stands for “Deutsches Institut für Normung e.V.,” which
 * is the German Institute for Industrial Standardization. In 1936 the German
 * Standard Committee settled upon DIN 1451 as the standard font for the areas of
 * technology, traffic, administration and business. The design was to be used on
 * German street signs and house numbers. The committee wanted a sans serif,
 * thinking it would be more legible, straightforward, and easy to reproduce. They
 * did not intend for the design to be used for advertisements and other
 * artistically oriented purposes. Nevertheless, because DIN 1451 was seen all over
 * Germany on signs for town names and traffic directions, it became familiar
 * enough to make its way onto the palettes of graphic designers and advertising
 * art directors. The digital version of DIN 1451 would go on to be adopted and
 * used by designers in other countries as well, solidifying its worldwide design
 * reputation. There are many subtle differences in DIN Next’s letters when
 * compared withe DIN 1451 original. These were added by Kobayashi to make the new
 * family even more versatile in 21st-century media. For instance, although DIN
 * 1451’s corners are all pointed angles, DIN Next has rounded them all slightly.
 * Even this softening is a nod to part of DIN 1451’s past, however. Many of the
 * signs that use DIN 1451 are cut with routers, which cannot make perfect corners;
 * their rounded heads cut rounded corners best. Linotype’s DIN 1451 Engschrift and
 * Mittelschrift are certified by the German DIN Institute for use on official
 * signage projects. Since DIN Next is a new design, these applications within
 * Germany are not possible with it. However, DIN Next may be used for any other
 * project, and it may be used for industrial signage in any other country! DIN
 * Next has been tailored especially for graphic designers, but its industrial
 * heritage makes it surprisingly functional in just about any application.
 * 
 * Manufacturer:
 * Linotype GmbH
 * 
 * Designer:
 * Linotype Design Studio
 * 
 * Vendor URL:
 * http://www.linotype.com
 * 
 * License information:
 * http://www.linotype.com/license
 */
Cufon.registerFont({"w":197,"face":{"font-family":"DIN Next Round","font-weight":500,"font-stretch":"normal","units-per-em":"360","panose-1":"2 15 6 3 2 2 3 5 2 3","ascent":"270","descent":"-90","x-height":"4","cap-height":"2","bbox":"-7 -273 305 69","underline-thickness":"18","underline-position":"-18","stemh":"30","stemv":"29","unicode-range":"U+0020-U+007E"},"glyphs":{" ":{"w":86,"k":{"Y":5,"W":6,"T":4,"V":10}},"!":{"d":"55,-68v-12,0,-20,-8,-20,-22r0,-135v0,-13,8,-22,20,-22v12,0,20,9,20,22r0,135v0,14,-8,22,-20,22xm30,-22v0,-14,11,-24,25,-24v14,0,25,10,25,24v0,14,-11,25,-25,25v-14,0,-25,-11,-25,-25","w":110},"\"":{"d":"88,-174v-24,0,-15,-36,-15,-57v0,-10,6,-16,15,-16v23,0,15,36,15,58v0,10,-6,15,-15,15xm37,-174v-24,0,-15,-36,-15,-57v0,-10,6,-16,15,-16v23,1,14,37,14,58v0,10,-5,15,-14,15","w":124,"k":{"V":-6,",":31,".":31,"T":-14,"W":-6,"Y":-3,"t":-1,"A":27,"J":39}},"#":{"d":"41,2v-29,-6,-5,-53,-6,-78v-15,1,-30,0,-30,-14v0,-15,18,-15,34,-14r5,-41v-15,1,-30,0,-30,-14v0,-15,17,-16,34,-15r8,-58v1,-9,6,-15,15,-15v28,0,6,50,7,73r42,0r8,-58v1,-9,6,-15,15,-15v28,6,5,50,6,73v28,-9,44,25,16,29r-20,0r-5,41v15,-1,31,0,31,14v0,16,-19,15,-35,14r-9,63v-1,9,-6,15,-15,15v-29,-6,-5,-53,-6,-78r-42,0r-8,63v-1,9,-6,15,-15,15xm68,-104r42,0r6,-41r-42,0","w":193},"$":{"d":"90,4v-32,-4,-64,-8,-70,-34v7,-37,46,-2,70,-2r0,-74v-41,-7,-66,-32,-66,-69v0,-40,27,-69,66,-73v0,-11,-1,-25,10,-25v11,0,12,13,11,25v23,3,50,7,54,29v-2,30,-37,11,-54,7r0,71v44,7,66,32,66,69v0,41,-25,69,-66,75v1,12,1,27,-11,27v-11,0,-10,-14,-10,-26xm90,-146r0,-66v-32,6,-41,58,0,66xm111,-33v32,-7,41,-61,0,-69r0,69"},"%":{"d":"74,6v-11,1,-16,-12,-11,-21r131,-227v5,-12,27,-10,26,5v-39,83,-90,155,-133,234v-3,5,-8,9,-13,9xm69,-248v36,5,47,18,47,65v0,48,-11,59,-47,64v-36,-4,-47,-19,-47,-64v0,-47,11,-60,47,-65xm69,-222v-19,5,-18,6,-18,39v0,33,-1,33,18,38v19,-5,18,-6,18,-38v0,-33,1,-33,-18,-39xm212,3v-36,-4,-47,-17,-47,-64v0,-48,11,-59,47,-65v36,5,47,18,47,65v0,48,-11,59,-47,64xm212,-100v-19,5,-18,6,-18,39v0,33,-1,33,18,38v19,-5,18,-6,18,-38v0,-33,1,-33,-18,-39","w":281},"&":{"d":"91,4v-85,0,-90,-99,-22,-140v-48,-46,-29,-113,34,-113v36,0,60,26,60,55v0,22,-11,39,-43,63r38,49v9,-9,16,-25,31,-27v35,7,3,41,-9,54v5,6,12,20,21,19v12,0,19,8,19,18v0,33,-58,15,-65,-9v-21,21,-39,31,-64,31xm99,-158v23,-18,27,-26,27,-36v0,-12,-10,-22,-23,-22v-32,8,-30,30,-4,58xm60,-64v3,39,50,45,74,11r-43,-56v-23,18,-31,32,-31,45","w":232},"'":{"d":"37,-174v-24,0,-15,-36,-15,-57v0,-10,6,-16,15,-16v23,1,14,37,14,58v0,10,-5,15,-14,15","w":73,"k":{"V":-6,",":31,".":31,"T":-14,"W":-6,"Y":-3,"t":-1,"A":27,"J":39}},"(":{"d":"87,-252v-38,86,-39,181,0,268v0,18,-23,21,-32,5v-48,-88,-48,-190,0,-278v9,-16,32,-14,32,5","w":108,"k":{"j":-3}},")":{"d":"18,16v40,-84,41,-184,0,-268v0,-18,23,-22,32,-5v48,88,48,190,0,278v-9,16,-32,13,-32,-5","w":108},"*":{"d":"60,-140v15,0,12,-19,12,-34v9,6,32,23,36,2v-1,-14,-17,-15,-26,-21v14,-4,40,-24,15,-32v-10,2,-17,9,-25,13v0,-15,3,-36,-12,-35v-14,0,-11,21,-10,35v-10,-6,-33,-23,-37,-2v1,13,18,15,26,21v-14,3,-40,23,-16,32v11,-1,18,-9,27,-13v0,13,-5,34,10,34","w":120},"+":{"d":"99,-19v-28,0,-13,-43,-20,-63v-23,-2,-60,8,-60,-17v0,-28,42,-13,62,-20v1,-24,-7,-61,18,-61v28,0,13,43,20,63v24,1,60,-8,60,18v0,27,-42,11,-62,19v-1,24,7,61,-18,61"},",":{"d":"35,44v-36,0,-5,-53,-1,-74v5,-20,36,-18,36,4v0,21,-12,37,-18,56v-3,9,-9,14,-17,14","w":87,"k":{" ":8,"\"":31,"'":31}},"-":{"d":"106,-78v-32,0,-88,14,-92,-18v4,-31,61,-17,92,-17v12,0,19,7,19,17v0,11,-7,18,-19,18","w":138,"k":{"y":5,"x":12,"v":5,"X":17,"V":22,"T":25,"W":8,"Y":32,"w":3,"A":4,"J":15,"S":3}},".":{"d":"19,-22v0,-14,12,-26,26,-26v14,0,25,12,25,26v0,14,-11,26,-25,26v-14,0,-26,-12,-26,-26","w":89,"k":{" ":8,"\"":31,"'":31}},"\/":{"d":"41,6v-13,0,-21,-11,-17,-25r71,-218v4,-20,35,-17,35,3v-20,79,-49,150,-72,226v-3,9,-9,14,-17,14","w":153,"k":{"7":-9}},"0":{"d":"29,-44v-3,-10,-5,-21,-5,-78v0,-57,2,-69,5,-79v14,-63,126,-64,139,0v3,10,6,22,6,79v0,57,-3,68,-6,78v-13,64,-126,63,-139,0xm69,-51v7,26,53,25,60,0v3,-8,3,-16,3,-71v0,-55,0,-63,-3,-71v-7,-26,-53,-27,-60,0v-3,8,-3,16,-3,71v0,55,0,63,3,71"},"1":{"d":"89,-19r-1,-178v-13,7,-22,20,-39,23v-18,-1,-23,-27,-6,-36v20,-11,38,-37,64,-37v13,0,22,10,22,24r0,204v0,13,-8,21,-20,21v-12,0,-20,-8,-20,-21"},"2":{"d":"98,-213v-31,-2,-29,36,-53,38v-13,0,-21,-10,-18,-23v6,-25,30,-51,72,-51v74,0,87,80,48,128r-70,85v33,5,96,-14,96,18v0,10,-7,18,-19,18r-112,0v-25,-3,-22,-25,-7,-43r80,-99v24,-23,22,-68,-17,-71"},"3":{"d":"174,-69v0,84,-148,99,-148,23v0,-10,6,-18,18,-18v22,1,24,32,53,32v23,0,37,-15,37,-37v0,-25,-18,-40,-43,-39v-11,0,-18,-8,-18,-18v0,-11,8,-18,22,-18v20,0,34,-14,34,-36v0,-21,-13,-33,-34,-33v-29,0,-27,30,-49,31v-11,0,-18,-8,-18,-18v0,-32,31,-46,69,-49v72,-5,95,87,45,119v15,7,32,29,32,61"},"4":{"d":"115,-40v-42,-3,-123,18,-94,-43r70,-151v6,-19,39,-17,38,6v-18,55,-47,101,-69,152v18,-1,42,3,57,-2v1,-26,-8,-65,19,-65v31,0,16,44,23,67v16,-2,27,5,27,18v0,13,-11,20,-27,18v-5,13,2,45,-22,42v-22,2,-18,-25,-22,-42"},"5":{"d":"99,4v-40,0,-69,-17,-69,-48v0,-10,8,-17,18,-17v20,1,26,32,51,29v26,-3,35,-17,35,-47v0,-30,-10,-45,-34,-47v-24,-2,-29,25,-49,25v-12,0,-19,-8,-19,-21r0,-105v0,-11,6,-18,17,-18r103,0v12,0,19,8,19,18v0,36,-72,9,-102,20r0,57v46,-30,117,-1,105,71v2,55,-28,83,-75,83"},"6":{"d":"99,4v-68,0,-94,-74,-62,-132r59,-107v7,-18,37,-15,37,6v-8,33,-34,58,-44,86v46,-13,88,19,88,70v0,50,-34,77,-78,77xm62,-71v0,23,14,39,37,39v23,0,37,-16,37,-39v0,-23,-14,-39,-37,-39v-23,0,-37,16,-37,39"},"7":{"d":"76,2v-15,0,-24,-14,-18,-28r73,-183v-20,2,-47,-3,-64,2v10,35,-38,48,-38,13v0,-23,-6,-51,19,-51r105,0v26,3,25,22,15,47r-74,187v-3,9,-10,13,-18,13","k":{"\/":18}},"8":{"d":"99,4v-78,0,-103,-99,-49,-133v-45,-31,-25,-120,49,-120v75,0,92,88,48,121v17,10,31,31,31,59v0,44,-33,73,-79,73xm99,-147v20,0,33,-15,33,-33v0,-18,-13,-33,-33,-33v-20,0,-33,15,-33,33v0,18,13,33,33,33xm60,-71v0,23,16,39,39,39v23,0,38,-16,38,-39v0,-23,-15,-40,-38,-40v-23,0,-39,17,-39,40"},"9":{"d":"83,2v-15,1,-24,-16,-16,-30r42,-74v-46,13,-89,-18,-88,-69v0,-50,34,-78,78,-78v68,0,94,74,62,132r-60,108v-4,8,-10,11,-18,11xm99,-135v23,0,37,-16,37,-39v0,-23,-14,-39,-37,-39v-23,0,-38,16,-38,39v0,23,15,39,38,39"},":":{"d":"46,-124v-14,0,-25,-12,-25,-26v0,-14,11,-25,25,-25v14,0,26,11,26,25v0,14,-12,26,-26,26xm21,-22v0,-14,11,-26,25,-26v14,0,26,12,26,26v0,14,-12,26,-26,26v-14,0,-25,-12,-25,-26","w":92},";":{"d":"29,44v-35,0,-5,-53,-1,-74v4,-20,38,-19,36,4v-2,21,-12,37,-18,56v-3,9,-9,14,-17,14xm46,-124v-14,0,-25,-12,-25,-26v0,-14,11,-25,25,-25v14,0,26,11,26,25v0,14,-12,26,-26,26","w":92},"<":{"d":"37,-77v-25,-8,-24,-36,0,-44v43,-16,79,-38,125,-50v21,-1,21,26,4,33r-93,39r93,38v18,4,16,35,-4,34v-45,-13,-83,-34,-125,-50"},"=":{"d":"37,-118v-12,0,-18,-8,-18,-18v0,-10,6,-17,18,-17r124,0v12,0,18,7,18,17v0,10,-6,18,-18,18r-124,0xm37,-46v-12,0,-18,-7,-18,-17v0,-10,6,-17,18,-17r124,0v12,0,18,7,18,17v0,10,-6,17,-18,17r-124,0"},">":{"d":"45,-29v-12,6,-27,-1,-26,-15v0,-8,5,-14,13,-17r93,-39r-93,-38v-18,-5,-17,-34,4,-33v46,11,81,35,124,50v26,8,25,34,0,44"},"?":{"d":"14,-194v3,-35,32,-54,70,-55v64,-2,85,70,47,113v-12,13,-31,28,-31,49v0,13,-8,20,-19,20v-45,-11,-2,-70,14,-84v25,-23,21,-58,-13,-62v-28,-4,-27,36,-49,37v-11,0,-19,-8,-19,-18xm57,-22v0,-14,10,-24,24,-24v13,0,25,10,25,24v0,14,-12,25,-25,25v-14,0,-24,-11,-24,-25","w":167},"@":{"d":"163,15v33,0,50,-7,75,-14v15,-1,19,21,5,27v-100,49,-224,-11,-224,-124v0,-83,58,-142,143,-142v84,0,143,59,143,142v0,78,-70,98,-104,54v-8,14,-22,22,-48,22v-40,-1,-56,-28,-56,-75v0,-70,61,-95,95,-56v0,-10,5,-16,16,-17v31,5,16,61,16,92v0,19,9,27,21,27v17,0,26,-16,26,-47v0,-67,-42,-112,-109,-112v-68,0,-109,45,-109,112v0,67,42,111,110,111xm130,-95v0,29,8,45,31,45v24,0,31,-16,31,-45v0,-29,-7,-45,-31,-45v-23,0,-31,16,-31,45","w":324},"A":{"d":"31,2v-14,1,-24,-14,-19,-28r71,-196v6,-33,46,-31,57,0r72,204v0,24,-34,26,-41,5r-13,-38r-94,0v-9,19,-9,51,-33,53xm77,-89r68,0r-34,-95","w":222,"k":{"y":9,"v":10,"V":15,"?":13}},"B":{"d":"27,-19r0,-207v3,-35,63,-15,95,-19v80,-10,97,87,48,118v18,7,32,27,32,56v0,74,-79,74,-156,71v-12,0,-19,-7,-19,-19xm69,-145v30,5,87,9,87,-30v0,-37,-53,-36,-87,-30r0,60xm69,-103v2,21,-4,50,3,66v40,1,88,6,88,-35v0,-39,-56,-37,-91,-31","w":218,"k":{"Y":5,"J":3,"A":1,"X":4,"V":1}},"C":{"d":"112,4v-65,0,-92,-43,-92,-126v0,-85,26,-127,92,-127v39,0,70,19,77,53v0,11,-8,19,-19,19v-22,0,-30,-39,-58,-34v-44,8,-49,26,-49,89v0,64,5,79,49,88v28,5,36,-34,58,-34v11,0,19,8,19,20v-8,33,-38,52,-77,52","w":204,"k":{"y":6,"T":-4}},"D":{"d":"206,-122v0,113,-54,127,-160,122v-12,0,-19,-7,-19,-19r0,-207v1,-32,50,-19,79,-19v76,0,100,36,100,123xm163,-122v0,-74,-24,-89,-91,-85v-1,0,-3,2,-3,3r0,164v57,9,94,-6,94,-82","w":225,"k":{"X":6,"V":4,",":6,".":6,"T":6,"W":3,"Y":6,"A":4,"J":4,"Z":2}},"E":{"d":"27,-19r0,-207v0,-12,7,-19,19,-19r122,0v13,0,22,8,22,19v0,11,-9,19,-22,19r-96,0v-8,14,-1,43,-3,62v29,11,97,-16,103,22v-4,36,-72,10,-103,21r0,62v28,6,67,0,99,2v13,0,22,8,22,19v0,11,-9,19,-22,19r-122,0v-12,0,-19,-7,-19,-19","w":205,"k":{"y":6,"v":6,"w":6}},"F":{"d":"27,-21r0,-205v0,-12,7,-19,19,-19r122,0v13,0,22,8,22,19v0,11,-9,19,-22,19r-96,0v-8,15,-1,45,-3,65v29,11,96,-16,103,21v-4,36,-72,10,-103,21v-5,36,15,102,-21,102v-12,0,-21,-9,-21,-23","w":201,"k":{"u":13,"s":6,"r":11,"q":5,"p":11,"o":13,"n":11,"m":11,"g":5,"e":13,"d":5,"c":13,"a":19,"J":18,"A":26,".":36,",":36,"y":13}},"G":{"d":"113,4v-67,-2,-93,-43,-93,-126v0,-85,26,-127,93,-127v43,0,82,16,82,52v0,21,-27,26,-38,8v-9,-15,-25,-22,-44,-22v-47,0,-50,27,-50,89v0,63,5,82,51,88v34,5,56,-31,48,-65v-21,0,-48,3,-47,-18v1,-28,47,-16,74,-18v13,-1,17,10,17,24v0,70,-32,117,-93,115","w":225,"k":{"X":3,"V":3,",":3,".":3,"T":9,"W":3,"Y":5,"A":5,"J":3}},"H":{"d":"27,-21r0,-203v0,-14,9,-23,21,-23v36,0,16,67,21,102v26,4,71,4,98,0v5,-36,-15,-102,21,-102v12,0,22,9,22,23r0,203v0,14,-10,23,-22,23v-39,-3,-12,-74,-23,-106v-31,2,-69,-3,-96,2v-5,36,15,104,-21,104v-12,0,-21,-9,-21,-23","w":236},"I":{"d":"27,-21r0,-203v0,-14,9,-23,21,-23v12,0,21,9,21,23r0,203v0,14,-9,23,-21,23v-12,0,-21,-9,-21,-23","w":96},"J":{"d":"73,4v-28,0,-58,-9,-60,-35v7,-35,39,-3,62,-3v24,0,39,-14,39,-47r0,-143v0,-14,9,-23,21,-23v12,0,21,9,21,23r0,141v0,56,-33,87,-83,87","w":181,"k":{"A":4,"J":3}},"K":{"d":"27,-21r0,-203v0,-14,9,-23,21,-23v12,0,21,9,21,23r0,99r93,-113v11,-16,36,-10,36,10v-12,35,-43,53,-62,81v23,44,54,80,72,129v1,22,-29,25,-40,7r-60,-103r-39,47v-1,28,8,70,-21,69v-12,0,-21,-9,-21,-23","w":218,"k":{"y":9,"v":13,"-":15,"\"":2,"'":2,"C":6,"G":6,"O":6,"Q":6,"*":8,"c":4,"e":4,"o":4,"U":6,"d":1,"q":1,"u":6,"w":9,"S":1,"g":1,"a":6}},"L":{"d":"27,-21r0,-203v0,-14,9,-23,21,-23v12,0,21,9,21,23r0,184v28,6,67,0,99,2v13,0,22,8,22,19v0,11,-9,19,-22,19r-120,0v-13,0,-21,-8,-21,-21","w":196,"k":{"y":6,"v":12,"V":26,"?":4,"-":11,",":-5,".":-5,"\"":35,"'":35,"C":9,"G":9,"O":9,"Q":9,"*":18,"U":9,"T":32,"W":13,"Y":35,"w":11}},"M":{"d":"27,-19r0,-202v0,-16,10,-26,24,-26v13,0,18,7,25,22v22,44,37,95,62,136r59,-136v6,-31,48,-29,48,4r0,202v0,13,-8,21,-19,21v-12,0,-20,-8,-20,-21v-2,-43,4,-95,-2,-134r-45,101v-10,27,-34,26,-46,0v-15,-33,-27,-71,-47,-101r0,134v0,13,-8,21,-19,21v-12,0,-20,-8,-20,-21","w":272},"N":{"d":"27,-19r0,-202v0,-33,36,-31,52,-5r91,153r0,-153v0,-13,8,-21,20,-21v11,0,20,8,20,21r0,202v-1,34,-38,31,-53,5r-89,-153r-2,0r0,153v0,13,-8,21,-19,21v-12,0,-20,-8,-20,-21","w":236},"O":{"d":"113,4v-65,0,-93,-43,-93,-126v0,-85,27,-127,93,-127v66,0,93,43,93,127v0,85,-27,126,-93,126xm113,-34v45,-7,50,-26,50,-88v0,-63,-4,-81,-50,-89v-45,6,-50,27,-50,89v0,63,5,80,50,88","w":225,"k":{"X":3,"V":3,",":3,".":3,"T":9,"W":3,"Y":5,"A":5,"J":3}},"P":{"d":"48,2v-12,0,-21,-9,-21,-23r0,-205v3,-35,62,-19,95,-19v48,0,81,31,81,76v1,65,-58,83,-131,76v-13,24,15,92,-24,95xm69,-133v38,7,92,5,92,-36v0,-40,-47,-40,-89,-38v-8,17,0,51,-3,74","w":215,"k":{"o":4,"e":4,"c":4,"a":4,"Y":1,"J":25,"A":23,".":50,",":50,"'":-8,"\"":-8,"X":5}},"Q":{"d":"206,-122v0,46,-2,59,-14,84v17,8,38,46,4,50v-15,-1,-21,-15,-31,-22v-76,38,-145,-6,-145,-112v0,-85,27,-127,93,-127v66,0,93,43,93,127xm63,-122v0,71,18,95,72,83v-17,-9,-36,-49,-3,-49v13,0,20,12,27,19v3,-10,4,-24,4,-53v1,-63,-4,-81,-50,-89v-45,6,-50,27,-50,89","w":225,"k":{"Y":6,"W":3,";":-1,":":-1,".":-1,",":-1,"V":4,"!":-4}},"R":{"d":"203,-18v1,23,-31,26,-41,6r-45,-87v-16,1,-36,-3,-48,2v-5,35,15,99,-21,99v-12,0,-21,-9,-21,-23r0,-205v0,-12,7,-19,19,-19r79,0v83,-7,105,114,35,139v14,30,34,54,43,88xm69,-139v36,6,92,8,92,-33v0,-41,-48,-36,-89,-35v-8,16,-1,47,-3,68","w":222,"k":{"V":3,"-":9,"c":3,"e":3,"o":3,"T":2,"W":3,"Y":5,"d":3,"q":3,"J":1,"a":6}},"S":{"d":"182,-215v-8,40,-51,4,-78,4v-26,0,-39,14,-39,33v0,21,27,32,57,35v50,7,74,30,74,72v0,44,-31,75,-93,75v-41,0,-78,-9,-87,-40v11,-45,60,9,89,2v30,0,48,-14,48,-35v0,-22,-25,-33,-57,-36v-49,-5,-74,-29,-74,-70v0,-44,32,-74,82,-74v35,0,72,7,78,34","w":211,"k":{"y":3,"x":3,"v":5,"V":3,"-":-5,"T":4,"W":3,"Y":6,"w":3,"A":2}},"T":{"d":"78,-204v-18,-11,-72,11,-73,-22v0,-11,9,-19,22,-19r144,0v13,0,22,8,22,19v0,27,-44,17,-71,19v-7,56,1,126,-2,186v0,14,-9,23,-21,23v-12,0,-21,-9,-21,-23r0,-183","w":198,"k":{"y":24,"x":17,"v":24,"?":-7," ":4,"-":25,",":35,".":35,":":9,";":9,"\"":-14,"'":-14,"C":9,"G":9,"O":9,"Q":9,"c":32,"e":32,"o":32,"T":-4,"d":17,"q":17,"f":3,"u":26,"t":3,"w":24,"A":26,"J":39,"a":32,"m":24,"n":24,"p":24,"r":24,"s":24,"z":13}},"U":{"d":"116,4v-51,0,-90,-33,-90,-90r0,-138v0,-14,9,-23,21,-23v12,0,21,9,21,23v0,71,-26,190,48,190v73,0,47,-120,47,-190v0,-14,10,-23,22,-23v12,0,21,9,21,23r0,138v0,57,-38,90,-90,90","w":231,"k":{",":8,".":8,"A":4,"J":3}},"V":{"d":"128,-23v-10,34,-41,33,-52,0r-67,-195v-4,-15,4,-29,19,-29v10,0,17,6,21,17r54,163r52,-163v5,-25,41,-20,41,3","w":203,"k":{"z":6,"w":3,"u":10,"s":12,"r":11,"q":15,"p":11,"o":16,"n":11,"m":11,"g":15,"f":1,"e":16,"d":15,"c":16,"a":15,"S":3,"Q":3,"O":3,"J":20,"G":3,"C":3,"A":15,";":11,":":11,".":32,"-":22,",":32,"'":-6,"\"":-6,"y":3,"x":5,"v":3," ":10}},"W":{"d":"291,-226r-54,205v-5,31,-36,30,-45,0r-43,-150r-42,150v-6,31,-38,31,-46,0r-54,-205v-1,-25,34,-29,41,-2r38,152r42,-152v5,-26,35,-25,42,0r43,152r37,-152v3,-28,42,-23,41,2","w":298,"k":{"y":3,"x":3,"v":3," ":6,"-":8,",":22,".":22,":":5,";":5,"\"":-6,"'":-6,"C":3,"G":3,"O":3,"Q":3,"c":9,"e":9,"o":9,"d":8,"q":8,"f":1,"u":4,"A":6,"J":16,"S":1,"g":8,"a":11,"m":3,"n":3,"p":3,"r":3,"s":12,"z":4}},"X":{"d":"194,-17v1,19,-26,25,-37,9r-54,-82r-53,82v-10,17,-39,11,-38,-9v16,-43,46,-72,67,-110v-20,-34,-46,-62,-61,-101v-1,-19,26,-25,37,-9r49,74r47,-74v8,-17,40,-11,38,9v-14,39,-42,66,-61,101v21,37,49,68,66,110","w":206,"k":{"w":8,"q":1,"o":1,"e":1,"d":1,"c":1,"Q":3,"O":3,"G":3,"C":3,"-":17,"y":9,"v":10}},"Y":{"d":"96,2v-36,0,-16,-67,-21,-102v-22,-44,-51,-80,-68,-128v-1,-22,32,-26,39,-6v18,30,31,65,52,92r50,-92v6,-20,39,-15,38,6v-17,48,-47,84,-68,128v-4,36,15,102,-22,102","w":192,"k":{"y":11,"x":14,"v":9," ":5,"-":32,",":26,".":26,":":18,";":18,"\"":-3,"'":-3,"C":5,"G":5,"O":5,"Q":5,"c":19,"e":19,"o":19,"d":19,"q":19,"f":1,"u":17,"w":8,"A":19,"J":25,"S":8,"g":19,"a":19,"m":17,"n":17,"p":17,"r":17,"s":19,"z":14}},"Z":{"d":"159,0r-124,0v-30,-4,-24,-29,-9,-51r102,-156r-90,0v-13,0,-21,-8,-21,-19v0,-11,8,-19,21,-19r120,0v29,4,26,26,10,50r-103,157r94,0v13,0,21,8,21,19v0,11,-8,19,-21,19","w":193,"k":{"y":9,"v":2,"c":6,"e":6,"o":6,"u":6,"w":9}},"[":{"d":"93,-251v0,17,-21,14,-34,18r0,230v10,4,34,-1,34,18v0,22,-34,13,-55,15v-10,0,-16,-5,-16,-15r0,-266v0,-23,33,-15,54,-15v11,0,17,6,17,15","w":101,"k":{"j":-3}},"\\":{"d":"95,-8r-72,-226v0,-20,29,-23,35,-3r72,226v0,20,-29,23,-35,3","w":153},"]":{"d":"42,-233v-9,-5,-33,1,-33,-18v0,-22,33,-14,54,-15v10,0,16,5,16,15r0,266v0,23,-32,15,-53,15v-11,0,-17,-6,-17,-15v0,-17,20,-14,33,-18r0,-230","w":101},"^":{"d":"172,-109v0,20,-26,21,-34,3r-39,-89r-39,89v-5,19,-34,17,-34,-3v13,-45,36,-81,52,-122v8,-22,34,-21,42,0v17,41,38,78,52,122"},"_":{"d":"180,51r-180,0r0,-26r180,0r0,26","w":180},"`":{"d":"105,-211v0,15,-21,21,-29,8v-9,-13,-38,-46,-7,-53v21,5,28,28,36,45","w":159},"a":{"d":"28,-150v0,-24,31,-25,63,-27v72,-3,76,53,72,122v-1,18,12,23,13,38v2,19,-27,26,-37,11v-3,-3,-3,-7,-7,-9v-27,34,-124,21,-114,-34v-4,-53,56,-55,107,-57v7,-44,-53,-40,-81,-27v-10,0,-16,-7,-16,-17xm87,-29v30,0,45,-19,36,-45v-29,-1,-66,-2,-66,24v0,14,10,21,30,21","w":188,"k":{"y":1,"v":2,"w":1}},"b":{"d":"179,-87v0,53,-20,90,-65,91v-24,0,-39,-9,-47,-21v-2,11,-9,19,-21,19v-12,0,-20,-8,-20,-21r0,-206v0,-13,8,-22,20,-22v34,2,17,58,21,90v8,-11,23,-20,47,-20v45,0,65,38,65,90xm138,-87v0,-33,-9,-54,-35,-54v-26,0,-36,21,-36,54v0,34,10,55,36,55v26,0,35,-22,35,-55","w":196,"k":{"y":1,"x":3,"v":1}},"c":{"d":"156,-34v-6,23,-32,38,-62,38v-50,0,-77,-32,-77,-91v0,-59,27,-89,77,-90v31,1,56,13,62,37v0,10,-8,18,-18,18v-16,-1,-21,-19,-44,-19v-26,0,-36,23,-36,54v0,31,10,55,36,55v22,0,27,-18,44,-19v10,0,18,7,18,17","w":171,"k":{"a":4}},"d":{"d":"17,-87v0,-53,20,-90,65,-90v25,-1,38,10,48,20v4,-32,-13,-87,20,-90v12,0,20,9,20,22r0,206v1,29,-39,26,-40,2v-10,10,-23,22,-48,21v-45,-1,-65,-38,-65,-91xm130,-87v0,-32,-10,-54,-36,-54v-26,0,-36,22,-36,54v0,32,10,55,36,55v26,0,36,-23,36,-55","w":196},"e":{"d":"167,-33v-8,27,-37,37,-71,37v-53,0,-79,-33,-79,-91v0,-57,26,-90,77,-90v51,0,78,34,77,89v0,8,-5,14,-14,14v-32,2,-71,-4,-99,2v1,26,17,39,41,40v21,1,34,-14,51,-18v10,0,17,7,17,17xm94,-143v-22,-1,-41,18,-34,39v22,-2,51,3,70,-2v0,-24,-15,-36,-36,-37","w":187,"k":{"y":1,"x":4}},"f":{"d":"32,-176v-2,-48,14,-71,59,-69v13,0,20,7,20,18v1,28,-56,7,-37,53v18,-1,37,-1,37,16v0,20,-25,13,-39,18r0,121v0,13,-8,21,-20,21v-12,0,-20,-8,-20,-21r0,-121v-9,-3,-27,-3,-25,-18v-1,-14,14,-15,25,-18","w":118,"k":{"o":1,"e":1,"c":1,".":13,"-":2,",":13,"'":-5,"\"":-5,"?":-9}},"g":{"d":"16,-91v0,-50,20,-85,64,-86v24,0,39,9,47,21v0,-12,8,-18,20,-19v12,0,20,8,20,21r0,140v0,55,-28,83,-81,83v-29,0,-57,-10,-62,-33v7,-36,42,-3,64,-3v31,0,41,-23,38,-58v-9,13,-23,20,-46,20v-44,0,-64,-36,-64,-86xm92,-40v25,0,34,-22,34,-51v0,-28,-9,-50,-34,-50v-25,0,-35,22,-35,50v0,30,9,51,35,51","w":192},"h":{"d":"153,2v-56,0,18,-143,-53,-143v-50,0,-33,75,-33,122v0,13,-9,21,-21,21v-12,0,-20,-8,-20,-21r0,-206v0,-13,8,-22,20,-22v34,2,17,58,21,90v30,-40,106,-15,106,44r0,94v0,13,-8,21,-20,21","k":{"y":3,"v":3,"w":3}},"i":{"d":"22,-224v0,-13,11,-24,24,-24v13,0,25,11,25,24v0,13,-12,24,-25,24v-13,0,-24,-11,-24,-24xm46,2v-12,0,-20,-8,-20,-21r0,-135v0,-13,8,-21,20,-21v12,0,21,8,21,21r0,135v0,13,-9,21,-21,21","w":92},"j":{"d":"22,-224v0,-13,11,-24,24,-24v13,0,25,11,25,24v0,13,-12,24,-25,24v-13,0,-24,-11,-24,-24xm-7,48v0,-25,33,-11,33,-40r0,-162v0,-13,8,-21,20,-21v12,0,21,8,21,21r0,161v0,41,-18,58,-55,58v-12,0,-19,-7,-19,-17","w":92},"k":{"d":"67,-225r0,124r62,-67v10,-12,32,-8,33,9v-7,23,-30,34,-43,51v17,31,39,56,53,90v1,21,-28,26,-38,9r-43,-72r-24,26v0,25,5,58,-21,57v-12,0,-20,-8,-20,-21r0,-206v0,-13,8,-22,20,-22v12,0,21,9,21,22","w":187,"k":{"y":6,"-":12,"c":3,"e":3,"o":3,"d":3,"q":3,"u":6,"g":3,"a":6,"s":4}},"l":{"d":"66,-52v-4,25,31,13,31,36v0,11,-9,19,-24,18v-35,0,-47,-18,-47,-51r0,-176v0,-13,8,-22,20,-22v12,0,20,9,20,22r0,173","w":104,"k":{"y":1,"v":1,"-":4,",":-1,".":-1,"\"":5,"'":5,"*":8,"t":1,"w":1}},"m":{"d":"26,-19r0,-135v-2,-27,40,-26,41,-3v15,-26,78,-26,94,3v32,-42,118,-23,118,41r0,94v0,13,-8,21,-20,21v-55,0,19,-143,-53,-143v-50,0,-33,75,-33,122v0,13,-8,21,-20,21v-56,0,18,-143,-53,-143v-50,0,-33,75,-33,122v0,13,-9,21,-21,21v-12,0,-20,-8,-20,-21","w":303,"k":{"y":3,"v":3,"w":3}},"n":{"d":"67,-157v30,-40,106,-15,106,44r0,94v0,13,-8,21,-20,21v-56,0,18,-143,-53,-143v-50,0,-33,75,-33,122v0,13,-9,21,-21,21v-12,0,-20,-8,-20,-21r0,-135v-2,-27,40,-26,41,-3","k":{"y":3,"v":3,"w":3}},"o":{"d":"171,-87v0,59,-27,91,-77,91v-50,0,-77,-34,-77,-91v0,-58,26,-90,77,-90v50,0,77,31,77,90xm58,-87v0,33,9,55,36,55v27,0,36,-21,36,-55v0,-34,-8,-54,-36,-54v-28,0,-36,22,-36,54","w":188,"k":{"y":1,"x":4,"v":1,"w":1}},"p":{"d":"179,-87v0,53,-20,90,-65,91v-24,0,-39,-10,-47,-21v-3,31,12,83,-21,84v-12,0,-20,-9,-20,-22r0,-199v-2,-28,40,-26,41,-3v8,-12,23,-20,47,-20v45,0,65,38,65,90xm67,-87v0,34,10,55,36,55v26,0,35,-22,35,-55v0,-33,-9,-54,-35,-54v-26,0,-36,21,-36,54","w":196,"k":{"y":1,"x":3,"v":1}},"q":{"d":"17,-87v0,-53,20,-90,65,-90v25,-1,38,9,48,20v2,-11,8,-18,20,-18v12,0,20,8,20,21r0,199v0,13,-8,22,-20,22v-33,-1,-14,-56,-21,-84v-8,11,-23,21,-47,21v-45,-1,-65,-38,-65,-91xm58,-87v0,32,10,55,36,55v26,0,36,-23,36,-55v0,-32,-10,-54,-36,-54v-26,0,-36,22,-36,54","w":196},"r":{"d":"144,-156v-3,-36,-72,-18,-77,2v0,-13,-9,-21,-21,-21v-12,0,-20,8,-20,21r0,135v0,13,8,21,20,21v59,0,-28,-169,78,-138v12,0,20,-8,20,-20","w":151,"k":{"?":-7,"-":6,",":24,".":24,"\"":-5,"'":-5,"c":6,"e":6,"o":6,"d":6,"q":6,"g":6,"a":6,"s":3}},"s":{"d":"156,-148v-6,47,-83,-27,-94,22v-4,15,27,19,47,21v37,3,54,22,54,51v0,35,-26,58,-73,58v-34,0,-66,-8,-73,-34v10,-40,47,0,75,0v20,0,32,-8,32,-21v5,-16,-27,-20,-47,-21v-36,-4,-54,-21,-54,-51v0,-61,114,-73,133,-25","w":179},"t":{"d":"69,-54v-6,28,37,13,37,38v0,11,-9,18,-25,18v-72,0,-48,-80,-52,-142v-9,-3,-26,-3,-24,-18v-1,-14,13,-15,24,-18v0,-24,-4,-53,20,-53v27,0,16,35,22,55v17,-1,35,-1,35,16v0,19,-23,14,-37,18r0,86","w":115,"k":{"-":5,",":-1,".":-1,"\"":-1,"'":-1}},"u":{"d":"170,-19v2,26,-40,27,-41,3v-30,41,-105,15,-105,-44r0,-94v0,-13,8,-21,20,-21v54,0,-19,143,52,143v49,0,33,-75,33,-122v0,-13,8,-21,20,-21v12,0,21,8,21,21r0,135","w":195},"v":{"d":"114,-23v-12,34,-40,34,-53,0r-51,-133v-1,-22,31,-25,39,-5r40,105r38,-105v4,-21,39,-16,38,5v-14,47,-35,88,-51,133","w":175,"k":{"s":4,"q":3,"o":1,"g":3,"e":1,"d":3,"c":1,"a":4,".":19,"-":5,",":19}},"w":{"d":"213,-18v-7,27,-39,26,-47,0r-31,-96r-30,96v-7,27,-37,27,-46,0r-45,-138v-1,-23,33,-25,40,-2r31,103r30,-102v6,-24,33,-24,41,0r33,102r29,-103v3,-23,43,-21,39,2v-8,50,-31,91,-44,138","w":271,"k":{"-":3,",":13,".":13,"a":1,"s":3}},"x":{"d":"162,-16v0,19,-24,24,-35,9v-12,-17,-24,-36,-38,-52v-18,19,-27,51,-54,61v-16,0,-23,-18,-13,-31r44,-61v-14,-23,-35,-40,-44,-68v0,-17,25,-23,35,-8v11,15,20,32,33,45v16,-17,24,-48,49,-54v16,0,22,18,13,31r-39,54v16,25,38,45,49,74","w":178,"k":{"q":3,"o":4,"g":3,"e":4,"d":3,"c":4,"-":12}},"y":{"d":"99,15v-15,40,-29,51,-60,50v-12,0,-19,-8,-19,-18v2,-29,41,-7,45,-40r5,-14r-59,-149v-1,-22,31,-25,39,-5r40,104r37,-104v4,-21,39,-16,38,5v-19,60,-44,113,-66,171","w":175,"k":{"s":3,"q":2,"o":3,"g":2,"e":3,"d":2,"c":3,"a":2,".":19,"-":5,",":19}},"z":{"d":"138,0r-107,0v-24,-2,-20,-25,-6,-42r80,-96v-30,-4,-85,13,-87,-18v0,-10,6,-18,18,-18r102,0v24,2,21,25,6,43r-79,96v31,5,92,-14,92,17v0,10,-7,18,-19,18","w":169},"{":{"d":"17,-119v0,-24,31,-14,29,-48v-4,-51,-10,-99,53,-99v11,0,17,6,17,15v0,23,-32,6,-32,32v0,41,7,93,-25,101v34,5,23,60,25,100v-4,27,32,10,32,33v0,13,-12,15,-27,15v-52,0,-43,-53,-43,-101v0,-34,-29,-24,-29,-48","w":124,"k":{"j":-3}},"|":{"d":"59,32v-10,0,-17,-6,-17,-18r0,-264v0,-12,7,-18,17,-18v10,0,17,6,17,18r0,264v0,12,-7,18,-17,18","w":118},"}":{"d":"108,-119v0,24,-32,14,-30,48v4,51,10,101,-52,101v-11,0,-17,-6,-17,-15v0,-23,32,-6,32,-33v0,-41,-8,-94,25,-101v-34,-6,-25,-60,-25,-100v0,-26,-32,-8,-32,-32v0,-12,11,-15,26,-15v52,0,43,51,43,99v0,34,30,24,30,48","w":124},"~":{"d":"130,-104v13,2,22,-20,34,-19v8,0,14,5,14,14v0,23,-28,36,-48,37v-23,2,-42,-22,-62,-22v-13,-3,-22,20,-34,19v-8,0,-15,-5,-15,-14v0,-23,27,-36,48,-37v24,-2,44,19,63,22"},"\u00a0":{"w":86,"k":{"Y":5,"W":6,"T":4,"V":10}}}});
;
Cufon.replace('h3.block-title, body.front h2#page-title, #comments h2, body.page-comment .box h2, .OB_default .strip-like');;
(function ($) {

  $.modal = function() {
    var destination,
    defaults = {
      close: null,
      formPath: null,
      formLoaded: null,
      formReload: false,
      closeButton: false,
      modalClass: 'modal',
      fragment: ''
    },
    options = defaults,
    reload = false,
    $modal,
    $overlay,
    createdModal = false,
    initClose = function() {
      if (options.close || options.closeButton) {
        $modal.append($('<a/>').addClass(options.closeButton ? 'close close-button' : 'close close-link').attr({href: '#'}).text('Close X'));
      }
    },
    form = function(path) {
      $.ajax({
        url: path+'?destination='+destination,
        dataType: 'html',
        cache: false,
        success: function(data) {
          $modal.html(data);
          initClose();
          if (options.formLoaded) {
            if (options.formReload) reload = true;
            options.formLoaded();
          }
          else {
            var $form = $modal.find('form');
            $form.submit(function(){
              $form.find('input.form-submit').after($('<div>').addClass('loading'));
              $form.find('.error').removeClass('error');
              $modal.removeClass('errors').find('.errors').remove();
              $.ajax({
                url: $form.attr('action')+'?destination='+destination,
                data: $form.serialize(),
                type: 'POST',
                dataType: 'json',
                cache: false,
                success: function(data) {
                   $form.find('.loading').remove();
                  if (data.error) {
                    var $errors = $('<div>').addClass('errors'),
                    $ul = $('<ul>');
                    $.each(data.errors, function(key, error) {
                      var id = '#edit-'+key.urlize();
                      $(id).addClass('error');
                      $ul.append($('<li>').html(error));
                    });
                    $modal.addClass('errors').find('h2').after($errors.append($('<h4>').html('Errors')).append($ul));
                  }
                  else if (data.html) {
                    $modal.html(data.html);
                    initClose();
                    reload = true;
                  }
                  else if (data.redirect) {
                    var location = data.redirect;
                    if (options.fragment) { location = location+'#'+options.fragment; }
                    window.location = location;
                    window.location.reload(true);
                  }
                }
              });
              return false;
            });
            $modal.find('a.ajax-form').click(function(){
              form($(this).attr('href'));
              return false;
            });
          }
          $modal.show();
        }
      });
    },
    close = function() {
      if (reload) {
        var location = window.location.href;
        if (options.fragment) { location = location+'#'+options.fragment; }
        window.location = location;
        window.location.reload(true);
      }
      else {
        if (createdModal) {
          $modal.remove();
        }
        else {
          $modal.find('a.close').remove();
        }
        $overlay.animate({opacity: 0}, 100, function(){
          $(this).remove();
        });
      }
    },
    init = function(data, override) {
      options = $.extend({}, defaults, override);
      if (typeof data == 'object') {
        // convert DOM object to a jQuery object
        $modal = data instanceof jQuery ? data : $(data);
        $modal.addClass(options.modalClass);
      }
      else {
        createdModal = true;
        $modal = $('<div>').addClass(options.modalClass);
        if ((typeof data == 'string' || typeof data == 'number') && data) {
          $modal.html(data);
        }
        $('body').append($modal);
      }
      destination = window.location.href.split('://', 2);
      destination = destination[1].split(Drupal.settings.basePath);
      destination.shift();
      destination = destination.join('/');

      initClose();
      $modal.find('a.close').live('click', function() {
        close();
        return false
      });
            
      $overlay = $('<div>').attr('id', 'overlay').css({position: 'fixed', top: '0', opacity: 0, backgroundColor: '#2f2f2f', left: '0', height: '100%', width: '100%'}).click(function(){
        close();
      });
      $('body').append($overlay);
      $overlay.animate({opacity: 0.9}, 100, function(){
        if (options.formPath) {
          form(options.formPath);
        }
        else {
          $modal.show();
        }
      });
    };
    return {init: init, close: close};
    }();

    $.fn.modal = function (options) {
      return $.modal.init(this, options);
    };

    })(jQuery);
;
String.prototype.urlize = function(options) {
  var options = $.extend({
    separator: '-'
    }, options);
    var string = $.trim(this);
    string = string.toLowerCase();
    string = string.replace(/[^a-zA-Z0-9\ \-\_]+/g, '');
    string = string.replace(/[\-\_\s]+/g, options.separator);
    return string;
  };


  var enlarge = function() {
    var $content,
    $images,
    $caption,
    supersize = function($image){
      if ($image.data('supersized') != true) {
        $image.css('z-index', '900');
        $('body').append($('<div>').attr('id', 'overlay').click(function(){
          $('#image-close').remove();
          regularsize($image);
          }));
          $('#overlay').css({position: 'fixed', top: '0', opacity: 0, backgroundColor: '#2f2f2f', left: '0', height: '100%', width: '100%'})
          .animate({opacity: 0.9}, 100);
          $image.data('supersized', true);

          var $wrapper = $image.find('.image-wrapper'),
          $inner = $wrapper.find('.image-inner'),
          $caption = $inner.find('.caption'),
          $img = $inner.find('img'),
          src = $img.attr('src'),
          original = src.match(/_((\d*)x(\d*))./),
          dimensions = $img.attr('class').match(/enlarge-((\d*)x(\d*))/),
          height_m = $img.height(),//original[3],
          width_m = $img.width(),//original[2],
          height_l = dimensions[3],
          width_l = dimensions[2],
          new_src = src.replace(original[1], dimensions[1]),

          regularsize = function() {
            $image.data('supersized', false);
            $('#overlay').animate({opacity: 0}, 'fast', function(){
              $(this).remove();
            });          
            $img.animate({height: height_m, width: width_m}, 'fast');
            $inner.animate({height: height_m, width: width_m+'px'}, 'fast');
            $wrapper.css({'-webkit-box-shadow': '0 0 0 #000', '-moz-box-shadow': '0 0 0 #000', 'box-shadow': '0 0 0 #000'}).animate({width: '620px'}, 'fast', function(){
              $image.css('z-index', 'auto');
              $(this).css({position: 'relative', top: 'auto', left: 'auto', 'z-index': 'auto'});
              var image = $('<img>').attr({src: src, width: width_m, height: height_m}).addClass(dimensions[0]).load(function(){
                $img.replaceWith($(this));
                $img = $inner.find('img');
              });
            });
          };

          if ($caption.length) {
            $image.css({height: (parseInt(height_m) + $caption.height())+'px'});
          }
          else {
            $image.css({height: height_m+'px'});
          }

          $wrapper
          .css({position: 'absolute', top: '0', left: '0', width: '620px', 'z-index': '1001'})
          .animate({width: width_l+'px'}, 'fast', function(){
            $wrapper.css({'-webkit-box-shadow': '0 0 20px #000', '-moz-box-shadow': '0 0 20px #000', 'box-shadow': '0 0 20px #000'});
          });
          $inner.animate({height: height_l, width: width_l}, 'fast');
          $img.animate({height: height_l, width: width_l}, 'fast', function(){
            if ($image.data('supersized')) {
              $inner.append($('<a/>').attr({id: 'image-close', href: '#'}).text('close x').click(function(){
                regularsize($image);
                $(this).remove();
                return false;
                }));
                var image = $('<img>').attr({src: new_src, width: width_l, height: height_l}).addClass(dimensions[0]).load(function(){
                  if ($image.data('supersized')) {
                    $img.replaceWith($(this));
                    $img = $inner.find('img');
                  }
                });
              }
            });
          }
        },

        init = function() {
          $content = $('.node-post .content');
          $images = $content.find('img');
          if ($images.length) {
            $images.each(function(){
              var $img = $(this),
              caption = $img.attr('title'),
              enlarge = $img.hasClass('enlarge');
              $img.attr('title', $img.attr('alt'));
              if (caption || enlarge) {
                $div = $('<div>').addClass('image'),
                $caption = $('<div>').addClass('caption'),
                $inner = $('<div>').addClass('image-inner').css('width', $img.width() +'px'),
                style = $img.attr('style');
                $img.removeAttr('style').before($div);

                if (caption) {
                  $inner.append($caption.append($('<p>').html(caption)));
                }
                $inner.prepend($img);

                if (enlarge) {
                  $inner.append($('<a/>').addClass('enlarge-message').text('+ Enlarge Image').hide());
                  $div.addClass('enlarge').prepend($('<div>').addClass('image-wrapper').html($inner)).click(function(){
                    $(this).find('.enlarge-message').hide();
                    supersize($(this));
                    return false;
                  }).hover(function(){
                    if ($(this).data('supersized') != true) {
                      $(this).find('.enlarge-message').show();
                    }
                  }, function(){
                    if ($(this).data('supersized') != true) {
                      $(this).find('.enlarge-message').hide();
                    }
                  });
                }
                else {
                  if (style) {
                    $div.attr('style', style);
                  }
                  $div.addClass('image-inline').prepend($('<div>').addClass('image-wrapper').html($inner));
                }
              }
            });
          }
        };
        return {init:init}
        }(),

        slideshow = function() {
          var $wrapper,
          $images,
          $nav,
          $inner,
          $image,
          $caption,
          count = 0,
          max,
          $pager,
          $img,
          photo,
          supersized = false,
          $loading,
          animating = false,
          waiting = false,

          image_init = function() {
            $image.click(function(){
              if (supersized == true) {
                if (max > 1) {
                  next();
                }
              }
              else {
                supersize();
              }
            });
          },

          // Next Image
          next = function() {
            count++;
            if (count >= max) {
              count = 0;
            }
            swap(count);
          },

          // Previous Image
          prev = function() {
            count--;
            if (count < 0) {
              count = max - 1;
            }
            swap(count);
          },

          // Change images
          swap = function(i){
            count = i;
            photo = Drupal.settings.post.images[count];
            $pager.find('a').removeClass('active');
            $pager.find('a:eq('+count+')').addClass('active');
            if (max > 5) {
              if (count < 4) {
                var pager_max = 5
              }
              else if (count + 3 > max) {
                var pager_max = max;
              }
              else {
                var pager_max = count + 3;
              }
              var pager_min = pager_max - 5;        
              $pager.find('li').each(function(j){
                $(this).find('span.ellipse').remove();
                if (j >= pager_min && j < pager_max) {
                  $(this).css('display', 'inline-block');
                }
                else if (j == 0 && j <= pager_min) {
                  $(this).css('display', 'inline-block');
                  if (j + 1 < pager_min) {
                    $(this).append($('<span>').addClass('ellipse').text('...'));
                  }
                }
                else if (j == max-1 && j >= pager_max) {
                  $(this).css('display', 'inline-block');
                  if (j - 1 >= pager_max) {
                    $(this).prepend($('<span>').addClass('ellipse').text('...'));
                  }
                }
                else {
                  $(this).hide();
                }
              });

            }
            $caption.slideUp('fast', function(){
              var previously_supersized = supersized;
              if (supersized) {
                var width = photo.width_l,
                height = photo.height_l,
                url = photo.url_l,
                wrapper_width = 940;
              }
              else {
                var width = photo.width_m,
                height = photo.height_m,
                url = photo.url_m,
                wrapper_width = 620;
              }
              $loading.css({height: height}, 'fast').fadeIn('fast');
              $inner.animate({height: height}, 'fast');
              $image.fadeOut('fast', function(){
                $image.remove();
              });
              
              if (!url.match(/http:\/\//)) {
                url = Drupal.settings.basePath+url;
              }

              var image = $('<div>').addClass('image').css({display: 'none', 'z-index': '11', width: wrapper_width, height: height}),
              
              img = $('<img>').attr({src: url, width: width, height: height}).load(function(){
                animating = true;
                $loading.fadeOut();

                image.fadeIn('slow', function(){

                  if (photo.caption) {
                    $caption.html(photo.caption).slideDown();
                  }
                  image.css({'z-index': '1'});
                  $img = img;
                  $image = image;
                  image_init();
                  animating = false;
                  if (waiting) {
                    regularsize();
                    waiting = false;
                  }
                });

                
                }),
              hold = image.append(img);
              $inner.append(hold);
            });
          },

            supersize = function(){
              supersized = true;
              $wrapper.css('z-index', '900');
              $('body').append($('<div>').attr('id', 'overlay').click(function(){
                $('#image-close').remove();
                regularsize();
                }));
                $('#overlay').css({position: 'fixed', top: '0', opacity: 0, backgroundColor: '#2f2f2f', left: '0', height: '100%', width: '100%'})
                .animate({opacity: 0.9}, 'fast');
                $('#image-enlarge').hide();
                $wrapper.css({height: $images.innerHeight()});
                $images
                .css({position: 'absolute', top: '0', left: '0', width: '620px', 'z-index': '1001'})
              .animate({width: '940px'}, 'fast', function(){
                $(this).css({'-webkit-box-shadow': '0 0 20px #000', '-moz-box-shadow': '0 0 20px #000', 'box-shadow': '0 0 20px #000'});
              });
              $inner.animate({height: photo.height_l, width: '940px'}, 'fast');
              $image.animate({height: photo.height_l, width: '940px'}, 'fast');
              $loading.css({height: photo.height_l, width: '940px'});
              $img.animate({height: photo.height_l, width: photo.width_l}, 'fast', function(){
                if (supersized) {
                  $images.append($('<a/>').attr({id: 'image-close', href: '#'}).text('close x').click(function(){
                    regularsize();
                    $(this).remove();
                    return false;
                    }));
                    var url = photo.url_l;
                    if (!url.match(/http:\/\//)) {
                      url = Drupal.settings.basePath+url;
                    }
                    var image = $('<img>').attr({src: url, width: photo.width_l, height: photo.height_l}).load(function(){
                      if (supersized) {
                        $img.replaceWith($(this));
                        $img = $image.find('img');
                      }
                    });
                  }
                });
              },

              regularsize = function() {
                if (animating) { waiting = true; }
                else {
                  supersized = false;
                  $('#overlay').animate({opacity: 0}, 'fast', function(){
                    $(this).remove();
                  });
                  $img.animate({height: photo.height_m, width: photo.width_m}, 'fast');
                  $inner.animate({height: photo.height_m, width: '620px'}, 'fast');
                  $image.animate({height: photo.height_m, width: '620px'}, 'fast');
                  $loading.css({height: photo.height_m, width: '620px'});
                  $images.css({'-webkit-box-shadow': '0 0 0 #000', '-moz-box-shadow': '0 0 0 #000', 'box-shadow': '0 0 0 #000'}).animate({width: '620px'}, 'fast', function(){
                    $wrapper.css('z-index', 'auto');
                    $(this).css({position: 'relative', top: '0', left: '0', 'z-index': 'auto'})
                    //$wrapper.css({height: 'auto'});
                    $('#image-enlarge').show();
                  });
                }
              },

            // Initialize slideshow
            init = function() {
              $image_nav = $('#images-nav');
              if (Drupal.settings.post) {
                $images = $('#images');
                $wrapper = $('#images-wrapper');
                $inner = $('#images-inner');
                $image = $inner.find('.image');
                $caption = $images.find('.caption');
                $pager = $image_nav.find('li.pager');
                max = Drupal.settings.post.images.length;
                $img = $image.find('img');
                photo = Drupal.settings.post.images[count];
                var nav_ul = $('<ul>'),
                height = Drupal.settings.post.images[0].height_m,
                width = Drupal.settings.post.images[0].width_m;

                image_init();

                if ($image_nav.length) {
                  $wrapper.append($('<a/>').attr({id: 'image-enlarge', href: '#'}).text('+ enlarge gallery').click(function(){
                    supersize();
                    return false;
                    }));
                  }
                  else {
                    $wrapper.append($('<a/>').addClass('enlarge-message').attr({id: 'image-enlarge', href: '#'}).text('+ enlarge gallery').click(function(){
                      supersize();
                      return false;
                      }));
                    }


                  $loading = $('<div>').addClass('loading').css({display: 'none'});
                  $inner.append($loading);
                  $inner.css({height: height});
                  $image.css({height: height, width: '620px'});

                  if (Drupal.settings.post.images[0].caption) {
                    $caption.slideDown();
                  }
                  for (i = 1; i<= max; i++) {
                    var current = i,
                    nav_a = $('<a/>').attr({href: '#', title: i}).text(i).click(function(){
                      var page = $(this).attr('title') - 1;
                      swap(page);
                      return false;
                    });
                    if (i == 1) nav_a.addClass('active');
                    var nav_li = $('<li>').append(nav_a);
                    if (i == 1) {
                      nav_li.addClass('first')
                    }
                    else if (i == max) {
                      nav_li.addClass('last');
                      if (max > 6) {
                        nav_li.prepend($('<span>').addClass('ellipse').text('...'));
                      }
                    }
                    else if (i > 5) {
                      nav_li.css('display', 'none');
                    }
                    nav_ul.append(nav_li);
                  }
                  $pager.html(nav_ul);

                  $image_nav.find('a.next').click(function(){
                    next();
                    return false;
                  });

                  $image_nav.find('a.prev').click(function(){
                    prev();
                    return false;
                  });

                }    
              };

              return {init:init}
              }(),

              // Generate random string
              randomstring = function() {
                var chars = "0123456789abcdefghiklmnopqrstuvwxyz";
                var string_length = 8;
                var randomstring = '';
                for (var i=0; i<string_length; i++) {
                  var rnum = Math.floor(Math.random() * chars.length);
                  randomstring += chars.substring(rnum,rnum+1);
                }
                return randomstring;
              },

              loginModal = function(path, fragment) {
                var options = {
                  close: true,
                  modalClass: 'modal modal-login',
                  formPath: Drupal.settings.basePath+path,
                  fragment: fragment
                };
                $.modal.init('', options);
              },
              valid_email_address = function(value) { 
                return /.+@.+\..+/.test(value);
              },
              valid_url = function(value) {
                var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
                return regexp.test(value);
              };

              Drupal.behaviors.clickGeneral = function() {
                slideshow.init();
                enlarge.init();                

                $('a[rel=external]').attr('target', '_blank');

                var anonymous = $('body').hasClass('not-logged-in'),
                $social = $('#social'),
                $sharing = $('#social-sharing');
                
                if ($sharing.length > 0) {
                  var $sharing_vertical = $sharing.find('.social-vertical'),
                  $sharing_horizontal = $sharing.find('.social-horizontal'),
                  sharing_vertical_offset = $sharing_vertical.offset(),
                  sharing_vertical_height = $sharing_vertical.height(),
                  resize_width = $('#page').width() + ($sharing_vertical.width() * 2),
                  container_vertical_offset = $('#container-shadow').offset(),
                  sharing_width = function() {
                    if ($(window).width() < resize_width) {
                      $sharing_horizontal.show();
                      $sharing_vertical.hide();
                    }
                    else {
                      $sharing_horizontal.hide();
                      $sharing_vertical.show().css({position: 'absolute', top: 'auto', left: '-100px'});
                      sharing_vertical_offset = $sharing_vertical.offset();
                      sharing_offset();
                    }
                  },
                  sharing_offset = function() {
                    sharing_vertical_height = $sharing_vertical.height();
                    container_vertical_offset = $('#container-shadow').offset();
                    if ($(window).scrollTop() > (container_vertical_offset.top - sharing_vertical_height-2)) {
                      $sharing_vertical.css({position: 'absolute', top: (container_vertical_offset.top - sharing_vertical_offset.top - sharing_vertical_height + 8)+'px', left: '-100px'});
                    }
                    else if ($(window).scrollTop() > (sharing_vertical_offset.top - 9)) {
                      $sharing_vertical.css({position: 'fixed', top: '9px', left: sharing_vertical_offset.left+'px'});
                    }
                    else {
                      $sharing_vertical.css({position: 'absolute', top: 'auto', left: '-100px'});
                    }
                  };
                  $(window).scroll(function(){
                    sharing_offset();
                  });
                  sharing_width();
                  $(window).resize(function() {
                    sharing_width();
                  });
                }

                if (Drupal.settings.background) {
                  $('body').css({
                    'background-image': 'url('+Drupal.settings.background+')',
                    'background-repeat': 'no-repeat',
                    'background-position': 'top',
                    '-webkit-background-size': '1920px auto'
                  });
                }
                
                $social.find('.pixiq-user-newsletter-signup').submit(function(){
                  var $form = $(this),
                  email = $form.find('.form-text');
                  if (valid_email_address(email.val())) {
                    $form.addClass('loading');
                    $social.find('.pixiq-user-newsletter-signup > div').fadeOut();
                    $.ajax({
                      url: $form.attr('action'),
                      data: $form.serialize(),
                      type: 'POST',
                      dataType: 'json',
                      cache: false,
                      success: function(data) {
                        $form.removeClass('loading').append($('<div>').addClass('message').append(data.message).fadeIn());
                      }
                    });
                  }
                  else {
                    email.addClass('error');
                  }
                  return false;
                });

                var $navigation = $('#navigation-links'),
                navigation_timeout,
                $dropdowns = $navigation.find('.dropdown');

                $.each($dropdowns, function() {
                  var $dropdown = $(this),
                  $trees = $dropdown.find('li.tree'),
                  height = 0;
                  $.each($trees, function(){
                    var $tree = $(this);
                    if ($tree.height() > height) {
                      height = $tree.height();
                    }
                  });   
                  $trees.css('height', height+'px');
                });
                $dropdowns.hide().css('visibility', 'visible');

                $navigation.find('li').hover(function(){
                  var dropdown = $(this).find('.dropdown');
                  navigation_timeout = setTimeout( function(){dropdown.show();}, 300);
                  $(this).addClass('hover').find('a.nav').addClass('hover');
                },function(){
                  navigation_timeout = clearTimeout(navigation_timeout);
                  $(this).removeClass('hover').find('a.nav').removeClass('hover');
                  $(this).find('.dropdown').hide();
                });

                if (anonymous) {
                  $('#comment-form').find('a.login').click(function(){
                    $('#comment-form').removeAttr('id');
                    loginModal('ajax/login/comment', 'comment-form');
                    return false;
                  });

                  var $user_links = $('#user-links');
                  $user_links.find('li.login a').click(function(){
                    loginModal('ajax/login');
                    return false;
                  });

                  $user_links.find('li.register a').click(function(){
                    loginModal('ajax/register');
                    return false;
                  });

                  $('li.comment_reply a, a.comment_reply').click(function(){
                    var comment = $(this).parents('.comment'),
                    a = comment.prev('a'),
                    fragment = a.attr('id');
                    a.remove();
                    loginModal('ajax/login/comment', fragment);
                    return false;
                  });
                }

                var $forms = $('#search-theme-form, .pixiq-user-newsletter-signup, #search-block-form');
                $forms.find('input.form-text.default').focus(function(){
                  $(this).val('').removeClass('default');
                });

                var $content = $('#content-content'),
                $load_more = $content.find('#load-more');
                if ($load_more.length == 1) {
                  $content.find('.pager').hide();
                  $load_more.find('a.button').click(function(){
                    var $button = $(this);
                    if (!$button.hasClass('disabled')) {
                      $button.addClass('disabled');
                      $load_more.addClass('loading');
                      var nid = $content.find('.node:last').attr('id').replace('node-', '');
                      var topic_id = 0;
                      if ($('body').hasClass('node-type-topic')) {
                        topic_id = $content.find('.node-topic').attr('id').replace('node-', '');
                      }
                      $.ajax({
                        url: Drupal.settings.basePath+'ajax/posts/'+topic_id+'/'+nid,
                        dataType: 'html',
                        cache: false,
                        success: function(data){
                          if (data) {
                            $load_more.removeClass('loading').before(data);
                          }
                          else {
                            $load_more.remove();
                          }
                        },
                        complete: function(data) {
                          $button.removeClass('disabled');
                        }
                      });
                    }
                    return false;
                  });
                }

              }

              Drupal.behaviors.apachesolr = function(context) {
                $('.apachesolr-hidden-facet', context).hide();
                $('<a href="#" class="apachesolr-showhide"></a>').text(Drupal.t('[+] more')).click(function() {
                  if ($(this).parent().find('.apachesolr-hidden-facet:visible').length == 0) {
                    $(this).parent().find('.apachesolr-hidden-facet').show();
                    $(this).text(Drupal.t('[-] fewer'));
                  }
                  else {
                    $(this).parent().find('.apachesolr-hidden-facet').hide();
                    $(this).text(Drupal.t('[+] more'));
                  }
                  return false;
                  }).appendTo($('.block-apachesolr_search:has(.apachesolr-hidden-facet), .block-apachesolr:has(.apachesolr-hidden-facet)', context));
                }
;

