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