function getPics() {
imagePath = "coerootimages/frontpageimages/facultypics/"
imageURL = new Array();
imageURL[0] = imagePath + "Bale.jpg"
imageURL[1] = imagePath + "spiro.jpg"
imageURL[2] = imagePath + "nophoto.jpg"
imageURL[3] = imagePath + "tatto.jpg"
imageURL[4] = imagePath + "powell.jpg"
imageURL[5] = imagePath + "steward.jpg"
imageURL[6] = imagePath + "baldwin.jpg"
imageURL[7] = imagePath + "Chudgar.jpg"
imageURL[8] = imagePath + "Kagerer_Florian.jpg"



profileURLs = new Array();
profileURLs[0] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=jbale@msu.edu"
profileURLs[1] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=RSPIRO@msu.edu"
profileURLs[2] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=dscanlon@msu.edu"
profileURLs[3] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=MTTATTO@msu.edu"
profileURLs[4] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=powellj4@msu.edu"
profileURLs[5] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=DEVINE@msu.edu"
profileURLs[6] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=rbaldwin@msu.edu"
profileURLs[7] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=amitac@msu.edu"
profileURLs[8] = "http://ed-web2.educ.msu.edu/researchprofiles/search/profileview.asp?email=fkagerer@msu.edu"


descriptions = new Array();
descriptions[0] = "<a href='" + profileURLs[0] + "'>Jeffrey Bale</a>, assistant professor of teacher education"
descriptions[1] = "<a href='" + profileURLs[1] + "'>Rand Spiro</a>, professor of educational psychology"
descriptions[2] = "<a href='" + profileURLs[2] + "'>Donna Scanlon</a>, professor of teacher education"
descriptions[3] = "<a href='" + profileURLs[3] + "'>Maria Teresa Tatto</a>, associate professor of teacher education"
descriptions[4] = "<a href='" + profileURLs[4] + "'>John Powell</a>, associate professor of kinesiology"
descriptions[5] = "<a href='" + profileURLs[5] + "'>Robbie Steward</a>, professor of counseling"
descriptions[6] = "<a href='" + profileURLs[6] + "'>Roger Baldwin</a>, professor of higher, adult and lifelong education"
descriptions[7] = "<a href='" + profileURLs[7] + "'>Amita Chudgar</a>, assistant professor of educational administration"
descriptions[8] = "<a href='" + profileURLs[8] + "'>Florian Kagerer</a>, assistant professor of kinesiology"




var r = Math.round(Math.random() * (imageURL.length - 1));
document.getElementById("fac1Pic").innerHTML = "<img alt='' src=" + imageURL[r] + ">";
document.getElementById("fac1Text").innerHTML = descriptions[r];

do {
  var s = Math.round(Math.random() * (imageURL.length - 1));
 } while (s == r)
document.getElementById("fac2Pic").innerHTML = "<img alt='' src=" + imageURL[s] + ">";
document.getElementById("fac2Text").innerHTML = descriptions[s];
}
