<!--
function Func1Delay()
{
	// set initial delay for textDiv0 to display for 10s onload of index.html
	setTimeout("Func1()", 14000);
}

var i=0;
function Func1()
{
	// set delay to hide textDiv0 for 700ms and then call function to hide next div 
	setTimeout("textHide(i)", 100);
}

var x;
function textHide(i)
{
	// set current div and change class to denied
	var textDisplay = document.getElementById("textDiv" + i);
	textDisplay.className="denied";
	
	// increment current div# and reset to 0 once it reaches 4
	i++;
	if(i > 4)
	{
		i = 0;
	}
	x = i;
	// set delay to hide current div to 700ms and then call function to display next div
	setTimeout("textDisplay(x)", 100);
}

function textDisplay(x)
{
	// set current div and change class to granted
	var textDisplay = document.getElementById("textDiv" + x);
	textDisplay.className="granted";
	
	// change image div to match banner text (skip x=0 for index.html text)
	if(x != 0)
	{	
		// set current div for image to be denied (original picture)
		var imgDisplay = document.getElementById("imgDiv" + x);
		// set last div containing previous image to be denied (original picture) 
		var lastImgdenied = document.getElementById("imgDiv" + (x - 1));
		// hide current image div
		imgDisplay.className ="align-left denied";
		// set current div containing image to be granted (highlighted picture)
		var imgDisplay = document.getElementById("imgDiv" + (x + 4));
		// set current div containing previous image to be denied (highlighted picture)
		var lastImggranted = document.getElementById("imgDiv" + (x + 3));
		// restore to original image
		if(x != 4)
		{
			imgDisplay.className ="align-left granted";
		}
		else
		{
			imgDisplay.className ="granted";
		}
		if(x != 1)
		{
			lastImgdenied.className ="align-left granted";
			lastImggranted.className ="align-left denied";
		}
	}
	// restore image#4 to original image
	else
	{
		var lastImggranted = document.getElementById("imgDiv" + 8);
		var lastImgdenied = document.getElementById("imgDiv" + 4);
		lastImggranted.className ="denied";
		lastImgdenied.className ="granted";
	}
	
	// set delay to show current div to 8s and then call function to hide current div
	setTimeout("textHide(x)", 14000);	
}
//-->



	
