var Cufon=function(){function N(b){var a=this.face=b.face,d={" ":1,"\u00a0":1,"\u3000":1};this.glyphs=function(c){var e,f={"\u2011":"-","\u00ad":"\u2011"};for(e in f)if(f.hasOwnProperty(e))c[e]||(c[e]=c[f[e]]);return c}(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 c=a.bbox.split(/\s+/);c={minX:parseInt(c[0],10),minY:parseInt(c[1],10),maxX:parseInt(c[2],
10),maxY:parseInt(c[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;this.spacing=function(c,e,f){for(var g=this.glyphs,y,m,h=[],l=0,D=-1,Q=-1,E;E=c[++D];)if(y=g[E]||this.missingGlyph){if(m){l-=m=m[E]||0;h[Q]-=m}m=y.w;if(isNaN(m))m=+this.w;if(m>0){m+=e;if(d[E])m+=f}l+=h[++Q]=~~m;m=y.k}h.total=
l;return h}}function S(){var b={},a={oblique:"italic",italic:"oblique"};this.add=function(d){(b[d.style]||(b[d.style]={}))[d.weight]=d};this.get=function(d,c){var e=b[d]||b[a[d]]||b.normal||b.italic||b.oblique;if(!e)return null;c={normal:400,bold:700}[c]||parseInt(c,10);if(e[c])return e[c];var f={1:1,99:0}[c%100],g=[],y,m;if(f===undefined)f=c>400;if(c==500)c=400;for(var h in e)if(e.hasOwnProperty(h)){h=parseInt(h,10);if(!y||h<y)y=h;if(!m||h>m)m=h;g.push(h)}if(c<y)c=y;if(c>m)c=m;g.sort(function(l,
D){return(f?l>=c&&D>=c?l<D:l>D:l<=c&&D<=c?l>D:l<D)?-1:1});return e[g[0]]}}function F(b){var a={},d={};this.extend=function(c){for(var e in c)if(c.hasOwnProperty(e))a[e]=c[e];return this};this.get=function(c){return a[c]!=undefined?a[c]:b[c]};this.getSize=function(c,e){return d[c]||(d[c]=new j.Size(this.get(c),e))};this.isUsable=function(){return!!b}}function z(b,a,d){if(b.addEventListener)b.addEventListener(a,d,false);else b.attachEvent&&b.attachEvent("on"+a,d)}function I(b,a){if(a._mediatorMode)return b;
var d=T.get(b),c=d.options;if(c){if(c===a)return b;c.hover&&O.detach(b)}a.hover&&a.hoverables[b.nodeName.toLowerCase()]&&O.attach(b);d.options=a;return b}function i(b){var a={};return function(d){a.hasOwnProperty(d)||(a[d]=b.apply(null,arguments));return a[d]}}function q(b){return document.getElementsByTagName(b)}function r(){for(var b={},a,d,c=0,e=arguments.length;a=arguments[c],c<e;++c)for(d in a)if(a.hasOwnProperty(d))b[d]=a[d];return b}function n(b,a,d,c,e,f){var g=document.createDocumentFragment();
if(a==="")return g;var y=c.separate,m=a.split(J[y]);if((y=y=="words")&&C){/^\s/.test(a)&&m.unshift("");/\s$/.test(a)&&m.push("")}for(var h=0,l=m.length;h<l;++h)(a=A[c.engine](b,y?j.textAlign(m[h],d,h,l):m[h],d,c,e,f,h<l-1))&&g.appendChild(a);return g}function o(b,a,d){if(b.removeEventListener)b.removeEventListener(a,d,false);else b.detachEvent&&b.detachEvent("on"+a,d)}function v(b,a){var d=b.nodeName.toLowerCase();if(!a.ignore[d])if(!(a.ignoreClass&&a.ignoreClass.test(b.className))){a.onBeforeReplace&&
a.onBeforeReplace(b,a);d=!a.textless[d];var c=a.trim==="simple",e=j.getStyle(I(b,a)).extend(a);if(parseFloat(e.get("fontSize"))!==0){var f;a:{f=j.quotedList(e.get("fontFamily").toLowerCase());for(var g,y=0;g=f[y];++y)if(K[g]){f=K[g].get(e.get("fontStyle"),e.get("fontWeight"));break a}f=null}var m,h,l,D,Q=a.softHyphens,E=false,U=/\u00ad/g,V=a.modifyText;if(f){for(g=b.firstChild;g;g=m){y=g.nodeType;m=g.nextSibling;if(d&&y==3){if(Q&&b.nodeName.toLowerCase()!=s){l=g.data.indexOf("\u00ad");if(l>=0){g.splitText(l);
m=g.nextSibling;m.deleteData(0,1);E=document.createElement(s);E.appendChild(document.createTextNode("\u00ad"));b.insertBefore(E,m);m=E;E=true}}if(h){h.appendData(g.data);b.removeChild(g)}else h=g;if(m)continue}if(h){l=h.data;Q||(l=l.replace(U,""));l=j.whiteSpace(l,e,h,D,c);if(V)l=V(l,h,b,a);b.replaceChild(n(f,l,e,a,g,b),h);h=null}if(y==1){if(g.firstChild)g.nodeName.toLowerCase()=="cufon"?A[a.engine](f,null,e,a,g,b):arguments.callee(g,a);D=g}}if(Q&&E){w(b);p||z(window,"resize",P);p=true}a.onAfterReplace&&
a.onAfterReplace(b,a)}}}}function w(b){var a,d,c,e,f,g;b=b.getElementsByTagName(s);for(g=0;a=b[g];++g){a.className=t;c=d=a.parentNode;if(c.nodeName.toLowerCase()!=B){e=document.createElement(B);e.appendChild(a.previousSibling);d.insertBefore(e,a);e.appendChild(a)}else{c=c.parentNode;if(c.nodeName.toLowerCase()==B){for(d=c.parentNode;c.firstChild;)d.insertBefore(c.firstChild,c);d.removeChild(c)}}}for(g=0;a=b[g];++g){a.className="";c=a.parentNode;d=c.parentNode;f=c.nextSibling||d.nextSibling;e=f.nodeName.toLowerCase()==
B?c:a.previousSibling;if(e.offsetTop>=f.offsetTop){a.className=t;if(e.offsetTop<f.offsetTop){e=document.createElement(B);d.insertBefore(e,c);e.appendChild(c);e.appendChild(f)}}}}function P(){if(!x){j.addClass(u.root(),G);clearTimeout(M);M=setTimeout(function(){x=true;j.removeClass(u.root(),G);w(document);x=false},100)}}var k=function(){return k.replace.apply(null,arguments)},u=k.DOM={ready:function(){var b=false,a={loaded:1,complete:1},d=[],c=function(){if(!b){b=true;for(var e;e=d.shift();e());}};
if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}!window.opera&&document.readyState&&function(){a[document.readyState]?c():setTimeout(arguments.callee,10)}();document.readyState&&document.createStyleSheet&&function(){try{document.body.doScroll("left");c()}catch(e){setTimeout(arguments.callee,1)}}();z(window,"load",c);return function(e){if(arguments.length)b?e():d.push(e);else c()}}(),root:function(){return document.documentElement||
document.body},strict:function(){var b;if(document.compatMode=="BackCompat")return false;if(b=document.doctype)return!/frameset|transitional/i.test(b.publicId);b=document.firstChild;if(b.nodeType!=8||/^DOCTYPE.+(transitional|frameset)/i.test(b.data))return false;return true}()},j=k.CSS={Size:function(b,a){this.value=parseFloat(b);this.unit=String(b).match(/[a-z%]*$/)[0]||"px";this.convert=function(d){return d/a*this.value};this.convertFrom=function(d){return d/this.value*a};this.toString=function(){return this.value+
this.unit}},addClass:function(b,a){var d=b.className;b.className=d+(d&&" ")+a;return b},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}),fontStretch:i(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(b){var a=document.defaultView;if(a&&a.getComputedStyle)return new F(a.getComputedStyle(b,null));if(b.currentStyle)return new F(b.currentStyle);return new F(b.style)},gradient:i(function(b){var a={id:b,type:b.match(/^-([a-z]+)-gradient\(/)[1],stops:[]};b=b.substr(b.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var d=0,c=b.length,e;d<c;++d){e=b[d].split("=",2).reverse();a.stops.push([e[1]||d/(c-1),e[0]])}return a}),quotedList:i(function(b){for(var a=
[],d=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,c;c=d.exec(b);)a.push(c[3]||c[1]);return a}),recognizesMedia:i(function(b){var a=document.createElement("style"),d;a.type="text/css";a.media=b;try{a.appendChild(document.createTextNode("/**/"))}catch(c){}b=q("head")[0];b.insertBefore(a,b.firstChild);d=(d=a.sheet||a.styleSheet)&&!d.disabled;b.removeChild(a);return d}),removeClass:function(b,a){b.className=b.className.replace(RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","g"),"");return b},supports:function(b,a){var d=
document.createElement("span").style;if(d[b]===undefined)return false;d[b]=a;return d[b]===a},textAlign:function(b,a,d,c){if(a.get("textAlign")=="right"){if(d>0)b=" "+b}else if(d<c-1)b+=" ";return b},textShadow:i(function(b){if(b=="none")return null;for(var a=[],d={},c,e=0,f=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;c=f.exec(b);)if(c[0]==","){a.push(d);d={};e=0}else if(c[1])d.color=c[1];else d[["offX","offY","blur"][e++]]=c[2];a.push(d);return a}),textTransform:function(){var b={uppercase:function(a){return a.toUpperCase()},
lowercase:function(a){return a.toLowerCase()},capitalize:function(a){return a.replace(/(?:^|\s)./g,function(d){return d.toUpperCase()})}};return function(a,d){var c=b[d.get("textTransform")];return c?c(a):a}}(),whiteSpace:function(){var b={inline:1,"inline-block":1,"run-in":1},a=/^\s+/,d=/\s+$/;return function(c,e,f,g,y){if(y)return c.replace(a,"").replace(d,"");if(g)if(g.nodeName.toLowerCase()=="br")c=c.replace(a,"");if(b[e.get("display")])return c;f.previousSibling||(c=c.replace(a,""));f.nextSibling||
(c=c.replace(d,""));return c}}()};j.ready=function(){function b(h){if(!m[h.type.toLowerCase()])return true;return h.disabled||a(h.sheet,h.media||"screen")}function a(h,l){if(!j.recognizesMedia(l||"all"))return true;if(!h||h.disabled)return false;try{var D=h.cssRules,Q;if(D){var E=0,U=D.length;a:for(;Q=D[E],E<U;++E)switch(Q.type){case 2:break;case 3:if(!a(Q.styleSheet,Q.media.mediaText))return false;break;default:break a}}}catch(V){}return true}function d(){if(document.createStyleSheet)return true;
var h,l;for(l=0;h=g[l];++l)if(h.rel.toLowerCase()=="stylesheet"&&!b(h))return false;for(l=0;h=y[l];++l)if(!b(h))return false;return true}var c=!j.recognizesMedia("all"),e=false,f=[],g=q("link"),y=q("style"),m={"":1,"text/css":1};u.ready(function(){e||(e=j.getStyle(document.body).isUsable());if(c||e&&d()){c=true;for(var h;h=f.shift();h());}else setTimeout(arguments.callee,10)});return function(h){c?h():f.push(h)}}();var C=" ".split(/\s+/).length==0,B="cufonglue",s="cufonshy",t="cufon-shy-disabled",
G="cufon-viewport-resizing",T=new function(){var b={},a=0;this.get=function(d){d=d.cufid||(d.cufid=++a);return b[d]||(b[d]={})}},O=new function(){function b(c){var e=c.relatedTarget,f;if(f=e)a:{try{if(this.contains){f=this.contains(e);break a}f=this.compareDocumentPosition(e)&16;break a}catch(g){}f=false}f||d(this,c.type=="mouseover")}function a(c){if(!c)c=window.event;d(c.target||c.srcElement,c.type=="mouseenter")}function d(c,e){setTimeout(function(){var f=T.get(c).options;if(e){f=r(f,f.hover);
f._mediatorMode=1}k.replace(c,f,true)},10)}this.attach=function(c){if(c.onmouseenter===undefined){z(c,"mouseover",b);z(c,"mouseout",b)}else{z(c,"mouseenter",a);z(c,"mouseleave",a)}};this.detach=function(c){if(c.onmouseenter===undefined){o(c,"mouseover",b);o(c,"mouseout",b)}else{o(c,"mouseenter",a);o(c,"mouseleave",a)}}},L=new function(){var b=[],a={};this.add=function(d,c){a[d]=b.push(c)-1};this.repeat=function(){var d;if(arguments.length){d=arguments;for(var c=[],e,f=0;e=d[f];++f)c[f]=b[a[e]];d=
c}else d=b;for(e=0;c=d[e++];)k.replace(c[0],c[1],true)}},R=false,p=false,M,x=false,A={},K={},H={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,noscript:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},ignoreClass:null,modifyText:null,onAfterReplace:null,onBeforeReplace:null,printable:true,selector:window.Sizzle||window.jQuery&&function(b){return jQuery(b)}||window.dojo&&dojo.query||
window.glow&&glow.dom&&glow.dom.get||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)}||q,separate:"words",softHyphens:true,textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none",trim:"advanced"},J={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};k.now=
function(){u.ready();return k};k.refresh=function(){L.repeat.apply(L,arguments);return k};k.registerEngine=function(b,a){if(!a)return k;A[b]=a;return k.set("engine",b)};k.registerFont=function(b){if(!b)return k;b=new N(b);var a=b.family;K[a]||(K[a]=new S);K[a].add(b);return k.set("fontFamily",'"'+a+'"')};k.replace=function(b,a,d){a=r(H,a);if(!a.engine)return k;if(!R){j.addClass(u.root(),"cufon-active cufon-loading");j.ready(function(){j.addClass(j.removeClass(u.root(),"cufon-loading"),"cufon-ready")});
R=true}if(a.hover)a.forceHitArea=true;a.autoDetect&&delete a.fontFamily;if(typeof a.ignoreClass=="string")a.ignoreClass=RegExp("(?:^|\\s)(?:"+a.ignoreClass.replace(/\s+/g,"|")+")(?:\\s|$)");if(typeof a.textShadow=="string")a.textShadow=j.textShadow(a.textShadow);if(typeof a.color=="string"&&/^-/.test(a.color))a.textGradient=j.gradient(a.color);else delete a.textGradient;if(typeof b=="string"){d||L.add(b,arguments);b=[b]}else if(b.nodeType)b=[b];j.ready(function(){for(var c=0,e=b.length;c<e;++c){var f=
b[c];typeof f=="string"?k.replace(a.selector(f),a,true):v(f,a)}});return k};k.set=function(b,a){H[b]=a;return k};return k}();
Cufon.registerEngine("vml",function(){function N(i,q){if(!isNaN(q)||/px$/i.test(q))return parseFloat(q);var r=i.style.left,n=i.runtimeStyle.left;i.runtimeStyle.left=i.currentStyle.left;i.style.left=q.replace("%","em");var o=i.style.pixelLeft;i.style.left=r;i.runtimeStyle.left=n;return o}function S(i,q,r,n){var o="computed"+n,v=q[o];if(isNaN(v)){v=q.get(n);q[o]=v=v=="normal"?0:~~r.convertFrom(N(i,v))}return v}var F=document.namespaces;if(F){F.add("cvml","urn:schemas-microsoft-com:vml");F=null;F=document.createElement("cvml:shape");
F.style.behavior="url(#default#VML)";if(F.coordsize){F=null;var z=(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:'+(z?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;text-align:left;}cufonshy.cufon-shy-disabled,.cufon-viewport-resizing cufonshy{display:none;}cufonglue{white-space:nowrap;display:inline-block;}.cufon-viewport-resizing cufonglue{white-space:normal;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,
"!important;"));var I={};return function(i,q,r,n,o,v,w){var P=q===null;if(P)q=o.alt;var k=i.viewBox,u;if(!(u=r.computedFontSize)){u=Cufon.CSS.Size;var j;j=r.get("fontSize");j=N(v,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j);u=r.computedFontSize=new u(j+"px",i.baseSize)}j=u;if(P){u=o;o=o.firstChild}else{u=document.createElement("cufon");u.className="cufon cufon-vml";u.alt=q;o=document.createElement("cufoncanvas");u.appendChild(o);if(n.printable){var C=document.createElement("cufontext");C.appendChild(document.createTextNode(q));
u.appendChild(C)}w||u.appendChild(document.createElement("cvml:shape"))}w=u.style;var B=o.style,s=j.convert(k.height);C=Math.ceil(s);s=C/s*Cufon.CSS.fontStretch(r.get("fontStretch"));var t=k.minX,G=k.minY;B.height=C;B.top=Math.round(j.convert(G-i.ascent));B.left=Math.round(j.convert(t));w.height=j.convert(i.height)+"px";var T=r.get("color"),O=Cufon.CSS.textTransform(q,r).split(""),L=i.spacing(O,S(v,r,j,"letterSpacing"),S(v,r,j,"wordSpacing"));if(!L.length)return null;q=L.total;var R=-t+q+(k.width-
L[L.length-1]);B=j.convert(R*s);B=Math.round(B);k=R+","+k.height;var p;R="r"+k+"ns";var M;if(M=n.textGradient){var x=n.textGradient;M=x.id;if(!I[M]){x=x.stops;var A=document.createElement("cvml:fill"),K=[];A.type="gradient";A.angle=180;A.focus="0";A.method="none";A.color=x[0][1];for(var H=1,J=x.length-1;H<J;++H)K.push(x[H][0]*100+"% "+x[H][1]);A.colors=K.join(",");A.color2=x[J][1];I[M]=A}M=I[M]}x=i.glyphs;A=0;K=n.textShadow;H=-1;for(J=0;O[++H];){var b=x[O[H]]||i.missingGlyph,a;if(b){if(P)for(a=o.childNodes[J];a.firstChild;)a.removeChild(a.firstChild);
else{a=document.createElement("cvml:shape");o.appendChild(a)}a.stroked="f";a.coordsize=k;a.coordorigin=p=t-A+","+G;a.path=(b.d?"m"+b.d+"xe":"")+"m"+p+R;a.fillcolor=T;M&&a.appendChild(M.cloneNode(false));p=a.style;p.width=B;p.height=C;if(K){p=K[0];b=K[1];var d=Cufon.CSS.color(p.color),c,e=document.createElement("cvml:shadow");e.on="t";e.color=d.color;e.offset=p.offX+","+p.offY;if(b){c=Cufon.CSS.color(b.color);e.type="double";e.color2=c.color;e.offset2=b.offX+","+b.offY}e.opacity=d.opacity||c&&c.opacity||
1;a.appendChild(e)}A+=L[J++]}}i=a.nextSibling;if(n.forceHitArea){if(!i){i=document.createElement("cvml:rect");i.stroked="f";i.className="cufon-vml-cover";n=document.createElement("cvml:fill");n.opacity=0;i.appendChild(n);o.appendChild(i)}n=i.style;n.width=B;n.height=C}else i&&o.removeChild(i);w.width=Math.max(Math.ceil(j.convert(q*s)),0);if(z){n=r.computedYAdjust;if(n===undefined){n=r.get("lineHeight");if(n=="normal")n="1em";else isNaN(n)||(n+="em");r.computedYAdjust=n=0.5*(N(v,n)-parseFloat(w.height))}if(n){w.marginTop=
Math.ceil(n)+"px";w.marginBottom=n+"px"}}return u}}}}());
Cufon.registerEngine("canvas",function(){var N=document.createElement("canvas");if(!(!N||!N.getContext||!N.getContext.apply)){N=null;var S=Cufon.CSS.supports("display","inline-block");N=!S&&(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;"+(N?
"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;text-align:left;text-indent:-10000in;}"+(S?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"cufonshy.cufon-shy-disabled,.cufon-viewport-resizing cufonshy{display:none;}cufonglue{white-space:nowrap;display:inline-block;}.cufon-viewport-resizing cufonglue{white-space:normal;}}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));
document.getElementsByTagName("head")[0].appendChild(F);return function(z,I,i,q,r){function n(){var M=z.glyphs,x,A=-1,K=-1;for(p.scale(R,1);T[++A];)if(x=M[T[A]]||z.missingGlyph){if(x.d){p.beginPath();p.moveTo(0,0);if(x.code){var H=x.code;x=p;for(var J=0,b=H.length;J<b;++J){var a=H[J];x[a.m].apply(x,a.a)}}else{H=x;x="m"+x.d;J=p;a=b=0;var d=[],c=/([mrvxe])([^a-z]*)/g,e=void 0,f=0;a:for(;e=c.exec(x);++f){var g=e[2].split(",");switch(e[1]){case "v":d[f]={m:"bezierCurveTo",a:[b+~~g[0],a+~~g[1],b+~~g[2],
a+~~g[3],b+=~~g[4],a+=~~g[5]]};break;case "r":d[f]={m:"lineTo",a:[b+=~~g[0],a+=~~g[1]]};break;case "m":d[f]={m:"moveTo",a:[b=~~g[0],a=~~g[1]]};break;case "x":d[f]={m:"closePath"};break;case "e":break a}J[d[f].m].apply(J,d[f].a)}H.code=d}p.fill()}p.translate(O[++K],0)}p.restore()}var o=I===null;if(o)I=r.getAttribute("alt");var v=z.viewBox,w=i.getSize("fontSize",z.baseSize),P=0,k=0,u=0,j=0,C=q.textShadow,B=[];if(C)for(var s=C.length;s--;){var t=C[s],G=w.convertFrom(parseFloat(t.offX));t=w.convertFrom(parseFloat(t.offY));
B[s]=[G,t];if(t<P)P=t;if(G>k)k=G;if(t>u)u=t;if(G<j)j=G}var T=Cufon.CSS.textTransform(I,i).split(""),O=z.spacing(T,~~w.convertFrom(parseFloat(i.get("letterSpacing"))||0),~~w.convertFrom(parseFloat(i.get("wordSpacing"))||0));if(!O.length)return null;t=O.total;k+=v.width-O[O.length-1];j+=v.minX;if(o){o=r;s=r.firstChild}else{o=document.createElement("cufon");o.className="cufon cufon-canvas";o.setAttribute("alt",I);s=document.createElement("canvas");o.appendChild(s);if(q.printable){r=document.createElement("cufontext");
r.appendChild(document.createTextNode(I));o.appendChild(r)}}r=o.style;var L=s.style;G=w.convert(v.height);I=Math.ceil(G)/G;var R=I*Cufon.CSS.fontStretch(i.get("fontStretch"));t*=R;k=Math.ceil(w.convert(t+k-j));u=Math.ceil(w.convert(v.height-P+u));s.width=k;s.height=u;L.width=k+"px";L.height=u+"px";P+=v.minY;L.top=Math.round(w.convert(P-z.ascent))+"px";L.left=Math.round(w.convert(j))+"px";t=Math.max(Math.ceil(w.convert(t)),0)+"px";if(S){r.width=t;r.height=w.convert(z.height)+"px"}else{r.paddingLeft=
t;r.paddingBottom=w.convert(z.height)-1+"px"}var p=s.getContext("2d");w=G/v.height;t=window.devicePixelRatio||1;if(t!=1){s.width=k*t;s.height=u*t;p.scale(t,t)}p.scale(w,w*I);p.translate(-j,-P);p.save();if(C)for(s=C.length;s--;){t=C[s];p.save();p.fillStyle=t.color;p.translate.apply(p,B[s]);n()}if(q=q.textGradient){i=q.stops;v=p.createLinearGradient(0,v.minY,0,v.maxY);s=0;for(q=i.length;s<q;++s)v.addColorStop.apply(v,i[s]);p.fillStyle=v}else p.fillStyle=i.get("color");n();return o}}}());

