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,k){for(var u=this.glyphs,r,j,i=[],t=0,C=-1,K=-1,N;N=c[++C];)if(r=u[N]||this.missingGlyph){if(j){t-=j=j[N]||0;i[K-1]-=j}t+=i[++K]=~~(r.w||this.w)+e+(d[N]?k:0);j=r.k}i.total=t;return i}}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],k=[],u,r;if(e===undefined)e=c>400;if(c==500)c=400;for(var j in d)if(l(d,j)){j=parseInt(j,10);if(!u||j<u)u=j;if(!r||j>r)r=j;k.push(j)}if(c<u)c=u;if(c>r)c=r;k.sort(function(i,t){return(e?i>=c&&t>=c?i<t:i>t:i<=c&&t<=c?i>t:i<t)?-1:1});return d[k[0]]}}function H(){function a(e,k){if(e.contains)return e.contains(k);return e.compareDocumentPosition(k)&
16}function b(e){e=e.relatedTarget;!e||a(this,e)||c(this)}function d(){c(this)}function c(e){setTimeout(function(){m.replace(e,D.get(e).options,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=[],k,u=0;k=c[u];++u)e[u]=b[d[k]];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,k=0;e=
c[k++];)m.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(l(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 q.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 g(a){var b={};return function(d){l(b,d)||(b[d]=a.apply(null,arguments));return b[d]}}function h(a,b){a=q.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 s(a){return document.getElementsByTagName(a)}
function l(a,b){return a.hasOwnProperty(b)}function n(){for(var a={},b,d,c=0,e=arguments.length;b=arguments[c],c<e;++c)for(d in b)if(l(b,d))a[d]=b[d];return a}function o(a,b,d,c,e,k){var u=document.createDocumentFragment();if(b==="")return u;var r=c.separate,j=b.split(I[r]);if((r=r=="words")&&z){/^\s/.test(b)&&j.unshift("");/\s$/.test(b)&&j.push("")}for(var i=0,t=j.length;i<t;++i)(b=J[c.engine](a,r?q.textAlign(j[i],d,i,t):j[i],d,c,e,k,i<t-1))&&u.appendChild(b);return u}function G(a,b){var d=a.nodeName.toLowerCase();
if(!b.ignore[d]){d=!b.textless[d];var c=q.getStyle(f(a,b)).extend(b),e=h(a,c),k,u,r,j,i;if(e)for(k=a.firstChild;k;k=r){u=k.nodeType;r=k.nextSibling;if(d&&u==3){if(j){j.appendData(k.data);a.removeChild(k)}else j=k;if(r)continue}if(j){a.replaceChild(o(e,q.whiteSpace(j.data,c,j,i),c,b,k,a),j);j=null}if(u==1){if(k.firstChild)k.nodeName.toLowerCase()=="cufon"?J[b.engine](e,null,c,b,k,a):arguments.callee(k,b);i=k}}}}var m=function(){return m.replace.apply(null,arguments)},p=m.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}},q=m.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:g(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:g(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:g(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:g(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:g(function(a){var b=document.createElement("style"),d;b.type="text/css";b.media=a;
try{b.appendChild(document.createTextNode("/**/"))}catch(c){}a=s("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:g(function(a){if(a=="none")return null;for(var b=[],d={},c,e=0,k=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;c=k.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,k,u){if(u)if(u.nodeName.toLowerCase()=="br")c=c.replace(b,"");if(a[e.get("display")])return c;k.previousSibling||(c=c.replace(b,""));k.nextSibling||(c=c.replace(d,""));return c}}()};q.ready=function(){function a(i){return i.disabled||b(i.sheet,i.media||"screen")}function b(i,t){if(!q.recognizesMedia(t||"all"))return true;if(!i||i.disabled)return false;
try{var C=i.cssRules,K;if(C){i=0;var N=C.length;a:for(;K=C[i],i<N;++i)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 i,t;for(t=0;i=r[t];++t)if(i.rel.toLowerCase()=="stylesheet"&&!a(i))return false;for(t=0;i=j[t];++t)if(!a(i))return false;return true}var c=!q.recognizesMedia("all"),e=false,k=[],u=function(){c=true;for(var i;i=k.shift();i());},r=s("link"),j=
s("style");p.ready(function(){e||(e=q.getStyle(document.body).isUsable());c||e&&d()?u():setTimeout(arguments.callee,10)});return function(i){c?i():k.push(i)}}();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,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.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)}||s,separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"},I={words:/[^\S\u00a0]+/,characters:"",none:/^/};m.now=function(){p.ready();return m};m.refresh=
function(){x.repeat.apply(x,arguments);return m};m.registerEngine=function(a,b){if(!b)return m;J[a]=b;return m.set("engine",a)};m.registerFont=function(a){if(!a)return m;a=new O(a);var b=a.family;A[b]||(A[b]=new L);A[b].add(a);return m.set("fontFamily",'"'+b+'"')};m.replace=function(a,b,d){b=n(F,b);if(!b.engine)return m;if(!B){q.addClass(p.root(),"cufon-active cufon-loading");q.ready(function(){q.addClass(q.removeClass(p.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=q.textShadow(b.textShadow);if(typeof b.color=="string"&&/^-/.test(b.color))b.textGradient=q.gradient(b.color);d||x.add(a,arguments);if(a.nodeType||typeof a=="string")a=[a];q.ready(function(){for(var c=0,e=a.length;c<e;++c){var k=a[c];typeof k=="string"?m.replace(b.selector(k),b,true):G(k,b)}});return m};m.set=function(a,b){F[a]=b;return m};return m}();
Cufon.registerEngine("canvas",function(){function O(y,w){var f=0,g=0,h=[],s=/([mrvxe])([^a-z]*)/g,l,n=0;a:for(;l=s.exec(y);++n){var o=l[2].split(",");switch(l[1]){case "v":h[n]={m:"bezierCurveTo",a:[f+~~o[0],g+~~o[1],f+~~o[2],g+~~o[3],f+=~~o[4],g+=~~o[5]]};break;case "r":h[n]={m:"lineTo",a:[f+=~~o[0],g+=~~o[1]]};break;case "m":h[n]={m:"moveTo",a:[f=~~o[0],g=~~o[1]]};break;case "x":h[n]={m:"closePath"};break;case "e":break a}w[h[n].m].apply(w,h[n].a)}return h}function L(y,w){for(var f=0,g=y.length;f<
g;++f){var h=y[f];w[h.m].apply(w,h.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;overflow:hidden;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,g,h){function s(){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 l=w===null;if(l)w=h.alt;var n=y.viewBox,o=f.getSize("fontSize",y.baseSize),G=0,m=0,p=0,q=0,z=g.textShadow,D=[];if(z)for(var v=z.length;v--;){var x=z[v],B=o.convertFrom(parseFloat(x.offX));x=o.convertFrom(parseFloat(x.offY));D[v]=[B,x];if(x<G)G=x;if(B>m)m=B;if(x>p)p=x;if(B<q)q=B}var J=Cufon.CSS.textTransform(w,f).split(""),A=y.spacing(J,~~o.convertFrom(parseFloat(f.get("letterSpacing"))||0),~~o.convertFrom(parseFloat(f.get("wordSpacing"))||
0));if(!A.length)return null;x=A.total;m+=n.width-A[A.length-1];q+=n.minX;if(l){l=h;v=h.firstChild}else{l=document.createElement("cufon");l.className="cufon cufon-canvas";l.alt=w;v=document.createElement("canvas");l.appendChild(v);if(g.printable){h=document.createElement("cufontext");h.appendChild(document.createTextNode(w));l.appendChild(h)}}h=l.style;var F=v.style;B=o.convert(n.height);w=Math.ceil(B)/B;var I=w*Cufon.CSS.fontStretch(f.get("fontStretch"));x=x*I;m=Math.ceil(o.convert(x+m-q));p=Math.ceil(o.convert(n.height-
G+p));v.width=m;v.height=p;F.width=m+"px";F.height=p+"px";G+=n.minY;F.top=Math.round(o.convert(G-y.ascent))+"px";F.left=Math.round(o.convert(q))+"px";p=Math.max(Math.ceil(o.convert(x)),0)+"px";if(M){h.width=p;h.height=o.convert(y.height)+"px"}else{h.paddingLeft=p;h.paddingBottom=o.convert(y.height)-1+"px"}var a=v.getContext("2d");o=B/n.height;a.scale(o,o*w);a.translate(-q,-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]);s()}if(g=g.textGradient){f=
g.stops;n=a.createLinearGradient(0,n.minY,0,n.maxY);v=0;for(g=f.length;v<g;++v)n.addColorStop.apply(n,f[v]);a.fillStyle=n}else a.fillStyle=f.get("color");s();return l}}}());
Cufon.registerEngine("vml",function(){function O(f,g){return L(f,/(?:em|ex|%)$|^[a-z-]+$/i.test(g)?"1em":g)}function L(f,g){if(g==="0")return 0;if(/px$/i.test(g))return parseFloat(g);var h=f.style.left,s=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;f.style.left=g.replace("%","em");g=f.style.pixelLeft;f.style.left=h;f.runtimeStyle.left=s;return g}function H(f,g,h,s){var l="computed"+s,n=g[l];if(isNaN(n)){n=g.get(s);g[l]=n=n=="normal"?0:~~h.convertFrom(L(f,n))}return n}function M(f){var g=
f.id;if(!w[g]){f=f.stops;var h=document.createElement("cvml:fill"),s=[];h.type="gradient";h.angle=180;h.focus="0";h.method="sigma";h.color=f[0][1];for(var l=1,n=f.length-1;l<n;++l)s.push(f[l][0]*100+"% "+f[l][1]);h.colors=s.join(",");h.color2=f[n][1];w[g]=h}return w[g]}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,g,h,s,l,n,o){var G=g===null;if(G)g=l.alt;var m=f.viewBox,p=h.computedFontSize||(h.computedFontSize=new Cufon.CSS.Size(O(n,h.get("fontSize"))+"px",f.baseSize)),q;if(G){q=l;l=l.firstChild}else{q=document.createElement("cufon");q.className="cufon cufon-vml";q.alt=g;l=document.createElement("cufoncanvas");
q.appendChild(l);if(s.printable){var z=document.createElement("cufontext");z.appendChild(document.createTextNode(g));q.appendChild(z)}o||q.appendChild(document.createElement("cvml:shape"))}o=q.style;var D=l.style,v=p.convert(m.height);z=Math.ceil(v);v=z/v*Cufon.CSS.fontStretch(h.get("fontStretch"));var x=m.minX,B=m.minY;D.height=z;D.top=Math.round(p.convert(B-f.ascent));D.left=Math.round(p.convert(x));o.height=p.convert(f.height)+"px";var J=h.get("color"),A=Cufon.CSS.textTransform(g,h).split(""),
F=f.spacing(A,H(n,h,p,"letterSpacing"),H(n,h,p,"wordSpacing"));if(!F.length)return null;g=F.total;var I=-x+g+(m.width-F[F.length-1]);D=p.convert(I*v);D=Math.round(D);m=I+","+m.height;var a;I="r"+m+"ns";for(var b=s.textGradient&&M(s.textGradient),d=f.glyphs,c=0,e=s.textShadow,k=-1,u=0;A[++k];){var r=d[A[k]]||f.missingGlyph,j;if(r){if(G)for(j=l.childNodes[u];j.firstChild;)j.removeChild(j.firstChild);else{j=document.createElement("cvml:shape");l.appendChild(j)}j.stroked="f";j.coordsize=m;j.coordorigin=
a=x-c+","+B;j.path=(r.d?"m"+r.d+"xe":"")+"m"+a+I;j.fillcolor=J;b&&j.appendChild(b.cloneNode(false));a=j.style;a.width=D;a.height=z;if(e){a=e[0];r=e[1];var i=Cufon.CSS.color(a.color),t,C=document.createElement("cvml:shadow");C.on="t";C.color=i.color;C.offset=a.offX+","+a.offY;if(r){t=Cufon.CSS.color(r.color);C.type="double";C.color2=t.color;C.offset2=r.offX+","+r.offY}C.opacity=i.opacity||t&&t.opacity||1;j.appendChild(C)}c+=F[u++]}}f=j.nextSibling;if(s.forceHitArea){if(!f){f=document.createElement("cvml:rect");
f.stroked="f";f.className="cufon-vml-cover";s=document.createElement("cvml:fill");s.opacity=0;f.appendChild(s);l.appendChild(f)}s=f.style;s.width=D;s.height=z}else f&&l.removeChild(f);o.width=Math.max(Math.ceil(p.convert(g*v)),0);if(y){p=h.computedYAdjust;if(p===undefined){p=h.get("lineHeight");if(p=="normal")p="1em";else isNaN(p)||(p+="em");h.computedYAdjust=p=0.5*(L(n,p)-parseFloat(o.height))}if(p){o.marginTop=Math.ceil(p)+"px";o.marginBottom=p+"px"}}return q}}}}());