/*
 * Copyright (c) 2010 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.10pre
 */
var Cufon=function(){function M(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 h=this.glyphs,g,k,l=[],o=0,E=-1,Q=-1,N;N=c[++E];)if(g=h[N]||this.missingGlyph){if(k){o-=k=k[N]||0;l[Q]-=k}k=g.w;if(isNaN(k))k=+this.w;if(k>0){k+=e;if(d[N])k+=f}o+=l[++Q]=~~k;k=g.k}l.total= o;return l}}function R(){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],h=[],g,k;if(f===undefined)f=c>400;if(c==500)c=400;for(var l in e)if(e.hasOwnProperty(l)){l=parseInt(l,10);if(!g||l<g)g=l;if(!k||l>k)k=l;h.push(l)}if(c<g)c=g;if(c>k)c=k;h.sort(function(o, E){return(f?o>=c&&E>=c?o<E:o>E:o<=c&&E<=c?o>E:o<E)?-1:1});return e[h[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 C(b,a,d){if(b.addEventListener)b.addEventListener(a,d,false);else b.attachEvent&&b.attachEvent("on"+a,function(){return d.call(b,window.event)})} function I(b,a){var d=G.get(b);if(d.options)return b;a.hover&&a.hoverables[b.nodeName.toLowerCase()]&&S.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 p(b){return document.getElementsByTagName(b)}function q(){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 m(b,a,d,c,e,f){var h=document.createDocumentFragment();if(a==="")return h; var g=c.separate,k=a.split(J[g]);if((g=g=="words")&&x){/^\s/.test(a)&&k.unshift("");/\s$/.test(a)&&k.push("")}for(var l=0,o=k.length;l<o;++l)(a=v[c.engine](b,g?j.textAlign(k[l],d,l,o):k[l],d,c,e,f,l<o-1))&&h.appendChild(a);return h}function s(b,a){var d=b.nodeName.toLowerCase();if(!a.ignore[d]){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 h,g=0;h=f[g];++g)if(A[h]){f=A[h].get(e.get("fontStyle"),e.get("fontWeight"));break a}f=null}var k,l,o,E,Q=a.softHyphens,N=false,U=/\u00ad/g,T=a.modifyText;if(f){for(h=b.firstChild;h;h=k){g=h.nodeType;k=h.nextSibling;if(d&&g==3){if(Q&&b.nodeName.toLowerCase()!=H){o=h.data.indexOf("\u00ad");if(o>=0){h.splitText(o);k=h.nextSibling;k.deleteData(0,1);N=document.createElement(H);N.appendChild(document.createTextNode("\u00ad"));b.insertBefore(N,k);k=N;N=true}}if(l){l.appendData(h.data);b.removeChild(h)}else l= h;if(k)continue}if(l){o=l.data;Q||(o=o.replace(U,""));o=j.whiteSpace(o,e,l,E,c);if(T)o=T(o,l,b,a);b.replaceChild(m(f,o,e,a,h,b),l);l=null}if(g==1){if(h.firstChild)h.nodeName.toLowerCase()=="cufon"?v[a.engine](f,null,e,a,h,b):arguments.callee(h,a);E=h}}if(Q&&N){t(b);P||C(window,"resize",w);P=true}a.onAfterReplace&&a.onAfterReplace(b,a)}}}}function t(b){var a,d,c,e,f,h;b=b.getElementsByTagName(H);for(h=0;a=b[h];++h){a.className=u;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(h=0;a=b[h];++h){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=u;if(e.offsetTop<f.offsetTop){e=document.createElement(B);d.insertBefore(e,c);e.appendChild(c);e.appendChild(f)}}}} function w(){if(!D){j.addClass(y.root(),z);clearTimeout(r);r=setTimeout(function(){D=true;j.removeClass(y.root(),z);t(document);D=false},100)}}var n=function(){return n.replace.apply(null,arguments)},y=n.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)}}();C(window,"load",c);return function(e){if(arguments.length)b?e():d.push(e);else c()}}(),root:function(){return document.documentElement||document.body}},j=n.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=p("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,h,g){if(g)return c.replace(a,"").replace(d,"");if(h)if(h.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(g,k){if(!j.recognizesMedia(k||"all"))return true;if(!g||g.disabled)return false;try{var l=g.cssRules,o;if(l){var E=0,Q=l.length;a:for(;o=l[E],E<Q;++E)switch(o.type){case 2:break;case 3:if(!b(o.styleSheet,o.media.mediaText))return false;break;default:break a}}}catch(N){}return true}function a(){if(document.createStyleSheet)return true; var g,k;for(k=0;g=f[k];++k)if(g.rel.toLowerCase()=="stylesheet"&&!(g.disabled||b(g.sheet,g.media||"screen")))return false;for(k=0;g=h[k];++k)if(!(g.disabled||b(g.sheet,g.media||"screen")))return false;return true}var d=!j.recognizesMedia("all"),c=false,e=[],f=p("link"),h=p("style");y.ready(function(){c||(c=j.getStyle(document.body).isUsable());if(d||c&&a()){d=true;for(var g;g=e.shift();g());}else setTimeout(arguments.callee,10)});return function(g){d?g():e.push(g)}}();var x=" ".split(/\s+/).length== 0,B="cufonglue",H="cufonshy",u="cufon-shy-disabled",z="cufon-viewport-resizing",G=new function(){var b={},a=0;this.get=function(d){d=d.cufid||(d.cufid=++a);return b[d]||(b[d]={})}},S=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(h){}f=false}f||d(this,c.type=="mouseover")}function a(c){d(this,c.type=="mouseenter")}function d(c,e){setTimeout(function(){var f=G.get(c).options;n.replace(c, e?q(f,f.hover):f,true)},10)}this.attach=function(c){if(c.onmouseenter===undefined){C(c,"mouseover",b);C(c,"mouseout",b)}else{C(c,"mouseenter",a);C(c,"mouseleave",a)}}},K=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;d=d;for(e=0;c=d[e++];)n.replace(c[0],c[1],true)}},L=false,P=false,r,D=false,v={},A={},O={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},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)}||p,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:/^/};n.now=function(){y.ready();return n};n.refresh=function(){K.repeat.apply(K,arguments);return n};n.registerEngine=function(b,a){if(!a)return n;v[b]=a;return n.set("engine",b)}; n.registerFont=function(b){if(!b)return n;b=new M(b);var a=b.family;A[a]||(A[a]=new R);A[a].add(b);return n.set("fontFamily",'"'+a+'"')};n.replace=function(b,a,d){a=q(O,a);if(!a.engine)return n;if(!L){j.addClass(y.root(),"cufon-active cufon-loading");j.ready(function(){j.addClass(j.removeClass(y.root(),"cufon-loading"),"cufon-ready")});L=true}if(a.hover)a.forceHitArea=true;a.autoDetect&&delete a.fontFamily;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;d||K.add(b,arguments);if(b.nodeType||typeof b=="string")b=[b];j.ready(function(){for(var c=0,e=b.length;c<e;++c){var f=b[c];typeof f=="string"?n.replace(a.selector(f),a,true):s(f,a)}});return n};n.set=function(b,a){O[b]=a;return n};return n}(); Cufon.registerEngine("vml",function(){function M(i,p){if(!isNaN(p)||/px$/i.test(p))return parseFloat(p);var q=i.style.left,m=i.runtimeStyle.left;i.runtimeStyle.left=i.currentStyle.left;i.style.left=p.replace("%","em");var s=i.style.pixelLeft;i.style.left=q;i.runtimeStyle.left=m;return s}function R(i,p,q,m){var s="computed"+m,t=p[s];if(isNaN(t)){t=p.get(m);p[s]=t=t=="normal"?0:~~q.convertFrom(M(i,t))}return t}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 C=(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:'+(C?"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,p,q,m,s,t,w){var n=p===null;if(n)p=s.alt;var y=i.viewBox,j;if(!(j=q.computedFontSize)){j=Cufon.CSS.Size;var x;x=q.get("fontSize");x=M(t,/(?:em|ex|%)$|^[a-z-]+$/i.test(x)?"1em":x);j=q.computedFontSize=new j(x+"px",i.baseSize)}x=j;if(n){j=s;s=s.firstChild}else{j=document.createElement("cufon");j.className="cufon cufon-vml";j.alt=p;s=document.createElement("cufoncanvas");j.appendChild(s);if(m.printable){var B=document.createElement("cufontext");B.appendChild(document.createTextNode(p)); j.appendChild(B)}w||j.appendChild(document.createElement("cvml:shape"))}w=j.style;var H=s.style,u=x.convert(y.height);B=Math.ceil(u);u=B/u*Cufon.CSS.fontStretch(q.get("fontStretch"));var z=y.minX,G=y.minY;H.height=B;H.top=Math.round(x.convert(G-i.ascent));H.left=Math.round(x.convert(z));w.height=x.convert(i.height)+"px";var S=q.get("color"),K=Cufon.CSS.textTransform(p,q).split(""),L=i.spacing(K,R(t,q,x,"letterSpacing"),R(t,q,x,"wordSpacing"));if(!L.length)return null;p=L.total;var P=-z+p+(y.width- L[L.length-1]);H=x.convert(P*u);H=Math.round(H);y=P+","+y.height;var r;P="r"+y+"ns";var D;if(D=m.textGradient){var v=m.textGradient;D=v.id;if(!I[D]){v=v.stops;var A=document.createElement("cvml:fill"),O=[];A.type="gradient";A.angle=180;A.focus="0";A.method="none";A.color=v[0][1];for(var J=1,b=v.length-1;J<b;++J)O.push(v[J][0]*100+"% "+v[J][1]);A.colors=O.join(",");A.color2=v[b][1];I[D]=A}D=I[D]}D=D;v=i.glyphs;A=0;O=m.textShadow;J=-1;for(b=0;K[++J];){var a=v[K[J]]||i.missingGlyph,d;if(a){if(n)for(d= s.childNodes[b];d.firstChild;)d.removeChild(d.firstChild);else{d=document.createElement("cvml:shape");s.appendChild(d)}d.stroked="f";d.coordsize=y;d.coordorigin=r=z-A+","+G;d.path=(a.d?"m"+a.d+"xe":"")+"m"+r+P;d.fillcolor=S;D&&d.appendChild(D.cloneNode(false));r=d.style;r.width=H;r.height=B;if(O){r=O[0];a=O[1];var c=Cufon.CSS.color(r.color),e,f=document.createElement("cvml:shadow");f.on="t";f.color=c.color;f.offset=r.offX+","+r.offY;if(a){e=Cufon.CSS.color(a.color);f.type="double";f.color2=e.color; f.offset2=a.offX+","+a.offY}f.opacity=c.opacity||e&&e.opacity||1;d.appendChild(f)}A+=L[b++]}}i=d.nextSibling;if(m.forceHitArea){if(!i){i=document.createElement("cvml:rect");i.stroked="f";i.className="cufon-vml-cover";m=document.createElement("cvml:fill");m.opacity=0;i.appendChild(m);s.appendChild(i)}m=i.style;m.width=H;m.height=B}else i&&s.removeChild(i);w.width=Math.max(Math.ceil(x.convert(p*u)),0);if(C){m=q.computedYAdjust;if(m===undefined){m=q.get("lineHeight");if(m=="normal")m="1em";else isNaN(m)|| (m+="em");q.computedYAdjust=m=0.5*(M(t,m)-parseFloat(w.height))}if(m){w.marginTop=Math.ceil(m)+"px";w.marginBottom=m+"px"}}return j}}}}()); Cufon.registerEngine("canvas",function(){var M=document.createElement("canvas");if(!(!M||!M.getContext||!M.getContext.apply)){M=null;var R=Cufon.CSS.supports("display","inline-block");M=!R&&(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;"+(M? "":"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;}"+(R?"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(C,I,i,p,q){function m(){var D=C.glyphs,v,A=-1,O=-1;for(r.scale(P,1);S[++A];)if(v=D[S[A]]||C.missingGlyph){if(v.d){r.beginPath();if(v.code){var J=v.code;v=r;for(var b=0,a=J.length;b<a;++b){var d=J[b];v[d.m].apply(v,d.a)}}else{J=v;v="m"+v.d;b=r;d=a=0;var c=[],e=/([mrvxe])([^a-z]*)/g,f=void 0,h=0;a:for(;f=e.exec(v);++h){var g=f[2].split(",");switch(f[1]){case "v":c[h]={m:"bezierCurveTo",a:[a+~~g[0],d+~~g[1],a+~~g[2],d+~~g[3],a+= ~~g[4],d+=~~g[5]]};break;case "r":c[h]={m:"lineTo",a:[a+=~~g[0],d+=~~g[1]]};break;case "m":c[h]={m:"moveTo",a:[a=~~g[0],d=~~g[1]]};break;case "x":c[h]={m:"closePath"};break;case "e":break a}b[c[h].m].apply(b,c[h].a)}J.code=c}r.fill()}r.translate(K[++O],0)}r.restore()}var s=I===null;if(s)I=q.getAttribute("alt");var t=C.viewBox,w=i.getSize("fontSize",C.baseSize),n=0,y=0,j=0,x=0,B=p.textShadow,H=[];if(B)for(var u=B.length;u--;){var z=B[u],G=w.convertFrom(parseFloat(z.offX));z=w.convertFrom(parseFloat(z.offY)); H[u]=[G,z];if(z<n)n=z;if(G>y)y=G;if(z>j)j=z;if(G<x)x=G}var S=Cufon.CSS.textTransform(I,i).split(""),K=C.spacing(S,~~w.convertFrom(parseFloat(i.get("letterSpacing"))||0),~~w.convertFrom(parseFloat(i.get("wordSpacing"))||0));if(!K.length)return null;z=K.total;y+=t.width-K[K.length-1];x+=t.minX;if(s){s=q;u=q.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",I);u=document.createElement("canvas");s.appendChild(u);if(p.printable){q=document.createElement("cufontext"); q.appendChild(document.createTextNode(I));s.appendChild(q)}}q=s.style;var L=u.style;G=w.convert(t.height);I=Math.ceil(G)/G;var P=I*Cufon.CSS.fontStretch(i.get("fontStretch"));z=z*P;y=Math.ceil(w.convert(z+y-x));j=Math.ceil(w.convert(t.height-n+j));u.width=y;u.height=j;L.width=y+"px";L.height=j+"px";n+=t.minY;L.top=Math.round(w.convert(n-C.ascent))+"px";L.left=Math.round(w.convert(x))+"px";j=Math.max(Math.ceil(w.convert(z)),0)+"px";if(R){q.width=j;q.height=w.convert(C.height)+"px"}else{q.paddingLeft= j;q.paddingBottom=w.convert(C.height)-1+"px"}var r=u.getContext("2d");w=G/t.height;r.scale(w,w*I);r.translate(-x,-n);r.save();if(B)for(u=B.length;u--;){z=B[u];r.save();r.fillStyle=z.color;r.translate.apply(r,H[u]);m()}if(p=p.textGradient){i=p.stops;t=r.createLinearGradient(0,t.minY,0,t.maxY);u=0;for(p=i.length;u<p;++u)t.addColorStop.apply(t,i[u]);r.fillStyle=t}else r.fillStyle=i.get("color");m();return s}}}());
