


//  
//  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'] = 'ruggiero.asp';
SpotArray['01'] = 'spot_Photo1.jpg';
SpotArray['02'] = 'Peter Ruggiero ’03';
SpotArray['03'] = 'Vice President of Global Operations, Crayola, LLC';

SpotArray['10'] = 'greene.asp';
SpotArray['11'] = 'spot_Photo2.jpg';
SpotArray['12'] = 'Christopher Greene ’06';
SpotArray['13'] = 'Business Manager, Utility Computing Services, Hewlett Packard';

SpotArray['20'] = 'willis.asp';
SpotArray['21'] = 'spot_Photo3.jpg';
SpotArray['22'] = 'Bobby J. Willis ’06';
SpotArray['23'] = 'Finance Manager, Mars U.S.';

SpotArray['30'] = 'westbrook.asp';
SpotArray['31'] = 'spot_Photo5.jpg';
SpotArray['32'] = 'Kate Westbrook ’07';
SpotArray['33'] = 'Sales Planning Manager, L’Oréal USA';

randomSpot = Math.floor(Math.random()*4);



 document.writeln("<table><tr>");
  document.writeln("<td width='86'  valign='top'>");
   document.writeln("<a href='/business/mba/why/" + SpotArray[randomSpot + '0'] + "'><img src='http://www3.lehigh.edu/images/cbe/mba/" + SpotArray[randomSpot + '1'] + "' width='86' height='66' border='0'></a></td>");
  document.writeln("<td width='134' valign='top'>");
    document.writeln("<a href='/business/mba/why/" + SpotArray[randomSpot + '0'] + "' class='profile'>" + SpotArray[randomSpot + '2'] + "</a><br>" + SpotArray[randomSpot + '3']);

	document.writeln("</tr></table>");