var objCount = 0;
var pics = new Array(4); //this number needs to match the number of pictures used

function preload(name) {  

	pics[objCount] = name;
    objCount++;
}

  preload("Images/intropic.png");
  preload("Images/goGreen.png");
  preload("Images/vacation.png");
  preload("Images/paperStatement.png");
  //preload("Images/");
  //preload("Images/");

	var Counter = 0
	function ChangePicture(){
	    Counter = Counter + 1
	    if (Counter == 4) //for every picture added, increment this number by 1
		    {	Counter = 0	}
	    document.rotate.src = pics[Counter]
	    setTimeout("ChangePicture()",12000)
	}
