//The number of highlights needs to be updated as more are added:
pr = new Project();

now = new Date();
var mon = now.getMonth() + 1;
var yr = now.getYear();
if (yr<1900) {yr = yr + 1900;}


nResearch = pr.getSize();

//nResearch=6;
//sort the projects by alphabetical order -- this given by a number representing the first letter of the title
for (j=1;j<=26;j++)
{
  for (i=0;i<nResearch;i++)
  {
    if (j==pr.getFeaturedProject('digit',i+1))
    {
      document.write("<TR>");
     
      if (pr.getFeaturedProject('photo',i+1)!="")
      {
        document.write("<TD valign='top'>");
        document.write("<A HREF=" + "'" + pr.getFeaturedProject('photo',i+1)+ "'" + "ALT =" + "'" + pr.getFeaturedProject('alttext',i+1) + "'" + ">");
        document.write("<IMG SRC=" + "'" + pr.getFeaturedProject('smallphoto',i+1)+ "'" + "ALT =" + "'" + pr.getFeaturedProject('alttext',i+1) + "'" + ">"); //TR20031010
        document.write("</A>");
        document.write("&nbsp;");
        document.write("</TD>");
        document.write("<TD valign='top'>");
      }
      else
      {
        document.write("<TD valign='top' colspan='2'>");
      }
      document.write("<STRONG>" + pr.getFeaturedProject('name',i+1) + "</STRONG>");
      if (pr.getFeaturedProject('year',i+1)==yr && pr.getFeaturedProject('month',i+1)>=mon-1)
      {
        if (pr.getFeaturedProject('datestatus',i+1) == 'n') 
        {
          document.write("<IMG SRC=\"images/new.gif\" alt=\"New Graphic\">");
        }
        if (pr.getFeaturedProject('datestatus',i+1) == 'r') 
        {
          document.write("<IMG SRC=\"images/revised.gif\" alt=\"Revised Graphic\">");
        }
      }

      document.write(" &nbsp; &nbsp;");
      document.write(pr.getFeaturedProject('text',i+1));
      document.write("&nbsp; <A HREF=" + "'" + pr.getFeaturedProject('web',i+1)+ "'>");
      document.write("...more...");
      document.write("</A>");
      document.write("<BR>"); 
      document.write("<BR>");
      document.write("</TD>");
      document.write("</TR>");
    }
  }
 
}