function Display( inMusician, Instrument)
{
   // if 'Musician' contains a space, it's a name, otherwise jpg path

   FirstName = inMusician;   // default in case single name
   LastName  = "";
   Musician  = "";

   if (inMusician.substring(0, 8) == "Reserved")
   {	document.write("<TD vAlign=top><IMG SRC='2008pics/Reserved.jpg' alt='Reserved'></TD>");
        return;
   }

   if ( inMusician != "" && inMusician.indexOf(' ') == -1)
   {
      for (i=1; i < inMusician.length; i++)
      {  if (inMusician.charAt(i) == ".")
         {  Musician = inMusician.substring(0, i);
            break;
         }
      }

      if (Musician == "")
         Musician = inMusician;

      for (i=1; i < Musician.length; i++)
      {  if (Musician.charAt(i) <= "Z")
         {   FirstName = Musician.substring(0, i);
             LastName = Musician.substring(i, Musician.length);
             break;
         }
      }

      var FullName = FirstName + " " + LastName;
      var URLindex = -1;


      for (i=0; i < URLlist.length; i++)
      {


				if (FullName != URLlist[i][0])
           continue;

        if (FullName == URLlist[i][0])
           URLindex = i;

        break;
      }

      var InstrumentDescription = "";




      if (URLindex > -1)
      {  var URLrec = URLlist[URLindex];

         if (inMusician.indexOf(".") == -1)
         {


            if (Instrument & (URLrec[4]))
            {  if (Instrument & _FIDDLE)
                  InstrumentDescription = ".fiddle";
               else if (Instrument & _BANJO)
                  InstrumentDescription = ".banjo";
               else if (Instrument & _BASS)
                  InstrumentDescription = ".bass";
               else if (Instrument & _MANDOLIN)
                  InstrumentDescription = ".mandolin";
               else if (Instrument & _GUITAR)
                  InstrumentDescription = ".guitar";
            }
         }
      }

      if ((URLindex == -1) || (URLlist[URLindex][1].length == 0)) // no url associated with this musician, just display pic
         document.write("<TD vAlign=top><IMG SRC='2008pics/" + inMusician + InstrumentDescription + ".jpg' alt='" + FullName + "'></TD>");
      else
      {  if (URLlist[URLindex][1].indexOf(';') == -1)   // only one url associated with this musician
                document.write("<TD vAlign=top><A HREF=" + URLlist[URLindex][1] + "><IMG SRC='2008pics/" + inMusician + InstrumentDescription + ".jpg' alt='" + FullName + "'></A></TD>");
         else   // More than one URL...link to intemediate page
                document.write("<TD vAlign=top><A HREF=link.html?" + URLindex + "><IMG SRC='2008pics/" + inMusician + InstrumentDescription + ".jpg' alt='" + FullName + "'></A></TD>");
      }
   }
   else
      document.write("<TD vAlign=top>" + inMusician     + "</TD>");
}

function LineItem( Fiddler, Guitarist, Mandolinist, Banjoist, Bassist, Link1, Name1,  Link2, Name2)
{
        CurrentDate = new Date();


        LineDate = new Date( LineDate.getTime() + MillisecondsPerWeek);

// 				alert("CurrentDate:" + CurrentDate +  " LineDate:" + LineDate);

        if (!Ancient())
        {       if (DisplayingCurrent())
                {       if (CurrentDate.getTime() >= LineDate.getTime())
                           return;
                }
                else
                {       if (CurrentDate.getTime() < LineDate.getTime())
                           return;
                }
        }

        Month = new Array ( "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

        if ( LineDate.getMonth() % 2) // change background color month to month
           document.write("<TR bgColor=" + GetEvenColor() + ">");
        else
           document.write("<TR bgColor=" + GetOddColor() + ">");

        document.write("<TD vAlign=top>" + Month[LineDate.getMonth()] + " " + LineDate.getDate());

        if (Link1 > "" && Name1 > "")
                document.write( "<br><PRE><A HREF='" + Link1 + "'>" + Name1 + "</A></PRE>");

        if (Link2 > "" && Name2 > "")
                document.write( "<br><PRE><A HREF='" + Link2 + "'>" + Name2 + "</A></PRE>");

        document.write("</TD>");

        if (Month[LineDate.getMonth()] == "Jul" && LineDate.getDate() == 4)
                document.write("<TD align=middle colSpan=5><h3>No jam tonight. Happy Independence Day.</h3></TD>");
        else if (Month[LineDate.getMonth()] == "Sep" && LineDate.getDate() <= 7)
                document.write("<TD align=middle colSpan=5><h3>No jam tonight. Happy Labor Day.</h3></TD>");
        else if (Month[LineDate.getMonth()] == "Dec")
        {       switch(LineDate.getDate())
                {       case 25:
                                document.write("<TD align=middle colSpan=5><h3>No jam tonight. Merry Christmas.</h3></TD>");
                                break;
                        case 24:
                                document.write("<TD align=middle colSpan=5><h3>No jam tonight. Merry Christmas Eve.</h3></TD>");
                                break;
                        case 31:
                                document.write("<TD align=middle colSpan=5><h3>No jam tonight. Happy New Year!</h3></TD>");
                                break;
                        default:
                        {       Display( Fiddler, _FIDDLE);
                                Display( Banjoist, _BANJO);
                                Display( Bassist, _BASS);
                                Display( Mandolinist, _MANDOLIN);
                                Display( Guitarist, _GUITAR);
                        }
                }
        }
        else
        {       Display( Fiddler, _FIDDLE);
                Display( Banjoist, _BANJO);
                Display( Bassist, _BASS);
                Display( Mandolinist, _MANDOLIN);
                Display( Guitarist, _GUITAR);
        }

        document.write("</TR>");
}
