/* * 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