<!--

/*
Static menu script II (By maXimus, maximus@nsimail.com, http://absolutegb.com/maximus/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

//configure below variable for menu width, position on page
var menuwidth=100
var offsetleft=5
var offsettop=10

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}

if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="2" width="'+menuwidth+'" CELLPADDING="2" CELLSPACING="0" BORDERCOLOR=""#0080C0"" bgcolor="white">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR="#0080C0"><TABLE BORDER=2 CELLPADDING="0" CELLSPACING="0"><TR><TD><TABLE BORDER=2 CELLPADDING="2" CELLSPACING="0" width="'+menuwidth+'">')}

if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#0080C0" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><center><img SRC="Eagle_Crest_logo3.jpg" BORDER=0 height=113 width=104 align=CENTER><BR><FONT SIZE="4" FACE=ARIAL>Course <BR>Menu</FONT></center></TD></TR>')

var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="Welcome Page";
menui[1]="History";
menui[2]="Description";
menui[3]="Details"; 
menui[4]="Hole by Hole";
menui[5]="Green Fees & Membership Info";
menui[6]="News & Events";
menui[7]="Location";
menui[8]="Links";

menul[0]="index.html";
menul[1]="ec_history.shtml";
menul[2]="ec_course.shtml";
menul[3]="ec_details.shtml";
menul[4]="ec_h1.shtml";
menul[5]="ec_fees.shtml";
menul[6]="ec_news.shtml";
menul[7]="ec_location.shtml";
menul[8]="ec_links.shtml";


for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><FONT SIZE="2">'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BORDER=0 BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'#CFE7E7\'" onmouseout="bgColor=\'white\'"><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}

if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}

function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}

window.onload=menu3

//-->
