function getRanNum(Index)
{
	var num = Math.random();
	num = Math.round((num*100));
	num = num%Index + 1;
	return num;
}
var NumImages = 4;
var agent = navigator.userAgent
var browserVer = 2
if (agent.substring(0,7) == "Mozilla")
{
	if (parseInt(agent.substring(8,9)) >= 3)
		{browserVer = 1;}
}
if (browserVer == 1)
{
	var featureNum = getRanNum(NumImages)
featureImage = new Array(
"elena-thumb.jpg",
"elvis-thumb.jpg",
"jacob-thumb.jpg",
"percy-thumb.jpg")

featureText = new Array(
"<p>Elena - Bulgaria </p><p>&quot;I am confident to say that JMU is the place where the hopes and dreams come true.&quot;</p><p><a href='profiles/elena.html' class='more'>read more</a></p>",
"<p>Elvis - China</p><p>&quot;JMU organizes many programs throughout the year for the international students to make sure that JMU becomes their second home.&quot;</p><p><a href='profiles/elvis.html' class='more'>read more</a></p>",
"<p>Jacob - Kenya</p><p>&quot;Every time you encounter difficulties, there is always somebody out there to help you.&quot;</p><p><a href='profiles/jacob.html' class='more'>read more</a></p>",
"<p>Percy - Zimbabwe</p><p>&quot;I felt the college presented me with many opportunities to be engaged; I wanted to go somewhere I could make a contribution.&quot;</p><p><a href='profiles/percy.html' class='more'>read more</a></p>")

featureLink = new Array(
"http://www.jmu.edu/admissions/international/profiles/elena.html",
"http://www.jmu.edu/admissions/international/profiles/elvis.html",
"http://www.jmu.edu/admissions/international/profiles/jacob.html",
"http://www.jmu.edu/admisisons/international/profiles/percy.html")

featureAlt = new Array(
"Elena",
"Elvis",
"jacob",
"Percy")

document.write("<a href='" + featureLink[featureNum-1] + "'>");
document.write("<img src ='http://www.jmu.edu/admissions/international/images/" + featureImage[featureNum-1] + "' width='50' height='50' align='left' class='cimage' alt='" + featureAlt[featureNum-1] + "'>"); 
document.write("</a>"); 
document.write("" + featureText[featureNum-1] + ""); 
}