// rivercare
// function to display the picture of the week

function displayPic ()
   {
   var maxnumberofpics = 25;
   var daystomonth = new Array (0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334);
   now = new Date();
   dayofyear = daystomonth[now.getMonth()] + now.getDate();
   weekofyear = (dayofyear+1)/7;
   n = Math.floor(weekofyear+0.99);
   if (n < 1) n = 1;
   while (n > maxnumberofpics) n = n - maxnumberofpics;
   locname = 'activities/weeklypic/displaypic.test.html?' + n;
   featurestr = 'menubar=no,toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes,width=600,height=600';
   var w = window.open (locname, "picwin", featurestr);
   }
