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