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