var timerStatus;
var iNumPics = 8;
var statusRotate = 1;
var iDelay = 2003;
var iFirstInt = 0;

var arName = new Array();
var arPic = new Array();
var arQuote = new Array();
var arLoc = new Array();
var arTitle = new Array();

//arName['0'] ="Nicole Loehr";
arName['0'] ="Travis Clements"; 
arName['1'] ="Hayden McLean";
arName['2'] ="Charles Bryant";
arName['3'] ="Ben Adwell";
arName['4'] ="Trent Doerner";
arName['5'] ="Stephen Gates";
arName['6'] ="Matt Gill";
arName['7'] ="Andrew Bishop";



arPic['0'] = "/images/ClementsTravisFORintern.jpg";
arPic['1'] ="/images/HaydenMcLeanDUR.jpg";
arPic['2'] ="/images/CharlesBryantLVL.jpg";
arPic['3'] ="/images/BenAdwellCHN.jpg"; 
arPic['4'] = "/images/TrentDoernerLEA.jpg";
arPic['5'] = "/images/StephenGatesLOU.jpg";
arPic['6'] = "/images/MatthewGillSEA.jpg"; 
arPic['7'] = "/images/AndrewBishopMON.jpg";


arQuote['0'] ="Travis Clements"; 
arQuote['1'] ="Hayden McLean";
arQuote['2'] ="Charles Bryant";
arQuote['3'] ="Ben Adwell";
arQuote['4'] ="Trent Doerner";
arQuote['5'] ="Stephen Gates";
arQuote['6'] ="Matt Gill";
arQuote['7'] ="Andrew Bishop";


arLoc['0'] ="Foreman";
arLoc['1'] ="Durkee";
arLoc['2'] ="Midlothian";
arLoc['3'] ="Chanute";
arLoc['4'] ="Leamington";
arLoc['5'] ="Louisville"; 
arLoc['6'] ="Seattle"; 
arLoc['7'] ="Montana City";


arTitle['0'] ="Summer Intern";
arTitle['1'] ="Summer Intern";
arTitle['2'] ="Summer Intern";
arTitle['3'] ="Summer Intern";
arTitle['4'] ="Summer Intern";
arTitle['5'] ="Summer Intern";
arTitle['6'] ="Summer Intern";
arTitle['7'] ="Summer Intern";

function fnOnLoad()
{
	fnRotatePics();
}
function fnRotatePics()
{
	var timeInt = new Date()
	timeInt = timeInt.getTime()
	
	var iFI = (timeInt % 12);
	iFirstInt = iFI;
//	document.getElementById('FInfo').innerHTML = arName[iFI] + "<br>" + arTitle[iFI] + "<br>" + arLoc[iFI];
//	document.getElementById('FQuote').innerHTML = "&quot;" + arQuote[iFI] + "&quot;" 
//	document.getElementById('FPic').innerHTML = '<img src="' + arPic[iFI] + '" alt="' + arQuote[iFI] + '">'
	
	var nextPic = iFI;
	for (var x = 1; x <= 5; x++)
	{
		if (nextPic + 1 > iNumPics-1)
			nextPic = 0;
		else 
			nextPic = nextPic + 1;
		
		document.getElementById('int' + x).innerHTML = '<font size=-1 class="style8">' + arName[nextPic] + '<br><img src="' + arPic[nextPic] + '" alt="' + arQuote[nextPic] + '"><br>' + arLoc[nextPic] + '</font>'; 
			
	}
	//timerStatus = setTimeout("fnRotatePics()", iDelay )
}

function fnScrollInt(n)
{
	var iFI = iFirstInt + n;
	if (iFI > iNumPics-1)
			iFI = 0;
	if (iFI < 0)
			iFI = iNumPics-1;
			
	iFirstInt = iFI;
	
//	document.getElementById('FInfo').innerHTML = arName[iFI] + "<br>" + arTitle[iFI] + "<br>" + arLoc[iFI];
//	document.getElementById('FQuote').innerHTML = "&quot;" + arQuote[iFI] + "&quot;" 
//	document.getElementById('FPic').innerHTML = '<img src="' + arPic[iFI] + '" alt="' + arQuote[iFI] + '">'
	
	var nextPic = iFI;
	for (var x = 1; x <= 5; x++)
	{
		if (nextPic + 1 > iNumPics-1)
			nextPic = 0;
		else 
			nextPic = nextPic + 1;
		
		document.getElementById('int' + x).innerHTML = '<font size=-1 class="style8">' + arName[nextPic] + '<br><img src="' + arPic[nextPic] + '" alt="' + arQuote[nextPic] + '"><br>' + arLoc[nextPic] + '</font>'; 
			
	}
	
}

function fnLinkMouseOver(o)
{
	o.className='styleNextOver';
}
function fnLinkMouseOut(o)
{
	o.className='styleNext';
}

function fnMovieOut(o)
{
	o.className='MovieLink';
}

function fnMovie(o)
{
	o.className='MovieLinkOver';

}
function fnReturn()
{
	window.location="careers_internships.asp";
}

function fnShowMovie(i)
{
	if (i == 1)
		window.location="careers_internships_HowISpentMySummerVacation.asp";
		
	if (i == 2)
		window.location="careers_internships_ThisIsTheirStory.asp";

}