


//  
//  profiles_test.js
//  Author: A. Berner  10-09-08
//  Uses associative arrays to store profile data and then shows a randomly selected profile to user
//  Populate array to store profile page name, profile image, and profile name
//  Array item is chosen at random, and displayed to user.
//  Images for these are bodzin.jpg, etc. and are stored in the steps-images-research folder
//  Profile pages are bodzin.html, etc. and are stored in the steps-research folder
//  To add another profile to this page, copy one existing array block
//     increment leading number of each element by 1, 
//     fill in relevant values (make sure to place images and profile pages in correct directories)
//     and add 1 to the number that is multiplied by in the random function
//  Note: The number multiplied by in the random section of code should always be 1 more than the leading number of the last array element

var SpotArray = new Array();
SpotArray['00'] = 'bodzin.html';
SpotArray['01'] = 'bodzin.jpg';
SpotArray['02'] = 'Al Bodzin';
SpotArray['03'] = 'Teaching, Learning and Technology';

SpotArray['10'] = 'sengupta.html';
SpotArray['11'] = 'sengupta.jpg';
SpotArray['12'] = 'Arup SenGupta';
SpotArray['13'] = 'Civil and Environmental / Chemical Engineering';

SpotArray['20'] = 'booth.html';
SpotArray['21'] = 'booth.jpg';
SpotArray['22'] = 'Bob Booth';
SpotArray['23'] = 'Earth and Environmental Sciences';

SpotArray['30'] = 'holland.html';
SpotArray['31'] = 'holland.jpg';
SpotArray['32'] = 'Breena Holland';
SpotArray['33'] = 'Political Science';

SpotArray['40'] = 'hargreaves.html';
SpotArray['41'] = 'hargreaves.jpg';
SpotArray['42'] = 'Bruce Hargreaves';
SpotArray['43'] = 'Earth and Environmental Sciences';

SpotArray['50'] = 'briggs.html';
SpotArray['51'] = 'briggs.jpg';
SpotArray['52'] = 'Chad Briggs';
SpotArray['53'] = 'International Relations';

SpotArray['60'] = 'brown.html';
SpotArray['61'] = 'brown.jpg';
SpotArray['62'] = 'Derick Brown';
SpotArray['63'] = 'Civil and Environmental Engineering';

SpotArray['70'] = 'sahagian.html';
SpotArray['71'] = 'sahagian.jpg';
SpotArray['72'] = 'Dork Sahagian';
SpotArray['73'] = 'Earth and Environmental Sciences';

SpotArray['80'] = 'pazzaglia.html';
SpotArray['81'] = 'pazzaglia.jpg';
SpotArray['82'] = 'Frank Pazzaglia';
SpotArray['83'] = 'Earth and Environmental Sciences';

SpotArray['90'] = 'ramage.html';
SpotArray['91'] = 'ramage.jpg';
SpotArray['92'] = 'Joan Ramage';
SpotArray['93'] = 'Earth and Environmental Sciences';

SpotArray['100'] = 'gatewood.html';
SpotArray['101'] = 'gatewood.jpg';
SpotArray['102'] = 'John Gatewood';
SpotArray['103'] = 'Sociology and Anthropology';

SpotArray['110'] = 'gillroy.html';
SpotArray['111'] = 'gillroy.jpg';
SpotArray['112'] = 'John Martin Gillroy';
SpotArray['113'] = 'International Relations';

SpotArray['120'] = 'jellison.html';
SpotArray['121'] = 'jellison.jpg';
SpotArray['122'] = 'Kristen Jellison';
SpotArray['123'] = 'Civil and Environmental Engineering';

SpotArray['130'] = 'zeitler.html';
SpotArray['131'] = 'zeitler.jpg';
SpotArray['132'] = 'Peter Zeitler';
SpotArray['133'] = 'Earth and Environmental Sciences';

SpotArray['140'] = 'friedman.html';
SpotArray['141'] = 'friedman.jpg';
SpotArray['142'] = 'Sharon Friedman';
SpotArray['143'] = 'Journalism and Communication';

SpotArray['150'] = 'cutcliffe.html';
SpotArray['151'] = 'cutcliffe.jpg';
SpotArray['152'] = 'Steve Cutcliffe';
SpotArray['153'] = 'History';

SpotArray['160'] = 'yun.html';
SpotArray['161'] = 'yun.jpg';
SpotArray['162'] = 'Tae Sup Yun';
SpotArray['163'] = 'Civil and Environmental Engineering / Geotechnical and Geoenvironmental Engineering';

SpotArray['170'] = 'zhang.html';
SpotArray['171'] = 'zhang.jpg';
SpotArray['172'] = 'Wei-xian Zhang';
SpotArray['173'] = 'Civil and Environmental Engineering';

SpotArray['180'] = 'yu.html';
SpotArray['181'] = 'yu.jpg';
SpotArray['182'] = 'Zicheng Yu';
SpotArray['183'] = 'Earth and Environmental Sciences';

SpotArray['190'] = 'felzer.html';
SpotArray['191'] = 'felzer.jpg';
SpotArray['192'] = 'Benjamin Felzer';
SpotArray['193'] = 'Earth and Environmental Sciences';

SpotArray['200'] = 'lennon.html';
SpotArray['201'] = 'lennon.jpg';
SpotArray['202'] = 'Gerard Lennon';
SpotArray['203'] = 'Civil and Environmental Engineering';

SpotArray['210'] = 'peters.html';
SpotArray['211'] = 'peters.jpg';
SpotArray['212'] = 'Stephen Peters';
SpotArray['213'] = 'Earth and Environmental Sciences';

SpotArray['220'] = 'pamukcu.html';
SpotArray['221'] = 'pamukcu.jpg';
SpotArray['222'] = 'Sibel Pamukcu';
SpotArray['223'] = 'Civil and Environmental Engineering';

SpotArray['230'] = 'kodama.html';
SpotArray['231'] = 'kodama.jpg';
SpotArray['232'] = 'Ken Kodama';
SpotArray['233'] = 'Earth and Environmental Sciences';

SpotArray['240'] = 'bebout.html';
SpotArray['241'] = 'bebout.jpg';
SpotArray['242'] = 'Gray Bebout';
SpotArray['243'] = 'Earth and Environmental Sciences';

randomSpot = Math.floor(Math.random()*25);



 document.writeln("<table><tr>");
  document.writeln("<td width='85'  valign='top'>");
   document.writeln("<a href='/steps/research/" + SpotArray[randomSpot + '0'] + "'><img src='http://www3.lehigh.edu/steps/images/research/" + SpotArray[randomSpot + '1'] + "' width='55' height='66' border='0'></a></td>");
  document.writeln("<td width='177' valign='top'>");
    document.writeln("<a href='/steps/research/" + SpotArray[randomSpot + '0'] + "' class='profile'>" + SpotArray[randomSpot + '2'] + "</a><br>" + SpotArray[randomSpot + '3']);
	    document.writeln("<br><a href='http://www3.lehigh.edu/steps/research/index.html' class='profile'>more profiles ></a></td>");

	 document.writeln("</tr></table>");





