var Fat={make_hex:function(r,g,b){r=r.toString(16);if(r.length==1){r="0"+r;}g=g.toString(16);if(g.length==1){g="0"+g;}b=b.toString(16);if(b.length==1){b="0"+b;}return "#"+r+g+b;},fade_all:function(){var a=document.getElementsByTagName("*");for(var i=0;i<a.length;i++){var o=a[i];var r=/fade-?(\w{3,6})?/.exec(o.className);if(r){if(!r[1]){r[1]="";}if(o.id){Fat.fade_element(o.id,null,null,"#"+r[1]);}}}},fade_element:function(id,_9,_a,_b,to){if(!_9){_9=30;}if(!_a){_a=3000;}if(!_b||_b=="#"){_b="#FFFF33";}if(!to){to=this.get_bgcolor(id);}var _d=Math.round(_9*(_a/1000));var _e=_a/_d;var _f=_e;var _10=0;if(_b.length<7){_b+=_b.substr(1,3);}if(to.length<7){to+=to.substr(1,3);}var rf=parseInt(_b.substr(1,2),16);var gf=parseInt(_b.substr(3,2),16);var bf=parseInt(_b.substr(5,2),16);var rt=parseInt(to.substr(1,2),16);var gt=parseInt(to.substr(3,2),16);var bt=parseInt(to.substr(5,2),16);var r,g,b,h;while(_10<_d){r=Math.floor(rf*((_d-_10)/_d)+rt*(_10/_d));g=Math.floor(gf*((_d-_10)/_d)+gt*(_10/_d));b=Math.floor(bf*((_d-_10)/_d)+bt*(_10/_d));h=this.make_hex(r,g,b);setTimeout("Fat.set_bgcolor('"+id+"','"+h+"')",_f);_10++;_f=_e*_10;}setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')",_f);},set_bgcolor:function(id,c){var o=gEBI(id);o.style.backgroundColor=c;},get_bgcolor:function(id){var o=gEBI(id);while(o){var c;if(window.getComputedStyle){c=window.getComputedStyle(o,null).getPropertyValue("background-color");}if(o.currentStyle){c=o.currentStyle.backgroundColor;}if((c!=""&&c!="transparent")||o.tagName=="BODY"){break;}o=o.parentNode;}if(c==undefined||c==""||c=="transparent"){c="#FFFFFF";}var rgb=c.match(/rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/);if(rgb){c=this.make_hex(parseInt(rgb[1]),parseInt(rgb[2]),parseInt(rgb[3]));}return c;}};function prosper_pulse(ctr,v1,v2,num,pl){var v3;for(x=0;x<num*2;x++){wtr=250+pl/2*x;ph=pl/2;setTimeout(function(){eval(ctr);v3=v1;v1=v2;v2=v3;},wtr);}}