AAAAhome/academiac/www/templates/ideas/js/cufon-yui.js000060400000040167151410433750016171 0ustar00/* * Copyright (c) 2009 Simo Kinnunen. * Licensed under the MIT license. */ var Cufon=(function(){var L=function(){return L.replace.apply(null,arguments)};var W=L.DOM={ready:(function(){var b=false,d={loaded:1,complete:1};var a=[],c=function(){if(b){return}b=true;for(var e;e=a.shift();e()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",c,false);window.addEventListener("pageshow",c,false)}if(!window.opera&&document.readyState){(function(){d[document.readyState]?c():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");c()}catch(f){setTimeout(arguments.callee,1)}})()}P(window,"load",c);return function(e){if(!arguments.length){c()}else{b?e():a.push(e)}}})()};var M=L.CSS={Size:function(b,a){this.value=parseFloat(b);this.unit=String(b).match(/[a-z%]*$/)[0]||"px";this.convert=function(c){return c/a*this.value};this.convertFrom=function(c){return c/this.value*a};this.toString=function(){return this.value+this.unit}},color:I(function(b){var a={};a.color=b.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(d,c,e){a.opacity=parseFloat(e);return"rgb("+c+")"});return a}),getStyle:function(b){var a=document.defaultView;if(a&&a.getComputedStyle){return new A(a.getComputedStyle(b,null))}if(b.currentStyle){return new A(b.currentStyle)}return new A(b.style)},gradient:I(function(e){var f={id:e,type:e.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},b=e.substr(e.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var d=0,a=b.length,c;d0){d=" "+d}}else{if(a400}if(h==500){h=400}for(var i in f){if(!J(f,i)){continue}i=parseInt(i,10);if(!e||ic){c=i}j.push(i)}if(hc){h=c}j.sort(function(l,k){return(d?(l>h&&k>h)?lk:(lk:lt){t=o}if(n>r){r=n}if(o.cufon-vml-canvas{text-indent:0;}@media screen{cvml\\:shape,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:middle;}.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(F,G){return A(F,/(?:em|ex|%)$/i.test(G)?"1em":G)}function A(I,J){if(/px$/i.test(J)){return parseFloat(J)}var H=I.style.left,G=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;I.style.left=J;var F=I.style.pixelLeft;I.style.left=H;I.runtimeStyle.left=G;return F}var E={};function D(K){var L=K.id;if(!E[L]){var I=K.stops,J=document.createElement("cvml:fill"),F=[];J.type="gradient";J.angle=180;J.focus="0";J.method="sigma";J.color=I[0][1];for(var H=1,G=I.length-1;H