/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 */
var Cufon=(function(){var l=function(){return l.replace.apply(null,arguments)
};var w=l.DOM={ready:(function(){var B=false,D={loaded:1,complete:1};var A=[],C=function(){if(B){return
}B=true;for(var E;E=A.shift();E()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",C,false);
window.addEventListener("pageshow",C,false)}if(!window.opera&&document.readyState){(function(){D[document.readyState]?C():setTimeout(arguments.callee,10)
})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");
C()}catch(E){setTimeout(arguments.callee,1)}})()}p(window,"load",C);return function(E){if(!arguments.length){C()
}else{B?E():A.push(E)}}})()};var m=l.CSS={Size:function(B,A){this.value=parseFloat(B);
this.unit=String(B).match(/[a-z%]*$/)[0]||"px";this.convert=function(C){return C/A*this.value
};this.convertFrom=function(C){return C/this.value*A};this.toString=function(){return this.value+this.unit
}},color:i(function(B){var A={};A.color=B.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(D,C,E){A.opacity=parseFloat(E);
return"rgb("+C+")"});return A}),getStyle:function(B){var A=document.defaultView;if(A&&A.getComputedStyle){return new a(A.getComputedStyle(B,null))
}if(B.currentStyle){return new a(B.currentStyle)}return new a(B.style)},gradient:i(function(E){var F={id:E,type:E.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},B=E.substr(E.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);
for(var D=0,A=B.length,C;D<A;++D){C=B[D].split("=",2).reverse();F.stops.push([C[1]||D/(A-1),C[0]])
}return F}),quotedList:i(function(D){var C=[],B=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,A;
while(A=B.exec(D)){C.push(A[3]||A[1])}return C}),recognizesMedia:i(function(D){var C=document.createElement("style"),B,A;
C.type="text/css";C.media=D;B=f("head")[0];B.insertBefore(C,B.firstChild);A=!!(C.sheet||C.styleSheet);
B.removeChild(C);return A}),supports:function(C,B){var A=document.createElement("span").style;
if(A[C]===undefined){return false}A[C]=B;return A[C]===B},textAlign:function(D,C,A,B){if(C.get("textAlign")=="right"){if(A>0){D=" "+D
}}else{if(A<B-1){D+=" "}}return D},textDecoration:function(F,E){if(!E){E=this.getStyle(F)
}var B={underline:null,overline:null,"line-through":null};for(var A=F;A.parentNode&&A.parentNode.nodeType==1;
){var D=true;for(var C in B){if(!j(B,C)||B[C]){continue}if(E.get("textDecoration").indexOf(C)!=-1){B[C]=E.get("color")
}D=false}if(D){break}E=this.getStyle(A=A.parentNode)}return B},textShadow:i(function(E){if(E=="none"){return null
}var D=[],F={},A,B=0;var C=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;
while(A=C.exec(E)){if(A[0]==","){D.push(F);F={},B=0}else{if(A[1]){F.color=A[1]}else{F[["offX","offY","blur"][B++]]=A[2]
}}}D.push(F);return D}),textTransform:function(B,A){return B[{uppercase:"toUpperCase",lowercase:"toLowerCase"}[A.get("textTransform")]||"toString"]()
},whiteSpace:(function(){var A={inline:1,"inline-block":1,"run-in":1};return function(D,B,C){if(A[B.get("display")]){return D
}if(!C.previousSibling){D=D.replace(/^\s+/,"")}if(!C.nextSibling){D=D.replace(/\s+$/,"")
}return D}})()};m.ready=(function(){var C=!m.recognizesMedia("all"),B=false;var A=[],E=function(){C=true;
for(var H;H=A.shift();H()){}};var F=f("link"),G={stylesheet:1};function D(){var I,H,J;
for(H=0;J=F[H];++H){if(J.disabled||!G[J.rel.toLowerCase()]||!m.recognizesMedia(J.media||"screen")){continue
}I=J.sheet||J.styleSheet;if(!I||I.disabled){return false}}return true}w.ready(function(){if(!B){B=m.getStyle(document.body).isUsable()
}if(C||(B&&D())){E()}else{setTimeout(arguments.callee,10)}});return function(H){if(C){H()
}else{A.push(H)}}})();function r(B){var A=this.face=B.face;this.glyphs=B.glyphs;this.w=B.w;
this.baseSize=parseInt(A["units-per-em"],10);this.family=A["font-family"].toLowerCase();
this.weight=A["font-weight"];this.style=A["font-style"]||"normal";this.viewBox=(function(){var D=A.bbox.split(/\s+/);
var C={minX:parseInt(D[0],10),minY:parseInt(D[1],10),maxX:parseInt(D[2],10),maxY:parseInt(D[3],10)};
C.width=C.maxX-C.minX,C.height=C.maxY-C.minY;C.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")
};return C})();this.ascent=-parseInt(A.ascent,10);this.descent=-parseInt(A.descent,10);
this.height=-this.ascent+this.descent}function e(){var B={},A={oblique:"italic",italic:"oblique"};
this.add=function(C){(B[C.style]||(B[C.style]={}))[C.weight]=C};this.get=function(G,H){var F=B[G]||B[A[G]]||B.normal||B.italic||B.oblique;
if(!F){return null}H={normal:400,bold:700}[H]||parseInt(H,10);if(F[H]){return F[H]
}var D={1:1,99:0}[H%100],J=[],E,C;if(D===undefined){D=H>400}if(H==500){H=400}for(var I in F){if(!j(F,I)){continue
}I=parseInt(I,10);if(!E||I<E){E=I}if(!C||I>C){C=I}J.push(I)}if(H<E){H=E}if(H>C){H=C
}J.sort(function(L,K){return(D?(L>H&&K>H)?L<K:L>K:(L<H&&K<H)?L>K:L<K)?-1:1});return F[J[0]]
}}function q(){function C(E,F){if(E.contains){return E.contains(F)}return E.compareDocumentPosition(F)&16
}function A(F){var E=F.relatedTarget;if(!E||C(this,E)){return}B(this)}function D(E){B(this)
}function B(E){setTimeout(function(){l.replace(E,d.get(E).options,true)},10)}this.attach=function(E){if(E.onmouseenter===undefined){p(E,"mouseover",A);
p(E,"mouseout",A)}else{p(E,"mouseenter",D);p(E,"mouseleave",D)}}}function t(){var B=[],C={};
function A(G){var D=[],F;for(var E=0;F=G[E];++E){D[E]=B[C[F]]}return D}this.add=function(E,D){C[E]=B.push(D)-1
};this.repeat=function(){var D=arguments.length?A(arguments):B,E;for(var F=0;E=D[F++];
){l.replace(E[0],E[1],true)}}}function z(){var C={},A=0;function B(D){return D.cufid||(D.cufid=++A)
}this.get=function(D){var E=B(D);return C[E]||(C[E]={})}}function a(A){var C={},B={};
this.extend=function(D){for(var E in D){if(j(D,E)){C[E]=D[E]}}return this};this.get=function(D){return C[D]!=undefined?C[D]:A[D]
};this.getSize=function(E,D){return B[E]||(B[E]=new m.Size(this.get(E),D))};this.isUsable=function(){return !!A
}}function p(B,A,C){if(B.addEventListener){B.addEventListener(A,C,false)}else{if(B.attachEvent){B.attachEvent("on"+A,function(){return C.call(B,window.event)
})}}}function u(B,A){var C=d.get(B);if(C.options){return B}if(A.hover&&A.hoverables[B.nodeName.toLowerCase()]){b.attach(B)
}C.options=A;return B}function i(A){var B={};return function(C){if(!j(B,C)){B[C]=A.apply(null,arguments)
}return B[C]}}function c(F,E){if(!E){E=m.getStyle(F)}var B=m.quotedList(E.get("fontFamily").toLowerCase()),D;
for(var C=0,A=B.length;C<A;++C){D=B[C];if(h[D]){return h[D].get(E.get("fontStyle"),E.get("fontWeight"))
}}return null}function f(A){return document.getElementsByTagName(A)}function j(B,A){return B.hasOwnProperty(A)
}function g(){var A={},C,E;for(var D=0,B=arguments.length;C=arguments[D],D<B;++D){for(E in C){if(j(C,E)){A[E]=C[E]
}}}return A}function n(D,L,B,M,E,C){var K=M.separate;if(K=="none"){return y[M.engine].apply(null,arguments)
}var J=document.createDocumentFragment(),G;var H=L.split(o[K]),A=(K=="words");if(A&&s){if(/^\s/.test(L)){H.unshift("")
}if(/\s$/.test(L)){H.push("")}}for(var I=0,F=H.length;I<F;++I){G=y[M.engine](D,A?m.textAlign(H[I],B,I,F):H[I],B,M,E,C,I<F-1);
if(G){J.appendChild(G)}}return J}function k(B,J){var C,A,D,G,F,I;for(D=u(B,J).firstChild;
D;D=F){G=D.nodeType;F=D.nextSibling;I=false;if(G==1){if(!D.firstChild){continue}if(!/cufon/.test(D.className)){arguments.callee(D,J);
continue}else{I=true}}else{if(G!=3){continue}}if(!A){A=m.getStyle(B).extend(J)}if(!C){C=c(B,A)
}if(!C){continue}if(I){y[J.engine](C,null,A,J,D,B);continue}var H=m.whiteSpace(D.data,A,D);
if(H===""){continue}var E=n(C,H,A,J,D,B);if(E){D.parentNode.replaceChild(E,D)}else{D.parentNode.removeChild(D)
}}}var s=" ".split(/\s+/).length==0;var d=new z();var b=new q();var x=new t();var y={},h={},v={enableTextDecoration:false,engine:null,hover:false,hoverables:{a:true},printable:true,selector:(window.Sizzle||(window.jQuery&&function(A){return jQuery(A)
})||(window.dojo&&dojo.query)||(window.$$&&function(A){return $$(A)})||(window.$&&function(A){return $(A)
})||(document.querySelectorAll&&function(A){return document.querySelectorAll(A)})||f),separate:"words",textShadow:"none"};
var o={words:/[^\S\u00a0]+/,characters:""};l.now=function(){w.ready();return l};l.refresh=function(){x.repeat.apply(x,arguments);
return l};l.registerEngine=function(B,A){if(!A){return l}y[B]=A;return l.set("engine",B)
};l.registerFont=function(C){var A=new r(C),B=A.family;if(!h[B]){h[B]=new e()}h[B].add(A);
return l.set("fontFamily",'"'+B+'"')};l.replace=function(C,B,A){B=g(v,B);if(!B.engine){return l
}if(typeof B.textShadow=="string"){B.textShadow=m.textShadow(B.textShadow)}if(typeof B.color=="string"&&/^-/.test(B.color)){B.textGradient=m.gradient(B.color)
}if(!A){x.add(C,arguments)}if(C.nodeType||typeof C=="string"){C=[C]}m.ready(function(){for(var E=0,D=C.length;
E<D;++E){var F=C[E];if(typeof F=="string"){l.replace(B.selector(F),B,true)}else{k(F,B)
}}});return l};l.set=function(A,B){v[A]=B;return l};return l})();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-canvas{text-indent:0;}@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:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;}"+(a?".cufon-canvas canvas{position:relative;}":".cufon-canvas canvas{position:absolute;}")+"}@media print{.cufon-canvas{padding:0;}.cufon-canvas canvas{display:none;}.cufon-canvas .cufon-alt{display:inline;}}").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(ad,G,W,C,K,ae){var n=(G===null);if(n){G=K.alt}var I=ad.viewBox;
var p=W.getSize("fontSize",ad.baseSize);var U=W.get("letterSpacing");U=(U=="normal")?0:p.convertFrom(parseInt(U,10));
var J=0,V=0,T=0,E=0;var H=C.textShadow,R=[];if(H){for(var ac=H.length;ac--;){var N=H[ac];
var Q=p.convertFrom(parseFloat(N.offX));var P=p.convertFrom(parseFloat(N.offY));R[ac]=[Q,P];
if(P<J){J=P}if(Q>V){V=Q}if(P>T){T=P}if(Q<E){E=Q}}}var ah=Cufon.CSS.textTransform(G,W).split(""),A;
var o=ad.glyphs,D,r,Y;var h=0,u,M=[];for(var ac=0,aa=0,X=ah.length;ac<X;++ac){D=o[A=ah[ac]]||ad.missingGlyph;
if(!D){continue}if(r){h-=Y=r[A]||0;M[aa-1]-=Y}h+=u=M[aa++]=~~(D.w||ad.w)+U;r=D.k}if(u===undefined){return null
}V+=I.width-u;E+=I.minX;var B,q;if(n){B=K;q=K.firstChild}else{B=document.createElement("span");
B.className="cufon cufon-canvas";B.alt=G;q=document.createElement("canvas");B.appendChild(q);
if(C.printable){var Z=document.createElement("span");Z.className="cufon-alt";Z.appendChild(document.createTextNode(G));
B.appendChild(Z)}}var ai=B.style;var O=q.style;var m=p.convert(I.height);var ag=Math.ceil(m);
var S=ag/m;q.width=Math.ceil(p.convert(h*S+V-E));q.height=Math.ceil(p.convert(I.height-J+T));
J+=I.minY;O.top=Math.round(p.convert(J-ad.ascent))+"px";O.left=Math.round(p.convert(E))+"px";
var z=Math.ceil(p.convert(h*S))+"px";if(a){ai.width=z;ai.height=p.convert(ad.height)+"px"
}else{ai.paddingLeft=z;ai.paddingBottom=(p.convert(ad.height)-1)+"px"}var af=q.getContext("2d"),L=m/I.height;
af.scale(L,L*S);af.translate(-E,-J);af.lineWidth=ad.face["underline-thickness"];af.save();
function s(i,g){af.strokeStyle=g;af.beginPath();af.moveTo(0,i);af.lineTo(h,i);af.stroke()
}var t=C.enableTextDecoration?Cufon.CSS.textDecoration(ae,W):{};if(t.underline){s(-ad.face["underline-position"],t.underline)
}if(t.overline){s(ad.ascent,t.overline)}function ab(){af.scale(S,1);for(var x=0,k=0,g=ah.length;
x<g;++x){var y=o[ah[x]]||ad.missingGlyph;if(!y){continue}if(y.d){af.beginPath();if(y.code){c(y.code,af)
}else{y.code=d("m"+y.d,af)}af.fill()}af.translate(M[k++],0)}af.restore()}if(H){for(var ac=H.length;
ac--;){var N=H[ac];af.save();af.fillStyle=N.color;af.translate.apply(af,R[ac]);ab()
}}var w=C.textGradient;if(w){var F=w.stops,v=af.createLinearGradient(0,I.minY,0,I.maxY);
for(var ac=0,X=F.length;ac<X;++ac){v.addColorStop.apply(v,F[ac])}af.fillStyle=v}else{af.fillStyle=W.get("color")
}ab();if(t["line-through"]){s(-ad.descent,t["line-through"])}return B}})());Cufon.registerEngine("vml",(function(){if(!document.namespaces){return
}if(document.namespaces.cvml==null){document.namespaces.add("cvml","urn:schemas-microsoft-com:vml")
}var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";
if(!b.coordsize){return}b=null;document.write(('<style type="text/css">.cufon-vml-canvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}.cufon-vml-canvas{position:absolute;text-align:left;}.cufon-vml{display:inline-block;position:relative;vertical-align:middle;}.cufon-vml .cufon-alt{position:absolute;left:-10000in;font-size:1px;}a .cufon-vml{cursor:pointer}}@media print{.cufon-vml *{display:none;}.cufon-vml .cufon-alt{display:inline;}}</style>').replace(/;/g,"!important;"));
function c(f,g){return a(f,/(?:em|ex|%)$/i.test(g)?"1em":g)}function a(i,j){if(/px$/i.test(j)){return parseFloat(j)
}var h=i.style.left,g=i.runtimeStyle.left;i.runtimeStyle.left=i.currentStyle.left;
i.style.left=j;var f=i.style.pixelLeft;i.style.left=h;i.runtimeStyle.left=g;return f
}var e={};function d(m){var n=m.id;if(!e[n]){var i=m.stops,l=document.createElement("cvml:fill"),f=[];
l.type="gradient";l.angle=180;l.focus="0";l.method="sigma";l.color=i[0][1];for(var h=1,g=i.length-1;
h<g;++h){f.push(i[h][0]*100+"% "+i[h][1])}l.colors=f.join(",");l.color2=i[g][1];e[n]=l
}return e[n]}return function(ab,F,V,C,J,ac,T){var m=(F===null);if(m){F=J.alt}var H=ab.viewBox;
var o=V.computedFontSize||(V.computedFontSize=new Cufon.CSS.Size(c(ac,V.get("fontSize"))+"px",ab.baseSize));
var S=V.computedLSpacing;if(S==undefined){S=V.get("letterSpacing");V.computedLSpacing=S=(S=="normal")?0:~~o.convertFrom(a(ac,S))
}var z,p;if(m){z=J;p=J.firstChild}else{z=document.createElement("span");z.className="cufon cufon-vml";
z.alt=F;p=document.createElement("span");p.className="cufon-vml-canvas";z.appendChild(p);
if(C.printable){var Y=document.createElement("span");Y.className="cufon-alt";Y.appendChild(document.createTextNode(F));
z.appendChild(Y)}if(!T){z.appendChild(document.createElement("cvml:shape"))}}var ah=z.style;
var N=p.style;var g=o.convert(H.height),ae=Math.ceil(g);var R=ae/g;var Q=H.minX,P=H.minY;
N.height=ae;N.top=Math.round(o.convert(P-ab.ascent));N.left=Math.round(o.convert(Q));
ah.height=o.convert(ab.height)+"px";var t=C.enableTextDecoration?Cufon.CSS.textDecoration(ac,V):{};
var E=V.get("color");var ag=Cufon.CSS.textTransform(F,V).split(""),y;var n=ab.glyphs,D,q,X;
var f=0,K=[],O=0,u;var w,G=C.textShadow;for(var aa=0,Z=0,W=ag.length;aa<W;++aa){D=n[y=ag[aa]]||ab.missingGlyph;
if(!D){continue}if(q){f-=X=q[y]||0;K[Z-1]-=X}f+=u=K[Z++]=~~(D.w||ab.w)+S;q=D.k}if(u===undefined){return null
}var x=-Q+f+(H.width-u);var af=o.convert(x*R),U=Math.round(af);var M=x+","+H.height,h;
var I="r"+M+"ns";var v=C.textGradient&&d(C.textGradient);for(aa=0,Z=0;aa<W;++aa){D=n[ag[aa]]||ab.missingGlyph;
if(!D){continue}if(m){w=p.childNodes[Z];while(w.firstChild){w.removeChild(w.firstChild)
}}else{w=document.createElement("cvml:shape");p.appendChild(w)}w.stroked="f";w.coordsize=M;
w.coordorigin=h=(Q-O)+","+P;w.path=(D.d?"m"+D.d+"xe":"")+"m"+h+I;w.fillcolor=E;if(v){w.appendChild(v.cloneNode(false))
}var ad=w.style;ad.width=U;ad.height=ae;if(G){var s=G[0],r=G[1];var B=Cufon.CSS.color(s.color),A;
var L=document.createElement("cvml:shadow");L.on="t";L.color=B.color;L.offset=s.offX+","+s.offY;
if(r){A=Cufon.CSS.color(r.color);L.type="double";L.color2=A.color;L.offset2=r.offX+","+r.offY
}L.opacity=B.opacity||(A&&A.opacity)||1;w.appendChild(L)}O+=K[Z++]}ah.width=Math.max(Math.ceil(o.convert(f*R)),0);
return z}})());
