// JavaScript Document

// RANDOM NUMBER GENERATOR
function randomNum(max) {
	var rNum=NaN
	while (isNaN(rNum)) {
		rNum=Math.floor(Math.random()*(max))
		}
	return rNum
	}

// ARRAY FOR RANDOM FEATURE...FOR NEW, JUST ADD THE PICTS SEQUENTIALLY
var feature = new Array()
feature[0]="/research/images/profile_george.jpg"
feature[1]="/research/images/profile_goli.jpg"
feature[2]="/research/images/profile_rachel.jpg"
feature[3]="/research/images/profile_shelley.jpg"
feature[4]="/research/images/profile_susan.jpg"
feature[5]="/research/images/profile_wayne.jpg"
feature[6]="/research/images/profile_kathy.jpg"
feature[7]="/research/images/profile_roger.jpg"
feature[8]="/research/images/profile_immaculate.jpg"
feature[9]="/research/images/profile_marianne.jpg"
feature[10]="/research/images/profile_jason.jpg"
feature[11]="/research/images/profile_paul.jpg"
feature[12]="/research/images/profile_john.jpg"
feature[13]="/research/images/profile_elizabeth.jpg"
feature[14]="/research/images/profile_aniko.jpg"
feature[15]="/research/images/profile_farahnaz.jpg"




// DEFINE THE ADDRESS OF EACH PAGE HERE
var featureRandom = feature[randomNum(feature.length)]
	if (featureRandom == feature[0])
		hrefRandom = "http://publish.edu.uwo.ca/george.gadanidis/index.html"
	if (featureRandom == feature[1])
		hrefRandom = "/research/profiles/profile_Goli_Rezai-Rashti.html"
	if (featureRandom == feature[2])
		hrefRandom = "/research/profiles/profile_Rachel_Heydon.html"
	if (featureRandom == feature[3])
		hrefRandom = "http://publish.edu.uwo.ca/shelley.taylor/index.html"
	if (featureRandom == feature[4])
		hrefRandom = "/research/profiles/profile_Susan_Rodger.html"
	if (featureRandom == feature[5])
		hrefRandom = "/research/profiles/profile_Wayne_Martino.html"
	if (featureRandom == feature[6])
		hrefRandom = "/research/profiles/profile_Kathy_Hibbert.html"
	if (featureRandom == feature[7])
		hrefRandom = "/research/profiles/profile_Roger_Clark.html"
	if (featureRandom == feature[8])
		hrefRandom = "/research/profiles/profile_Immaculate_Namukasa.html"
	if (featureRandom == feature[9])
		hrefRandom = "/research/profiles/profile_Marianne_Larsen.html"
	if (featureRandom == feature[10])
		hrefRandom = "/research/profiles/profile_Jason_Brown.html"
	if (featureRandom == feature[11])
		hrefRandom = "/research/profiles/profile_Paul_Tarc.html"
	if (featureRandom == feature[12])
		hrefRandom = "/research/profiles/profile_John_Barnett.html"
	if (featureRandom == feature[13])
		hrefRandom = "/research/profiles/profile_Elizabeth _Nowicki.html"
	if (featureRandom == feature[14])
		hrefRandom = "/research/profiles/profile_aniko_varpalotai.html"
	if (featureRandom == feature[15])
		hrefRandom = "/research/profiles/profile_farahnaz_faez.html"
	
// THERE ARE DOCUMENT.WRITE FUNCTIONS FOR THESE FOLLOWING VARIABLES IN THE INDEX2.SHTML FILE
var pageRandom2 = '<a href="' + hrefRandom +'" target="_blank">'
var imgRandom2 = '<img border="0" src="' + featureRandom + '" width="144" height="234">' + "<" + "/a>"
