function gimmeCellful(whoseCell,whichHead,fontSizer){
var cellFilling=headPile[whoseCell];
    cellString='<td';
if(cellFilling[1]!=13)         //if there's a background...
  {cellString+=' background="images/backgrnd/vestexts/'+vestColors[cellFilling[1]]+'"';}  //add bkgd
cellString+='><p align="center">';        //close <td> opener
if(cellFilling[2])                                                         //if a hyperlink exists...
  {cellString+='<a href=people/'+cellFilling[2]+'\.htm>';}  //make the hyperlink
if(whichHead==-1)         //flag!!!  gimme a random one....
  {whichHead=Math.floor(Math.random()*(cellFilling.length-4)+1);}
cellString+=gimmeHed(whoseCell,whichHead);               //get the headshot, "<img src=... >" 
if(cellFilling[2])               //a hyperlink still exists...
  {cellString+='</a>';}   //so close it!
cellString+=('<font size="'+fontSizer+'" face="Century Gothic"><b><br>');        //font stuff, break after pic...
if(cellFilling[3])                                                    //if there's e-mail...
  {cellString+='<a href="mailto:'+cellFilling[3]+'">';}
cellString+='<font color="#'+textColors[cellFilling[1]]+'0000">'+cellFilling[0];            //initials
if(cellFilling[3])    //stow the anchor!!
  {cellString+='</a>';}  
cellString+='</b></font></p></td>';    //clean up tags to </td>...
return(cellString);}

function randHeadCell(whoseHead,textSizer){
var picChoice=headPile[whoseHead].length-4;     //how many headshots to choose from?
if(picChoice>1)                               //if multi headshots...
  {picChoice=-1;}            //use a random headshot, by flagging with a -1
document.writeln(gimmeCellful(whoseHead,picChoice,textSizer));      //write cell contents
}

function bustBabies(){
var fudge=0;
var trueindex=0;
var truehead=72;  //um what's that, the total of the full colors, right? (was 69)
var fudgelist=[ 2, 6, 6, 6, 8,15,17,17,17,22,25,25,25,26,26,30,31,36,36,38];  //index points to be pre-empted/overwrit
var fudge2lst=[80,76,81,86,77,42,74,75,82,88,47,71,83,45,78,79,84,46,73,87];  //and the corresponding heads to insert

//document.writeln('<center><table border="0" cellpadding="2" align="center"><tr>');
//for(var i=0;i<6;i++)
//  {randHeadCell(i,'3');}                                 //the one-row table!!
//document.writeln('</table>');

document.writeln('<table border="0"  cellpadding="2" align="center">'); 
for(var i=0;i<10;i++)
  {document.write('<tr>');
  for(var j=0;j<6;j++)
  {trueindex=i*6+j-fudge;
   if (fudgelist[fudge]==trueindex)
     {truehead=fudge2lst[fudge];
      fudge++;}
     else truehead=trueindex;
   if (trueindex<39)                     //was 39, +4 prospects?, naw!!!
     randHeadCell(truehead,'3');
    }  //end j loop
  document.writeln('</tr>');}                     //clean up a row to </tr> (end i loop)
document.write('</table>');
document.writeln('<center><table border="0" cellpadding="2" align="center"><tr>');

document.writeln('</table>');
}     //end bustBabies

function bustProspects(){
document.write('<table border="0" cellpadding="2"><tr><td bgcolor="#800040" align="center">');
document.writeln('<p align="center"><strong><font size="3">PRESENT<br>PROSPECTS</font></strong></p></td>'); 

//randHeadCell(68,'2');  //aaron
//randHeadCell(73,'2');  //savory
//randHeadCell(74,'2');  //gerg
//randHeadCell(75,'2');  //greg
//randHeadCell(76,'2');    //celese
//randHeadCell(77,'2');    //danarchy
//randHeadCell(78,'2');    //mike
//randHeadCell(79,'2');    //rich
randHeadCell(85,'2');    //casie
//randHeadCell(86,'2');    //colin
//randHeadCell(87,'2');    //wes

document.writeln('</tr></table>');}     //housekeep, end bustProspects

function bustPreprospects(){
document.write('<table border="0" cellpadding="2"><tr><td bgcolor="#800040" align="center">');
document.writeln('<p align="center"><strong><font size="2">PRE/PERMA-<br>PROSPECTS/<br>LINGERERS/<br>UP & COMINGS</font></strong></p></td>');
randHeadCell(89,'2'); 
randHeadCell(39,'2');
randHeadCell(41,'2');
for(var i=1;i<3;i++)
  randHeadCell(i+42,'2');                     //end i loop
randHeadCell(70,'2');
randHeadCell(72,'2');
document.writeln('</tr></table></center>');}

function bustMIA(){
document.write('<table border="0" width="90%" cellpadding="2"><tr><td width="10%" bgcolor="#800040" align="center">');
document.write('<p align="center"><font size="6"><b>MIA<br></b></font><font size="2">lost but not<br>');
document.writeln('forgotten,<br>various states of<br>colors</font></p></td>');
for(var i=0;i<6;i++)
  {randHeadCell(i+48,'2');}
document.writeln('</tr></table></center>');     //end first row
document.writeln('<center><table border="0" width="90%" cellpadding="2" align"center"><tr>');
for(var i=0;i<7;i++)
  {randHeadCell(i+54,'2');}
document.writeln('</tr></table></center>');     //end second row
document.writeln('<center><table border="0" width="90%" cellpadding="2" align"center"><tr>');
for(var i=0;i<6;i++)
  {randHeadCell(i+61,'2');}                     //end i loop
document.writeln('</tr></table></center></div>');}    //end 3rd row, end table, end function