//                               Created by:                                  //
//       /                                                                    //
//      /                                                    __/_             //
//     /____   ____   ____   ____   ____   __   __    ____    /     ' ____    //
//    /     / /    / /    / /    / /    / /  \_/  \/ /    \/ /     / /    /   //
//   /     / /    / /    / /    / /    / /        / /     / /     / /         //
//  /_____/ /____/ /____/ /____/ /____/ /        / /_____/ /___/ / /____/     //
//                            /                                               //
//                        ___/                                                //
//                         http://boogomatic.com/                             //

// Write the time of day
var AboutTime, TheHour
today=new Date()
if (today.getMinutes()>=00 && today.getMinutes()<06){AboutTime="just after "}
else if (today.getMinutes()>=06 && today.getMinutes()<12){AboutTime="about ten after "}
else if (today.getMinutes()>=12 && today.getMinutes()<18){AboutTime="about quarter after "}
else if (today.getMinutes()>=18 && today.getMinutes()<24){AboutTime="about twenty after "}
else if (today.getMinutes()>=24 && today.getMinutes()<36){AboutTime="about half past  "}
else if (today.getMinutes()>=36 && today.getMinutes()<42){AboutTime="like twenty to "}
else if (today.getMinutes()>=42 && today.getMinutes()<48){AboutTime="about quarter to "}
else if (today.getMinutes()>=48 && today.getMinutes()<54){AboutTime="like ten to "}
else if (today.getMinutes()>=54 && today.getMinutes()<=59){AboutTime="just about "}
if (today.getHours()==00 && today.getMinutes()<36){TheHour="midnight. "}
else if (today.getHours()==0 && today.getMinutes()>=36){TheHour="one at night. "}
else if (today.getHours()==1 && today.getMinutes()<36){TheHour="one at night. "}
else if (today.getHours()==1 && today.getMinutes()>=36){TheHour="two at night. "}
else if (today.getHours()==2 && today.getMinutes()<36){TheHour="two at night. "}
else if (today.getHours()==2 && today.getMinutes()>=36){TheHour="three at night. "}
else if (today.getHours()==3 && today.getMinutes()<36){TheHour="three at night. "}
else if (today.getHours()==3 && today.getMinutes()>=36){TheHour="four in the morning. "}
else if (today.getHours()==4 && today.getMinutes()<36){TheHour="four in the morning. "}
else if (today.getHours()==4 && today.getMinutes()>=36){TheHour="five in the AM. "}
else if (today.getHours()==5 && today.getMinutes()<36){TheHour="five in the AM. "}
else if (today.getHours()==5 && today.getMinutes()>=36){TheHour="six in the morning. "}
else if (today.getHours()==6 && today.getMinutes()<36){TheHour="six in the morning. "}
else if (today.getHours()==6 && today.getMinutes()>=36){TheHour="seven this fine morning. "}
else if (today.getHours()==7 && today.getMinutes()<36){TheHour="seven this fine morning. "}
else if (today.getHours()==7 && today.getMinutes()>=36){TheHour="eight this fine morning. "}
else if (today.getHours()==8 && today.getMinutes()<36){TheHour="eight this fine morning. "}
else if (today.getHours()==8 && today.getMinutes()>=36){TheHour="nine in the morning. "}
else if (today.getHours()==9 && today.getMinutes()<36){TheHour="nine in the morning. "}
else if (today.getHours()==9 && today.getMinutes()>=36){TheHour="ten in the morning. "}
else if (today.getHours()==10 && today.getMinutes()<36){TheHour="ten in the morning. "}
else if (today.getHours()==10 && today.getMinutes()>=36){TheHour="eleven in the morning. "}
else if (today.getHours()==11 && today.getMinutes()<36){TheHour="eleven in the morning. "}
else if (today.getHours()==11 && today.getMinutes()>=36){TheHour="twelve noon. "}
else if (today.getHours()==12 && today.getMinutes()<36){TheHour="twelve noon. "}
else if (today.getHours()==12 && today.getMinutes()>=36){TheHour="one in the afternoon. "}
else if (today.getHours()==13 && today.getMinutes()<36){TheHour="one in the afternoon. "}
else if (today.getHours()==13 && today.getMinutes()>=36){TheHour="two in the afternoon. "}
else if (today.getHours()==14 && today.getMinutes()<36){TheHour="two in the afternoon. "}
else if (today.getHours()==14 && today.getMinutes()>=36){TheHour="three in the afternoon. "}
else if (today.getHours()==15 && today.getMinutes()<36){TheHour="three in the afternoon. "}
else if (today.getHours()==15 && today.getMinutes()>=36){TheHour="four in the afternoon. "}
else if (today.getHours()==16 && today.getMinutes()<36){TheHour="four in the afternoon. "}
else if (today.getHours()==16 && today.getMinutes()>=36){TheHour="five in the evening. "}
else if (today.getHours()==17 && today.getMinutes()<36){TheHour="five in the evening. "}
else if (today.getHours()==17 && today.getMinutes()>=36){TheHour="six in the evening. "}
else if (today.getHours()==18 && today.getMinutes()<36){TheHour="six in the evening. "}
else if (today.getHours()==18 && today.getMinutes()>=36){TheHour="seven in the evening. "}
else if (today.getHours()==19 && today.getMinutes()<36){TheHour="seven in the evening. "}
else if (today.getHours()==19 && today.getMinutes()>=36){TheHour="eight in the evening. "}
else if (today.getHours()==20 && today.getMinutes()<36){TheHour="eight in the evening. "}
else if (today.getHours()==20 && today.getMinutes()>=36){TheHour="nine in the evening. "}
else if (today.getHours()==21 && today.getMinutes()<36){TheHour="nine in the evening. "}
else if (today.getHours()==21 && today.getMinutes()>=36){TheHour="ten at night. "}
else if (today.getHours()==22 && today.getMinutes()<36){TheHour="ten at night. "}
else if (today.getHours()==22 && today.getMinutes()>=36){TheHour="eleven at night. "}
else if (today.getHours()==23 && today.getMinutes()<36){TheHour="eleven at night. "}
else if (today.getHours()==23 && today.getMinutes()>=36){TheHour="midnight. "}

// Write Greeting
var greeting
timeNow=new Date()
if(timeNow.getHours()>=00 && timeNow.getHours()<02){greeting = "Hey,it's getting late! " }
else if(timeNow.getHours()>=02 && timeNow.getHours()<05){greeting = "Is it not time to get to bed! " }
else if(timeNow.getHours()>=05 && timeNow.getHours()<07){greeting = "Hi, you're up bloody early! " }
else if(timeNow.getHours()>=07 && timeNow.getHours()<10){greeting = "Hello, good morning! " }
else if(timeNow.getHours()>=10 && timeNow.getHours()<12){greeting = "Good day, eh! " }
else if(timeNow.getHours()>=12 && timeNow.getHours()<13){greeting = "Hey, it's lunchtime! " }
else if(timeNow.getHours()>=13 && timeNow.getHours()<17){greeting = "Good afternoon! " }
else if(timeNow.getHours()>=17 && timeNow.getHours()<18){greeting = "Have a good evening! " }
else if(timeNow.getHours()>=18 && timeNow.getHours()<21){greeting = "Good Evening! " }
else if(timeNow.getHours()>=21 && timeNow.getHours()<24){greeting = "Have yourself a good night! " }

// Write Holiday
// Replace X: else if(today.getMonth()==X && today.getDate()==X){HolDay = "X! " }
var HolDay
today=new Date()
if (today.getMonth()==0 && today.getDate()==01){HolDay = "Happy New Year! " }
else if(today.getMonth()==0 && today.getDate()==11){HolDay = "Happy Birthday Grant! " }
else if(today.getMonth()==0 && today.getDate()==19){HolDay = "Happy Birthday Norman! " }
else if(today.getMonth()==1 && today.getDate()==14){HolDay = "Happy Valentines Day! " }
else if(today.getMonth()==2 && today.getDate()==21){HolDay = "Happy Birthday Linda! " }
else if(today.getMonth()==4 && today.getDate()==04){HolDay = "Happy Birthday Sharla! " }
else if(today.getMonth()==5 && today.getDate()==17){HolDay = "Happy Birthday Trenton! " }
else if(today.getMonth()==6 && today.getDate()==01){HolDay = "Happy Canada Day! " }
else if(today.getMonth()==6 && today.getDate()==03){HolDay = "Happy Birthday Irene! " }
else if(today.getMonth()==7 && today.getDate()==9){HolDay = "Happy Birthday Gerry! " }
else if(today.getMonth()==9 && today.getDate()==31){HolDay = "Happy Holloween! " }
else if(today.getMonth()==10 && today.getDate()==11){HolDay = "A Day to Remember! " }
else if(today.getMonth()==10 && today.getDate()==28){HolDay = "Happy Birthday Helene! " }
else if(today.getMonth()==11 && today.getDate()==17){HolDay = "Happy Birthday Christina! " }
else if(today.getMonth()==11 && today.getDate()==25){HolDay = "Merry Christmas! " }
else if(today.getMonth()==11 && today.getDate()==26){HolDay = "Happy Boxing Day! " }
else if(today.getMonth()==11 && today.getDate()==31){HolDay = "Have a good New Year! " }
else { HolDay = "Good Day Eh!" }

// Write the full year
var year
today=new Date()
{
year = today.getFullYear()
}

// Write the day of the month.
var day, date, month
today=new Date()
if(today.getDay()==0){ day = "Sunday," }
else if(today.getDay()==1){day ="Monday," }
else if(today.getDay()==2){day ="Tuesday,"}
else if(today.getDay()==3){day ="Wednesday,"}
else if(today.getDay()==4){day ="Thursday,"}
else if(today.getDay()==5){day ="Friday,"}
else if(today.getDay()==6){day ="Saturday,"}
if(today.getMonth()==0){month="January"}
else if(today.getMonth()==1){month ="February"}
else if(today.getMonth()==2){month ="March"}
else if(today.getMonth()==3){month ="April"}
else if(today.getMonth()==4){month ="May"}
else if(today.getMonth()==5){month ="June"}
else if(today.getMonth()==6){month ="July"}
else if(today.getMonth()==7){month ="August"}
else if(today.getMonth()==8){month ="September"}
else if(today.getMonth()==9){month ="October"}
else if(today.getMonth()==10){month ="November"}
else if(today.getMonth()==11){month ="December"}
if(today.getDate()==1){date ="1st "}
else if(today.getDate()==2){date ="2nd"}
else if(today.getDate()==3){date ="3rd"}
else if(today.getDate()==4){date ="4th"}
else if(today.getDate()==5){date ="5th"}
else if(today.getDate()==6){date ="6th"}
else if(today.getDate()==7){date ="7th"}
else if(today.getDate()==8){date ="8th"}
else if(today.getDate()==9){date ="9th"}
else if(today.getDate()==10){date ="10th"}
else if(today.getDate()==11){date ="11th"}
else if(today.getDate()==12){date ="12th"}
else if(today.getDate()==13){date ="13th"}
else if(today.getDate()==14){date ="14th"}
else if(today.getDate()==15){date ="15th"}
else if(today.getDate()==16){date ="16th"}
else if(today.getDate()==17){date ="17th"}
else if(today.getDate()==18){date ="18th"}
else if(today.getDate()==19){date ="19th"}
else if(today.getDate()==20){date ="20th"}
else if(today.getDate()==21){date ="21st"}
else if(today.getDate()==22){date ="22nd"}
else if(today.getDate()==23){date ="23rd"}
else if(today.getDate()==24){date ="24th"}
else if(today.getDate()==25){date ="25th"}
else if(today.getDate()==26){date ="26th"}
else if(today.getDate()==27){date ="27th"}
else if(today.getDate()==28){date ="28th"}
else if(today.getDate()==29){date ="29th"}
else if(today.getDate()==30){date ="30th"}
else if(today.getDate()==31){date ="31st"} 

// Opens the Tic-Tac-Toe board
function tic() {
window.open("tictactoe.html","","height=250,width=250,left=300,top=200");
}
// Open the What's New page in it's own window
function win() {
window.open("whatsnew.html","","height=380,width=540,left=80,top=100,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no");
}
// Open the Math Game (may not use anymore)
function math() {
window.open("mathgame.html","","height=180,width=300,left=450,top=200");
}
// Open the Yellow Calculator in it's own window
function calc() {
window.open("yellowcalculator.html","","height=280,width=240,left=250,top=150");
}
// Opens the Blockit game. Game does'nt work in Netscape or Mozilla. (may not use until fixed)
function bloc() {
window.open("blockit.html","","height=400,width=426,left=120,top=100");
}
// For the Drag Ya game. Also does'nt work in Netscape or Mozilla
function dragya() {
window.open("dragya.html","","height=300,width=400,left=120,top=100");
}
// Opens my card page.
function mycard() {
window.open("mycard.html","","height=230,width=402,left=100,top=120,toolbar=no,menubar=no,location=no,scrollbars=no,directories=no,status=no,resizable=no");
}
// Opens Random Lucky Number.
function myLuck() {
window.open("random.html","","height=130,width=450,left=165,top=235,toolbar=no,menubar=no,location=no,scrollbars=no,directories=no,status=no,resizable=no");
}
// This may not be used much longer. IE only
function bookmarkit(){
window.external.addFavorite('http://www.geocities.com/boogomatic/index.html','boogomatic')
}

