// type1events.js
// type1 events are the main events for the calendar that must be kept up to date
// remember  january is 0 february 1, etc to december is month 11
// events have the form type1events[month][date] += 'event' 
// quotes matter alot!
// If you must quote a url, then be sure to use single quotes to quote the larger string 
// if you use contractions (like don't ) you must use double quotes to quote the larger string!
// 
//  events are stored as elements in javascript arrays with two dimensions [month][date]
//  There are four separate arrays so that different classes of events can be kept separate
//  
//   type1events should be the ongoing changing events
//   type2events and type three events may or may not be used  I have typically included moon phases in type2events
//
//   type3events will probably not be used, but if there are special things to acknowledge, say some mycologists birthday they might go there
//
//  events must all be on one line or if continued on additional lines each line  must end with the \ character have the 
//  like the extrahead variable just below.
//
// images can be included in events by putting the image url into the event.
// 


// this string extrahead gets put at the top of the calendar   you can put all kinds of stuff in it.
extrahead += 'NorthWest Mushroomer\'s Association Calendar<br>\
<img src=images/logo.jpg> \
<br><a href="index.htm">Home</a> | <a href="links.htm">links</a>\
 | <A HREF="./newsletters/index.htm">Newsletters</A>\
 | <a href="contact.htm">Contact&nbsp;Us</a>\
 | <a href="http://www.northwestmushroomers.org/NMA_paypal.htm">Join or Renew </A><br>'





if(year!=inityear){
for (var i=0;i<12;i++)
    {for (var j=0;j<32;j++)
       {type1events[i][j] = ""
       }
    }
    }


// this function calculates the second thursday of the month for all given a year
function set_type1events (year){
for(var i=3;i<6;i++){
var lookupdate = new Date(year,i,1);
var lookupday = lookupdate.getDay();
secondthursday= 8 +((7+4)-lookupday)%7
type1events[i][secondthursday] += 'Regular Meeting Day<br>7:30 PM'
}
for (var i=8;i<11;i++){
var lookupdate = new Date(year,i,1);
var lookupday = lookupdate.getDay();
// these three lines should make it the thursday after the second wednesday.
secondwednesday=8+((7+3)-lookupday)%7
meetingdate=secondwednesday+1
type1events[i][meetingdate] += 'Regular Meeting Day<br>7:30 PM'


//secondthursday= 8 +((7+4)-lookupday)%7
//type1events[i][secondthursday] += '<font size=+1>Regular Meeting Day<br>7 PM</font>'
}


//     REMEMBER  Months start with January as 0, so September is 8 and October is 9

//type1events[3][10] +='Nancy Smith Weber  <br> Mushroom Guide book author '

//  To add an event, duplicate a line like the one below.
//  Be careful with the use of quotes and apostrophes
//  Mushroomer's must be entered as Mushroomer\'s  
//
//  January is month 0 and December is month 11  so 

//type1events[2][15] = '<font size=+1>Survivor\'s Banquet<br>Squalicum Yacht Club</font><br>5 PM &mdash;Potluck! Yum! ';
//type1events[4][9] += '<a href=morelmadness2008.html>Morel Madness</A> ';
//type1events[4][10] += '<a href=morelmadness2008.html>Morel Madness</A> ';
//type1events[4][11] += '<a href=morelmadness2008.html><br>Morel Madness</A> ';
//type1events[8][22] = 'Fall Foray!<br><a href=http://groups.yahoo.com/group/NMA>see newsgroup for details.</A>  ';

//type1events[9][11] += "<br>Taylor Lockwood tours the fabulous world of fungi through images from his most recent book, <i>Chasing the Rain: My Treasure Hunt for the World's Most Beautiful Mushrooms</i> <br>Dowtown Library Presentation room ";
//type1events[9][19] = '<a href=show.html>Fall Wild Mushroom Show<br>Bloedel Donovan Park<br>  12-5PM</A> ';
//type1events[9][25] = 'Foray<br> at Lake Padden Park<br>  10:00AM</A> ';

//Tuesday evenings from Sept. 13 through Oct. 18 (the Tuesday after the
//>> show), from 6:30 to 9 in the ReStore
//type1events[7][20] = " Black Mountain Fly-in"

//type1events[4][8]  ="Morel Madness Weekend at Tall Timber Ranch"
//type1events[4][9] = " Morel Madness Weekend at Tall Timber Ranch"
//type1events[4][14] = " Meeting at Library Downtown, 7 PM"
//type1events[4][16] = " Foray - to be determined"
//type1events[5][11] = " Meeting at Library Downtown, 7 PM"
//type1events[5][13] = " Foray - to be determined"
//type1events[8][10] = " Meeting"
//type1events[8][17] += " Foray"
type1events[8][13] += "<a href='2011idclass.html'>Mushroom ID Classes</a><br>ReStore<br>6:30-9PM"
type1events[8][20]+= "Mushroom ID Classes<br>ReStore<br>6:30-9PM"
type1events[8][27]+= "Mushroom ID Classes<br>ReStore<br>6:30-9PM"
type1events[9][4] += "Mushroom ID Classes<br>ReStore<br>6:30-9PM"
type1events[9][11] += "Mushroom ID Classes<br>ReStore<br>6:30-9PM"
type1events[9][18] += "Mushroom ID Classes<br>ReStore<br>6:30-9PM"
//4:30-6:30, Oct 3, 10, 24, 31, 7, 14
type1events[9][3] += "WWU Mushroom <br>ID Classes<br>4:30-6:30PM"
type1events[9][10] += "WWU Mushroom <br>ID Classes<br>4:30-6:30PM"
type1events[9][24] += "WWU Mushroom <br>ID Classes<br>4:30-6:30PM"
type1events[9][31] += "WWU Mushroom <br>ID Classes<br>4:30-6:30PM"
type1events[10][7] += "WWU Mushroom <br>ID Classes<br>4:30-6:30PM"
type1events[10][14] += "WWU Mushroom <br>ID Classes<br>4:30-6:30PM"

//type1events[9][8] += " Meeting"
//type1events[9][10] += " Foray"
type1events[9][16] += " <a href=show2011.htm>Fall Wild Mushroom Show<br>Bloedel Donovan Park<br>  12-5PM</A> "
//type1events[9][22] += " David Arora in Bellingham!"
//type1events[9][23] += " Foray with David Arora, members only"
//type1events[10][6] += " Cama Beach Weekend, 20th Anniv Celebration"
//type1events[10][7] += " Cama Beach Weekend, 20th Anniv Celebration"
//type1events[10][12] += " Meeting"
//type1events[10][14] += " Foray, if there's interest and good weather."
 



}

