//** You must set the following two variables:  behavior  and   message

//*****************************************************************************************
//* set the behavior variable to 1 for scrolling off the page and reappearing             *
//* set the behavior variable to 2 for scrolling back and forth (narrow messages only)    *
//* set the behavior variable to 3 for sliding and then stays (narrow messages only) *
//*****************************************************************************************
  var behavior = 3
//*********************************

//****************************************************************************
//* the msg* variables must contain the message between quotes or just "" if *
//* no message is to be displayed.                                           *
//* There are 5 msg* variables which will be glued together in the program.  *
//* the unused msg* variables should contain ""                              *
//****************************************************************************

  var msg1 = displayUntil("2010/3/25","This year's Naturewalk will be on April 25. <a href='naturewalk2010'><u>Click here</u></a> for further details and to make your reservation.&nbsp;&nbsp;"+weeksUntil("2010/4/25","<b>Only "," left.</b><br>",""),"")

 var msg2 = displayUntil("2009/5/15",daysUntil("2009/5/15","","<b> to the deadline for the submission of articles for the Holland-America Club of Dallas Newsletter:  Tulip Talk. <br> Please submit to Samya Mijnsbergen or Alice de Haan at <a href='mailto:tt@hollandamericaclub.com'> tt@hollandamericaclub.com </a><br>The Deadline is <font color=red>Friday May 15 at 8.00 pm</font>. The Tulip Talk will be published and mailed in the first week of June. <br></b><br>","<br>"),"")

  var msg3 = displayUntil("2010/7/25","The pictures taken at the World Cup Watch Party have been posted, click under Slideshows at the bottom left of this page.<br>","")

  var msg4 = displayUntil("2009/5/16","On Saturday May 16, 2009 the HAC will celebrate May Fest.  You can get further details by <a href='meifeest2009'>clicking here</a>."+
weeksUntil("2009/5/16","<b><br>Only "," left until the event.</b>","")+displayUntil("2009/5/10",daysUntil("2009/5/10","<b> However, only "," left until the reservation deadline.  Please reserve now as indicated on the web page!</b><br>",""),""),"","")

  var msg5 = displayUntil("2010/3/18","We just received a new powerpoint presentation 'Molentocht_Alblasserwaard'.  It has been posted at the bottom right of this page, enjoy!","")

//*********************************

//************************no changes required below************************

var message = msg1 + msg2 + msg3 + msg4 + msg5  // catenate the message parts
if (message.length != 0) {                        // check if there is a message, exit if not
   if (behavior == 1) {var alt = ""}                       //if wrapping is required          
   if (behavior == 2) {var alt = " behavior=alternate"}    //if back and forth is required
   if (behavior == 3) {var alt = " behavior=slide"} //if limited wrapping
with (document) {
   write("<marquee bgcolor=aqua" + alt + ">")// init. the marquee HTML code
   write("<b>" + message + "</b>")     // bold the message and write it
   write("</marquee>")                 // close the HTML marquee code
   }
}
