var timerStatus;
var iNumPics = 9;
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'] = "Charles Beauvais";
arName['1'] = "Cody Johnson";
arName['2'] = "Brian Shepard";
arName['3'] = "Ashley Carter";
arName['4'] = "Amanda Webb";
arName['5'] = "Patrick Lawrence";
arName['6'] = "Joe Arsenault";
arName['7'] = "Eric Werle";
arName['8'] = "Ryan Morse";


arPic['0'] = "/images/careers_intern_Charles_Beauvais_Overland_Park.gif";
arPic['1'] = "/images/careers_intern_Cody_Johnson_Montana_City.gif";
arPic['2'] = "/images/careers_intern_Brian_Shepard_Midlothian.gif";
arPic['3'] = "/images/careers_intern_Ashley_Carter_Seattle.gif";
arPic['4'] = "/images/careers_intern_Amanda_Webb_Midlothian_Chemist.gif";
arPic['5'] = "/images/careers_intern_Lawrence_Patrick_Louisville.gif";
arPic['6'] = "/images/careers_intern_Joe_Arsenault_Leamington.gif";
arPic['7'] = "/images/careers_intern_Eric_Werle_Durkee.gif";
arPic['8'] = "/images/MorseRyanSummerIntern.jpg";

arQuote['0'] = "Charles Beauvais";
arQuote['1'] = "Cody Johnson";
arQuote['2'] = "Brian Shepard";
arQuote['3'] = "Ashley Carter";
arQuote['4'] = "Amanda Webb";
arQuote['5'] = "Patrick Lawrence";
arQuote['6'] = "Joe Arsenault";
arQuote['7'] = "Eric Werle";
arQuote['8'] = "Ryan Morse";

arLoc['0'] = "Overland Park";
arLoc['1'] = "Montana City";
arLoc['2'] = "Midlothian";
arLoc['3'] = "Seattle";
arLoc['4'] = "Midlothian";
arLoc['5'] = "Louisville";
arLoc['6'] = "Leamington";
arLoc['7'] = "Durkee";
arLoc['8'] = "Chanute";

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";
arTitle['8'] = "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";

}
