
var bgcol_header="#DDDDDD" //"#e3e6aD"
var bgcol_body="#D8DBC8" //"#f8f8c3"

var theMonths= new Array("March 2009","April","May", "June")
numPrograms=theMonths.length

//Incluce ONLY dates, as this is used to calculate next meeting
var theDates = new Array(
"Wednesday, March 18, 2009",
"Wednesday, April 15, 2009",
"Wednesday, May 20, 2009",
"Wednesday, June 17, 2009"
)

//alert(theDates[0]);

var theSpeakers = new Array(
"Bob Mulvihill",
"Kevin Karlson",
"Dick Bingham",
"The DOS Membership"
)

var theTitles = new Array(
"Breeding Ecology of the Louisiana Waterthrush",
"Shorebirds: A Different Approach to Field ID",
"Birds of New Zealand and Australia",
"Annual DOS Summer Picnic"
)

var theText = new Array(
"Bob Mulvihill from the Powdermill Bird Banding Lab at the Carnegie Museum of Natural History will present some of the results of  his long-term banding study of the Lousiana Waterthrush breeding on the grounds of Powdermill.  He will also discuss how the PA Breeding Bird Atlas results for Louisiana Waterthrush may help atlassers in Delaware in gaining a better understanding of this species.",
"Kevin will cover a bit of the natural history of shorebirds and explain a different, more complete approach to shorebird ID, as presented in his best-selling book, \"The Shorebird Guide\". He will finish up with cutting-edge information for separating such species as dowitchers, willets, and peeps.  Kevin's book will be available for purchasing and signing at the meeting.",
"Take a photographic journey with Dick Bingham to visit the birds from \"Down Under,\" focusing on New Zealand's South Island and New South Wales, Australia   Birds highlighted will range from the cute (New Zealand Robin) to the truly magnificent (Royal Albatross) in New Zealand and from black and white (Pied Currawong) to truly colorful (Lorikeet) in Australia. What new birds will you learn about?  <br><br>DOS member Dick Bingham is a world traveler, avid photographer, and the Director of Technology Planning at DuPont.",
"The annual picnic will be held at Flint Woods Preserve in Centerville, Delaware, beginning at 5:30 pm and lasting until dusk.  Hot dogs and hamburgers will be provided, and a grill available for use if you choose to bring your own food to grill.  Please bring a dish to share with the group and a lawn chair to sit in.  Drinks and dessert will be provided.<br><br>After dinner, an awards ceremony will be held to celebrate the success of the Third Annual Delaware Bird-A-Thon and to honor sponsors, supporters, and participants. Following the ceremony we will take a hike through the preserve to listen and look for woodland breeding birds like Wood Thrush, Scarlet Tanager, Ovenbird, and Indigo Bunting."
)

//======================
//  Functions
//======================

function showProg(tab) {
	hideallProg();
    if (browser == ie) {document.all[tab].style.display = "block"}
    else if (document.getElementById) {document.getElementById(tab).style.display = "block";}
    else if (browser == netscape) {document.layers[tab].display = "block"; }
    }
function hideProg(tab) {
    if (browser == ie) {document.all[tab].style.display = "none";}
    else if (document.getElementById) {document.getElementById(tab).style.display = "none";}
    else if (browser == netscape) {document.layers[tab].display = "none"; }
    }

function hideallProg() {
		//alert(numPrograms)
		for (var i = 0; i < numPrograms; i++) {
				
				theTab="tab"+i
				hideProg(theTab);
		}
		hideProg("alltab")
}

function writeContent() {
//	if(browser==ie){
	if(1){
		// Write content for the single tables
		//a//lert(numPrograms);
		for(i=0;i<numPrograms;i++){
			document.write("<table id='tab"+i+"' border=0 cellspacing=0 cellpadding=0 style=\"width:550px\" align='center' class='dostext'>")
			//ROW 1
			document.write("<tr><td><table style=\"width:550px\" cellpadding=2><tr>")
			for(j=0;j<theMonths.length;j++){
				document.write("<td height='30ems'><a href='#' class='doslink' onClick='showProg(\"tab"+j+"\")'>")
				if(j==i)document.write("<font color='#ee0055'>")
				else document.write("<font color='#0000FF'>")
				document.write(theMonths[j]+"</font></a></td>")
				document.write("<td width=5 halign='center'>|</td>")
			}
			document.write("<td><a href='#' onClick='showProg(\"alltab\")'><font color='#0000FF'><b>Show All</b></font></a></td>")
			document.write("</tr></table></td></tr>")
			document.write("<tr><td bgcolor='"+bgcol_header+"'><i>"+theDates[i]+"</i></td></tr>")
			document.write("<tr><td bgcolor='"+bgcol_body+"'><br><b>"+theSpeakers[i]+"<br><u>")
			document.write("<font color='#0000FF'>"+theTitles[i]+"</font></u></font></b></td></tr>")
			document.write("<tr><td bgcolor='"+bgcol_body+"'>"+theText[i]+"</td></tr></table>")
		}
	}
		// Write content for the composite table
		document.write("<table id='alltab' cellspacing=0 cellpadding=0 width='500px' align='center' class='dostext'>")
		//ROW 1
		document.write("<tr><td>")
		document.write("<table cellpadding=2><tr><td height='30ems'><a href='#' onClick='showProg(\"tab0\")'><font color='#0000FF'><b>[Show By Month]</b></font></a></td></tr></table>")
		document.write("</td></tr>")

		for(i=0;i<numPrograms;i++){
			document.write("<tr><td bgcolor='"+bgcol_header+"'><i>"+theDates[i]+"</i></font></td></tr>")
			document.write("<tr><td bgcolor='"+bgcol_body+"'><br><b>"+theSpeakers[i]+"<br><u>")
			document.write("<font color='#0000FF'>"+theTitles[i]+"</font></u></font></b></td></tr>")
			document.write("<tr><td bgcolor='"+bgcol_body+"'>"+theText[i]+"</td></tr>")
		}
		document.write("</table>")
		document.write("<hr align=center width='75%'>")
	//alert("1")
	hideallProg();
}


