function header(){
document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\" title=\"Primary layout table\">");
document.write("<tr valign=\"bottom\" title=\"\"><td><img src=\"images/1x1t.gif\" width=\"3\" height=\"98\" border=\"0\" alt=\"\"></td>");
{
if (page == "association") {
document.write("<td><img src=\"images/tabNewsOn95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"You are on the Association page\"></td>");
}
else {
document.write("<td><a href=\"ceAssociation.html\" title=\"Association Page Link\" id=\"Association Page Link\"><img src=\"images/tabNewsOff95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"Go to the Association page\"></a></td>");
	}
}
document.write("<td><img src=\"images/1x1t.gif\" width=\"1\" height=\"98\" border=\"0\" alt=\"\"></td>");
{
if (page == "events") {
document.write("<td><img src=\"images/tabEventsOn95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"You are on the Events page\"></td>");
}
else {
document.write("<td><a href=\"ceEvents.html\" title=\"Events Page Link\" id=\"Events Page Link\"><img src=\"images/tabEventsOff95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"Go to the Events page\"></a></td>");
	}
}
document.write("<td><img src=\"images/1x1t.gif\" width=\"1\" height=\"98\" border=\"0\" alt=\"\"></td>");
{
if (page == "community") {
document.write("<td><img src=\"images/tabCommOn95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"You are on the Community page\"></td>");
}
else {
document.write("<td><a href=\"ceCommunity.html\" title=\"Community Page Link\" id=\"Community Page Link\"><img src=\"images/tabCommOff95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"Go to the Community page\"></a></td>");
	}
}
document.write("<td><img src=\"images/logo_200.jpg\" width=\"200\" height=\"88\" border=\"0\" alt=\"Cranberry Estates Homeowners Association\"></td>");
{
if (page == "forms") {
document.write("<td><img src=\"images/tabFormsOn95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"You are on the Forms page\"></td>");
}
else {
document.write("<td><a href=\"ceForms.html\" title=\"Forms Page Link\" id=\"Forms Page Link\"><img src=\"images/tabFormsOff95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"Go to the Forms page\"></a></td>");
	}
}
document.write("<td><img src=\"images/1x1t.gif\" width=\"1\" height=\"98\" border=\"0\" alt=\"\"></td>");
{
if (page == "contact") {
document.write("<td><img src=\"images/tabContactOn95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"You are on the Contact Us page\"></td>");
}
else {
document.write("<td><a href=\"ceContact.html\" title=\"Contact Us Page Link\" id=\"Contact Us Page Link\"><img src=\"images/tabContactOff95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"Go to the Contact Us page\"></a></td>");
	}
}
document.write("<td><img src=\"images/1x1t.gif\" width=\"1\" height=\"98\" border=\"0\" alt=\"\"></td>");
{
if (page == "home") {
document.write("<td><img src=\"images/tabHomeOn95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"You are on the Home page\"></td>");
}
else {
document.write("<td><a href=\"index.html\" title=\"Home Page Link\" id=\"Forms Page Link\"><img src=\"images/tabHomeOff95.gif\" width=\"95\" height=\"30\" border=\"0\" alt=\"Go to the Home page\"></a></td>");
	}
}
document.write("<td><img src=\"images/1x1t.gif\" width=\"3\" height=\"98\" border=\"0\" alt=\"\"></td>");
document.write("<td rowspan=\"3\" width=\"100%\"><img src=\"images/1x1t.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td></tr>");
document.write("<tr title=\"\"><td colspan=\"13\" bgcolor=\"#990033\"><img src=\"images/1x1t.gif\" width=\"780\" height=\"1\" border=\"0\" alt=\"\"></td></tr>");
document.write("<tr title=\"\"><td colspan=\"13\"><img src=\"images/1x1t.gif\" width=\"780\" height=\"2\" border=\"0\" alt=\"\"></td></tr></table>");
}

function footer(){
document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\" title=\"Footer table\">")
document.write("<tr title=\"\">")
document.write("<td bgcolor=\"#666666\"><img src=\"images/1x1t.gif\" width=\"610\" height=\"2\" border=\"0\" alt=\"\"></td>")
document.write("<td bgcolor=\"#666666\"><img src=\"images/1x1t.gif\" width=\"170\" height=\"2\" border=\"0\" alt=\"\"></td>")
document.write("<td width=\"100%\"><img src=\"images/1x1t.gif\" width=\"1\" height=\"2\" border=\"0\" alt=\"\"></td>")
document.write("</tr><tr title=\"\">")
document.write("<td class=\"footer\">Cranberry Estates Community Association&nbsp;&copy; 2010</td>")
document.write("<td><img src=\"images/1x1t.gif\" width=\"170\" height=\"25\" border=\"0\" alt=\"\"></td>")
document.write("<td width=\"100%\"><img src=\"images/1x1t.gif\" width=\"1\" height=\"2\" border=\"0\" alt=\"\"></td>")
document.write("</tr></table>")
}


var msg = new Array();
Stamp = new Date();
today = Stamp.getDate();
msg[1] = "Researchers say that when a waitress draws a happy face on a check, the tip goes up 18%.";
msg[2] = "During the Civil War, the Union Army used kites to drop leaflets behind Confederate lines.";
msg[3] = "It's illegal to hunt camels in Arizona.";
msg[4] = "George Washington had to borrow money to travel to his inauguration.";
msg[5] = "The human brain can hold 500 times the information in a set of the Encyclopedia Britannica.";
msg[6] = "Humans and elephants are the only animals that can stand on their heads.";
msg[7] = "Every year Mexico City sinks about 10 inches.";
msg[8] = "The first President to greet people with a handshake was Thomas Jefferson.  Before that, Presidents bowed.";
msg[9] = "The first beer can was introduced in 1935 by Kreuger Beer.";
msg[10] = "It takes 8 seconds to make a baseball bat in a factory.";
msg[11] = "There is a city called Rome on every continent in the world.";
msg[12] = "It takes about 150 days for your nails to grow from your cuticles to your fingertips.";
msg[13] = "Atlantic salmon can jump 15 feet out of the water.";
msg[14] = "Fortune cookies were actually invented in America by Charles Jung in 1918.";
msg[15] = "All polar bears are left handed.";
msg[16] = "Apples are more efficient than caffeine in keeping people awake in the morning.";
msg[17] = "A mole can dig a tunnel 300 feet long in just one night.";
msg[18] = "There are more than 50,000 earthquakes throughout the world every year.";
msg[19] = "A matchbox size piece of pure gold can be flattened into a sheet the size of a tennis court.";
msg[20] = "The Statue of Liberty's index finger is 8 feet long, and has a fingernail measuring 13 by 10 inches.";
msg[21] = "Bats always turn left when exiting a cave.";
msg[22] = "Most lipsticks contain fish scales.";
msg[23] = "A 'jiffy' is an actual unit of time for 1/100 th of a second.";
msg[24] = "The average person has more than 1,460 dreams each year.";
msg[25] = "Humans are born with 300 bones, but when they reach adult age, they only have 206.";
msg[26] = "The state of Florida is bigger than England.";
msg[27] = "Thomas Edison, inventor of the light bulb, was afraid of the dark.";
msg[28] = "In space, astronauts can't cry because there is no gravity, so the tears can't flow.";
msg[29] = "A sneeze travels out of your mouth at over 100 miles per hour.";
msg[30] = "Babe Ruth wore a cabbage leaf under his cap to keep him cool. He changed it every 2 innings.";
msg[31] = "A giraffe can kill a lion with one kick.";

function writeTrivia(){
document.write(msg[today]);
}
