var Cufon=(function(){var api=function(){return api.replace.apply(null,arguments);};var DOM=api.DOM={ready:(function(){var complete=false,readyStatus={loaded:1,complete:1};var queue=[],perform=function(){if(complete)return;complete=true;for(var fn;fn=queue.shift();fn());};if(document.addEventListener){document.addEventListener('DOMContentLoaded',perform,false);window.addEventListener('pageshow',perform,false);} if(!window.opera&&document.readyState)(function(){readyStatus[document.readyState]?perform():setTimeout(arguments.callee,10);})();if(document.readyState&&document.createStyleSheet)(function(){try{document.body.doScroll('left');perform();} catch(e){setTimeout(arguments.callee,1);}})();addEvent(window,'load',perform);return function(listener){if(!arguments.length)perform();else complete?listener():queue.push(listener);};})(),root:function(){return document.documentElement||document.body;},strict:(function(){var doctype;if(document.compatMode=='BackCompat')return false;doctype=document.doctype;if(doctype){return!/frameset|transitional/i.test(doctype.publicId);} doctype=document.firstChild;if(doctype.nodeType!=8||/^DOCTYPE.+(transitional|frameset)/i.test(doctype.data)){return false;} return true;})()};var CSS=api.CSS={Size:function(value,base){this.value=parseFloat(value);this.unit=String(value).match(/[a-z%]*$/)[0]||'px';this.convert=function(value){return value/base*this.value;};this.convertFrom=function(value){return value/this.value*base;};this.toString=function(){return this.value+ this.unit;};},addClass:function(el,className){var current=el.className;el.className=current+(current&&' ')+ className;return el;},color:cached(function(value){var parsed={};parsed.color=value.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function($0,$1,$2){parsed.opacity=parseFloat($2);return'rgb('+ $1+')';});return parsed;}),fontStretch:cached(function(value){if(typeof value=='number')return value;if(/%$/.test(value))return parseFloat(value)/ 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}[value]||1;}),getStyle:function(el){var view=document.defaultView;if(view&&view.getComputedStyle)return new Style(view.getComputedStyle(el,null));if(el.currentStyle)return new Style(el.currentStyle);return new Style(el.style);},gradient:cached(function(value){var gradient={id:value,type:value.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},colors=value.substr(value.indexOf('(')).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var i=0,l=colors.length,stop;i0)word=' '+ word;} else if(position0){w+=letterSpacing;if(wordSeparators[chr])w+=wordSpacing;} width+=jumps[++j]=~~w;kerning=glyph.k;} jumps.total=width;return jumps;};} function FontFamily(){var styles={},mapping={oblique:'italic',italic:'oblique'};this.add=function(font){(styles[font.style]||(styles[font.style]={}))[font.weight]=font;};this.get=function(style,weight){var weights=styles[style]||styles[mapping[style]]||styles.normal||styles.italic||styles.oblique;if(!weights)return null;weight={normal:400,bold:700}[weight]||parseInt(weight,10);if(weights[weight])return weights[weight];var up={1:1,99:0}[weight%100],alts=[],min,max;if(up===undefined)up=weight>400;if(weight==500)weight=400;for(var alt in weights){if(!hasOwnProperty(weights,alt))continue;alt=parseInt(alt,10);if(!min||altmax)max=alt;alts.push(alt);} if(weightmax)weight=max;alts.sort(function(a,b){return(up?(a>=weight&&b>=weight)?ab:(a<=weight&&b<=weight)?a>b:a=0){node.splitText(pos);next=node.nextSibling;next.deleteData(0,1);shy=document.createElement(TAG_SHY);shy.appendChild(document.createTextNode('\u00ad'));el.insertBefore(shy,next);next=shy;anyShy=true;}} if(anchor){anchor.appendData(node.data);el.removeChild(node);} else anchor=node;if(next)continue;} if(anchor){text=anchor.data;if(!isShy)text=text.replace(reShy,'');text=CSS.whiteSpace(text,style,anchor,lastElement,simple);if(modifyText)text=modifyText(text,anchor,el,options);el.replaceChild(process(font,text,style,options,node,el),anchor);anchor=null;} if(type==1){if(node.firstChild){if(node.nodeName.toLowerCase()=='cufon'){engines[options.engine](font,null,style,options,node,el);} else arguments.callee(node,options);} lastElement=node;}} if(isShy&&anyShy){updateShy(el);if(!trackingShy)addEvent(window,'resize',updateShyOnResize);trackingShy=true;} if(options.onAfterReplace)options.onAfterReplace(el,options);} function updateShy(context){var shys,shy,parent,glue,newGlue,next,prev,i;shys=context.getElementsByTagName(TAG_SHY);for(i=0;shy=shys[i];++i){shy.className=C_SHY_DISABLED;glue=parent=shy.parentNode;if(glue.nodeName.toLowerCase()!=TAG_GLUE){newGlue=document.createElement(TAG_GLUE);newGlue.appendChild(shy.previousSibling);parent.insertBefore(newGlue,shy);newGlue.appendChild(shy);} else{glue=glue.parentNode;if(glue.nodeName.toLowerCase()==TAG_GLUE){parent=glue.parentNode;while(glue.firstChild){parent.insertBefore(glue.firstChild,glue);} parent.removeChild(glue);}}} for(i=0;shy=shys[i];++i){shy.className='';glue=shy.parentNode;parent=glue.parentNode;next=glue.nextSibling||parent.nextSibling;prev=(next.nodeName.toLowerCase()==TAG_GLUE)?glue:shy.previousSibling;if(prev.offsetTop>=next.offsetTop){shy.className=C_SHY_DISABLED;if(prev.offsetTop'+'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:'+ (HAS_BROKEN_LINEHEIGHT?'middle':'text-bottom')+';}'+'cufon cufontext{position:absolute;left:-10000in;font-size:1px;text-align:left;}'+'cufonshy.cufon-shy-disabled,.cufon-viewport-resizing cufonshy{display:none;}'+'cufonglue{white-space:nowrap;display:inline-block;}'+'.cufon-viewport-resizing cufonglue{white-space:normal;}'+'a cufon{cursor:pointer}'+'}'+'@media print{'+'cufon cufoncanvas{display:none;}'+'}'+'').replace(/;/g,'!important;'));function getFontSizeInPixels(el,value){return getSizeInPixels(el,/(?:em|ex|%)$|^[a-z-]+$/i.test(value)?'1em':value);} function getSizeInPixels(el,value){if(!isNaN(value)||/px$/i.test(value))return parseFloat(value);var style=el.style.left,runtimeStyle=el.runtimeStyle.left;el.runtimeStyle.left=el.currentStyle.left;el.style.left=value.replace('%','em');var result=el.style.pixelLeft;el.style.left=style;el.runtimeStyle.left=runtimeStyle;return result;} function getSpacingValue(el,style,size,property){var key='computed'+ property,value=style[key];if(isNaN(value)){value=style.get(property);style[key]=value=(value=='normal')?0:~~size.convertFrom(getSizeInPixels(el,value));} return value;} var fills={};function gradientFill(gradient){var id=gradient.id;if(!fills[id]){var stops=gradient.stops,fill=document.createElement('cvml:fill'),colors=[];fill.type='gradient';fill.angle=180;fill.focus='0';fill.method='none';fill.color=stops[0][1];for(var j=1,k=stops.length- 1;jexpandRight)expandRight=x;if(y>expandBottom)expandBottom=y;if(x