//Cheryl Robertson Whole Moon Site
//The Moon, The Whole Moon & nothing but the moon
//www.moonlightsys.com/themoon
// native american moons

var d=new Date();
var month=new Array(12);
month[0]="January 30, ";
month[1]="February 28, ";
month[2]="March 30, ";
month[3]="April 28, ";
month[4]="May 27, ";
month[5]="June 26, ";
month[6]="July 25, ";
month[7]="August 24, ";
month[8]="September 23, ";
month[9]="October 22, ";
month[10]="November 21, ";
month[11]="December 21, ";


var y= new Date();
var day= d.getDate();
var next = "January 19, ";
var nextYr = "December 21, ";

var endmonth = d.getMonth(); //add number
var time = d.getFullYear();

document.writeln("<CENTER>");

		document.write("<FONT COLOR=\"pink\">");
document.write("The full moon on " + month[d.getMonth()]);


var fm=new Date();
var moon=new Array(12);
moon[0]="'Great Spirit Moon' (by the Ojibway tribe)"; //jan
moon[1]="'Moon When Trees Pop' (by the Dakotah Sioux tribe)"; //feb
moon[2]="'Breaking Up Of Snowshoes Moon' (by the Ojibway tribe)";
moon[3]="'Month of the Flower Moon' (by the Cherokee tribe)"; //apr
moon[4]="'Time When the Horses Get Fat' (by the Cheyenne tribe)";
moon[5]="'Strawberry Moon' (by the Algonquin and Ojibway tribes)"; //jun
moon[6]="'Moon When the Cherries are Ripe' (by the Lakota Sioux tribe)";
moon[7]="'Moon of the End of the Fruit Moon' (by the Cherokee tribe)"; //aug
moon[8]="'Harvest Moon' (by the Algonquin tribe)"; //sep
moon[9]="'Hunter's Moon' (by the Algonquin tribe)";
moon[10]="'Moon of the Falling Leaves' (by the Lakota Sioux tribe)";
moon[11]="'Little Spirit Moon' (by the Ojibway tribe)"; //dec


document.write("is called the " + moon[fm.getMonth()]);

document.write("<BR>");


if (endmonth==10)
{
document.write("The following full moon is on " + nextYr); //used since full moon is on dec 21 2010 
// document.write("The next full moon is on " + month[d.getMonth()]);
}

if (endmonth==11)
{
document.write("The following full moon is on " + next);
// document.write("The next full moon is on " + month[d.getMonth()]);
}
else
{
document.write("The following full moon is on " + month[d.getMonth() + 1]);
}


if (endmonth==11)
{
document.write(d.getFullYear() + 1);
}
else if (time>=2010 && time<2011)
{
document.write("<b>2010</b>");
}
else
{
// document.write("<b>Hello World!</b>");
document.write(d.getFullYear());
}

// document.write(y.getFullYear());

document.write("</FONT>");
