// JScript source code

objTimer = window.setTimeout("DoHide()",2000);

function MouseOver(objName)
{
	x = "document."+ objName +".src = 'http://musubi-aikido.org.uk/img/btn/"+ objName +"_2.gif'";
	eval(x);
}

function MouseOut(objName)
{
	x = "document."+ objName +".src = 'http://musubi-aikido.org.uk/img/btn/"+ objName +"_1.gif'";
	eval(x);
}

function LocPos()
{
	x = AboutDD.offsetLeft;
	x = x + AboutDD.offsetParent.offsetLeft;
	x = x + AboutDD.offsetParent.offsetParent.offsetLeft;

	y = AboutDD.offsetTop;
	y = y + AboutDD.offsetParent.offsetTop;
	y = y + AboutDD.offsetParent.offsetParent.offsetTop;

	//alert(y + 28);
}

function selectDate(sDate)
{
	sMonth = sDate.options[sDate.selectedIndex].value;
	sYear = sDate.options[sDate.selectedIndex].name;
	
	//alert(sMonth +" - "+ sYear);
	location.href = "calendar.asp?TheMonth="+ sMonth +"&TheYear="+ sYear
}

function HighlightDay(m,y)
{
		var today = new Date();
		
		//alert(today.getMonth() +", "+ m);
		
		if(today.getFullYear() == y)
			{
			if(today.getMonth() == (m - 1))
				{
				var theDate = today.getDate();
				objTbl = document.getElementById("Calendar");
				objTD = document.getElementById("td"+ theDate);
				objImg = document.getElementById("calHighlight");
				
				//alert(objTbl.offsetParent);
				
				objImg.style.left = (objTD.offsetLeft + objTD.offsetParent.offsetLeft + 140);
				objImg.style.top = (objTD.offsetTop + objTD.offsetParent.offsetTop + 60);
				objImg.style.visibility = "visible";
				}
			}
}


function ShowMenu()
{

	x = AboutDD.offsetLeft;
	x = x + AboutDD.offsetParent.offsetLeft;
	x = x + AboutDD.offsetParent.offsetParent.offsetLeft;

	y = AboutDD.offsetTop;
	y = y + AboutDD.offsetParent.offsetTop;
	y = y + AboutDD.offsetParent.offsetParent.offsetTop;

	AboutDDMenu.style.left = x;
	AboutDDMenu.style.top = y + 28;
	AboutDDMenu.style.visibility = "visible";

	if(objTimer > 0)
		{//alert("huzzar!");
		 window.clearTimeout(objTimer);}
}

function HideMenu()
{
	objTimer = window.setTimeout("DoHide()",1500);
}

function DoHide()
{
	AboutDDMenu.style.visibility = "hidden";
}