


//  
//  profiles.js
//  Author: S. Yeakel  4-11-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 profile-feinman.gif, etc. and are stored in the ~inentin-entrepreneurship-images-profiles folder
//  Profile pages are spotlight-feinman.html, etc. and are stored in the ~inentin-entrepreneurship-about 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'] = 'spotlight-feinman.html';
SpotArray['01'] = 'profile-feinman.gif';
SpotArray['02'] = 'Identity Finder';

SpotArray['10'] = 'spotlight-keeler.html';
SpotArray['11'] = 'profile-keeler.gif';
SpotArray['12'] = 'George Guest, Ltd';

SpotArray['20'] = 'spotlight-macdonald.html';
SpotArray['21'] = 'profile-macdonald.gif';
SpotArray['22'] = 'hField<br>Technologies, Inc.';

SpotArray['30'] = 'spotlight-McCreary.html';
SpotArray['31'] = 'profile-mccreary.gif';
SpotArray['32'] = 'Lehigh Valley<br>Grand Prix';

SpotArray['40'] = 'spotlight-marks-clasen.html';
SpotArray['41'] = 'profile-echotech.gif';
SpotArray['42'] = 'EcoTech Marine, LLC';


randomSpot = Math.floor(Math.random()*5);


  document.writeln("<tr>");
  document.writeln("<td colspan='3' width='190'>");
   document.writeln("<a href='/~inentin/about/" + SpotArray[randomSpot + '0'] + "'><img src='/~inentin/images/profiles/profile_01.gif' alt=\'Entrepreneurship Profile\' width='190' height='36' border='0'></a></td>");
 document.writeln("</tr>");
 document.writeln("<tr>");
  document.writeln("<td width='85'>");
   document.writeln("<a href='/~inentin/about/" + SpotArray[randomSpot + '0'] + "'><img src='/~inentin/images/profiles/" + SpotArray[randomSpot + '1'] + "' width='85' height='85' border='0'></a></td>");
  document.writeln("<td width='98' bgcolor='#663300'>");
  
    document.writeln("<a href='/~inentin/about/" + SpotArray[randomSpot + '0'] + "' class='profile'>" + SpotArray[randomSpot + '2'] + "</a></span></td>");
  document.writeln("<td width='7'>");
   document.writeln("<img src='/~inentin/images/profiles/profile_04.gif' width='7' height='85' border='0'></td>");
 document.writeln("</tr>");
 document.writeln("<tr>");
  document.writeln("<td colspan='3' width='190'>");
   document.writeln("<img src='/~inentin/images/profiles/profile_05.gif' width='190' height='6' border='0'></td>");
 document.writeln("</tr>");


