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