<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin

// Greeting, date and calendar info bar
dayname = new Array(
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
);

m = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
);

linkday = new Date();
month = new Array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var Jan = new Array();
var Feb = new Array();
var Mar = new Array();
var Apr = new Array();
var May = new Array();
var Jun = new Array();
var Jul = new Array();
var Aug = new Array();
var Sep = new Array();
var Oct = new Array();
var Nov = new Array();
var Dec = new Array();
Stamp = new Date();
today = Stamp.getDate();
//today = "7" //debug

// init
for (i=1;i<=month[1];i++) {Jan[i]=" ";}
for (i=1;i<=month[2];i++) {Feb[i]=" ";}
for (i=1;i<=month[3];i++) {Mar[i]=" ";}
for (i=1;i<=month[4];i++) {Apr[i]=" ";}
for (i=1;i<=month[5];i++) {May[i]=" ";}
for (i=1;i<=month[6];i++) {Jun[i]=" ";}
for (i=1;i<=month[7];i++) {Jul[i]=" ";}
for (i=1;i<=month[8];i++) {Aug[i]=" ";}
for (i=1;i<=month[9];i++) {Sep[i]=" ";}
for (i=1;i<=month[10];i++) {Oct[i]=" ";}
for (i=1;i<=month[11];i++) {Nov[i]=" ";}
for (i=1;i<=month[12];i++) {Dec[i]=" ";}

<!-- January 2006 -->
Jan[1] = " ";
Jan[2] = " ";
Jan[3] = " ";
Jan[4] = " ";
Jan[5] = " ";
Jan[6] = " ";
Jan[7] = " ";
Jan[8] = " ";
Jan[9] = " ";
Jan[10] = " ";
Jan[11] = " ";
Jan[12] = " ";
Jan[13] = " ";
Jan[14] = " ";
Jan[15] = " ";
Jan[16] = " ";
Jan[17] = " ";
Jan[18] = " ";
Jan[19] = " ";
Jan[20] = " ";
Jan[21] = " ";
Jan[22] = " ";
Jan[23] = " ";
Jan[24] = " ";
Jan[25] = " ";
Jan[26] = " ";
Jan[27] = " ";
Jan[28] = " ";
Jan[29] = " ";
Jan[30] = " ";
Jan[31] = " ";

<!-- February 2006 -->
Feb[1] = " ";
Feb[2] = " ";
Feb[3] = " ";
Feb[4] = " ";
Feb[5] = " ";
Feb[6] = " ";
Feb[7] = " ";
Feb[8] = " ";
Feb[9] = " ";
Feb[10] = " ";
Feb[11] = " ";
Feb[12] = " ";
Feb[13] = " ";
Feb[14] = " ";
Feb[15] = " ";
Feb[16] = " ";
Feb[17] = " ";
Feb[18] = " ";
Feb[19] = " ";
Feb[20] = " ";
Feb[21] = " ";
Feb[22] = " ";
Feb[23] = " ";
Feb[24] = " ";
Feb[25] = " ";
Feb[26] = " ";
Feb[27] = " ";
Feb[28] = " ";
//Feb[29] = " ";

<!-- March 2006 -->
Mar[1] = " ";
Mar[2] = " ";
Mar[3] = " ";
Mar[4] = " ";
Mar[5] = " ";
Mar[6] = " ";
Mar[7] = " ";
Mar[8] = " ";
Mar[9] = " ";
Mar[10] = " ";
Mar[11] = " ";
Mar[12] = " ";
Mar[13] = " ";
Mar[14] = " ";
Mar[15] = " ";
Mar[16] = " ";
Mar[17] = " ";
Mar[18] = " ";
Mar[19] = " ";
Mar[20] = " ";
Mar[21] = " ";
Mar[22] = " ";
Mar[23] = " ";
Mar[24] = " ";
Mar[25] = " ";
Mar[26] = " ";
Mar[27] = " ";
Mar[28] = " ";
Mar[29] = " ";
Mar[30] = " ";
Mar[31] = " ";

<!-- April 2006 -->
Apr[1] = " ";
Apr[2] = " ";
Apr[3] = " ";
Apr[4] = " ";
Apr[5] = " ";
Apr[6] = " ";
Apr[7] = " ";
Apr[8] = " ";
Apr[9] = " ";
Apr[10] = " ";
Apr[11] = " ";
Apr[12] = " ";
Apr[13] = " ";
Apr[14] = " ";
Apr[15] = " ";
Apr[16] = " ";
Apr[17] = " ";
Apr[18] = " ";
Apr[19] = " ";
Apr[20] = " ";
Apr[21] = " ";
Apr[22] = " ";
Apr[23] = " ";
Apr[24] = " ";
Apr[25] = " ";
Apr[26] = " ";
Apr[27] = " ";
Apr[28] = " ";
Apr[29] = " ";
Apr[30] = " ";

<!-- May 2006-->
May[1] = " ";
May[2] = " ";
May[3] = " ";
May[4] = " ";
May[5] = " ";
May[6] = " ";
May[7] = " ";
May[8] = " ";
May[9] = " ";
May[10] = " ";
May[11] = " ";
May[12] = " ";
May[13] = " ";
May[14] = " ";
May[15] = " ";
May[16] = " ";
May[17] = " ";
May[18] = " ";
May[19] = " ";
May[20] = " ";
May[21] = " ";
May[22] = " ";
May[23] = " ";
May[24] = " ";
May[25] = " ";
May[26] = " ";
May[27] = " ";
May[28] = " ";
May[29] = " ";
May[30] = " ";
May[31] = " ";

<!-- June 2006 -->
Jun[1] = " ";
Jun[2] = " ";
Jun[3] = " ";
Jun[4] = " ";
Jun[5] = " ";
Jun[6] = " ";
Jun[7] = " ";
Jun[8] = " ";
Jun[9] = " ";
Jun[10] = " ";
Jun[11] = " ";
Jun[12] = " ";
Jun[13] = " ";
Jun[14] = " ";
Jun[15] = " ";
Jun[16] = " ";
Jun[17] = " ";
Jun[18] = " ";
Jun[19] = " ";
Jun[20] = " ";
Jun[21] = " ";
Jun[22] = " ";
Jun[23] = " ";
Jun[24] = " ";
Jun[25] = " ";
Jun[26] = " ";
Jun[27] = " ";
Jun[28] = " ";
Jun[29] = " ";
Jun[30] = " ";

<!-- July 2006 -->
Jul[1] = " ";
Jul[2] = " ";
Jul[3] = " ";
Jul[4] = " ";
Jul[5] = " ";
Jul[6] = " ";
Jul[7] = " ";
Jul[8] = " ";
Jul[9] = " ";
Jul[10] = " ";
Jul[11] = " ";
Jul[12] = " ";
Jul[13] = " ";
Jul[14] = " ";
Jul[15] = " ";
Jul[16] = " ";
Jul[17] = " ";
Jul[18] = " ";
Jul[19] = " ";
Jul[20] = " ";
Jul[21] = " ";
Jul[22] = " ";
Jul[23] = " ";
Jul[24] = " ";
Jul[25] = " ";
Jul[26] = " ";
Jul[27] = " ";
Jul[28] = " ";
Jul[29] = " ";
Jul[30] = " ";
Jul[31] = " ";

<!-- August 2006 -->
Aug[1] = " ";
Aug[2] = " ";
Aug[3] = " ";
Aug[4] = " ";
Aug[5] = " ";
Aug[6] = " ";
Aug[7] = " ";
Aug[8] = " ";
Aug[9] = " ";
Aug[10] = " ";
Aug[11] = " ";
Aug[12] = " ";
Aug[13] = " ";
Aug[14] = " ";
Aug[15] = " ";
Aug[16] = " ";
Aug[17] = " ";
Aug[18] = " ";
Aug[19] = " ";
Aug[20] = " ";
Aug[21] = " ";
Aug[22] = " ";
Aug[23] = " ";
Aug[24] = " ";
Aug[25] = " ";
Aug[26] = " ";
Aug[27] = " ";
Aug[28] = " ";
Aug[29] = " ";
Aug[30] = " ";
Aug[31] = " ";

<!-- September 2006 -->
Sep[1] = " ";
Sep[2] = " ";
Sep[3] = " ";
Sep[4] = " ";
Sep[5] = " ";
Sep[6] = " ";
Sep[7] = " ";
Sep[8] = " ";
Sep[9] = " ";
Sep[10] = " ";
Sep[11] = " ";
Sep[12] = " ";
Sep[13] = " ";
Sep[14] = " ";
Sep[15] = " ";
Sep[16] = " ";
Sep[17] = " ";
Sep[18] = " ";
Sep[19] = " ";
Sep[20] = " ";
Sep[21] = " ";
Sep[22] = " ";
Sep[23] = " ";
Sep[24] = " ";
Sep[25] = " ";
Sep[26] = " ";
Sep[27] = " ";
Sep[28] = " ";
Sep[29] = " ";
Sep[30] = " ";

<!-- October 2005 -->
Oct[1] = " ";
Oct[2] = " ";
Oct[3] = " ";
Oct[4] = " ";
Oct[5] = " ";
Oct[6] = " ";
Oct[7] = " ";
Oct[8] = " ";
Oct[9] = " ";
Oct[10] = " ";
Oct[11] = " ";
Oct[12] = " ";
Oct[13] = " ";
Oct[14] = " ";
Oct[15] = " ";
Oct[16] = " ";
Oct[17] = " ";
Oct[18] = " ";
Oct[19] = " ";
Oct[20] = " ";
Oct[21] = " ";
Oct[22] = " ";
Oct[23] = " ";
Oct[24] = " ";
Oct[25] = " ";
Oct[26] = " ";
Oct[27] = " ";
Oct[28] = " ";
Oct[29] = " ";
Oct[30] = " ";
Oct[31] = " ";

<!-- November 2005 -->
Nov[1] = " ";
Nov[2] = " ";
Nov[3] = " ";
Nov[4] = " ";
Nov[5] = " ";
Nov[6] = " ";
Nov[7] = " ";
Nov[8] = " ";
Nov[9] = " ";
Nov[10] = " ";
Nov[11] = " ";
Nov[12] = " ";
Nov[13] = " ";
Nov[14] = " ";
Nov[15] = " ";
Nov[16] = " ";
Nov[17] = " ";
Nov[18] = " ";
Nov[19] = " ";
Nov[20] = " ";
Nov[21] = " ";
Nov[22] = " ";
Nov[23] = " ";
Nov[24] = " ";
Nov[25] = " ";
Nov[26] = " ";
Nov[27] = " ";
Nov[28] = " ";
Nov[29] = " ";
Nov[30] = " ";
Nov[31] = " ";

<!-- December 2005 -->
Dec[1] = " ";
Dec[2] = " ";
Dec[3] = " ";
Dec[4] = " ";
Dec[5] = " ";
Dec[6] = " ";
Dec[7] = " ";
Dec[8] = " ";
Dec[9] = " ";
Dec[10] = " ";
Dec[11] = " ";
Dec[12] = " ";
Dec[13] = " ";
Dec[14] = " ";
Dec[15] = " ";
Dec[16] = " ";
Dec[17] = " ";
Dec[18] = " ";
Dec[19] = " ";
Dec[20] = " ";
Dec[21] = " ";
Dec[22] = " ";
Dec[23] = " ";
Dec[24] = " ";
Dec[25] = " ";
Dec[26] = " ";
Dec[27] = " ";
Dec[28] = " ";
Dec[29] = " ";
Dec[30] = " ";
Dec[31] = " ";

d = new Array(
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
);
m = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"Octy",
"August",
"September",
"October",
"November",
"December"
);

tod = new Date();
day = tod.getDate();
end = "th";
//day = "6" // debug

if (day==1 || day==21 || day==31) end="st";
if (day==2 || day==22) end="nd";
if (day==3 || day==23) end="rd";
day+=end;

function writeGreeting() {
	timenow=tod.getTime();
	tod.setTime(timenow);
	thehour = tod.getHours();
	display = "&nbsp;Welcome!<br>";
	document.write("</td><td width='30%' align='left' style='padding-right: 5px' bgcolor='#cc9900' height='18' class='font11pt'>");
	var greeting = ("<font color=#FEF6E2><strong>" + display);
	document.write(greeting+"&nbsp;");
	document.write("Today is "+d[tod.getDay()]+", "+m[tod.getMonth()]+" "+day);
	document.write("<td align='center' valign='middle' bgcolor='#cc9900'>");
	document.write("<img style='padding-top:3px' src='goldbullet.gif' alt='·' border='0' height='7' hspace='10' width='7'>");	document.write("</td>");
	document.write("</td><td width='55%' align='left' bgcolor='#cc9900' height='18' class='font11pt'>");
	document.write("<a href='http://www.catholicculture.org/lit/calendar/day.cfm' class='tinynav2'><font color=#FEF6E2><strong><u>");
	if (Stamp.getMonth() == 0) 	document.write(Jan[today]);
	if (Stamp.getMonth() == 1) 	document.write(Feb[today]);
	if (Stamp.getMonth() == 2) 	document.write(Mar[today]);
	if (Stamp.getMonth() == 3) 	document.write(Apr[today]);
	if (Stamp.getMonth() == 4) 	document.write(May[today]);
	if (Stamp.getMonth() == 5) 	document.write(Jun[today]);
	if (Stamp.getMonth() == 6) 	document.write(Jul[today]);
	if (Stamp.getMonth() == 7) 	document.write(Aug[today]);
	if (Stamp.getMonth() == 8) 	document.write(Sep[today]);
	if (Stamp.getMonth() == 9) 	document.write(Oct[today]);
	if (Stamp.getMonth() == 10) document.write(Nov[today]);
	if (Stamp.getMonth() == 11) document.write(Dec[today]);
	document.write("</a></u></strong></font></td>");
}

dd = tod.getDate();
mm = tod.getMonth();
yy = tod.getYear();
zero = "0";
linkdd = "0";
linkmm = "0";

//  End -->

// Creates a marker at the given point
function createMarker(p, l, i) {
	var marker = new GMarker(p, i);

	// Show this marker's index in the info window when it is clicked
	if (l != '') {
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(l);
		});
	}
	return marker;
}

function reCenter(index) {
	map.panTo(ps[index], map.getZoom());
	markers[index].openInfoWindowHtml(ls[index]);
}

function writeMap() {
    //<![CDATA[
	if (GBrowserIsCompatible()) {
		var baseIcon = new GIcon();
		baseIcon.image = "http://www.google.com/mapfiles/marker.png";
		baseIcon.iconSize = new GSize(20, 34);
		baseIcon.iconAnchor = new GPoint(10, 34);
		baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
		baseIcon.shadowSize = new GSize(30, 34);
		baseIcon.infoWindowAnchor = new GPoint(10, 1);
	
		var map = new GMap2(document.getElementById("map"));
		
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		
		map.setCenter(new GLatLng(41.333696, -73.873637), 14, G_NORMAL_MAP);
	
		var marker = 0;
		var markers = new Array(1);
		var ps = new Array(new GLatLng(41.333696,-73.873637));
		var ls = new Array('<nobr></nobr>');
		var is = new Array(baseIcon);
		
		for (var i = 0; i < 1; i++) {
		  markers[i] = createMarker(ps[i], ls[i], is[i]);
		  map.addOverlay(markers[i]);
		}

		var infoText = '<table width="250" border="0" cellpadding="0"><tr><td VALIGN="middle" width="27" align="right"><img ALIGN="middle" src="YinYangRedTinyT.gif" width="25" height="24" border="0" alt="Yin Yang"></td><td width="186" align="center"><span class="mapdata14">Mountain Stream Budo</span><br /><span class="mapdata">17 Peekskill Hollow Road<br />Putnam Valley, NY 10579<br />(845) 526-BUDO</span></td><td VALIGN="middle" width="27" align="left"><img ALIGN="middle" src="GoldMitsuTinyT.gif" width="25" height="25" border="0" alt="Gold Mitsu Domoe"></td></tr></table>';

        directionText = '<p align="center"><span class="mapdata">To Mountain Stream Budo from:</span></p><form action="http://maps.google.com/maps" method="get" target="_blank">' + '<p align="center"><input type="text" SIZE=30 MAXLENGTH=50 name="saddr" id="saddr" value="" /></p>' + '<p align="center"><INPUT value="Get Directions" TYPE="SUBMIT">' + '<input type="hidden" name="daddr" value="17 Peekskill Hollow Rd, Putnam Valley, NY 10579"/></p>';

		// Info window content
		var infoTabs = [
  			new GInfoWindowTab("Address", infoText),
  			new GInfoWindowTab("Directions", directionText)
		];

		// Place a marker in the center of the map 

		var marker = new GMarker(map.getCenter());
			GEvent.addListener(marker, "click", function() {
  			marker.openInfoWindowTabsHtml(infoTabs);
		});

		// Open info window automatically
		map.addOverlay(marker);
		marker.openInfoWindowTabsHtml(infoTabs);
	}
}
// End -->

// Sidebar java

function searchForm() {
	document.write('<div id="search" style="'+searchLR+': '+searchX+'px; POSITION: absolute; TOP: '+searchY+'px; width: auto; z-index: 1;">')
	document.write('<TABLE cellpadding="0" cellspacing="2" border="0" width="'+searchwidth+'"><tr><td colspan="2" class="sidebartext">')
	document.write(''+searchtext+'<br>')
	document.write('</td></tr><tr><td align="left">')
	document.write('<form action="http://www.google.com/search" name="f" target="_blank" style="margin: 0px">')
	document.write('<input type="hidden" name="any selected">')
	document.write('<input size="15" name="q" value="" class="searchform">&nbsp;<input type=submit value="Go!" name="btnG" class="searchbutton"><br>')
	document.write('</form>')
	document.write('</td></tr></table>')
	document.write('</div>')
}

function kobudoLogo() {
	document.write("<img src='KobudoLogoT.gif' width='167' height='177' border='0' alt='Kobudo Logo' class='kobudo'><p class='kobudo'>Okinawa Kobudo<br>Doushi Rensei-kai<br /><a href='http://authenticancientarts.com/kobudo.htm' class='reg'>Accredited Dojo</a></p>")
}

// Begin dropmenu script
barWidth=150;
barHPos='left';
barVPos='middle'; //position menubar
mainWidth=150;
subWidth=75;	// Number of pixels to the left of the submenu
subPosn='right'; // dropdown position

/* end of user config area -- do not touch below this point */
/* checked with jsLint 2005 12 29 */
barTop=0;
shift=mainWidth-subWidth;
subTab=0; 

// subtab calcs
if (subPosn=='center'){subTab=(shift-3)/2;}
if (subPosn=='right'){subTab=shift;}

function show(elmnt){
   	document.getElementById(elmnt).style.marginLeft=subTab+'px';
   	document.getElementById(elmnt).style.visibility="visible";
}

function hide(elmnt){
   	document.getElementById(elmnt).style.visibility="hidden";
}

function menuPosn(){
   	shift=0;
	p=document.body.offsetWidth-barWidth-45;
   	if (barHPos=='center') {shift=p/2;}
   	if (barHPos=='right') {shift=p;}

   	document.getElementById('zone').style.left=shift+'px';
   	barTop=0;
	p=self.innerHeight;
	if(!p) {p=document.body.clientHeight;}
   	if (barVPos=='middle') {barTop=p/2;}
   	if (barVPos=='bottom') {barTop=p-25;}
   	document.getElementById('zone').style.top=barTop+'px';
}

function menuInit(){
   menuPosn();   //init positions menu 'zone'
}
/* end JavaScript code for dropdown menu system */
//  End -->
