var bookList = new Array(
			"Abraham.htm",
			"Sarah.htm",
			"Benjamin.htm",
			"hardestword.htm", 
			"clapcount.htm", 
			"shabbos.htm", 
			"greystriped.htm", 
			"noah.htm",
			"hanukkah.htm",
			"NoEnglish.htm",
			"z4.htm",
			"unite.htm",
			"goodnight.htm",
			"duck.htm");
var bookPix = new Array( 
			"abraham.jpg",
			"SarahLaughs.jpg",
			"Benjamin_Cover.jpg",
			"hardestword.jpg",
			"clapcount.jpg",
			"shabbos.jpg",
			"greystriped.jpg",
			"Noah and the Ziz.jpg",
			"hanukahzizcov.jpg",
			"noenglish.jpg",
			"PrincessandtheZiz.jpg",
			"unite.jpg",
			"goodnight.jpg",
			"duck.jpg");
			
// Load pictures
var myImages=new Array();
for (i = 0; i<bookPix.length; i++){
	myImages[i] = new Image();
	myImages[i].src = "images/" + bookPix[i];
}
i=bookList.length-1;
function changePix()
{
	changer();
	setInterval("changer()", 2500);
/*	if (i>bookList.length-1){
		i=0;
	}
	document.getElementById("books").src= myImages[i].src;
	document.getElementById("selBook").href = bookList[i];
	i++
	x = setTimeout("changePix()", 2500);
*/
}

function changer(){
	if (i>bookList.length-1){
		i=0;
	}
	document.getElementById("books").src= myImages[i].src;
	document.getElementById("selBook").href = bookList[i];
	i++;
}

function tabset(myPage){
	myTab = document.getElementById(myPage);
	myTab.style.backgroundColor = "#ffffff";
	myTab.style.color = "#810189";
	if(myPage == "myBlank") {	
		myTab.style.backgroundColor= "#810189";
		myTab.style.color="#fff";
	}


}
