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

