/*  ============================================================== */
/*  This file creates the picture flipper in the Student Teaching  */	
/*  Directions are listed below indicating how to enter new		   */
/*	students.  Currently it is only set up for one year.           */
/*																   */
/*	Term and Major can be indicated in the description.            */
/*	                                                               */
/*	Limit description to 50 characters or less and size all images */
/*	to 8 * 8 px so they will fit.                                  */
/*                                                                 */
/*  Please Document ANY changes to this page below.		   		   */
/* =============================================================== */
/* 	Programmer:	Chris Binkerd	cbinker@pluto.dsu.edu
	Date Created:	12/31/2005
	Date Modified: 	2/14/2007 by Mike Lee (changed student information for the Spring 2007 semester).
					9/14/2007 by Logan Drews and Alex Binder (updated to Fall 2007 semester)
*/

/* Enter URL of the picture file for theStudent...(Must be in the same order as description)
 To add additional images ( One per Student ), add a comma to the last line, hit enter 
 and type the URL of the image in quotes.  *** !!! The final line should NOT have a comma. */
newImage = new Array(
"images/studentTeachingPictures/alyssaOpland.jpg",
"images/studentTeachingPictures/amandaLadwig.jpg",
"images/studentTeachingPictures/amberCluts.jpg",
"images/studentTeachingPictures/annaHansen.jpg",
"images/studentTeachingPictures/anneHanson.jpg",
"images/studentTeachingPictures/ashleySpindler.jpg",
"images/studentTeachingPictures/brettMellem.jpg",
"images/studentTeachingPictures/brittniStrand.jpg",
"images/studentTeachingPictures/cagneySehr.jpg",
"images/studentTeachingPictures/danielleEppe.jpg",
"images/studentTeachingPictures/derekBarrios.jpg",
"images/studentTeachingPictures/heatherMiles.jpg",
"images/studentTeachingPictures/heidiCarstensen.jpg",
"images/studentTeachingPictures/jakePettengill.jpg",
"images/studentTeachingPictures/jenniferSixta.jpg",
"images/studentTeachingPictures/jodiNeugebauer.jpg",
"images/studentTeachingPictures/kaciThomas.jpg",
"images/studentTeachingPictures/lanceWagner.jpg",
"images/studentTeachingPictures/larryMorman.jpg",
"images/studentTeachingPictures/lindseyHiggins.jpg",
"images/studentTeachingPictures/lindseyPresuhn.jpg",
"images/studentTeachingPictures/maseyKnudson.jpg",
"images/studentTeachingPictures/meganSage.jpg",
"images/studentTeachingPictures/melissaHanger.jpg",
"images/studentTeachingPictures/michaelKamrud.jpg",
"images/studentTeachingPictures/mitchLynch.jpg",
"images/studentTeachingPictures/rebeccaMaca.jpg"
);

/* Enter the Name of the Student here...(Must be in the same order as image)  */
newName = new Array (
"Alyssa Opland",
"Amanda Ladwig",
"Amber Cluts",
"Anna Hansen",
"Anne Hanson",
"Ashley Spindler",
"Brett Mellem",
"Brittni Strand",
"Cagney Sehr",
"Danielle Eppe",
"Derek Barrios",
"Heather Miles",
"Heidi Carstensen",
"Jake Pettengill",
"Jennifer Sixta",
"Jodi Neugebauer",
"Kaci Thomas",
"Lance Wagner",
"Larry Morman",
"Lindsey Higgins",
"Lindsey Presuhn",
"Masey Knudson",
"Megan Sage",
"Melissa Hanger",
"Michael Kamrud",
"Mitch Lynch",
"Rebecca Maca"
);

/* Enter the major of the Student here...(Must be in the same order as image,name etc)*/
newMajor = new Array (
"ELED/SPED",
"ECE",
"ELED",
"ELED/SPED",
"English Ed.",
"ELED",
"Business Ed.",
"ELED",
"ELED",
"ELED",
"Biology Ed.",
"ELED/SPED",
"ELED",
"Physical Ed.",
"ELED",
"ELED/SPED",
"ELED/SPED",
"Physical Ed.",
"Physical Ed.",
"ELED",
"ELED",
"ELED",
"ELED/SPED",
"ELED",
"Computer Ed.",
"Math Ed.",
"ELED/SPED"
);

/* Enter the description of the Students field experience location..(Must be in the same order as image) */
newPlacement = new Array (
"Madison Central School District",
"Brookings School District",
"Florence School District",
"Howard School District<br/>Lake Preston School District",
"Madison Central School District",
"Tri-Valley School District",
"Madison Central School District",
"Sioux Falls School District",
"St. Thomas Schools",
"Madison Central School District",
"Rutland School District",
"Sioux Falls School District",
"Brookings School District",
"Tea Area School District",
"St. Thomas Schools",
"Mitchell School District",
"Sioux Falls School District",
"Madison Central School District",
"Brookings School District",
"Madison Central School District",
"Howard School District",
"Tea Area School District",
"Sioux Falls School District",
"Hanson School District",
"Computer Ed.",
"Math Ed.",
"Brookings School District"
);

/* Enter the portfolio link here...(Must be in the same order as image, etc) */
newPortfolio = new Array (
"<a href='http://www.students.dsu.edu/burdicka/portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/akladwig/My%20portfolio/Template/Home.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/adgregersen/Portfolio/template.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/wintera/portfolio/template.html' target='_blank'>View My Portfolio</a>",
"No Profile Available",
"<a href='http://www.students.dsu.edu/spindlera/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/mellemb/COE%20Portfolio/COE/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/strandb/portfolio/template.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/sehrc/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/epped/Portfolio/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/barriosd/Portfolio/template.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/milesh/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/hjhansen/Portfolio/template.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/pettenj/COE/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/sixtaj/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/neugebausej/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/wilseyk/Desktop/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/wagnerl/Portfolio/template.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/mormanl/COE/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/higginsl/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/lrpresuhn/Portfolio/SPED%20460/Default.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/maknudson/portfolio/default.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/sagem/Education_Portfolio.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/hangerme/Portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/kamrudm/Portfolio/kamrudm.htm' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/lynchmi/portfolio/template.html' target='_blank'>View My Portfolio</a>",
"<a href='http://www.students.dsu.edu/macar/Level%203/Portfolio/Portfolio.htm' target='_blank'>View My Portfolio</a>"
);

/*  DONT CHANGE ANYTHING BELOW THIS POINT :) ********** */
var imgNum = 0;
var nameNum = 0;
var majorNum = 0;
var placementNum = 0;
var portfolioNum = 0;
var imgLength = newImage.length - 1;
var nameLength = newName.length - 1;
var majorLength = newMajor.length - 1;
var placementLength = newPlacement.length - 1;
var portfolioLength = newPortfolio.length - 1;

//Time delay between Slides in milliseconds
//var delay = 4000;
var lock = false;
var run;

function chgImg(direction) 
{
	if (document.images) 
	{
		imgNum = imgNum + direction;
		nameNum = nameNum + direction;
		majorNum = majorNum + direction;
		placementNum = placementNum + direction;
		portfolioNum = portfolioNum + direction;
		
			
		if (imgNum > imgLength) 
		{
			imgNum = 0;
			nameNum =0;
			majorNum =0;
			placementNum = 0;
			portfolioNum =0;
		}
		if (imgNum < 0) 
		{
			imgNum = imgLength;
			nameNum = nameLength;
			majorNum = majorLength;
			placementNum = placementLength;
			portfolioNum =portfolioLength;

		}
		document.slideshow.src = newImage[imgNum];
		document.getElementById('name').innerHTML = newName[nameNum ];
		document.getElementById('major').innerHTML = newMajor[majorNum ];
		document.getElementById('placement').innerHTML = newPlacement[placementNum ];
		document.getElementById('portfolio').innerHTML = newPortfolio[portfolioNum ];
   }
}

function auto() 
{
	if (lock == true) 
	{
		lock = false;
		window.clearInterval(run);
	}
	else if (lock == false) 
	{
		lock = true;
		run = setInterval("chgImg(1)", delay);
   }
}
//  End -->

