function Intern(){
	this.id = "";
	this.name = "";
	this.image = "";
	this.description = "";
}


var aryInterns = new Array();


var tmpObj = new Intern();
tmpObj.id = "trevor_holloway";
tmpObj.name = "Trevor Holloway";
tmpObj.image = "images/interns/trevor_holloway.jpg";
tmpObj.description = "Trevor Holloway graduated from Trinity Evangelical Divinity School in 2007 with his Master's Degree. He also served as the Pastor of Adult Discipleship and Director of Campus Ministries at Harvest Bible Chapel in Dekalb, IL from 2006-2008. He is passionate about teaching and preaching God's Word while helping others to know and love Christ. He enjoys reading, golf, and the Buffalo Bills. He is married to his loving wife, Elizabeth, and they have two young sons, Ethan and Titus.<br /><br />Read Trevor's <A href=\"http://trevorholloway.blogspot.com/\" target=\"_blank\">blog</a>";
aryInterns[0] = tmpObj;


var tmpObj = new Intern();
tmpObj.id = "daniel_pentimone";
tmpObj.name = "Daniel Pentimone";
tmpObj.image = "images/interns/daniel_pentimone.jpg";
tmpObj.description = "Daniel Pentimone, a recently graduated home schooled student, enjoys teaching the Bible and biblical studies. He also enjoys reading, writing, and foreign languages. Daniel hopes to use these interests to glorify God through ministry to others. Daniel is the oldest of six children. He has one brother and four sisters.<br /><br />Read Daniel's <A href=\"http://alltheearth.wordpress.com/\" target=\"_blank\">blog</a>";
aryInterns[1] = tmpObj;



function getIntern( inIntern ){
	var tmpIntern = new Intern();
	for(var i=0; i<aryInterns.length;i++){
		if( aryInterns[i].id == inIntern ) tmpIntern = aryInterns[i];
	}
	return tmpIntern;
}


function viewInternInfo( inIntern ){
	var elemPhoto = document.getElementById("photo");
	var elemDescription = document.getElementById("descriptionDiv");
	var elemContact = document.getElementById("contactDiv");

	var tmpIntern = getIntern(  inIntern );

	elemPhoto.src = tmpIntern.image;
	elemDescription.innerHTML = tmpIntern.description;

	var contact = "<br>";
	contact += "<strong>" + tmpIntern.name + "</strong>";
	elemContact.innerHTML = contact;
}

// OUTPUTS THE ELDERS IN THE FORMAT FOR THE LEADERS PAGE
function outputInterns(){
	for(var i=0; i<aryInterns.length; i++ ){
		document.write("<a href=\"#\" onMouseOver=\"viewInternInfo('" + aryInterns[i].id + "')\">" + aryInterns[i].name + "</a><br><br>");
	}
}








