/*
 * Copyright (c) 2008 Simo Kinnunen.
 * Licensed under the MIT license.
 */ 
var Cufon=(function(){var k=function(){return k.replace.apply(null,arguments)};var s=k.DOM={ready:(function(){var x=false,z={loaded:1,complete:1};var w=[],y=function(){if(x){return}x=true;for(var A;A=w.shift();A()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",y,false);window.addEventListener("pageshow",y,false)}if(!window.opera&&document.readyState){(function(){z[document.readyState]?y():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");y()}catch(A){setTimeout(arguments.callee,1)}})()}o(window,"load",y);return function(A){if(!arguments.length){y()}else{x?A():w.push(A)}}})()};var l=k.CSS={Size:function(x,w){this.value=parseFloat(x);this.unit=String(x).match(/[a-z%]*$/)[0]||"px";this.convert=function(y){return y/w*this.value};this.convertFrom=function(y){return y/this.value*w};this.toString=function(){return this.value+this.unit}},getStyle:function(x){var w=document.defaultView;if(w&&w.getComputedStyle){return new a(w.getComputedStyle(x,null))}if(x.currentStyle){return new a(x.currentStyle)}return new a(x.style)},ready:(function(){var y=false;var x=[],z=function(){y=true;for(var B;B=x.shift();B()){}};var w=Object.prototype.propertyIsEnumerable?e("style"):{length:0};var A=e("link");s.ready(function(){var E=0,D;for(var C=0,B=A.length;D=A[C],C<B;++C){if(!D.disabled&&D.rel.toLowerCase()=="stylesheet"){++E}}if(document.styleSheets.length>=w.length+E){z()}else{setTimeout(arguments.callee,10)}});return function(B){if(y){if(h){$(".scroll-pane").jScrollPane();h=false;}B()}else{x.push(B)}}})(),supports:function(y,x){var w=document.createElement("span").style;if(w[y]===undefined){return false}w[y]=x;return w[y]===x},textAlign:function(z,y,w,x){if(y.get("textAlign")=="right"){if(w>0){z=" "+z}}else{if(w<x-1){z+=" "}}return z},textDecoration:function(B,A){if(!A){A=this.getStyle(B)}var x={underline:null,overline:null,"line-through":null};for(var w=B;w.parentNode&&w.parentNode.nodeType==1;){var z=true;for(var y in x){if(x[y]){continue}if(A.get("textDecoration").indexOf(y)!=-1){x[y]=A.get("color")}z=false}if(z){break}A=this.getStyle(w=w.parentNode)}return x},textShadow:i(function(A){if(A=="none"){return null}var z=[],B={},w,x=0;var y=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(w=y.exec(A)){if(w[0]==","){z.push(B);B={},x=0}else{if(w[1]){B.color=w[1]}else{B[["offX","offY","blur"][x++]]=w[2]}}}z.push(B);return z}),color:i(function(x){var w={};w.color=x.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(z,y,A){w.opacity=parseFloat(A);return"rgb("+y+")"});return w}),textTransform:function(x,w){return x[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[w.get("textTransform")]||"toString"]()}};k.VML={parsePath:function(z){var w=[],y=/([mrvxe])([^a-z]*)/g,x;while(x=y.exec(z)){w.push({type:x[1],coords:x[2].split(",")})}return w}};function p(x){var w=this.face=x.face;this.glyphs=x.glyphs;this.w=x.w;this.baseSize=parseInt(w["units-per-em"],10);this.family=w["font-family"].toLowerCase();this.weight=w["font-weight"];this.style=w["font-style"]||"normal";this.viewBox=(function(){var y=w.bbox.split(/\s+/);return{minX:parseInt(y[0],10),minY:parseInt(y[1],10),width:parseInt(y[2],10)-parseInt(y[0],10),height:parseInt(y[3],10)-parseInt(y[1],10),toString:function(){return[this.minX,this.minY,this.width,this.height].join(" ")}}})();this.ascent=-parseInt(w.ascent,10);this.descent=-parseInt(w.descent,10);this.height=-this.ascent+this.descent}function d(){var x={},w={oblique:"italic",italic:"oblique"};this.add=function(y){(x[y.style]||(x[y.style]={}))[y.weight]=y};this.get=function(C,D){var B=x[C]||x[w[C]]||x.normal||x.italic||x.oblique;if(!B){return null}D={normal:400,bold:700}[D]||parseInt(D,10);if(B[D]){return B[D]}var z={1:1,99:0}[D%100],F=[],A,y;if(z===undefined){z=D>400}if(D==500){D=400}for(var E in B){E=parseInt(E,10);if(!A||E<A){A=E}if(!y||E>y){y=E}F.push(E)}if(D<A){D=A}if(D>y){D=y}F.sort(function(H,G){return(z?(H>D&&G>D)?H<G:H>G:(H<D&&G<D)?H>G:H<G)?-1:1});return B[F[0]]}}function v(){var y={},w=0;function x(z){return z.cufid||(z.cufid=++w)}this.get=function(z){var A=x(z);return y[A]||(y[A]={})}}function a(w){var y={},x={};this.get=function(z){return y[z]!=undefined?y[z]:w[z]};this.getSize=function(A,z){return x[A]||(x[A]=new l.Size(this.get(A),z))};this.extend=function(z){for(var A in z){y[A]=z[A]}return this}}function o(x,w,y){if(x.addEventListener){x.addEventListener(w,y,false)}else{if(x.attachEvent){x.attachEvent("on"+w,function(){return y.apply(x,arguments)})}}}function i(w){var x={};return function(y){if(!x.hasOwnProperty(y)){x[y]=w.apply(null,arguments)}return x[y]}}function b(B,A){if(!A){A=l.getStyle(B)}var x=A.get("fontFamily").split(/\s*,\s*/),z;for(var y=0,w=x.length;y<w;++y){z=x[y].replace(/^(["'])(.*?)\1$/,"$2").toLowerCase();if(g[z]){return g[z].get(A.get("fontStyle"),A.get("fontWeight"))}}return null}function e(w){return document.getElementsByTagName(w)}function f(){var w={},z;for(var y=0,x=arguments.length;y<x;++y){for(z in arguments[y]){w[z]=arguments[y][z]}}return w}function m(z,H,x,I,A,y){var G=I.separate;if(G=="none"){return u[I.engine].apply(null,arguments)}var F=document.createDocumentFragment(),C;var D=H.split(n[G]),w=(G=="words");if(w&&q){if(/^\s/.test(H)){D.unshift("")}if(/\s$/.test(H)){D.push("")}}for(var E=0,B=D.length;E<B;++E){C=u[I.engine](z,w?l.textAlign(D[E],x,E,B):D[E],x,I,A,y,E<B-1);if(C){F.appendChild(C)}}return F}function j(x,E){var C=c.get(x);if(!E){E=C.options}var y,w,B;for(var z=x.firstChild;z;z=B){B=z.nextSibling;if(z.nodeType==1){if(!z.firstChild){continue}if(!/cufon/.test(z.className)){arguments.callee(z,E);continue}}var D=z.nodeType==3?z.data:z.alt;if(D===""){continue}if(!w){w=l.getStyle(x).extend(E)}if(!y){y=b(x,w)}if(!y){continue}var A=m(y,D,w,E,z,x);if(A){z.parentNode.replaceChild(A,z)}else{z.parentNode.removeChild(z)}}if(!C.options){C.options=E}}var q=" ".split(/\s+/).length==0;var c=new v();var t=[];var h=false;var u={},g={},r={enableTextDecoration:false,engine:null,printable:true,selector:(window.Sizzle||(window.dojo&&dojo.query)||(window.$$&&function(w){return $$(w)})||(window.$&&function(w){return $(w)})||(document.querySelectorAll&&function(w){return document.querySelectorAll(w)})||e),separate:"words",textShadow:"none"};var n={words:/\s+/,characters:""};k.now=function(){s.ready();return k};k.refresh=function(){var y=t.splice(0,t.length);for(var x=0,w=y.length;x<w;++x){k.replace.apply(null,y[x])}return k};k.registerEngine=function(x,w){if(!w){return k}u[x]=w;return k.set("engine",x)};k.registerFont=function(y){var w=new p(y),x=w.family;if(!g[x]){g[x]=new d()}g[x].add(w);return k.set("fontFamily",x)};k.loadJScrollPane=function(){h=true;};k.replace=function(y,x,w){x=f(r,x);if(!x.engine){return k}if(typeof x.textShadow=="string"){x.textShadow=l.textShadow(x.textShadow)}if(!w){t.push(arguments)}if(y.nodeType||typeof y=="string"){y=[y]}l.ready(function(){for(var A=0,z=y.length;A<z;++A){var B=y[A];if(typeof B=="string"){k.replace(x.selector(B),x,true)}else{j(B,x)}}});return k};k.set=function(w,x){r[w]=x;return k};return k})();Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return null}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("@media screen,projection{.cufon-canvas{display:inline;display:inline-block;position:relative;vertical-align:middle"+(e?"":";font-size:1px;line-height:1px")+"}.cufon-canvas .cufon-alt{display:none}"+(a?".cufon-canvas canvas{position:relative}":".cufon-canvas canvas{position:absolute}")+"}@media print{.cufon-canvas{padding:0 !important}.cufon-canvas canvas{display:none}.cufon-canvas .cufon-alt{display:inline}}"));document.getElementsByTagName("head")[0].appendChild(f);function d(q,j){var p=0,o=0;var g=Cufon.VML.parsePath(q);var h=new Array(g.length-1);generate:for(var m=0,k=g.length;m<k;++m){var n=g[m].coords;switch(g[m].type){case"v":h[m]={m:"bezierCurveTo",a:[p+Number(n[0]),o+Number(n[1]),p+Number(n[2]),o+Number(n[3]),p+=Number(n[4]),o+=Number(n[5])]};break;case"r":h[m]={m:"lineTo",a:[p+=Number(n[0]),o+=Number(n[1])]};break;case"m":h[m]={m:"moveTo",a:[p=Number(n[0]),o=Number(n[1])]};break;case"x":h[m]={m:"closePath"};break;case"e":break generate}j[h[m].m].apply(j,h[m].a)}return h}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(R,v,M,r,B,S){var z=R.viewBox;var k=M.getSize("fontSize",R.baseSize);var K=M.get("letterSpacing");K=(K=="normal")?0:k.convertFrom(parseInt(K,10));var A=0,L=0,J=0,t=0;var w=r.textShadow,H=[];if(w){for(var Q=0,N=w.length;Q<N;++Q){var D=w[Q];var G=k.convertFrom(parseFloat(D.offX));var F=k.convertFrom(parseFloat(D.offY));H[Q]=[G,F];if(F<A){A=F}if(G>L){L=G}if(F>J){J=F}if(G<t){t=G}}}var V=Cufon.CSS.textTransform(v,M).split("");var h=0,u=null;for(var Q=0,N=V.length;Q<N;++Q){var s=R.glyphs[V[Q]]||R.missingGlyph;if(!s){continue}h+=u=Number(s.w||R.w)+K}if(u===null){return null}L+=(z.width-u);t+=z.minX;var q=document.createElement("span");q.className="cufon cufon-canvas";q.alt=v;var m=document.createElement("canvas");var W=q.style;var E=m.style;var j=k.convert(z.height-A+J);var U=Math.ceil(j);var I=U/j;m.width=Math.ceil(k.convert(h+L-t)*I);m.height=U;A+=z.minY;E.top=Math.round(k.convert(A-R.ascent))+"px";E.left=Math.round(k.convert(t))+"px";var p=Math.ceil(k.convert(h*I))+"px";if(a){W.width=p;W.height=k.convert(R.height)+"px"}else{W.paddingLeft=p;W.paddingBottom=(k.convert(R.height)-1)+"px"}var T=m.getContext("2d"),C=U/z.height;T.scale(C,C);T.translate(-t,-A);T.lineWidth=R.face["underline-thickness"];T.save();function n(i,g){T.strokeStyle=g;T.beginPath();T.moveTo(0,i);T.lineTo(h,i);T.stroke()}var o=r.enableTextDecoration?Cufon.CSS.textDecoration(S,M):{};if(o.underline){n(-R.face["underline-position"],o.underline)}if(o.overline){n(R.ascent,o.overline)}T.fillStyle=M.get("color");function P(){for(var x=0,g=V.length;x<g;++x){var y=R.glyphs[V[x]]||R.missingGlyph;if(!y){continue}T.beginPath();if(y.d){if(y.code){c(y.code,T)}else{y.code=d("m"+y.d,T)}}T.fill();T.translate(Number(y.w||R.w)+K,0)}}if(w){for(var Q=0,N=w.length;Q<N;++Q){var D=w[Q];T.save();T.fillStyle=D.color;T.translate.apply(T,H[Q]);P();T.restore()}}P();T.restore();if(o["line-through"]){n(-R.descent,o["line-through"])}q.appendChild(m);if(r.printable){var O=document.createElement("span");O.className="cufon-alt";O.appendChild(document.createTextNode(v));q.appendChild(O)}return q}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return}document.write('<!--[if vml]><script type="text/javascript">Cufon.vmlEnabled=true;<\/script><![endif]-->');if(!Cufon.vmlEnabled){return}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml");document.write('<style type="text/css">@media screen{cvml\\:shape,cvml\\:group,cvml\\:shapetype,cvml\\:fill{behavior:url(#default#VML);display:inline-block;antialias:true;position:absolute}.cufon-vml{display:inline-block;position:relative;vertical-align:middle}.cufon-vml .cufon-alt{display:none}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none}.cufon-vml .cufon-alt{display:inline}}</style>')}var c=0;function b(e,f){return a(e,/(?:em|ex|%)$/i.test(f)?"1em":f)}function a(h,i){if(/px$/i.test(i)){return parseFloat(i)}var g=h.style.left,f=h.runtimeStyle.left;h.runtimeStyle.left=h.currentStyle.left;h.style.left=i;var e=h.style.pixelLeft;h.style.left=g;h.runtimeStyle.left=f;return e}function d(f,h){var e=document.createElement("cvml:shapetype");e.id="cufon-glyph-"+c++;f.typeRef="#"+e.id;e.stroked="f";e.coordsize=h.width+","+h.height;e.coordorigin=h.minX+","+h.minY;var g="m"+h.minX+","+h.minY+" r"+h.width+","+h.height;e.path=(f.d?"m"+f.d+"x":"")+g;document.body.insertBefore(e,document.body.firstChild)}return function(M,u,I,r,y,N,G){var x=M.viewBox;var g=I.computedFontSize||(I.computedFontSize=new Cufon.CSS.Size(b(N,I.get("fontSize"))+"px",M.baseSize));var F=I.computedLSpacing;if(F==undefined){F=I.get("letterSpacing");I.computedLSpacing=F=(F=="normal")?0:g.convertFrom(a(N,F))}var q=document.createElement("span");q.className="cufon cufon-vml";q.alt=u;var h=document.createElement("cvml:group");var S=q.runtimeStyle;var B=h.runtimeStyle;var f=g.convert(x.height);B.height=Math.ceil(f);B.top=Math.round(g.convert(x.minY-M.ascent));B.left=Math.round(g.convert(x.minX));var E=parseInt(B.height,10)/f;S.height=g.convert(-M.ascent+M.descent)+"px";var k=r.enableTextDecoration?Cufon.CSS.textDecoration(N,I):{};var t=I.get("color");var Q=Cufon.CSS.textTransform(u,I).split("");var e=0,D=0,m=null;var w=r.textShadow;for(var L=0,J=Q.length;L<J;++L){var s=M.glyphs[Q[L]]||M.missingGlyph;if(!s){continue}if(!s.typeRef){d(s,x)}var n=document.createElement("cvml:shape");n.type=s.typeRef;var O=n.runtimeStyle;O.width=x.width;O.height=x.height;O.top=0;O.left=D;O.zIndex=1;n.fillcolor=t;h.appendChild(n);if(w){for(var C=0,H=w.length;C<H;++C){var A=w[C];var R=Cufon.CSS.color(A.color);var j=n.cloneNode(false),v=j.runtimeStyle;v.top=g.convertFrom(parseFloat(A.offY));v.left=D+g.convertFrom(parseFloat(A.offX));v.zIndex=0;j.fillcolor=R.color;if(R.opacity){var P=document.createElement("cvml:fill");P.opacity=R.opacity;j.appendChild(P)}h.appendChild(j)}}m=Number(s.w||M.w)+F;e+=m;D+=m}if(m===null){return null}var o=-x.minX+e+(x.width-m);h.coordsize=o+","+x.height;B.width=g.convert(o*E);S.width=Math.max(Math.ceil(g.convert(e*E)),0);q.appendChild(h);if(r.printable){var K=document.createElement("span");K.className="cufon-alt";K.innerText=u;q.appendChild(K)}if(!G){q.appendChild(document.createElement("cvml:group"))}return q}})());

