<!--

/*
The placement of the menu, starting from the left top corner.
*/
pixelDown=130;
pixelLeft=10;

/*
The "Menu Titles" height and width in pixels.
*/
layerWidth=150;
layerHeight=15;

// #########################################
// ## DO NOT CHANGE THIS VARIABLES!!!!!!!!!!!
   layerName="menu";
   layerName2="lowermenu";
   closeTime=400;
// #########################################

/* 
The color of the "Title" and the "Drop Down Menus"
*/
TitleColor="#002943";
menuColor="#FFFFCC";

/*
This feature only works on Internet Explorer 4 and above. The lower menu changes color
when the mouse is over.
*/
menuColorMouseOver="lightblue";



/*
Here is where you name the "Menu Titles." Remember to have the same number of titles
as you have menus, which you defined on top.
*/
menuTitles=new Array("HOME","LESSONS","PRO SHOP","MEMBER INFO.","GOLF RATES","JUNIOR GOLF");

/*
Here is where you create the links on the menu. Menu 1 is the first item i.e. "Links"
and so forth. You can add as many sublevels as you want.
*/
menu1menuTitles=new Array("Home Page");
menu1Links=new Array(   "index.htm");

menu2menuTitles=new Array("Golf Lessons","Adult Clinics","Junior Clinic");
menu2Links=new Array("lessons.htm","Adult Clinic.htm","2010 junior clinics.htm");

menu3menuTitles=new Array("Simulator","Titleist Custom Golf Ball","About The Course","Directions","Contact Us");
menu3Links=new Array(   "Simulator.htm","Titleist Custom Ball Page.htm","about.htm","directions.htm","contact.htm");

menu4menuTitles=new Array("Weekend Tee Times","Tournament Schedule","2010 Match Play","Women's Association","Women's League","Tee Time Policy","Leagues", "Cart Program","Pro Am Schedule");
menu4Links=new Array(	"times.htm","2010 tournament schedule.htm","2010 Match Play.htm","Women's Association.htm","2010 Women's League.htm","Tee Time Policy.htm","League.htm", "Cart Program.htm","Pro Am Schedule.htm");

menu5menuTitles=new Array("Greens & Cart Fees","Cart Program","Season Permit Rates","Season Permit Application");
menu5Links=new Array(  "greens.htm","Cart Program.htm","permitfees.htm","DCC Application 2010.pdf");

menu6menuTitles=new Array("Junior Championships","Junior Clinic", "CYO Golf");
menu6Links=new Array(	"Junior Golf.htm","2010 junior clinics.htm", "2010 CYO Red Ryan Tee Times.pdf");

menu7menuTitles=new Array("USGA","NHGA");
menu7Links=new Array(    "http://usga.org","http://nhga.nhgolf.com");


// #################################################################################
// ## DO NOT CHANGE OR TOUCH THESE VARIABLES IF YOU DON'T KNOW WHAT YOU ARE DOING ##
// #################################################################################

styleForTDelement="";
if (document.all)
{
styleForTDelement="STYLE=\"cursor: hand\"";
}

numLayer=menuTitles.length;
function displayMenu()
{
	for (i=1; i<=numLayer; i++)
	{
	writeThis="";
	writeThis+=("<DIV ID='"+layerName+""+i+"' onMouseOver=\"showMenu('"+layerName2+""+i+"')\" onMouseOut=\"hidemenuTimer('"+layerName2+""+i+"')\">")
	writeThis+=("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=\""+layerWidth+"\" HEIGHT=\""+layerHeight+"\" BGCOLOR=\""+TitleColor+"\">");
	writeThis+=("<TR><TD><A HREF=\"javascript:void(0)\" onMouseOver=\"showMenu('"+layerName2+""+i+"')\" onMouseOut=\"hidemenuTimer('"+layerName2+""+i+"')\" CLASS='menuTitleClass'>"+menuTitles[i-1]+"</A></TD></TR>");
	writeThis+=("</TABLE></DIV>")

	writeThis+=("<DIV ID='"+layerName2+""+i+"' onMouseOver=\"showMenu('"+layerName2+""+i+"')\" onMouseOut=\"hidemenuTimer('"+layerName2+""+i+"')\">")
	writeThis+=("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=\""+layerWidth+"\" BGCOLOR=\""+menuColor+"\">");
		numLowerMenu=eval("menu"+i+"menuTitles.length")
		for (j=0; j<numLowerMenu; j++)
		{
		writeThis+=("<TR><TD "+styleForTDelement+" onClick=\"self.location.href='"+eval("menu"+i+"Links["+j+"]")+"'\" onMouseOver=\"this.style.backgroundColor='"+menuColorMouseOver+"'\" onMouseOut=\"this.style.backgroundColor=''\"><A HREF=\""+eval("menu"+i+"Links["+j+"]")+"\" onMouseOver=\"showMenu('"+layerName2+""+i+"')\" onMouseOut=\"hidemenuTimer('"+layerName2+""+i+"')\" CLASS='menuLinkClass'>"+eval("menu"+i+"menuTitles["+j+"]")+"</A></TD></TR>")
		}
	writeThis+=("</TABLE></DIV>")
	document.write(writeThis);
	}
}

function placeMenu()
{
	for (i=1; i<=numLayer; i++)
	{
		if (document.all)
		{
		beginLayer=document.all[layerName+i].style;
		}
		else
		{
		beginLayer=document.layers[layerName+i];
		}
	beginLayer.width=layerWidth
	beginLayer.height=layerHeight
	beginLayer.top=pixelDown
	beginLayer.left=pixelLeft+layerWidth*(i-1);
	beginLayer.visibility="visible";

		if (document.all)
		{
		beginLayer=document.all[layerName2+i].style;
		}
		else
		{
		beginLayer=document.layers[layerName2+i];
		}
	beginLayer.width=layerWidth
	beginLayer.top=pixelDown+layerHeight
	beginLayer.left=pixelLeft+layerWidth*(i-1);
	beginLayer.visibility="hidden";
	}
}

function showMenu(which)
{
hideOthers(which);
willHideMenu=false;
		if (document.all)
		{
		beginLayer=document.all[which].style;
		}
		else
		{
		beginLayer=document.layers[which];
		}
beginLayer.visibility="visible";
}

function hidemenuTimer(which)
{
hideOthers(which);
willHideMenu=true;
setTimeout("hidemenu('"+which+"')", closeTime);
}

function hidemenu(which)
{
		if (document.all)
		{
		beginLayer=document.all[which].style;
		}
		else
		{
		beginLayer=document.layers[which];
		}

	if (willHideMenu)
	{
	beginLayer.visibility="hidden";
	}
}


function hideOthers(which)
{
	for (i=1; i<=numLayer; i++)
	{
	if (which!=layerName2+i)
	{
		if (document.all)
		{
		beginLayer=document.all[layerName2+i].style;
		}
		else
		{
		beginLayer=document.layers[layerName2+i];
		}
	beginLayer.visibility="hidden";
	}
	}
}
	if (parseInt(navigator.appVersion)>=4)
	{
	displayMenu();
	placeMenu();
	}
//-->
