/* * Copyright (c) 2009 Simo Kinnunen. * Licensed under the MIT license. */ var Cufon=(function(){var M=function(){return M.replace.apply(null,arguments)};var X=M.DOM={ready:(function(){var c=false,e={loaded:1,complete:1};var b=[],d=function(){if(c){return}c=true;for(var f;f=b.shift();f()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",d,false);window.addEventListener("pageshow",d,false)}if(!window.opera&&document.readyState){(function(){e[document.readyState]?d():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");d()}catch(f){setTimeout(arguments.callee,1)}})()}Q(window,"load",d);return function(f){if(!arguments.length){d()}else{c?f():b.push(f)}}})(),root:function(){return document.documentElement||document.body}};var N=M.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(c,b){c.className=(c.className&&" ")+b;return c},color:J(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:J(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 A(b.getComputedStyle(c,null))}if(c.currentStyle){return new A(c.currentStyle)}return new A(c.style)},gradient:J(function(f){var g={id:f,type:f.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},c=f.substr(f.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var e=0,b=c.length,d;e0){e=" "+e}}else{if(b400}if(i==500){i=400}for(var j in g){if(!K(g,j)){continue}j=parseInt(j,10);if(!f||jd){d=j}k.push(j)}if(id){i=d}k.sort(function(m,l){return(e?(m>i&&l>i)?ml:(ml:mw){w=r}if(p>u){u=p}if(r.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:'+(F?"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;}}").replace(/;/g,"!important;"));function C(G,H){return A(G,/(?:em|ex|%)$/i.test(H)?"1em":H)}function A(J,K){if(/px$/i.test(K)){return parseFloat(K)}var I=J.style.left,H=J.runtimeStyle.left;J.runtimeStyle.left=J.currentStyle.left;J.style.left=K.replace("%","em");var G=J.style.pixelLeft;J.style.left=I;J.runtimeStyle.left=H;return G}var E={};function D(L){var M=L.id;if(!E[M]){var J=L.stops,K=document.createElement("cvml:fill"),G=[];K.type="gradient";K.angle=180;K.focus="0";K.method="sigma";K.color=J[0][1];for(var I=1,H=J.length-1;I