// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(10)
image[0] = '0.gif'
image[1] = '1.gif'
image[2] = '2.gif'
image[3] = '3.gif'
image[4] = '4.gif'
image[5] = '5.gif'
image[6] = '6.gif'
image[7] = '7.gif'
image[8] = '8.gif'
image[9] = '9.gif'

var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}





<!-- Background Fader Code Generator - Free From http://www.designerwiz.com -->
<!-- Development Resource & JavaScript Public Archive Center -->
function initArray()
{
  this.length = initArray.arguments.length
  for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i]
}
var hexChars = "0123456789ABCDEF";
 function Dec2Hex (Dec)
 {
  var a = Dec % 16;
  var b = (Dec - a)/16;
hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
return hex;
}
function changbg (begin, end, steps) {   steps = steps -1 ;
redA     = begin.charAt(0) + begin.charAt(1);
red_valA = parseInt(redA,'16');
redB     = end.charAt(0) + end.charAt(1);
red_valB = parseInt(redB,'16');
red_int  = ((red_valB - red_valA) / steps) * -1;
grnA     = begin.charAt(2) + begin.charAt(3);
grn_valA = parseInt(grnA,'16');
grnB     = end.charAt(2) + end.charAt(3);
grn_valB = parseInt(grnB,'16');
grn_int  = ((grn_valB - grn_valA) / steps) * -1;
bluA     = begin.charAt(4) + begin.charAt(5);
blu_valA = parseInt(bluA,'16');
bluB     = end.charAt(4) + end.charAt(5);
blu_valB = parseInt(bluB,'16');
blu_int  = ((blu_valB - blu_valA) / steps) * -1;
step = 2;
red = red_valA;
grn = grn_valA;
blu = blu_valA;
document.bgColor = begin;
while ( steps >= step ) 
  {
red -= red_int;
red_round = Math.round(red);
red_hex = Dec2Hex(red);
grn -= grn_int;
grn_round = Math.round(grn);
grn_hex = Dec2Hex(grn);
blu -= blu_int;
blu_round = Math.round(blu);
blu_hex = Dec2Hex(blu);
document.bgColor = red_hex + grn_hex + blu_hex;
step++;
}
document.bgColor = end;
}







function change_colors()
{
document.body.style.scrollbarBaseColor='#3366FF'
document.body.style.scrollbarArrowColor='#00ccff'
document.body.style.scrollbarDarkShadowColor='#2e62a2'
document.body.style.scrollbarFaceColor='#3366FF'
document.body.style.scrollbarHighlightColor='#6a9ad4'
document.body.style.scrollbarShadowColor='black'

window.innerWidth = screen.width;
window.innerHeight = screen.height;
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
}
//  End -->



var data = "01234567890ABCDEF"
var done = 1;
function statusIn(text) {
decrypt(text, 2, 1);
}

function statusOut() {
self.status = '';
done = 1;
}

function decrypt(text, max, delay) {
if (done) {
done = 0;
decrypt_helper(text, max, delay,  0, max);
   }
}
function decrypt_helper(text, runs_left, delay, charvar, max) {
if (!done) {
runs_left = runs_left - 1;
var status = text.substring(0, charvar);
for (var current_char = charvar; current_char < text.length; current_char++) {
status += data.charAt(Math.round(Math.random()*data.length));
}
window.status = status;
var rerun = "decrypt_helper('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
var new_char = charvar + 1;
var next_char = "decrypt_helper('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
if(runs_left > 0) {
setTimeout(rerun, delay);
}
else {
if (charvar < text.length) {
setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
}
else {
done = 1;
         }
      }
   }
}


