function MakeArray(N)
 {
  this.length = N;
  for (I = 1; I <= N; I++)
   this[I] = 0;
  return this;
 }
Hexa = new MakeArray(16);
for (I = 0; I < 10; I++)
 Hexa[I] = I;
Hexa[10]="A"; Hexa[11]="B"; Hexa[12]="C";
Hexa[13]="D"; Hexa[14]="E"; Hexa[15]="F";
function Hex(I)
 {
  if (I < 0)
    return "FF";
   else
    if (I > 255)
      return "00";
     else
      return "" + Hexa[Math.floor(I/16)] + Hexa[I%16];
 }
function SetbgColor(R, G, B)
 {
  HexRed = Hex(R); HexGreen = Hex(G); HexBlue = Hex(B);
  document.bgColor = "#" + HexRed + HexGreen + HexBlue;
 }
function Fade(StartRed, StartGreen, StartBlue, EndRed, EndGreen,
EndBlue,
Step)
 {
  for(I = 0; I <= Step; I++)
   {
    Rtmp = Math.floor(StartRed   * ((Step-I)/Step) + EndRed   *
(I/Step));
    Gtmp = Math.floor(StartGreen * ((Step-I)/Step) + EndGreen *
(I/Step));
    Btmp = Math.floor(StartBlue  * ((Step-I)/Step) + EndBlue  *
(I/Step));
    SetbgColor (Rtmp,Gtmp,Btmp);
   }
 }
function FadeIn()
 {
  Fade(255,255,255, 0,0,0,250);
 }
FadeIn();
// End of FadeScript
