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

