/* * copyright (c) 2009 simo kinnunen. * licensed under the mit license. * * @version 1.09 */ 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){var d=c.classname;c.classname=d+(d&&" ")+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:(m<=i&&l<=i)?m>l:mo){o=k}if(i>n){n=i}if(kcufoncanvas{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:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parsefloat(m)}var k=l.style.left,j=l.runtimestyle.left;l.runtimestyle.left=l.currentstyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelleft;l.style.left=k;l.runtimestyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isnan(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertfrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createelement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m