// type2events.js 
//  event[month][date]   where month of January =0 and December =11
//event[0][1] = ""  // "January 1, 2003"
// Plan to make event arrays three dimensional with year
// that will make logic much easier for events and insure that 
// events will occur on the right dates in the right years
//var current_year= String(year);
// type2 events are those that are known well in advance,but occur on
// different days in different years, like phases of the moon.



var type2events
function resettype2(){
                     for (i=0; i<12; i++)
		     {
                         for(j=0; j<32; j++)
	                      {
                               type2events[i][j] = ""
	                      }
		      }
		   }

resettype2();

//document.write(year,' ',type2events[0][7],'before switch in type2events');


function set_type2events(year) 
{
   
switch (String(year))
{
   

case "2003" :

break;


case "2004" :

break;

case "2005" :

//get moon phases at http://aa.usno.navy.mil/data/docs/MoonPhase.html
break;

case "2006":






break;

case "2007":
type2events[0][3] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[1][2] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[2][3] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[3][2] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[4][2] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[5][1] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[5][30] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[6][30] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[7][28] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[8][26] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[9][26] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[10][24] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[11][24] += '<img src=./images/moonfull.gif alt="pacific">'


break;


case "2008":
type2events[0][22] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[1][21] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[2][21] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[3][20] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[4][20] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[5][18] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[6][18] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[7][16] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[8][15] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[9][14] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[10][13] += '<img src=./images/moonfull.gif alt="pacific">'
type2events[11][12] += '<img src=./images/moonfull.gif alt="pacific">'



break;
//done to here

case "2009":

break;

case "2010":

break;

default :  resettype2() ;
}
}

settype2events = set_type2events


