


//  
//  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 Development Manager, Brocade';

SpotArray['20'] = 'willis.asp';
SpotArray['21'] = 'spot_Photo3.jpg';
SpotArray['22'] = 'Bobby J. Willis ’06';
SpotArray['23'] = 'Finance Manager, Mars North America';

SpotArray['30'] = 'westbrook.asp';
SpotArray['31'] = 'spot_Photo5.jpg';
SpotArray['32'] = 'Kate Westbrook ’07';
SpotArray['33'] = 'Assistant Customer Marketing Management, Bayer Healthcare';

SpotArray['40'] = 'denning.asp';
SpotArray['41'] = 'spot_Photo6.jpg';
SpotArray['42'] = 'Tim Denning ‘09';
SpotArray['43'] = 'Senior Director of Business Development, L-3 Services Group';

SpotArray['50'] = 'whipple.asp';
SpotArray['51'] = 'spot_Photo7.jpg';
SpotArray['52'] = 'Vykie Whipple ‘10';
SpotArray['53'] = 'Owner, Brey-Krause Manufacturing Company';

SpotArray['60'] = 'midlam.asp';
SpotArray['61'] = 'spot_Photo8.jpg';
SpotArray['62'] = 'Ray Midlam ‘10';
SpotArray['63'] = 'Product Manager, Olympus';

randomSpot = Math.floor(Math.random()*7);



 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>");
