



var colors = [];
  colors[0] = "#C4151c";
  colors[1] = "#ed1c24";
  colors[2] = "#f37022";
  colors[3] = "#faa61a";
  colors[4] = "#b9bd32";
  colors[5] = "#a8a139";
  colors[6] = "#007236";
  colors[7] = "#73bf45";
  colors[8] = "#02aab5";
  colors[9] = "#0092c8";
  colors[10] = "#007ec5";
  colors[11] = "#005aa9";
  colors[12] = "#033f88";
  colors[13] = "#492f92";
  colors[14] = "#a2228f";
  colors[15] = "#ed0e69";

var randomnumber=Math.floor(Math.random()*16);

//initial page to display 
function LoadPage(){
  document.getElementById('activecolor').innerHTML = "loading";
var rgbout = "rgb(204,204,204)";
}

function callback() {
}

//eat this, spammers!
    function emailMe(){
        var email = " "
        + "jarrod"
        + "@"
        + "trai"
        + "nque"
        + ".com";
        document.getElementById('emailme').innerHTML = email;
    }



// You may specify partial version numbers, such as "1" or "1.3",
//  with the same result. Doing so will automatically load the 
//  latest version matching that partial revision pattern 
//  (i.e. both 1 and 1.3 would load 1.3.2 today).
google.load("jquery", "1.4");

google.setOnLoadCallback(function() {

var i=0;
while (i<=500)//times to iterate
  {
  var randomnumber=Math.floor(Math.random()*16);

  //$("body").animate({ backgroundColor: colors[randomnumber]}, { queue: true, duration: 1000}).delay(4000);
  $("body").animate({ backgroundColor: colors[randomnumber]}, 2000, 'easeout').delay(2000);
	//$("body").animate({ backgroundColor: colors[randomnumber]}, {queue: true, duration: 4000,
	//	    step: function() {
	//		}		
	//}).delay(800);
	//$("body").animate({ backgroundColor: colors[randomnumber]}, { queue: true, duration: 4000 });
  i++;
  }

/*
var from = {property: 1};
var to = {property: 1000000};

jQuery(from).animate(to, {
    duration: 100000,
    step: function() {
		document.getElementById('activecolor').innerHTML  = this.property;
    }



});
*/




});

