/* * Copyright (c) 2008 Simo Kinnunen. * Licensed under the MIT license. */ var Cufon=(function(){var J=function(){return J.replace.apply(null,arguments)};var Q=J.DOM={ready:(function(){var V=false,X={loaded:1,complete:1};var U=[],W=function(){if(V){return}V=true;for(var Y;Y=U.shift();Y()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",W,false);window.addEventListener("pageshow",W,false)}if(!window.opera&&document.readyState){(function(){X[document.readyState]?W():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");W()}catch(Y){setTimeout(arguments.callee,1)}})()}M(window,"load",W);return function(Y){if(!arguments.length){W()}else{V?Y():U.push(Y)}}})()};var K=J.CSS={Size:function(V,U){this.value=parseFloat(V);this.unit=String(V).match(/[a-z%]*$/)[0]||"px";this.convert=function(W){return W/U*this.value};this.convertFrom=function(W){return W/this.value*U};this.toString=function(){return this.value+this.unit}},getStyle:function(V){var U=document.defaultView;if(U&&U.getComputedStyle){return new A(U.getComputedStyle(V,null))}if(V.currentStyle){return new A(V.currentStyle)}return new A(V.style)},ready:(function(){var W=false;var V=[],X=function(){W=true;for(var Z;Z=V.shift();Z()){}};var U=Object.prototype.propertyIsEnumerable?E("style"):{length:0};var Y=E("link");Q.ready(function(){var c=0,b;for(var a=0,Z=Y.length;b=Y[a],a=U.length+c){X()}else{setTimeout(arguments.callee,10)}});return function(Z){if(W){Z()}else{V.push(Z)}}})(),supports:function(W,V){var U=document.createElement("span").style;if(U[W]===undefined){return false}U[W]=V;return U[W]===V},textAlign:function(X,W,U,V){if(W.get("textAlign")=="right"){if(U>0){X=" "+X}}else{if(UW)){W=Y}}return U[W]}}function T(){var W={},U=0;function V(X){return X.cufid||(X.cufid=++U)}this.get=function(X){var Y=V(X);return W[Y]||(W[Y]={})}}function A(U){var W={},V={};this.get=function(X){return W[X]!=undefined?W[X]:U[X]};this.getSize=function(Y,X){return V[Y]||(V[Y]=new K.Size(this.get(Y),X))};this.extend=function(X){for(var Y in X){W[Y]=X[Y]}return this}}function M(V,U,W){if(V.addEventListener){V.addEventListener(U,W,false)}else{if(V.attachEvent){V.attachEvent("on"+U,function(){return W.apply(V,arguments)})}}}function H(U){var V={};return function(W){if(!V.hasOwnProperty(W)){V[W]=U.apply(null,arguments)}return V[W]}}function B(Z,Y){if(!Y){Y=K.getStyle(Z)}var V=Y.get("fontFamily").split(/\s*,\s*/),X;for(var W=0,U=V.length;Wh){h=b}if(a>e){e=a}if(b