// schedule.js is used to format scheduled jobs on the schedule page for
// both the Moonlighters and Doug LaSala's website.  It also is used to
// set the last modified date/time on both the home page and schedule page for
// each website.  It also sets the marquee listing the next performance on
// each home page.
//
// This JavaScript contains the following functions:
//   function lastModifiedDate(format)
//   function setMarquee(month,day,time,event,location)
//   function getCurrentDate()
//   function getMonth(month)
//   function writeRow(listType,a)
//   function writeSchedule(listType,nextGig,pf)
//
// Date       Who             Description
// ---------- --------------- --------------------------------------------------
// 12/12/2007 Doug LaSala     Original version.

var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var mtend = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
var opt = new Array("Past","Future");

//here are a list of photos that display in the small window via function writeRandomPhoto
var rpic = new Array();
var i = 0;
rpic[i] = "http://lh6.google.com/kwd805/R0hit7RaXyI/AAAAAAAACmY/en5MNM5fSjU/s144/IMG_5698.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hjErRaYHI/AAAAAAAACpE/h0bvMZrreDg/s144/IMG_5724.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hjarRaYaI/AAAAAAAACrg/0tdoKt-M5DY/s144/IMG_5748.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/R0hjpLRaYnI/AAAAAAAACtI/hjMloRYacm4/s144/IMG_5767.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R0hkP7RaZOI/AAAAAAAACyE/O_LWKeRc_Io/s144/IMG_5844.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/R0hkTLRaZSI/AAAAAAAACyk/D-Xss0xKyeY/s144/IMG_5848.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/R0hkULRaZTI/AAAAAAAACys/sEfaDG1H0Oo/s144/IMG_5849.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hkbrRaZbI/AAAAAAAACzs/fEmkRCfbY8Q/s144/IMG_5857.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/Ry3Yl1lk7jI/AAAAAAAACD0/aq2zcvcjnTg/s144/IMG_4966.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/Ry3YtVlk7oI/AAAAAAAACEg/-EQezHhRZkE/s144/IMG_4971.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/Ry3Yz1lk7sI/AAAAAAAACFA/VNEs5IcASRY/s144/IMG_4976.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/Ry3Y1Vlk7tI/AAAAAAAACFI/zLuypvxXxvk/s144/IMG_4977.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/Ry3abVlk86I/AAAAAAAACO8/H0MEK0Yj2pU/s144/IMG_5071.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/Ry3btllk9BI/AAAAAAAACPw/q0I-ERdjerY/s144/IMG_5177.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/Ry3eEFlk9mI/AAAAAAAACUc/nwP8mvYvEhw/s144/IMG_5350.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/Ry3eJllk9pI/AAAAAAAACU0/YCDfG0u1ry0/s144/IMG_5354.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/Ry3eRVlk9tI/AAAAAAAACVY/7uYAROFv3fM/s144/IMG_5365.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/Ry3eNllk9rI/AAAAAAAACVI/kERZeFJaA0A/s144/IMG_5361.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/Ry3ehllk92I/AAAAAAAACWg/-l2TYjI0V6k/s144/IMG_5380.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/Ry3d9Flk9iI/AAAAAAAACT8/Bocty4LicSs/s144/IMG_5340.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R0hhY7RaWXI/AAAAAAAACa4/WARgItExB8U/s144/IMG_5586.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R0hhi7RaWhI/AAAAAAAACcI/eR_ZRCPuU3s/s144/IMG_5598.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hiArRaXAI/AAAAAAAACgE/rugWntDCmW0/s144/IMG_5633.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/R0hiZbRaXcI/AAAAAAAACjo/nW1y0u2xPas/s144/IMG_5668.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hj-rRaY9I/AAAAAAAACv8/E5zmxMKR0bc/s144/IMG_5817.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/R0hkSbRaZRI/AAAAAAAACyc/s4p3BjhXdVA/s144/IMG_5847.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hkfrRaZfI/AAAAAAAAC0Q/cQyJB0LYRRk/s144/IMG_5861.JPG";i++

rpic[i] = "http://lh4.google.com/kwd805/Ru07VJ3OB0I/AAAAAAAABiQ/jdRF1C1BMtk/s144/IMG_4543.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/Ru09153OC1I/AAAAAAAABqs/0YdAHbUzEvM/s144/IMG_4609.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/Ru0-8p3ODZI/AAAAAAAABvU/BreHks2fQSs/s144/IMG_4648.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/Ry3YnFlk7kI/AAAAAAAACD8/qBkY8M7jr2M/s144/IMG_4967.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/Ry3ZF1lk74I/AAAAAAAACGg/nCyvQp68GPg/s144/IMG_4989.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/Ry3dXllk9QI/AAAAAAAACRo/bpB5G1sH00Y/s144/IMG_5256.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/Ry3d-llk9jI/AAAAAAAACUE/gwx__XRRrtw/s144/IMG_5343.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/Ry3eCFlk9lI/AAAAAAAACUU/9Z78QIys61s/s144/IMG_5345.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R09bcLRagBI/AAAAAAAADqo/z2DMRpUwMvM/s144/IMG_5275.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R09ct7RagoI/AAAAAAAADvw/tcHNqdrw7TM/s144/IMG_5362.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R09c77RagvI/AAAAAAAADws/uNWb8UxQ2-Q/s144/IMG_5383.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R09c4LRagtI/AAAAAAAADwc/ybsUayYKG0o/s144/IMG_5373.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/R09VbbRacyI/AAAAAAAADQI/wgd4lEaLwrA/s144/IMG_5396.JPG";i++
rpic[i] = "http://lh3.google.com/kwd805/R09WMbRadRI/AAAAAAAADUE/sOIyjPfsab8/s144/IMG_5432.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R09WRLRadUI/AAAAAAAADUc/hDg0a8rulVc/s144/IMG_5436.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/R09WcrRadcI/AAAAAAAADVc/f2y94aGhiI8/s144/IMG_5448.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R09Wt7RadpI/AAAAAAAADXI/MRUyrpwYjdc/s144/IMG_5462.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R09XA7Rad2I/AAAAAAAADYw/hM0kaeu0Suk/s144/IMG_5477.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R09XR7RaeCI/AAAAAAAADaU/UCmw-_6UuZQ/s144/IMG_5491.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R09XmLRaeQI/AAAAAAAADcI/uQWwPYIPMmY/s144/IMG_5508.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R09Xt7RaeVI/AAAAAAAADcw/1lvJh83LGPM/s144/IMG_5513.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R0hh87RaW8I/AAAAAAAACfk/NDTrE2wk0nk/s144/IMG_5629.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R0hiD7RaXEI/AAAAAAAACgk/taNuqAz5Qh8/s144/IMG_5637.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hijrRaXnI/AAAAAAAAClA/tCtedSk5tHY/s144/IMG_5683.JPG";i++
rpic[i] = "http://lh6.google.com/kwd805/R0hj37RaY1I/AAAAAAAACu4/HwoGdF3dYxo/s144/IMG_5801.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/R0hj7bRaY5I/AAAAAAAACvc/e3vzDlt-ums/s144/IMG_5813.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hj_rRaY-I/AAAAAAAACwE/NZVYQcEP_FM/s144/IMG_5818.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/R0hkRbRaZQI/AAAAAAAACyU/BKCpedMcZQM/s144/IMG_5846.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hkfrRaZfI/AAAAAAAAC0Q/cQyJB0LYRRk/s144/IMG_5861.JPG";i++
rpic[i] = "http://lh4.google.com/kwd805/R0hkSbRaZRI/AAAAAAAACyc/s4p3BjhXdVA/s144/IMG_5847.JPG";i++
rpic[i] = "http://lh5.google.com/kwd805/R0hhjrRaWiI/AAAAAAAACcU/iY_HP7vtLx8/s144/IMG_5599.JPG";i++
//rpic[i] = "";i++

//
// function lastModifiedDate returns the last modified date.
// if "mmdd" is passed as a parm, only return the date in mm/dd format.
//
function lastModifiedDate(group,format)
{

//currently hardcoding date/time of last modification.
  lastMod = "02/23/10 08:00";

  if (format=="mmdd")
  {
    document.write(lastMod.substr(0,5));
//    document.write(document.lastModified.substr(0,5));
  }
  else
  {
    document.write(lastMod.substr(0,8));
//    document.write(lastMod.substr(0,10) + " at " + lastMod.substr(11,5));
//    document.write(document.lastModified.substr(0,10) + " at " + document.lastModified.substr(11,5));
  }
}

//
// Write the menu data.
//
function writeMenu(menuHref,menuName,menuClass,newWindow)
{

  // If newWindow is specified, set up the target statement to open a new window.
  if (newWindow!="")
  {
    targetWindow = "'target='_new''";
  }
  else
  {
    targetWindow = "";
  }

  if (currentPage2==menuHref)
  {
    document.write("<tr><td align=left class='" + menuClass + "sel" + "'><b><img src='images/arrowsel.bmp' border='0' alt='arrow'>" + menuName + "</b></td></tr>");
  }
  else
  {
    document.write("<tr><td align=left class='" + menuClass + "'><b><A class='" + menuClass + "' HREF='" + menuHref + " " + targetWindow + "'><img src='images/arrow" + ".bmp' border='0' alt='arrow'>" + menuName + "</A></b></td></tr>");
  }
}

//
// Generate the menu in the left frame.
//
function generateMenu(currentPage)
{

currentPage2 = currentPage;

  // LEFT FRAME - START
  document.write("<table border='0' cellpadding='0' cellspacing='0' width='200' class='leftframe'>");

  // Write the Home entry.
  writeMenu("index.htm","Home","menuitem","");

  // Write the Schedule entry.
  writeMenu("schedule.htm","Schedule (updated <SCRIPT language='javascript'>lastModifiedDate('ML','mmdd');</script>)","menuitem","");

  // Write the Band Members entry.
  writeMenu("members.htm","Band Members","menuitem","");

  // Write the Band History entry.
  writeMenu("history.htm","Band History","menuitem","");

  // Write the Band Photos entry.
  writeMenu("photos.htm","Band Photos","menuitem","");

  // Write the Playlist entry.
  writeMenu("playlist.htm","List of Songs/Listen","menuitem","");

  // Write the Contact Us entry.
  writeMenu("contact.htm","Contact Us","menuitem","");

  // Write the Mailing List entry.
//  writeMenu("mailinglist.htm","Join Mailing List","menuitem","");

  // Write the Rehearsal entry.
  writeMenu("rehearsal.htm","Rehearsal Schedule","menuitem","");

// OTHER BANDS
  document.write("<tr><td align=left class='menuitemhdr'><b> OTHER BANDS</b></td></tr>");

  // Write the Doug LaSala entry.
  writeMenu("http://www.douglasala.com","Doug LaSala's Website","menuitem","newWindow");

  // Write the Ben Mauger entry.
//  writeMenu("http://www.douglasala.com/MAUGER/index.htm","Ben Mauger's Vintage Jazz Band CD","menuitem","newWindow");

  // Write the Dixielanders entry.
//  writeMenu("dixielanders/index.htm","The Dixielanders Website","menuitem","newWindow");

  // Write the Warwick HS Marching Band entry.
//  writeMenu("http://www.warwickband.org/","Warwick HS Marching Band","menuitem","newWindow");

  // Write the LCB entry.
//  writeMenu("LCB/LCBSchedule.htm","Lititz Community Band Schedule (2006 schedule)","menuitem","newWindow");

  // Write the BBJB entry.
//  writeMenu("bbjb/index.htm","Bob Troxell's Big Big Jazz Band","menuitem","newWindow");

  // OTHER
  document.write("<tr><td align=left class='menuitemhdr'><b>OTHER LINKS</b></td></tr>");

  // Write the Lititz Springs Park entry.
  writeMenu("http://www.lititzspringspark.org","Lititz Springs Park","menuitem","newWindow");

  // Write the LititzPA.com entry.
  writeMenu("http://www.lititzpa.com","LititzPA.com","menuitem","newWindow");

  // finish the table.
  document.write("</table>");

//writeRandomPhoto();
//writeScores();

}


function writeHtmlHeader()
{
//
// Doug, if you change the widths here, you also must change them in index.htm and function writeHtmlFooter.
//

//document.write("<TABLE class='heading' WIDTH='100%' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD class='title' width='200' align='center'><a href='index.htm'><img src='images/warwicklogo117x1392.bmp' border='0'></a></TD><TD class='title' align='center' width='900'><B>Moonlighters Big Band</B></TD></TR><TR><TD class='title' colspan=2><HR></TD></TR></TABLE>");

//document.write("<TABLE class='heading' WIDTH='100%' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD class='title' width='200' align='center'>&nbsp;</TD><TD class='title' align='center' width='900'><B>Moonlighters Big Band</B></TD></TR><TR><TD class='title' colspan=2><HR></TD></TR></TABLE>");

document.write("<TABLE class='heading' WIDTH='100%' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD class='title' width='200' align='center'>&nbsp;</TD><TD class='title' align='center' width='900'><img src='images/MoonlightersLogo444x142.jpg' width=444 height=142 border='0'></TD></TR><TR><TD class='title' colspan=2><HR></TD></TR></TABLE>");

}

//
// set the marquee for each home page.
// if "ML" is passed, set the marquee for the Moonlighters website,
// else set the marquee for Doug's website.
//
function setMarquee(month,day,event,location,city,group)
{

  // if processing the Moonlighters website...
  switch(listType2)
  {
    case "ML": document.write("Next Performance: " + event + " at " + location + " on " + month + " " + day + " in " + city); break;
    case "DOUG": document.write("Next Performance: " + event + " with the " + group + " at " + location + " on " + month + " " + day + " in " + city); break;
    case "DIXIELANDERS": document.write("Next Performance: " + event + " at " + location + " on " + month + " " + day + " in " + city); break;
    default: return "invalid"; break;
  }

}

function writeHtmlFooter()
{
//
// Doug, if you change the widths here, you also must change them in index.htm and function writeHtmlHeader.
//
document.write("<TABLE class='heading' WIDTH='100%' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD class='footer' colspan=2><HR></TD></TR><TR><TD class='footer' width='200' align='center'>&nbsp;</TD><TD class='footer' align='center'><a HREF='http://www.douglasala.com' target='_new' class='footer'>Site design by Doug LaSala</a></td></TR><TR><TD class='footer' colspan=2><HR></TD></TR></TABLE>");

}

function writeHtmlFooterDOUG()
{
//
// Doug, if you change the widths here, you also must change them in index.htm and function writeHtmlHeader.
//
document.write("<TABLE class='heading' WIDTH='100%' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD class='footer' align='center'>Site design by Doug LaSala</td></TR></TABLE>");

}

//
// Get the current date in yyyymmdd format.  This will be used for date
// comparisons down below as a means to only display future jobs, and
// not display past jobs.
//
function getCurrentDate()
{
d = new Date();
mm = d.getMonth();
mm += 1;
mm = mm.toString();
if (mm.length == 1) { mm = "0" + mm; }
dd = d.getDate();
dd = dd.toString();
if (dd.length == 1) { dd = "0" + dd; }
yyyy = d.getFullYear();
yyyy = yyyy.toString();
currentDate = yyyy + mm + dd;
return currentDate;
}

//
// This function takes the numerical representation of the month and
// returns the month's name.
// 
function getMonth(month)
{
  switch(month)
  {
    case "01": return "January"; break;
    case "02": return "February"; break;
    case "03": return "March"; break;
    case "04": return "April"; break;
    case "05": return "May"; break;
    case "06": return "June"; break;
    case "07": return "July"; break;
    case "08": return "August"; break;
    case "09": return "September"; break;
    case "10": return "October"; break;
    case "11": return "November"; break;
    case "12": return "December"; break;
    default: return "invalid"; break;
  }
}

//
// Pass this function a the year, month, and day, and it will return the day of week.
//
function getDayOfWeek(yyyy,mm,dd)
{

  var tempDate = new Date(yyyy,mm,dd);
  var dayOfWeek = tempDate.getDay();
  switch(dayOfWeek)
  {
    case 0: return "Sunday"; break;
    case 1: return "Monday"; break;
    case 2: return "Tuesday"; break;
    case 3: return "Wednesday"; break;
    case 4: return "Thursday"; break;
    case 5: return "Friday"; break;
    case 6: return "Saturday"; break;
    default: return "invalid"; break;
  }
}

//
// list the current high scores
//
function writeScores()
{

// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("scores");

  document.write("<br>");
  document.write("<table border='0' cellpadding='0' cellspacing='0' width='190'><tr><th class='" + cellClass + "' colspan=4>2007 Scores</th></tr>");

  var s = new Array();
  var i = 0;
  s[i] = "95.05#Archbishop Wood#A";i++
  s[i] = "92.10#Burlington City#A";i++
  s[i] = "96.25#Hatboro Horsham#Open";i++
  s[i] = "84.40#James Buchanan#A";
  s[i] = "92.90#Kingsway Regional#Open";i++
  s[i] = "91.15#Marple Newtown#Open";i++
  s[i] = "91.25#New Oxford#Open";i++
  s[i] = "88.35#Northern Lebanon#A";i++
  s[i] = "92.05#Reading#A";i++
  s[i] = "95.80#Southern Regional#Open";i++
  s[i] = "92.30#Spring Grove#Open";i++
  s[i] = "94.80#Unionville#Open";i++
  s[i] = "88.95#Upper Dublin#A";i++
  s[i] = "98.15#Warwick#Open";i++
  s[i] = "90.65#West Chester East#Open";i++

  s.sort();
  var ordered = new Array();

for (var i = 0; i < s.length; i++)
{
  var j = s.length - i;
  var tempstr = s[i];
  var endloc = tempstr.search(/#/);
  var tempscore = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/#/);
  var tempschool = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var tempclass = tempstr.substr(0,tempstr.length);
  jobCounter++;
  setRowShading("scores");
  ordered[j] = ("<tr><td align=left class='" + cellClass + "'>" + j + ")</td><td align=left class='" + cellClass + "'>&nbsp;" + tempschool + "</td><td align=left class='" + cellClass + "'><i>&nbsp;" + tempclass + "</i></td><td align=right class='" + cellClass + "'>" + tempscore + "</td></tr>");
}

for (var i = 1; i < s.length + 1; i++)
{
  document.write(ordered[i]);
}

document.write("</table>");

}

//
// write out a picture
//
function writeRandomPhoto()
{

// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("scores");

  document.write("<br>");
  document.write("<table border='0' cellpadding='0' cellspacing='0' width='144' align='center'><tr><th class='" + cellClass + "' align='center'>Cool Photos</th></tr>");

// get a random photo
  var smallpic = rpic[Math.abs(Math.round(Math.random() * rpic.length - 1))];
//  jobCounter++;
//  setRowShading("scores");

  document.write("<tr><td align=center class='" + cellClass + "'><a href='wmbphotos.htm'><img name=temppic src='" + smallpic + "' border='0'></a></td></tr>");

// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("scores");
document.write("<tr><th class='" + cellClass + "' align='center'>Visit the Photos page for more great photos</th></tr></table></a>");

temp = setTimeout("changePhoto()",6000);

}

function changePhoto()
{
document.temppic.src=rpic[Math.abs(Math.round(Math.random() * rpic.length - 1))];
temp = setTimeout("changePhoto()",6000);
}

//
// list the newsletters
//
function writeNewsletters()
{
// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

// Write the table heading including Date/Time and Location.
  document.write("<tr align=left valign=top class='" + cellClass + "'><th class='" + cellClass + "' align='left'>Date Posted</th><th class='" + cellClass + "' align='left'>Document</th></tr>");

  var n = new Array();
  var i = 0;
  n[i] = "20071007#Newsletter - October/November 2007#wbnewsletteroct2007.pdf";i++;
  n[i] = "20071016#Band Parent Meeting Minutes - October 8, 2007#WBPParentMeetingOct8.doc";i++;
  n[i] = "20080107#Band Parent Meeting Minutes - December 10, 2007#General_Membership_121007-1.doc";i++;

  n.sort();

//for (var i = n.length ; i < 1 ; i--)
for (var i = n.length - 1 ; i >= 0 ; i--)
{
  var tempstr = n[i];
  var endloc = tempstr.search(/#/);
  var tempdate = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/#/);
  var tempname = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var tempdoc = tempstr.substr(0,tempstr.length);
  jobCounter++;
  setRowShading("Row");
  document.write("<tr><td align=left class='" + cellClass + "'>" + tempdate.substr(4,2) + "/" + tempdate.substr(6,2) + "/" + tempdate.substr(0,4) + "</td><td align=left class='" + cellClass + "'><a href='newsletters/" + tempdoc + "' class='bodydtl' target='_new'>" + tempname + "</a></td></tr>");
}

document.write("</table>");

}

//
// list the videos
//
function writeVideos()
{
// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

// Write the table heading including Date/Time and Location.
  document.write("<tr align=left valign=top class='" + cellClass + "'><th class='" + cellClass + "' align='left'>Date Posted</th><th class='" + cellClass + "' align='left'>Video</th></tr>");

  var n = new Array();
  var i = 0;
  n[i] = "20071116#Warwick 2007 Championship Show Part  2 (Rome: The Gods of War)#http://www.youtube.com/watch?v=UeIeP_IA7sU";i++;
  n[i] = "20071116#Warwick 2007 Championship Show Part 1 (Rome: The Gods of War)#http://www.youtube.com/watch?v=t__SOwC6e1E";i++;
  n[i] = "20070601#Warwick 2006 Championship Show (Batman)#http://www.youtube.com/watch?v=ILlXc_JfBWY";i++;

  n.sort();

//for (var i = n.length ; i < 1 ; i--)
for (var i = n.length - 1 ; i >= 0 ; i--)
{
  var tempstr = n[i];
  var endloc = tempstr.search(/#/);
  var tempdate = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/#/);
  var tempname = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var tempdoc = tempstr.substr(0,tempstr.length);
  jobCounter++;
  setRowShading("Row");
  document.write("<tr><td align=left class='" + cellClass + "'>" + tempdate.substr(4,2) + "/" + tempdate.substr(6,2) + "/" + tempdate.substr(0,4) + "</td><td align=left class='" + cellClass + "'><a href='" + tempdoc + "' class='bodydtl' target='_new'>" + tempname + "</a></td></tr>");
}

document.write("</table>");

}

//
// generate the hyperlink for Bob Ingraham's event
//
function bingPhotoEvent(eventid)
{
return("http://www.bingphoto.com/mp_client/pictures.asp?action=viewphotos&size=thumbnails&thumbpagenum=1&eventid=" + eventid + "&eventstatus=0&categories=no&keywords2=no&groupid=0&bw=false&sep=false&ckw=false");
}

//
// generate the "courtesy of" statement
//
function courtesyOf(who)
{
  switch(who)
  {
    case "BI": return "<A href='http://www.bingphoto.com' target='_new'>Courtesy of Bob Ingraham Photography</a>"; break;
    case "KD": return "Courtesy of Mr. Dowling"; break;
    default: return who; break;
  }
}

//
// list the photos
//
function writePhotos()
{
// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

// Write the table heading including Date/Time and Location.
  document.write("<tr align=left valign=top class='" + cellClass + "'><th class='" + cellClass + "' align='left'>Date</th><th class='" + cellClass + "' align='left'>Description</th><th class='" + cellClass + "' align='left'>Courtesy of</th></tr>");

  var n = new Array();
  var i = 0;
  n[i] = "20070828#34#Formal photo of Band#images/band.jpg#BI";i++;
  n[i] = "20070828#33#Formal photo of Drum Majors#images/drummajors.jpg#BI";i++;
  n[i] = "20070828#32#Formal photo of Officers#images/officers.jpg#BI";i++;
  n[i] = "20070828#31#Formal photo of Section Leaders#images/sectionleaders.jpg#BI";i++;
  n[i] = "20070828#29#Formal photo of Flutes and Piccolos#images/flutepic.jpg#BI";i++;
  n[i] = "20070828#28#Formal photo of Clarinet#images/clarinet.jpg#BI";i++;
  n[i] = "20070828#27#Formal photo of Saxophones#images/saxophones.jpg#BI";i++;
  n[i] = "20070828#26#Formal photo of Mellophones#images/mellophone.jpg#BI";i++;
  n[i] = "20070828#25#Formal photo of Trumpets#images/trumpets.jpg#BI";i++;
  n[i] = "20070828#24#Formal photo of Low Brass#images/lowbrass.jpg#BI";i++;
  n[i] = "20070828#23#Formal photo of Pit#images/pit.jpg#BI";i++;
  n[i] = "20070828#22#Formal photo of Drum Line#images/drumline.jpg#BI";i++;
  n[i] = "20070828#21#Formal photo of Color Guard#images/colorguard.jpg#BI";i++;
  n[i] = "20070828#209#Formal photo of Runners#images/runners.jpg#BI";i++;
  n[i] = "20070828#10#Formal photo of Freshmen#images/freshmen.jpg#BI";i++;
  n[i] = "20070828#11#Formal photo of Sophomores#images/sophomores.jpg#BI";i++;
  n[i] = "20070828#12#Formal photo of Juniors#images/juniors.jpg#BI";i++;
  n[i] = "20070828#13#Formal photo of Seniors#images/seniors.jpg#BI";i++;
  n[i] = "20070907#01#Football vs. Conestoga Valley#" + bingPhotoEvent(22737) + 
"#BI";i++;
  n[i] = "20070914#01#Football vs. Ephrata#" + bingPhotoEvent(22526) + 
"#BI";i++;
  n[i] = "20070915#01#Competition at Hempfield#http://picasaweb.google.com/kwd805/Hempfield91507#KD";i++;
  n[i] = "20070921#01#Football at Wilson#" + bingPhotoEvent(22936) + 
"#BI";i++;
  n[i] = "20071005#01#Football at Cedar Crest#" + bingPhotoEvent(23272) + 
"#BI";i++;
  n[i] = "20071012#01#Football at Reading#" + bingPhotoEvent(23409) + 
"#BI";i++;
  n[i] = "20071013#01#Legend of the Warriors Competition#" + bingPhotoEvent(23411) + 
"#BI";i++;
  n[i] = "20071027#01#Competition at Manheim Central#http://picasaweb.google.com/kwd805/ManhiemCentralCompetition#KD";i++;
  n[i] = "20071029#01#Lititz Halloween Parade#http://picasaweb.google.com/kwd805/LititzHolloweenParade#KD";i++;
  n[i] = "20071102#01#Football vs. McCaskey#http://picasaweb.google.com/kwd805/WarwickVsMcCaskey#KD";i++;
  n[i] = "20071103#01#Competition at Red Lion#http://picasaweb.google.com/kwd805/RedLionCompetition#KD";i++;
  n[i] = "20071111#01#Championships at Hershey#http://picasaweb.google.com/kwd805/CalvacadeOfBands#KD";i++;
  n[i] = "20071110#01#Pep Rally#http://picasaweb.google.com/kwd805/WarwickMarchingBandPepRally#KD";i++;
  n[i] = "20071113#01#Band Banquet#http://picasaweb.google.com/kwd805/2007WarwickMarchingBandBanquet#KD";i++;

  n.sort();

//for (var i = n.length ; i < 1 ; i--)
for (var i = n.length - 1 ; i >= 0 ; i--)
{
  var tempstr = n[i];
  var endloc = tempstr.search(/#/);
  var tempdate = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/#/);
  var temporder = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/#/);
  var tempname = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/#/);
  var tempdoc = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var tempcourtesy = tempstr.substr(0,tempstr.length);
  jobCounter++;
  setRowShading("Row");
  document.write("<tr><td align=left class='" + cellClass + "'>" + tempdate.substr(4,2) + "/" + tempdate.substr(6,2) + "/" + tempdate.substr(0,4) + "</td><td align=left class='" + cellClass + "'><a href='" + tempdoc + "' class='bodydtl' target='_new'>" + tempname + "</a></td><td align=left class='" + cellClass + "'>" + courtesyOf(tempcourtesy) + "</td></tr>");
}

// add Bob Ingraham plug
//jobCounter++;
//setRowShading("Row");
//document.write("<tr><td colspan=2 align=center class='" + cellClass + "'>Thanks to <a href='http://bingphoto.com/' target='_new'>Bob Ingraham Photography&nbsp;</a>for providing the photos listed above.</td></tr>");
document.write("</table>");

}

//
// list the competitions
//
function writeCompetitions()
{
// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

// Write the table heading including Date/Time and Location.
  document.write("<tr align=left valign=top class='" + cellClass + "'><th class='" + cellClass + "' align='left'>Competition Date</th><th class='" + cellClass + "' align='left'>Location (click to see schedule or scores)</th><th class='" + cellClass + "' align='left'>Place-Score</th></tr>");

  var n = new Array();
  var i = 0;
  n[i] = "20070915~Hempfield~1st-79.05~http://www.cavalcadeofbands.com/marching%20band/scores/scores.shtml#2";i++;
  n[i] = "20070922~Manheim Township~1st-83.40~http://www.cavalcadeofbands.com/marching%20band/scores/scores.shtml#5";i++;
  n[i] = "20071006~Conestoga Valley~1st-86.15~http://www.cavalcadeofbands.com/marching%20band/scores/scores.shtml#11";i++;
  n[i] = "20071013~Warwick~exhibition-87.75~http://www.cavalcadeofbands.com/marching%20band/scores/scores.shtml#17";i++;
  n[i] = "20071027~Manheim Central~1st-93.90~http://www.cavalcadeofbands.com/marching%20band/scores/scores.shtml#21";i++;
  n[i] = "20071103~Red Lion~1st-94.05~http://www.cavalcadeofbands.com/marching%20band/scores/scores.shtml#27";i++;
  n[i] = "20071111~Championships~1st-98.15<br>High Visual<br>High Music<br>High Effect~http://www.cavalcadeofbands.com/bchamp.shtml";i++;

  n.sort();

//for (var i = n.length ; i < 1 ; i--)
for (var i = n.length - 1 ; i >= 0 ; i--)
{
  jobCounter++;
  var tempstr = n[i];
  var endloc = tempstr.search(/~/);
  var tempdate = tempstr.substr(0,endloc);

  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/~/);
  var tempname = tempstr.substr(0,endloc);

  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var endloc = tempstr.search(/~/);
  var tempplace = tempstr.substr(0,endloc);

  var tempstr = tempstr.substr(endloc+1,tempstr.length);
  var tempdoc = tempstr.substr(0,tempstr.length);
  setRowShading("Row");
  document.write("<tr><td align=left class='" + cellClass + "'>" + tempdate.substr(4,2) + "/" + tempdate.substr(6,2) + "/" + tempdate.substr(0,4) + "</td><td align=left class='" + cellClass + "'><a href='" + tempdoc + "' class='bodydtl' target='_new2'>" + tempname + "</a></td><td align=left class='" + cellClass + "'>" + tempplace + "</td></tr>");
}

document.write("</table>");

}

//
// list the Band Parents
//
function writeBandParents()
{
// Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  pf2 = "";

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

// Write the table heading including Date/Time and Location.
  document.write("<tr align=left valign=top class='" + cellClass + "'><th class='" + cellClass + "' align='left'>Title</th><th class='" + cellClass + "' align='left'>Name</th><th class='" + cellClass + "' align='left'>Phone</th><th class='" + cellClass + "' align='left'>E-mail</th></tr>");

  var n = new Array();
  var i = 0;
  n[i] = "1#President#Ulicny, Deb#717-627-2746#daculicny@yahoo.com#";i++;
  n[i] = "2#Board Member#Gress, Pam#717-627-6288#rcphme@aol.com#";i++;
  n[i] = "2#Board Member#Hull, Michelle#717-627-6871#lighthouselady@dejazzd.com#";i++;
  n[i] = "2#Board Member#Hughes, Greg##imhues@aol.com#";i++;
  n[i] = "2#Board Member#Shimp, Pat#717-627-3741#pb567@ptd.net#";i++;
  n[i] = "2#Board Member#Smith, Beth#717-627-3391#tandbsmith@dejazzd.com#";i++;
  n[i] = "2#Board Member#Stewart, Kathy#717-627-4425#kathystew@gmail.com#";i++;
  n[i] = "2#Board Member#Stuart, Joanne#717-627-3736#iu13stevestuart@yahoo.com#";i++;
  n[i] = "2#Board Member#Sweigart, Nancy#717-627-1236#sweigart3home@yahoo.com#";i++;
  n[i] = "2#Board Member#Trenkle, Pat#717-625-2643#PT61260@aol.com#";i++;
  n[i] = "2#Board Member#Zimmerman, Dan#717-627-3342#zimm2@dejazzd.com#";i++;
  n[i] = "3#Treasurer#Miller, Cheryl#717-626-2447#therevs@dejazzd.com#";i++;
  n[i] = "4#Secretary#Gegg, Dianne#717-627-3234#sdgegg@hotmail.com#";i++;

  n.sort();
  var tempEmailList = "";
  var semicolon = "";

for (var i = 0; i < n.length; i++)
//for (var i = n.length - 1 ; i >= 0 ; i--)
{
  var tempstr = n[i];
  var endloc = tempstr.search(/#/);
  var tempOrder = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);

  var endloc = tempstr.search(/#/);
  var tempTitle = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);

  var endloc = tempstr.search(/#/);
  var tempName = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);

// parse out "last, first" so that we can put it in "first last" order in the HTML.
  var endloc2 = tempName.search(/,/);
  var tempLastName = tempName.substr(0,endloc2);
  var tempFirstName = tempName.substr(endloc2 + 1,tempName.length);

  var endloc = tempstr.search(/#/);
  var tempPhone = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);

  var endloc = tempstr.search(/#/);
  var tempEmail = tempstr.substr(0,endloc);
  var tempstr = tempstr.substr(endloc+1,tempstr.length);

  var tempEmailList = tempEmailList + semicolon + tempEmail;
  var semicolon = ";";

  jobCounter++;
  setRowShading("Row");
  document.write("<tr><td align=left class='" + cellClass + "'>" + tempTitle + "</td><td align=left class='" + cellClass + "'>" + tempFirstName + " " + tempLastName + "</td><td align=left class='" + cellClass + "'>" + tempPhone + "</td><td align=left class='" + cellClass + "'><a href='mailto:" + tempEmail + "'>" + tempEmail + "</a></td></tr>");
}

// write a line that has allows the user to e-mail all at once.
  jobCounter++;
  setRowShading("Row");
  document.write("<tr><td align=left class='" + cellClass + "'>&nbsp;</td><td align=left class='" + cellClass + "'>&nbsp;</td><td align=left class='" + cellClass + "'>&nbsp;</td><td align=left class='" + cellClass + "'><a href='mailto:" + tempEmailList + "'>E-mail all band parents listed  above</a></td></tr>");


document.write("</table>");

}

//
// Set the row class
//
function setRowShading(prefix)
{

// If not processing printer-friendly page, set the row shading.
  if (pf2=="")
  {
// If first time through, let's set the heading row.
    if (jobCounter==0)
    {
      cellClass = prefix + "Hdr";
    }
    else
    {
      if (rowShading==0)
      {
        cellClass = prefix + "Even";
        rowShading = 1;
      }
      else
      {
        cellClass = prefix + "Odd";
        rowShading = 0;
      }
    }
  }
  else
  {
    cellClass = "pf";
  }
}

//
// Write a table row for the current job.  
// * If listType = "ML", we're processing the Moonlighters schedule, and must
// filter out all non-Moonlighters jobs. 
// * If listType = "LCB", we're processing the Lititz Community Band schedule, and must
// filter out all non-Lititz Community Band jobs.
// * If listType = "DIXIELANDERS", we're processing the Dixielanders Band schedule, and must
// filter out all non-Dixielander jobs.
// Otherwise, we're processing Doug's schedule, and we need to add the column
// that identifies the group he's performing with.
// The parm 'a' contains the array of date for the current job.
//
function writeRow(listType,a)
{

  // Is the date of this job in the past?  If so, we can leave and not
  // process it.
  if (a[0] < currentDate) { return; }

  // If we're called with the nextgig parm, that means we only want to 
  // process the first upcoming job (for the marquee on the home page).
  // If we already processed it, we can leave, now.
  if (nextGig2=="nextgig")
  {
    if (jobCounter>0) { return; }
  }

  // If we're processing a listing for Moonlighters, make sure we have
  // a Moonlighters entry before we proceed.
  if (listType=="ML")
  {
    if (a[14]!="Moonlighters Big Band") { return; }
  }

  // If we're processing a listing for Lititz Community Band, make sure we have
  // a Lititz Community Band entry before we proceed.
  if (listType=="LCB")
  {
    if (a[14]!="Lititz Community Band") { return; }
  }

  // If we're processing a listing for the Dixielanders, make sure we have
  // a Dixielanders entry before we proceed.
  if (listType=="DIXIELANDERS")
  {
    if (a[14]!="Dixielanders") { return; }
  }

  // If we're processing a listing for Doug, make sure we don't have
  // a Lititz Community Band entry before we proceed.
  if (listType=="DOUG")
  {
    if (a[14]=="Lititz Community Band") { return; }
  }

  // If we're processing a listing for Doug, make sure column 16 has a "Y" in it
  // before we proceed.
  if (listType=="DOUG")
  {
    if (a[16]!=="Y") { return; }
  }

  jobCounter = jobCounter + 1;
  if (jobCounter==1)
  {
    //if we're looking for the next gig, and we've found the next one
    //create the marquee and get outtahere.
    if (nextGig2=="nextgig")
    {            setMarquee(getMonth(a[0].substr(4,2)),a[0].substr(6,2),a[2],a[3],a[6],a[14]);
      return;
    }
    cellClass = "pf";
  }

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

// Write the cell of data with the job's date and time.
  document.write("<tr valign=top><td align='left' class='" + cellClass + "'><b>" + getDayOfWeek(a[0].substr(0,4),a[0].substr(4,2)-1,a[0].substr(6,2)) + "</b><br>" + a[0].substr(4,2) + "/" + a[0].substr(6,2) + "/" + a[0].substr(0,4) + "<br>"  + a[1] + "</td>");

  // Write the event.
  if (a[2]!="") {document.write("<td class='" + cellClass + "'><b>" + a[2] + "</b>");}

  // Write the location.
  if (a[3]!="") {document.write(" at <b>" + a[3] + "</b>");}

  // Write the addr1.
  if (a[4]!="") {document.write("<br>" + a[4]);}

  // Write the addr2.
  if (a[5]!="") {document.write("<br>" + a[5]);}

  // Write city, state, and zip.
  if (a[6]!="") {document.write("<br>" + a[6] + ", " + a[7] + " " + a[8]);}

  // write the phone number.
  if (a[9]!="") {document.write("<br>" + a[9]);}

  // Write the website link.
  if (pf2=="")
  {
    if (a[10]!="") 
    {
      document.write("<br><a href='http://" + a[11] + "' class='bodydtl' target='_new'>" + a[10] + "</a>");
    }
  }

// Write the map link.
  if (listType=="ML")
  {
// if we're not processing a printer-friendly request, continue.
    if (pf2=="")
    {
      if (a[12]!="") 
      {
        document.write("<br><a href='http://" + a[12] + "' class='bodydtl' target='_new'>Click here for a map.</a>");
      }
    }
  }

  // Write the note.
  if (a[13]!="") {document.write("<br></b><i>" + a[13] + "</b>");}

  // If not processing the Moonlighters or Lititz Community Band schedule 
  // or the Dixielanders,
  // (we're processing Doug's schedule), write the name of the group and 
  // the website link.
  if ((listType!="ML") & (listType!="LCB") & (listType!="DIXIELANDERS"))
  {
    if (a[14]!="")
    { 
      document.write("</td><td class='" + cellClass + "'>");
      if ((a[15]=="") || (pf2!=""))
      {
        document.write(a[14]);
      }
      else
      {
        document.write("<a href='http://" + a[15] + "' class='bodydtl' target='_new'>" + a[14] + "</a>");
      }
    }
  }
}

//
// Process all scheduled jobs by calling other functions to format the
// data.
// If parm listType is "ML", that means we're processing Moolighters jobs.
// If parm listType is "LCB", that means we're processing Lititz Community Band jobs.
// Otherwise, we're processing Doug's jobs.
// If parm nextGig is specified, that means we're being called from the
// home page, and we'll return a message including the next job which will
// appear in the scrolling marquee.

function writeSchedule(listType,nextGig,pf,alljobs)
{

  // Initialize the counter of jobs that we've processed.
  jobCounter = 0;
  rowShading = 0;
  // For some reason, the passed parm nextGig and listType2 can't be
  // accessed in the functions above.  So, I set new variables which can be.
  nextGig2   = nextGig;
  listType2  = listType;
  pf2        = pf;

  // If we're not processing 'all' jobs,
  // Call a function to get the current date in yyyymmdd format.
  // This will be used to eliminate old jobs from the schedule.
  if (alljobs=="alljobs")
  {
    currentDate = "20050101";
  }
  else
  {
    currentDate = getCurrentDate();
  }

// Set the row shading.  This will value the variable cellClass.
  setRowShading("Row");

  // If we're not processing the request to get the next gig (for display on
  // the home page), create the table header.
  if (nextGig!="nextgig")
  {

    if (listType!="DOUG")
    {
      // Write the table heading including Date/Time and Location.
      document.write("<tr align=left valign=top><th class='" + cellClass + "' align='left'>When</th><th class='" + cellClass + "'>What/Where</th></tr>");
    }
    else
    {
      // Write the table heading including Date/Time, Location, and Group.
      document.write("<tr align=left valign=top><th class='" + cellClass + "' align='left'>When</th><th class='" + cellClass + "'>What/Where</th><th class='" + cellClass + "'>Group</th></tr>");
    }
  }

  // Here is the format of the array that is used for each scheduled job.
  //  var a = new Array("2005mmdd","time","event","location","addr1","addr2","city","state","zip","phone","websiteDisplay","websiteLink","mapImage","note","Moonlighters Big Band","http://home.dejazzd.com/dlasala","WillDougPlay?");  writeRow(listType,a);

// 2008

  var a = new Array("20080205","6:00pm-9:00pm","Mardi Gras","Iron Hill Brewery","","781 Harrisburg Pike","Lancaster","PA","17603","","www.ironhillbrewery.com","www.ironhillbrewery.com","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20080205","6:30pm-8:00pm","Mardi Gras","Lutheran Church of the Good Shepherd","750 Greenfield Road","","Lancaster","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","N");  writeRow(listType,a);

//  var a = new Array("20080209","7:00pm-9:00pm","Valentines Day Dance","Highland Presbyterian Church","1801 Oregon Pike","","Lancaster","PA","17601","(717)569-2651","www.highlandpc.org","www.highlandpc.org","Images/HighlandPresbyterianChurch.gif","","Moonlighters Big Band","home.dejazzd.com/dlasala","Y");  writeRow(listType,a);

  var a = new Array("20080301","7:00pm-9:00pm","Concert","Arts Alive Program","Derry Presbyterian Church","248 East Derry Road","Hershey","PA","","717-533-9667","www.derrypres.org","www.derrypres.org","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&formtype=address&popflag=0&latitude=&longitude=&name=&phone=&level=&cat=&address=248+East+Derry+Road&city=hershey&state=pa&zipcode=","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20080412","7:00pm-9:30pm","Concert with Warwick High School Jazz Ensemble","Warwick High School Auditorium","301 West Orange Street","","Lititz","PA","17543","","www.warwick.k12.pa.us","www.warwick.k12.pa.us","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&formtype=address&popflag=0&latitude=&longitude=&name=&phone=&level=&cat=&address=301+West+Orange+Street&city=&state=&zipcode=17543","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20080517","7:00pm-10:00pm","USO Dance","Lancaster County Historical Society","230 North President Ave","","Lancaster","PA","","","www.lancasterhistory.org","lancasterhistory.org","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&address=230+North+President+Ave&city=Lancaster&state=pa&zipcode=","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

//  var a = new Array("20080523","6:30pm-8:00pm","Concert","Pleasant View Retirement Community","544 North Penryn Road","","Manheim","PA","","","www.pleasantviewretirement.com","www.pleasantviewretirement.com","www.mapquest.com/maps/map.adp?formtype=address&country=US&popflag=0&latitude=&longitude=&name=&phone=&level=&addtohistory=&cat=&address=544+North+Penryn+Road&city=manheim&state=PA&zipcode=","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20080524","8:00am-10:00am","Concert","Lititz Farmer's Market","Susquehanna Bancshares parking lot on Water Street","","Lititz","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20080607","7:00pm-9:00pm","Dance for Cocalico Area Alumni Association","Donneckers","100 North State Street","","Ephrata","PA","17522","","www.alumniclass.com/cocalico","www.alumniclass.com/cocalico","www.mapquest.com/maps/map.adp?formtype=address&addtohistory=&address=100%20N%20State%20St&city=Ephrata&state=PA&zipcode=17522%2d2254&country=US&geodiff=1","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20080629","5:00pm-7:00pm","Family Day in the Park","Lititz Springs Park","","","Lititz","PA","17543","","www.lititzspringspark.org","www.lititzspringspark.org","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=GeHQDwgyxJgWbn01J%2brXuA%3d%3d&longitude=GDp52LVp%2fYXHGFqaLv7nNg%3d%3d&name=Lititz%20Springs%20Park&country=US&address=N%20Broad%20St&city=Lititz&state=PA&zipcode=17543&phone=&spurl=0&&q=lititz%20springs%20park&qc=Parks","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20080704","7:00pm-9:00pm","Concert","Wilson Farm Park","","500 Lee Road","Chesterbrook","PA","19312","","www.tredyffrin.org","www.tredyffrin.org/departments/parks/programs/july4.aspx","","","Canal Street Hot 6","","Y");  writeRow(listType,a);

  var a = new Array("20080720","2:00pm-3:30pm","Concert","Terre Hill Days","","Terre Hill Community Memorial Park","Terre Hill","PA","","www.terrehilldays.com","www.terrehilldays.com","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20080802","7:00pm-9:00pm","Penryn Picnic","Picnic Grounds","North Penryn Road and Picnic Grove Road","","Penryn","PA","","","","","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=KgqMyg9ImhIPxMkYpNmWQQ%3d%3d&longitude=MMukSXSmXyNYPek49g7QtQ%3d%3d&name=Gibble%20Construction%20Inc&country=US&address=1513%20Picnic%20Grove%20Rd&city=Manheim&state=PA&zipcode=17545&phone=717%2d665%2d7858&spurl=0&&q=penryn%20picnic%20grounds&qc=Home%20Renovation","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20080803","6:00pm-8:00pm","Concert","Veterans Memorial Park","(behind the community pool)","","Manheim","PA","","","","","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=GT9r4tCIb%2bcrqETbiM7vDQ%3d%3d&longitude=z9LqQb3fp5R67CNl9MKP4w%3d%3d&name=Manheim%20Veterans%20Memorial%20Park&country=US&address=E%20Adele%20Ave&city=Manheim&state=PA&zipcode=17545&phone=&spurl=0&&q=veteran%27s%20memorial%20park&qc=Parks","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

//  var a = new Array("20080809","12:00pm-2:00pm","Private Party","Codorus State Park","","2600 Smith Station Road","Hanover","PA","17331","","www.dcnr.state.pa.us/stateParks/parks/codorus.aspx","www.dcnr.state.pa.us/stateParks/parks/codorus.aspx","","","Tom Pontz Quintet","","Y");  writeRow(listType,a);

  var a = new Array("20080810","6:30pm-7:30pm","Lititz Historical Society - Concert","American Legion Hall","","219 E. Main Street","Lititz","PA","17543","","","","","","Bob Troxell's Big Big Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20080816","6:00pm-8:30pm","Ice Cream Social","Lititz Springs Park","","","Lititz","PA","17543","","www.lititzspringspark.org","www.lititzspringspark.org","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=GeHQDwgyxJgWbn01J%2brXuA%3d%3d&longitude=GDp52LVp%2fYXHGFqaLv7nNg%3d%3d&name=Lititz%20Springs%20Park&country=US&address=N%20Broad%20St&city=Lititz&state=PA&zipcode=17543&phone=&spurl=0&&q=lititz%20springs%20park&qc=Parks","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

//  var a = new Array("20080801","6:00pm-9:00pm","Concert","York Fairgrounds","","","York","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20080907","6:30pm-8:30pm","Concert","Brunnerville United Methodist Church","","517 Pine Hill Road","Lititz","PA","17543","","","","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&address=517+Pine+Hill+Road&city=&state=&zipcode=17543","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20081019","2:00pm-5:30pm","Tri-State Jazz Society - Concert","American Legion Hall","","11 S Railroad Ave","Brooklawn","NJ","08030","","www.tristatejazz.org","www.tristatejazz.org","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20081023","8:00pm-9:30pm","Concert","1255th Combat Engineers Reunion","Best Western Eden Resort","222 Eden Road","Lancaster","PA","17601","","","","www.mapquest.com/maps?city=Lancaster&state=PA&address=222+Eden+Road","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20081115","tbd","Dance","American Legion","","","Ephrata","PA","","","","","","","Bob Troxell's Big Big Jazz Band","","Y");  writeRow(listType,a);

// 2009

  var a = new Array("20090213","7:30pm-9:30pm","Concert/Dance","Pleasant View Retirement Community","544 North Penryn Road","","Manheim","PA","","","www.pleasantviewretirement.com","www.pleasantviewretirement.com","www.mapquest.com/maps/map.adp?formtype=address&country=US&popflag=0&latitude=&longitude=&name=&phone=&level=&addtohistory=&cat=&address=544+North+Penryn+Road&city=manheim&state=PA&zipcode=","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);


  var a = new Array("20090219","7:00pm-8:00pm","Concert","Lititz Public Library","","","Lititz","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20090223","6:30pm-7:15pm","Concert","United Zion Retirement Community","","","Lititz","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20090224","5:00pm-7:00pm","Concert","Homestead Village","","","Rohrerstown","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20090313","7:00pm-9:00pm","Cool Jazz and Hot Glass","The North Star of Lititz","","521 East Main Street","Lititz","PA","17543","717-625-1945","thenorthstaroflititzstudioandgallery.com","thenorthstaroflititzstudioandgallery.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090321","8:30pm-11:30pm","Swing Dance","The Green Door Dance Studio","","14 E. North Street","Carlisle","PA","","717-243-6979","centralpaswingdance.org","centralpaswingdance.org","","","Ben Mauger Swing Band","","Y");  writeRow(listType,a);

  var a = new Array("20090410","7:00pm-9:00pm","2nd Friday","Photographer's Corner","","64 N Broad St.","Lititz","PA","17543","717-626-1436","www.thephotographerscorner.com","www.thephotographerscorner.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090418","7:00pm-9:30pm","Concert with Warwick High School Jazz Ensemble","Warwick High School Auditorium","301 West Orange Street","","Lititz","PA","17543","","www.warwick.k12.pa.us","www.warwick.k12.pa.us","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&formtype=address&popflag=0&latitude=&longitude=&name=&phone=&level=&cat=&address=301+West+Orange+Street&city=&state=&zipcode=17543","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20090425","<br>1pm","Parade","American Spirit America Parade","","","Lancaster","PA","","","www.theamericanspiritparade.org","www.theamericanspiritparade.org","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20090425","7:00pm-9:00pm","Dance","Highland Presbyterian Church","1801 Oregon Pike","","Lancaster","PA","17601","(717)569-2651","www.highlandpc.org","www.highlandpc.org","Images/HighlandPresbyterianChurch.gif","","Moonlighters Big Band","home.dejazzd.com/dlasala","Y");  writeRow(listType,a);

  var a = new Array("20090503","10:15-11:30","Church Service","St. John's Center","","","Terre Hill","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20090508","7:00pm-9:00pm","Cool Jazz and Hot Glass","The North Star of Lititz","","521 East Main Street","Lititz","PA","17543","717-625-1945","thenorthstaroflititzstudioandgallery.com","thenorthstaroflititzstudioandgallery.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090516","7:00pm-10:00pm","USO Dance","Lancaster County Historical Society","230 North President Ave","","Lancaster","PA","","","www.lancasterhistory.org","lancasterhistory.org","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&address=230+North+President+Ave&city=Lancaster&state=pa&zipcode=","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20090525","8:00pm-11:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090601","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090608","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090612","7:00pm-9:00pm","2nd Friday","Photographer's Corner","","64 N Broad St.","Lititz","PA","17543","717-626-1436","www.thephotographerscorner.com","www.thephotographerscorner.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090615","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090620","7:00pm-10:00pm","Lititz Historical Society - Concert","","","219 E. Main Street","Lititz","PA","17543","","","","","","Maryann Garrett, Chuck Oettel and Friends","","Y");  writeRow(listType,a);

  var a = new Array("20090622","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090624","4:30pm-6:00pm","Lancaster Convention Center","","","","Lancaster","PA","17601","","","","","","Combo (w/Troy Isaak, Dave Sheaffer, Dave Santana)","","Y");  writeRow(listType,a);

  var a = new Array("20090627","1:15pm-2:15pm<br>7:00pm-8:00pm<br>9:30pm-10:30pm","Hot Steamed Jazz Festival","Essex Steam Train","One Railroad Avenue","","Essex","CT","06426","(860) 767-0103","www.hotsteamedjazz.com","www.hotsteamedjazz.com","www.mapquest.com/maps?city=Essex&state=CT&address=One+Railroad+Avenue","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

//  var a = new Array("20090628","<b><i>(not confirmed)</i></b><br>5:00pm-7:00pm","Family Day in the Park","Lititz Springs Park <b><i>(not confirmed)</i></b>","","","Lititz","PA","17543","","www.lititzspringspark.org","www.lititzspringspark.org","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=GeHQDwgyxJgWbn01J%2brXuA%3d%3d&longitude=GDp52LVp%2fYXHGFqaLv7nNg%3d%3d&name=Lititz%20Springs%20Park&country=US&address=N%20Broad%20St&city=Lititz&state=PA&zipcode=17543&phone=&spurl=0&&q=lititz%20springs%20park&qc=Parks","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

//  var a = new Array("20090702","2:00pm-2:45pm","Concert","United Zion Retirement Community","","","Lititz","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20090704","7:00pm-9:00pm","Concert","Wilson Farm Park","","500 Lee Road","Chesterbrook","PA","19312","","www.tredyffrin.org","www.tredyffrin.org/departments/parks/programs/july4.aspx","","","Canal Street Hot 7","","Y");  writeRow(listType,a);

  var a = new Array("20090706","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090710","7:00pm-9:00pm","2nd Friday","Photographer's Corner","","64 N Broad St.","Lititz","PA","17543","717-626-1436","www.thephotographerscorner.com","www.thephotographerscorner.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090712","tbd","Jazz Worship Services","First United Methodist Church","29 East Walnut Street","","Lancaster","PA","17602","717-394-7231","www.engagegodfirst.org","www.engagegodfirst.org","","","Dixieland Connection","","Y");  writeRow(listType,a);

  var a = new Array("20090713","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090717","7:15pm-8:45pm","Dance","Homestead Village","","1800 Village Circle","Rohrerstown","PA","17604","717-397-4831","www.homesteadvillage.org","www.homesteadvillage.org","www.mapquest.com/maps?city=Lancaster&state=PA&address=1800+Village+Cir&zipcode=17603-2376&country=US&latitude=40.04754&longitude=-76.351899&geocode=ADDRESS","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20090720","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090723","7:00pm-9:00pm","Uncommon Pizza","","","616 Paxton Place, Suite 104","Lititz","PA","17543","717-569-0906","uncommonpizza.com","uncommonpizza.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090727","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090731","6:00pm-8:00pm","Bethlehem Musikfest","","","","Bethlehem","PA","","(610) 332-1300","www.musikfest.org","www.musikfest.org","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20090801","7:00pm-9:00pm","Penryn Picnic","Picnic Grounds","North Penryn Road and Picnic Grove Road","","Penryn","PA","","","","","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=KgqMyg9ImhIPxMkYpNmWQQ%3d%3d&longitude=MMukSXSmXyNYPek49g7QtQ%3d%3d&name=Gibble%20Construction%20Inc&country=US&address=1513%20Picnic%20Grove%20Rd&city=Manheim&state=PA&zipcode=17545&phone=717%2d665%2d7858&spurl=0&&q=penryn%20picnic%20grounds&qc=Home%20Renovation","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20090802","6:00pm-8:00pm","Concert","Veterans Memorial Park","(behind the community pool)","","Manheim","PA","","","","","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=GT9r4tCIb%2bcrqETbiM7vDQ%3d%3d&longitude=z9LqQb3fp5R67CNl9MKP4w%3d%3d&name=Manheim%20Veterans%20Memorial%20Park&country=US&address=E%20Adele%20Ave&city=Manheim&state=PA&zipcode=17545&phone=&spurl=0&&q=veteran%27s%20memorial%20park&qc=Parks","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20090803","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090810","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);



  var a = new Array("20090814","7:00pm-9:00pm","2nd Friday","Photographer's Corner","","64 N Broad St.","Lititz","PA","17543","717-626-1436","www.thephotographerscorner.com","www.thephotographerscorner.com","","","Solo act","","Y");  writeRow(listType,a);

//  var a = new Array("20090814","7:00pm-9:00pm","2nd Friday","tbd","","","Lititz","PA","17543","","","","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090815","9:30am-11:30am","Concert at the Creative Cafe","Lititz Public Library","","651 Kissel Hill Rd","Lititz","PA","17543","717-626-2255","www.lititzlibrary.org","www.lititzlibrary.org","","","Solo Act","","Y");  writeRow(listType,a);

  var a = new Array("20090817","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

//  var a = new Array("20090821","7:00pm-10:00pm","Belvedere Inn","","","402 North Queen Street","Lancaster","PA","","(717) 394-2422","www.belvedereinn.biz","www.belvedereinn.biz","","","Jazz Trio with Tom Pontz and Dave Sheaffer","","Y");  writeRow(listType,a);

  var a = new Array("20090824","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090831","7:00pm-10:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090905","11:00am-1:00pm","Fall Antique Show","Lititz Springs Park","","","Lititz","PA","","","www.lititzspringspark.org","www.lititzspringspark.org","","","Solo Act","","Y");  writeRow(listType,a);

  var a = new Array("20090911","7:00pm-9:00pm","Cool Jazz and Hot Glass","The North Star of Lititz","","521 East Main Street","Lititz","PA","17543","717-625-1945","thenorthstaroflititzstudioandgallery.com","thenorthstaroflititzstudioandgallery.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090912","2:00pm-4:00pm","Concert","Potomic River Jazz Club Picnic","Blob's Park","8024 Max Blobs Park Rd","Jessup","MD","20794","(410) 799-7130","www.prjc.org","www.prjc.org","","","Ben Mauger Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20090913","6:30pm-8:30pm","Concert","Brunnerville United Methodist Church","","517 Pine Hill Road","Lititz","PA","17543","","","","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&address=517+Pine+Hill+Road&city=&state=&zipcode=17543","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20090914","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090919","12:30pm-1:30pm","Concert","Homestead Village","","1800 Village Circle","Rohrerstown","PA","17604","717-397-4831","www.homesteadvillage.org","www.homesteadvillage.org","www.mapquest.com/maps?city=Lancaster&state=PA&address=1800+Village+Cir&zipcode=17603-2376&country=US&latitude=40.04754&longitude=-76.351899&geocode=ADDRESS","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

//  var a = new Array("20090921","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20090928","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091005","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091006","7:00pm-8:00pm","Concert","Willow Valley Manor North","","","Lancaster","PA","","","www.willowvalleyretirement.com/WillowValleyRetirement/north.aspx","www.willowvalleyretirement.com/WillowValleyRetirement/north.aspx","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20091010","6:00pm-8:00pm","Historical Society Benefit","","","","Elizabethville","PA","","","","","","","Ben Mauger Quartet","","Y");  writeRow(listType,a);

  var a = new Array("20091012","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091019","8:30pm-10:30pm","Hotel Hershey","","","Hotel Road","Hershey","PA","17033","","","","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20091024","7:00pm-9:00pm","Concert","Cathedral Village","","600 East Cathedral Road","Philadelphia","PA","19128","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20091025","6:00pm-8:00pm","Dance","EARS","Ephrata Rec Center","130 South Academy Drive","Ephrata","PA","17522","717-738-1167","www.ephratarec.com","www.ephratarec.com","www.mapquest.com/maps?city=Ephrata&state=PA&address=130+South+Academy+Drive","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20091026","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091102","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

//  var a = new Array("20091109","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091114","5:00pm-9:00pm","Private Event","Hamilton Club","","","Lancaster","PA","19601","","","","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20091116","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091123","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091124","7:00pm-8:00pm","Concert","Willow Valley Manor","","","Lancaster","PA","","","www.willowvalleyretirement.com","www.willowvalleyretirement.com","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20091130","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091205","10:00am-?","Hometown Christmas","Teddy Bear Emporium (outside)","","47 East Main Street","Lititz","PA","17543","717-626-8334","www.teddybearemp.com","www.teddybearemp.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091207","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091210","7:00pm-8:00pm","Concert","Lititz Public Library","","651 Kissel Hill Rd","Lititz","PA","17543","717-626-2255","www.lititzlibrary.org","www.lititzlibrary.org","","","Solo Act","","Y");  writeRow(listType,a);

  var a = new Array("20091211","6:00pm-9:00pm","2nd Friday","Destination Jewelry","","25 East Main Street","Lititz","PA","17543","717-626-5002","","","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091212","7:00pm-10:00pm","Roaring 20's Party","","45 West Main Street","","Elizabethville","PA","17023","717-599-1369","","","","","Ben Mauger Quartet","","Y");  writeRow(listType,a);

  var a = new Array("20091213","2:00pm-5:30pm","Tri-State Jazz Society - Concert","Saint Andrews United Methodist Church","327 Marlton Pike West (Route 70)","","Cherry Hill","NJ","08002","","www.tristatejazz.org","www.tristatejazz.org","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20091214","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091221","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20091228","6:30pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

//2010

  var a = new Array("20100104","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100111","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100116","8:00pm-10:00pm","Private Party","Media Heights Country Club","","402 Golf Road","Lancaster","PA","17602","","www.meadiaheightsgolf.com","www.meadiaheightsgolf.com","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);
  var a = new Array("20100118","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100125","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);


  var a = new Array("20100201","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100208","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100212","6:00pm-9:00pm","2nd Friday","Destination Jewelry","","25 East Main Street","Lititz","PA","17543","717-626-5002","","","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100213","11:30am-3:00pm","Fire and Ice Festival","Destination Jewelry","","25 East Main Street","Lititz","PA","17543","717-626-5002","","","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100215","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100216","11:30am-1:00pm","Mardi Gras","HACC","","1641 Old Philadelphia Pike","Lancaster","PA","","","","","","","Dixieland Trio with Tom Pontz and Bruce Campbell","","Y");  writeRow(listType,a);
  var a = new Array("20100216","5:00pm-7:00pm","Mardi Gras","Homestead Village","","","Rohrerstown","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  var a = new Array("20100219","7:00pm-10:00pm","Concert","Hotel Bethlehem","437 Main Street","","Bethlehem","PA","18018","(610) 332-1300","www.hotelbethlehem.com","www.hotelbethlehem.com","","","Mike Kuehn, Ben Mauger, and friends (dixieland)","","Y");  writeRow(listType,a);
  var a = new Array("20100222","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100223","7:00pm-8:00pm","Concert","Willow Valley Manor","","","Lancaster","PA","","","www.willowvalleyretirement.com","www.willowvalleyretirement.com","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);
  var a = new Array("20100227","7:00pm-8:00pm","Concert/Dance","Pleasant View Retirement Community","544 North Penryn Road","","Manheim","PA","","","www.pleasantviewretirement.com","www.pleasantviewretirement.com","www.mapquest.com/maps/map.adp?formtype=address&country=US&popflag=0&latitude=&longitude=&name=&phone=&level=&addtohistory=&cat=&address=544+North+Penryn+Road&city=manheim&state=PA&zipcode=","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20100301","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100308","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100315","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100322","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100329","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);


  var a = new Array("20100405","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100410","7:00pm-9:00pm","Dance","Highland Presbyterian Church","1801 Oregon Pike","","Lancaster","PA","17601","(717)569-2651","www.highlandpc.org","www.highlandpc.org","Images/HighlandPresbyterianChurch.gif","","Moonlighters Big Band","home.dejazzd.com/dlasala","Y");  writeRow(listType,a);
  var a = new Array("20100412","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100417","7:00pm-9:30pm","Concert with Warwick High School Jazz Ensemble","Warwick High School Auditorium","301 West Orange Street","","Lititz","PA","17543","","www.warwick.k12.pa.us","www.warwick.k12.pa.us","www.mapquest.com/maps/map.adp?searchtype=address&country=US&addtohistory=&searchtab=home&formtype=address&popflag=0&latitude=&longitude=&name=&phone=&level=&cat=&address=301+West+Orange+Street&city=&state=&zipcode=17543","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);
  var a = new Array("20100419","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100426","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

  var a = new Array("20100503","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100510","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100516","2:00pm-4:00pm","Concert","Cape May Traditional Jazz Society","VFW","419 Congress Street","Cape May","NJ","08204","609-884-7961","www.capemaytraditionaljazzsociety.com","www.capemaytraditionaljazzsociety.com","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);
  var a = new Array("20100517","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);
  var a = new Array("20100522","11:00am-1:00pm","American Cancer Society Relay For Life","Red Land High School","560 Fishing Creek Road","","Lewisberry","PA","17339","(717) 938-6561","","","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);
  var a = new Array("20100531","6:00pm-9:00pm","La Piazza Italian Restaurant and Sports Bar","","","800 Lititz Pike","Lititz","PA","17543","717-625-1222","LaPiazzaLititz.com","LaPiazzaLititz.com","","","Solo act","","Y");  writeRow(listType,a);

 var a = new Array("20100608","7:00pm-8:00pm","Concert","Willow Valley Manor","","","Lancaster","PA","","","www.willowvalleyretirement.com","www.willowvalleyretirement.com","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);

  var a = new Array("20100619","5:30pm-6:30pm","Concert","Ned Smith Center for Nature and Art","","176 Water Company Road","Millersburg","PA","17061","","","","","","Ben Mauger's Vintage Jazz Band","","Y");  writeRow(listType,a);


  var a = new Array("20100717","7:00pm-10:00pm","Rendezvous at Twilight Garden Party","Lititz Historical Society","","145 East Main Street","Lititz","PA","17543","","","","","","Maryann Garrett, Chuck Oettel and Friends","","Y");  writeRow(listType,a);


  var a = new Array("20100807","7:00pm-9:00pm","Penryn Picnic","Picnic Grounds","North Penryn Road and Picnic Grove Road","","Penryn","PA","","","","","www.mapquest.com/maps/map.adp?latlongtype=internal&addtohistory=&latitude=KgqMyg9ImhIPxMkYpNmWQQ%3d%3d&longitude=MMukSXSmXyNYPek49g7QtQ%3d%3d&name=Gibble%20Construction%20Inc&country=US&address=1513%20Picnic%20Grove%20Rd&city=Manheim&state=PA&zipcode=17545&phone=717%2d665%2d7858&spurl=0&&q=penryn%20picnic%20grounds&qc=Home%20Renovation","","Moonlighters Big Band","www.moonlightersbigband.org","Y");  writeRow(listType,a);

  var a = new Array("20101113","7:00pm-?:00pm","Private Party","Matthew 25","","","Lititz","PA","","","","","","","Dixielanders","home.dejazzd.com/dlasala/dixielanders","Y");  writeRow(listType,a);

  // Here is the format of the array that is used for each scheduled job.
  //  var a = new Array("2005mmdd","time","event","location","addr1","addr2","city","state","zip","phone","websiteDisplay","websiteLink","mapImage","note","Moonlighters Big Band","www.moonlightersbigband.org","WillDougPlay?");  writeRow(listType,a);


}

