<!--  // Here we will dynamically display the news for the week!

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000) year+=1900

var day=mydate.getDay()
if (day == 0) day = 7  // Sunday is 7, Monday is 1.

var month=mydate.getMonth()+1
if (month<10) month="0"+month  // format the month as 2 digit txt.

var daym=mydate.getDate()      // day of month (actually, the date: the 25th, etc)
var fdaym = daym;	       	   // formatted day of month.
if (fdaym<10) fdaym="0"+daym   // format it to 2 digit (txt) for display.

var fontstart = '<font face=arial size=3>'
var font2start = '<font face=arial size=2>'
var fontend = '</font>'

var yr = "" + year			// ie-> 2001
yr=yr.substring(2,4)        // last 2 digits of the year.
							// This is Row1: Todays News.
document.write("<table border=0 width=\"90%\" align=\"center\" cellspacing=0 cellpadding=2>")
document.write("<tr bgcolor=\"#CC6600\" background=\"dkorange.gif\">")
document.write("<td colspan=\"4\">")
document.write("<div align=\"center\">")
document.write("<font color=\"#000000\">")
document.write("<B>Today\: "+month+"."+fdaym+"."+yr+"</B>")
document.write("</font>")
document.write("</div>")
document.write("</td>")
document.write("</tr>")

document.write("<tr bgcolor=\"#000000\" background=\"black.gif\"><td colspan=\"4\"><div align=\"center\">")

if (cdate[daym] && cdate[daym]!="undefined" && cdate[daym] != "")
{
  document.write("<b><u>"+cname[daym]+"</u></b> - ")
  document.write("**<B>"+cdescription[daym]+"</B>") 
  document.write("<BR><BR>")
  //if (dailylink[daym])
  //   document.write(font2start+"<a href='"+dailylink[daym]+"'>[ more information ]</a>"+fontend)
}     
else if (weeklyinfo[day] && weeklyinfo[day] != "undefined")
{  
   document.write("<B>"+weeklyinfo[day]+"</B>") 
   document.write("<BR><BR>")
   if (weeklylink[day])
      document.write(font2start+"<a href='"+weeklylink[day]+"'>[ more information ]</a>"+fontend)
}
else 
 {
   document.write("<B>No News for Today</B><BR><BR>")
 }

document.write("</div>")
document.write("</td>")
document.write("</tr>")
document.write('<hr width="85%">')
document.write("<tr><td colspan=\"4\">&nbsp;&nbsp;</td></tr>")
document.write("<tr bgcolor=\"#CC6600\" background=\"dkorange.gif\"><td colspan=\"4\"><div align='center'>")
document.write("<font color=\"#000000\"><b>This Week:</b>")

nextDate = new Date()

for (var x=1; x<6;x++)	// Display next 5 dates: 5 more rows.
{                      
// updated 2-19-01 for accurate forward dating


                   // This increments the date by one day.
 nextDate = new Date( nextDate.getTime() + 60*60*24*1000*1)
 daym     = nextDate.getDate()
 day      = nextDate.getDay()
 if (day == 0) day = 7  // Sunday is 7, Monday is 1.

 if (day == 1)
     fday = "Mon"
 else if (day == 2)
     fday = "Tue"
 else if (day == 3)
 	 fday = "Wed"
 else if (day == 4)
  	 fday = "Thu"
 else if (day == 5)
 	 fday = "Fri"
 else if (day == 6)  	 	 	 
 	 fday = "Sat"
 else if (day == 7)
 	 fday = "Sun"	 

 fdaym = daym		    // update the output day value.
 if (daym<10) 
     fdaym="0"+fdaym    // add zero for formatting
 
 month = nextDate.getMonth() + 1     // since getMonth() returns 0 for january, add 1.
 if (month<10) 
     month="0"+month    			  // format the month.

 document.write("<tr bgcolor=\"#000000\" background=\"black.gif\">")  // Table row below "Todays's News".
 document.write("<div align=\"center\">")
 document.write("<td valign=top>")  	          // First column in this row: date
 document.write("<b><div align=right><code><font color=#00CC00>" + fday + " </font></code></div></b>")
// document.write("<font size=2 face=arial color=#00CC00>")
// document.write(month+".")
// document.write(fdaym)
// document.write("."+yr+"</font>");
 document.write("</td>")
 document.write("<td valign=top><img src=arrow.gif></td>")		 	   
                        			   // second column: news title
 document.write("<td>");
// document.write("<B>&nbsp;->&nbsp;")

 if (cdate[daym])
   document.write("<font size=2 face=arial><b><u>"+cname[daym]+"</u></b> - "+cdescription[daym]+"</font>")  
 else if (weeklyinfo[day])
   document.write("<font size=2 face=arial>"+weeklyinfo[day]+"</font>")
 else 
    document.write("<font size=2 face=arial>No News.</font>") 
    
 document.write("</td>")

                       // Third column: Info Link
 document.write("<td nowrap>")
 if(dailylink[daym]) 
 {
    document.write(font2start+"<a href=\""+dailylink[daym]+"\">[ more ]</a>")
    document.write(fontend);
 }
 else if (weeklylink[day])
 {
    document.write(font2start+"<a href=\""+weeklylink[day]+"\">[ more ]</a>")
    document.write(fontend);
 }
 else  
 {
   document.write("&nbsp")
   document.write("<img src=\"transparent.gif\" height=1 width=1>")
 }
 document.write("</b></td>")
 document.write("</div>")
 document.write("</tr>")
 
}  //end the for loop.
document.write("<tr><td colspan=4 background=black.gif>&nbsp;</td></tr>")
document.write("</table>")

// -->

