<!-- Begin MENU
function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "January";
   months[1]  = "February";
   months[2]  = "March";
   months[3]  = "April";
   months[4]  = "May";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "August";
   months[8]  = "September";
   months[9]  = "October";
   months[10] = "November";
   months[11] = "December";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname +
                    ' ' +
                    monthday +
                    ', ' +
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
//   var timeString = hour + ':' + minute + ':' + second + " " + ap;
   var timeString = hour + ':' + minute + " " + ap;
   return timeString;
} // function getClockTime()


// NOTE: If you use a ' add a slash before it like this \'
var calendarDate = getCalendarDate();
var clockTime = getClockTime();

var menuside	= "left"	// MENU SIDE | left, right or center
var menuspace	= "25"		// MENU END SPACING

var username = loggedinuser;	//var from head.inc.php
var showlogin = login;			//var from head.inc.php

document.write('<div class="printhide"><TABLE cellpadding="0" cellspacing="0" border="0" width="100%" class="menubackground"><tr><td align="'+menuside+'">');
document.write('<TABLE cellpadding="0" cellspacing="0" border="0"><tr><td width="'+menuspace+'">');
document.write('<img src="http://www.miamivalleywestsaysoccer.com/picts/spacer.gif" width="'+menuspace+'" height="5"></a><br>');

// COPY THE NEXT TWO LINES AND PASTE ABOVE THIS LINE TO ADD A BUTTON

document.write('</td><td>');
document.write('<a href="contact.htm" class="menu">Contact Us</a>');


if(showlogin == "false"){
document.write('</td><td>');
document.write('<a href="http://www.miamivalleywestsaysoccer.com/logout.php" class="menu">LogOut</a>');
document.write('</td><td>');
document.write('<a href="http://www.miamivalleywestsaysoccer.com/admin.php" class="menu">Admin</a>');
}
else{
document.write('</td><td>');
document.write('<a href="LoginForm.htm" class="menu">LogIn</a>');
}

document.write('</td><td align="right">');
if(username == ""){
	document.write('<i><font color="cccccc">' + calendarDate + ', ' + clockTime + '</font></i>');
}
else
{
	document.write('<b><font color="cccccc">Welcome ' + username + '</b>  <i>' + calendarDate + ', ' + clockTime + '</font></i>');
}

// END LINKS


document.write('</td></tr></table>');
document.write('</td><td width="'+menuspace+'">');
document.write('<img src="http://www.miamivalleywestsaysoccer.com/picts/spacer.gif" width="'+menuspace+'" height="5"></a><br>');
document.write('</td></tr></table></div>');


//  End -->
