current = 0;

var quote = new Array();
//quote.push('<p>"" <cite></cite></p>');
quote.push('<p>"I feel extremely confident in demonstrating professional behavior." <cite>Dental Hygiene Student</cite></p>');
quote.push('<p>"We learned a lot about being committed to the profession and about advancing the profession. I do want to be involved with the professional association." <cite>Dental Hygiene Student</cite></p>');
quote.push('<p>"The faculty have done an excellent job preparing us to critically think and problem solve to determine a patient\'s dental hygiene needs." <cite>Dental Hygiene Student</cite></p>');
quote.push('<p>"Working with the community was so rewarding." <cite>Dental Hygiene Student</cite></p>');
quote.push('<p>"I feel confident that I will become a good hygienist and that finding a job will not be difficult for me because I graduated from this great program." <cite>Dental Hygiene Student</cite></p>');
quote.push('<p>"There are outstanding professors who bend over backwards to give students a positive experience and to help us understand things." <cite>Dental Hygiene Student</cite></p>');
quote.push('<p>"I really feel like I can provide a patient with total, complete, competent care." <cite>Dental Hygiene Student</cite></p>');

quote.push('<p>"Great feedback is provided by skilled and knowledgeable professors." <cite>Dental Hygiene Graduate Student</cite></p>');
quote.push('<p>"Thank you for my education. I felt well prepared for practice and am actually amazed how competent I felt amongst hygienists who had been practicing for years." <cite>Dental Hygiene Graduate Student</cite></p>');
quote.push('<p>"I believe I received a world class education at ISU." <cite>Dental Hygiene Graduate Student</cite></p>');
quote.push('<p>"I have seen first hand what my education from ISU has provided me with and I believe I rise above many others in my profession because of it. Thanks for making me the best I can be." <cite>Dental Hygiene Graduate Student</cite></p>');
quote.push('<p>"I really did love it there even though it was the hardest thing I have ever done." <cite>Dental Hygiene Graduate Student</cite></p>');

quote.push('<p>"Treatment was very professional. The student clinician made me feel comfortable in the dental chair and explained everything very well." <cite>Dental Hygiene Patient</cite></p>');
quote.push('<p>"You did an amazing job. I used to be afraid of dentists  - not so much any more." <cite>Dental Hygiene Patient</cite></p>');
quote.push('<p>"She was sensitive to my needs, very friendly, and excellent to work with." <cite>Dental Hygiene Patient</cite></p>');
quote.push('<p>"Great job - I really appreciate the time that was taken to educate me on my current oral health status and how to measure my progress with my homecare." <cite>Dental Hygiene Patient</cite></p>');
quote.push('<p>"Everything and everyone (students, faculty, and staff) was wonderful." <cite>Dental Hygiene Patient</cite></p>');

quote.push('<p>"The program is providing me with a great education. The professors are not only excellent, but supportive and willing to accommodate a student\'s needs. That\'s important to me because I have two children." <cite>Jill Dennis, Speech-Language Pathology student</cite></p>');
quote.push('<p>"The ISU program was appealing to me because it\'s offered in Boise and not just at the main campus in Pocatello. This works for me and my family." <cite>Jill Dennis, Speech-Language Pathology student</cite></p>');
quote.push('<p>"One of the highlights of the program is the opportunity to evaluate patients through ISU\'s campus clinic in Boise and community outreach. The clinical experience is invaluable." <cite>Jill Dennis, Speech-Language Pathology student</cite></p>');
quote.push('<p>"Occupational Therapy gave me my life back." <cite>Lynn Taylor, recipient of Occupational Therapy services</cite></p>');



window.onload = function() {
	randQuote()
	if(pics) {
		displayPic(current);
	}
}
/*	===============
	Quotation Generator
	=============== */
function randQuote() {
	var randnum = Math.random();
	var qindex = Math.round((quote.length - 1) * randnum);
	document.getElementById("testimony").innerHTML = quote[qindex];
}

/*	===============
	Slideshow Code
	=============== */
function prevPhoto() {
	if(current == 0) {
		current = pics.length - 1;
	}
	else {
		current--;
	}
	displayPic(current);
}

function nextPhoto() {
	if(current == pics.length - 1) {
		current = 0;
	}
	else {
		current++;
	}
	displayPic(current);
}

function displayPic(num) {
	current = num;
	document.getElementById("photo").innerHTML = '<img src="images/clinics/' + pics[current] + '.jpg" />';
	document.getElementById("counter").innerHTML = (current+1) + '/' + pics.length;
	createPicList();
}

function createPicList() {
	var list = "";
	for(var i = 0; i < pics.length; i++) {
		if(i == current) {
			list += '<li><a href="javascript:void(0)" onclick="displayPic(' + i + ')"><img src="images/clinics/' + pics[i] + 't.jpg" class="current" /></a></li>';
		}
		else {
			list += '<li><a href="javascript:void(0)" onclick="displayPic(' + i + ')"><img src="images/clinics/' + pics[i] + 't.jpg" /></a></li>';
		}
	}
	document.getElementById("piclist").innerHTML = list;
}