function rotator(width, height, dir, imgType) {

	var mainPics = 0;

	switch(dir) {
		case "homepage":
			mainPics = 11;			// # of pics on the homepage
			break;
		case "current":
			mainPics = 11;			// # of pics on the current students homepage
			break;
		case "secondary":
			mainPics = 11;			// # of pics on section landing pages
			break;
		case "tertiary":
			mainPics = 16;			// # of pics on the content pages
			break;
	}

	if (mainPics && document.getElementById && document.getElementById("main-pic")) {
		var mainPicture = Math.floor(Math.random() * mainPics);
		var mainImage = document.createElement("img");
		mainImage.src = "/images/" + dir + "/main-pic/" + mainPicture + "." + imgType;
		mainImage.alt = "Images of the people and places of UW-Marinette.";
		mainImage.title = "Images of the people and places of UW-Marinette.";
		mainImage.width = width;
		mainImage.height = height;
		mainImage.border = 0;

		document.getElementById("main-pic").appendChild(mainImage);
	}
}

function testimonial() {
	var quot = new Array();
	quot[0] = "<em>&ldquo;The first people I met at UWM were inspirational, knowledgeable, nurturing, student-centered professionals who worked in advising and student services.&rdquo;</em> <br /> <strong>Lee Riekki, MA, MSW, 1989 UW-Marinette graduate</strong>";
	quot[1] = "<em>&ldquo;I graduated from UW-Marinette with an abundance of new knowledge and a wide variety of new friends. Had it not been for my science professors, I would not be a dentist today.&rdquo;</em> <br /> <strong>Dr. Andrea Polzin, 2001 UW-Marinette graduate</strong>";
	quot[2] = "<em>&ldquo;Because I got involved [as an athlete, student ambassador, and student senator] I met many new people including students from overseas.&rdquo;</em> <br /> <strong>Ashley Kostreva, 2004 UW-Marinette graduate</strong>";
	quot[3] = "<em>&ldquo;I wanted the challenge of balancing college, extracurricular activities and employment. I think that if a person can balance all of these things without failing anything, then they are ready for anything that comes their way.&rdquo;</em> <br /> <strong>Amanda Berg, 2005 UW-Marinette graduate</strong>";
	quot[4] = "<em>&ldquo;I believe teaching is most effective in a classroom setting of friendliness, support, and cooperation.&rdquo;</em> <br /> <strong>Dr. Dan Kallgren, Associate Professor of History, UW-Marinette</strong>";
	quot[5] = "<em>&ldquo;I liked the Guaranteed Transfer program at UW-Marinette because I was able to satisfy all my breadth requirements, even my ethnic studies requirement. That's a big one. Now at UW-Madison, I can concentrate on my [biochemistry] major .&rdquo;</em> <br /> <strong>Micah Thill, 2008 UW-Marinette graduate</strong>";
	quot[6] = "<em>&ldquo;The beauty of a liberal education is that everything finds ways to connect. The more you learn, the more you find ways to make these connections yourself.&rdquo;</em> <br /> <strong>Katie Jo Pockat, 2008 UW-Marinette graduate</strong>";
	quot[7] = "<em>&ldquo;The transformative experience of learning a new perspective, a new insight into what it means to be part of a learning community, is something to be cherished.&rdquo;</em> <br /> <strong>Adria Kaufman, UW-Marinette student</strong>";
	quot[8] = "<em>&ldquo;UW-Marinette provided me with the foundation to pursue my Ph.D. in biological sciences. I received quality education from instructors who really cared about my success in both the classroom and life.&rdquo;</em> <br /> <strong>Jason Carter, 1997 UW-Marinette graduate</strong>";
	quot[9] = "<em>&ldquo;My main goal is to make students think, to challenge their well entrenched assumptions about how the world works and to bring their attentions to bear on the often hidden processes of culture and social life all around them.&rdquo;</em> <br /> <strong>Dr. Dail Murray, Associate Professor Emerita, Anthropology/Sociology</strong>";

	var number = Math.floor(Math.random() * quot.length);

	document.write(quot[number]);
}
