// JavaScript Document

var ttsSources = new Array();
var ttsDescrips = new Array();


ttsSources.push("images/tower_entry.jpg");
ttsDescrips.push("The Leslie Harvey &amp; Robert George Whittemore Tower Entry and Reception Gallery features rotating exhibits of unique Nevada-oriented art.");

ttsSources.push("images/atone_lobby.jpg");
ttsDescrips.push("The core of the first floor is the impressive &quot;@One&quot;, a one-stop center for multimedia services available through a variety of technologies.");

ttsSources.push("images/auditorium.jpg");
ttsDescrips.push("The 168-seat Wells Fargo Auditorum.");

ttsSources.push("images/atrium.jpg");
ttsDescrips.push("The main entrance on the second floor leads to the soaring E. L. Cord Foundation Atrium, giving the center a &quot;grand hotel&quot; feel. Through its spacious and airy design, the second floor invites visitors to utilize its many one-on-one customer service offerings.");

ttsSources.push("images/rch.jpg");
ttsDescrips.push("The Bretzlaff Foundation Research & Computing Help Desk features the combined expertise of library reference and information technology professionals to assist users with research and computing needs.");

ttsSources.push("images/rotunda_lounge.jpg");
ttsDescrips.push("The lounge in the Frank &amp; Joan Randall Rotunda can hold up to 60 people and is a great spot for gatherings.");

ttsSources.push("images/rotunda_reading_room.jpg");
ttsDescrips.push("Students can find inspiration in the excellent views of the Truckee Meadows and the Sierra that may be seen from the panoramic windows of the Conrad N. Hilton Foundation Rotunda Reading Room and the Tower Quiet Study areas.");


var currImage = 0;
var maxImages = ttsSources.length;

document.getElementById("thingsToSeeImages").innerHTML = '<img src="' + ttsSources[0] + '" alt="Things to See" style="border: 1px solid #000000;" />';
document.getElementById("thingsToSeeDescrips").innerHTML = ttsDescrips[0];
setTimeout("scrollTTS()", 10500);
setTimeout("fadeOut()", 8000);

function scrollTTS()
{
	currImage++;
	if (currImage == maxImages)
		currImage = 0;

	document.getElementById("thingsToSeeImages").innerHTML = '<img src="' + ttsSources[currImage] + '" alt="Things to See" style="border: 1px solid #000000;" />';	
	document.getElementById("thingsToSeeDescrips").innerHTML = ttsDescrips[currImage];
	fadeIn();
	
	setTimeout("scrollTTS()", 10500);
}

var currOpacity = 1.0;
function fadeOut()
{
	currOpacity -= .05
	if (currOpacity >= 0)
	{
		setTimeout("fadeOut()", 50);
	}
	else
	{
		currOpacity = 0;
	}
	document.getElementById("thingsToSeeImages").style.opacity = currOpacity;
	document.getElementById("thingsToSeeDescrips").style.opacity = currOpacity;
}

function fadeIn()
{
	currOpacity += .05
	if (currOpacity <= 1)
	{
		setTimeout("fadeIn()", 50);
	}
	else
	{
		currOpacity = 1;
		setTimeout("fadeOut()", 8000);
	}
	document.getElementById("thingsToSeeImages").style.opacity = currOpacity;
	document.getElementById("thingsToSeeDescrips").style.opacity = currOpacity;

}
