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