


var t;
var myValue = 0;
var slideshow=new Array(); // regular array (add an optional integer
slideshow[0]="url(images/slide1.jpg)";       // argument to control array's size)
slideshow[1]="url(images/slide2.jpg)";
slideshow[2]="url(images/slide3.jpg)";
slideshow[3]="url(images/slide4.jpg)";
timedCount();


function pageRight()
{
	myValue = myValue + 1;
	if(window.myValue >= 0 && window.myValue <= 3)
	{
		getValue();
	}
	else
	{
		window.myValue = 0;
		getValue();
	}	
}

function pageLeft()
{
	myValue = myValue - 1;
	if(window.myValue >= 0 && window.myValue <= 3)
	{
		getValue();
	}
	else
	{
		window.myValue = 3;
		getValue();
	}	
}


function getValue()
{
	
	document.body.style.backgroundImage = window.slideshow[window.myValue];
}

function slideShow()
{
	myValue = myValue + 1;
	if(window.myValue >= 0 && window.myValue <= 3)
	{
		getValue();
		timedCount();
	}
	else
	{
		window.myValue = 0;
		getValue();
		timedCount();
	}
	
	
}

function timedCount()
{
window.t = setTimeout("slideShow()",7000);
}






function slideTwo(){
document.body.style.backgroundImage = "url(images/slideOne.png)";
}
function arrowchange_L()
{
document.getElementById("leftbutton").src ="images/left.png";	
}
function arrowchange_R()
{
document.getElementById("rightbutton").src ="images/right.png";	
}
function arrowoff()
{
document.getElementById("leftbutton").src ="images/left_dark.png";
document.getElementById("rightbutton").src ="images/right_dark.png";	
}

