var Fat={make_hex:function(C,B,A){C=C.toString(16);if(C.length==1){C="0"+C}B=B.toString(16);if(B.length==1){B="0"+B}A=A.toString(16);if(A.length==1){A="0"+A}return"#"+C+B+A},fade_all:function(){var A=document.getElementsByTagName("*");for(var B=0;B<A.length;B++){var D=A[B];var C=/fade-?(\w{3,6})?/.exec(D.className);if(C){if(!C[1]){C[1]=""}if(D.id){Fat.fade_element(D.id,null,null,"#"+C[1])}}}},fade_element:function(J,B,A,L,C){if(!B){B=30}if(!A){A=3000}if(!L||L=="#"){L="#FFFF33"}if(!C){C=this.get_bgcolor(J)}var F=Math.round(B*(A/1000));var O=A/F;var S=O;var G=0;if(L.length<7){L+=L.substr(1,3)}if(C.length<7){C+=C.substr(1,3)}var K=parseInt(L.substr(1,2),16);var Q=parseInt(L.substr(3,2),16);var D=parseInt(L.substr(5,2),16);var E=parseInt(C.substr(1,2),16);var I=parseInt(C.substr(3,2),16);var P=parseInt(C.substr(5,2),16);var H,N,R,M;while(G<F){H=Math.floor(K*((F-G)/F)+E*(G/F));N=Math.floor(Q*((F-G)/F)+I*(G/F));R=Math.floor(D*((F-G)/F)+P*(G/F));M=this.make_hex(H,N,R);setTimeout("Fat.set_bgcolor('"+J+"','"+M+"')",S);G++;S=O*G}setTimeout("Fat.set_bgcolor('"+J+"','"+C+"')",S)},set_bgcolor:function(C,B){var A=document.getElementById(C);A.style.backgroundColor=B},get_bgcolor:function(D){var B=document.getElementById(D);while(B){var C;if(window.getComputedStyle){C=window.getComputedStyle(B,null).getPropertyValue("background-color")}if(B.currentStyle){C=B.currentStyle.backgroundColor}if((C!=""&&C!="transparent")||B.tagName=="BODY"){break}B=B.parentNode}if(C==undefined||C==""||C=="transparent"){C="#FFFFFF"}var A=C.match(/rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/);if(A){C=this.make_hex(parseInt(A[1]),parseInt(A[2]),parseInt(A[3]))}return C}};function addLoadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){if(B){B()}A()}}}addLoadEvent(function(){});
