// JavaScript Document

function photoRefresh(){
	var counter = 0;
	var speed = 2000;
	imageArray = new Array;
	var Images = new Array('photo1.jpg','photo2.jpg','photo3.jpg');
	var i = Math.floor(4*Math.random());
	var photoName = Images[i];
	var image = "images/" + photoName;
	
	document.getElementById("main").style.backgroundImage = "url(images/"+photoName+");";
}


	  	var counter = 0;
var speed = 2000;
storyArray = new Array;
var index = 0;
var Testimonies = new Array('testimony1','testimony2','testimony3');
index = Math.random();
index = index * 10;
index = Math.round(index);
index = index % 3;
var testimony = Testimonies[index];


function getTestimonies(){
for(var x=0;x<Testimonies.length;x++){
	var temp = Testimonies[x];
	var j = document.getElementById(temp);
	j.style.display = "none";
	}
var showTest = document.getElementById(testimony);
showTest.style.display = "block";
}

