<!--
if (isMenu){
function imgOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}
function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}	
menuWidth = 120;
childOverlap = 20;
childOffset = 5;
perCentOver = null;
secondsVisible = .5;
isFrames=false;
fntCol = "#706366";
fntSiz = 10;
if (isMac){fntSiz=10
wid=wid-3;
};
if (!isMac){fntSiz=8};
fntBold = false;
fntItal = false;
fntFam = "sans-serif";
gnum=0;
backCol = "#FFFFFF";
overCol = "#FFFF99";
overFnt = "Black"; 
borWid = 2;
borCol = "black";
borSty = "solid";
itemPad = 1;
imgSrc = "images/blank.gif";
imgSiz = 10;
separator = 1;
separatorCol = "Black";
navFrLoc =  "left";    
mainFrName = "main";
clickStart = false;      
clickKill = false;       
keepHilite = false;     
NSfontOver = true;      
showVisited = "blue"; 
arMenu1 = new Array(
140,
15,100+hei,
"","",
"","",
"","",
"2008 Schedule","2008_Schedule.htm",0,
"Course Information","2008-Course-Info.PDF",0,
"Directions to Courses","directions.pdf",0
)
arMenu2 = new Array(
140,
108,100+hei,
"","",
"","",
"","",
"Tournament Openings","entries/Openings_1.html",0
)
arMenu3 = new Array(
140,
193,100+hei,
"","",
"","",
"","",
"Course Information","2008-Course-Info.PDF",0,
"Directions to Courses","directions.pdf",0,
"Road Construction","http://www.dot.state.il.us/",0,
"Local Radar","http://www.intellicast.com/National/Radar/Current.aspx?location=USIL0230&animate=true",0
)
arMenu4 = new Array(
140,
210,100+hei,
"","",
"","",
"","",
"2008 Tournament Results","2008_Schedule.htm",0,
"Amateur Award Claim Form","amateur_claim.htm",0,
"Member Stats","icexe/search_1999.htm",0,
"Leading Money Winners","winners.htm",0,
"Current Hole in One","holeinone.htm",0,
"Past TOC Winners","past_toc_winners.htm",0,
"Career Money Winners","career_leaders.htm",0
)
arMenu5 = new Array(
140,
170+wid,100+hei,
"","",
"","",
"","",
"Tournament Reservations","2008_reserve.htm",0
)
arMenu6 = new Array(
140,
250+wid,100+hei,
"","",
"","",
"","",
"Membership Application","https://secure.icsp.net/wcgt/2008_application.htm",0
)
arMenu7 = new Array(
140,
375+wid,100+hei,
"","",
"","",
"","",
"Handicap Information","handicap.htm",0,
"History","general_info.htm#history",0,
"Membership","general_info.htm#membership",0,
"Player Status","general_info.htm#player_status",0,
"Prize Payouts","general_info.htm#prize_payouts",0,
"Registration/Payment/ Cancellation Policies","general_info.htm#regis",0,
"Course Management","general_info.htm#course_manage",0,
"Tee Times & Other Info.","general_info.htm#tee_times",0
)
arMenu8 = new Array(
140,
440+wid,100+hei,
"","",
"","",
"","",
"WCGT Golf Course Links","Links.htm",0,
"WCGT Sponsors","sponsor.htm",0
)
loader = window;
loader.onload = startIt;
if(NS4){
	origWidth = loader.innerWidth;
	origHeight = loader.innerHeight;
	loader.onresize = reDo;
}
isLoaded = false;
NSresized = false;
isWin = (navigator.appVersion.indexOf("Win") != -1)
if (!isWin && !isMac) NSfontOver = showVisited = false;
mSecsVis = 10;
isRight = (window.navFrLoc && navFrLoc == "right");
imgSuf = (isRight) ? ">"  : "ALIGN=RIGHT>";
spStr = (isRight && NS4) ? "<SPACER TYPE=HORIZONTAL SIZE="+imgSiz+">" : "";
areCreated = false;
menuLoc = null;
function initVars() {
if(areCreated) {
for(i=1; i<topCount; i++) {
cur = eval("elMenu"+i);
clearTimeout(cur.hideTimer);
cur.hideTimer=null;
}
clearTimeout(allTimer);
}
topCount = 1;
areCreated = false;
beingCreated = false;
isOverMenu = false;
currentMenu = null;
allTimer = null;
}
initVars();
function NSunloaded(){
	isLoaded = false;
}
function NSloaded(e){
	if (e.target.name == mainFrName) {
		initVars();
		startIt();
	}
}
function IEunloaded() {
	initVars();
	isLoaded = false;
	setTimeout("keepTrack()",50)
}
function keepTrack() {
		initVars();
		startIt();
}
function startIt() {
	isLoaded = true;
	if (isFrames) {
		menuLoc = eval("parent.frames." + mainFrName);
		if (NS4) {
			loader.captureEvents(Event.LOAD);
			loader.onload = NSloaded;
			menuLoc.onunload = NSunloaded;
		}
		if (IE4) {
			menuLoc.document.body.onunload = IEunloaded;
		}
	}
	else {
		menuLoc = window;
	}
	menuLoc.nav = nav = window;
		if (NS4) menuLoc.document.captureEvents(Event.MOUSEDOWN);
		menuLoc.document.onmousedown = clicked;
	makeTop();	
}
function makeTop(){
	beingCreated = true;
	while(eval("window.arMenu" + topCount)) {
		(NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
		topCount++
}
	areCreated = true;
	beingCreated = false;
}
function makeMenuNS(isChild,menuCount,parMenu,parItem) {
	tempArray = eval("arMenu" + menuCount);
	
		tempWidth = tempArray[0] ? tempArray[0] : menuWidth;
		menu = makeElement("elMenu" + menuCount,tempWidth,null,null);
	menu.array = tempArray;
	menu.setMenuTree = setMenuTree;
	menu.setMenuTree(isChild,parMenu);
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
		prevItem = (menu.itemCount > 1) ? menu.item : null;
		itemName = "item" + menuCount + "_" + menu.itemCount;
  		menu.item = makeElement(itemName,null,null,menu);
		menu.item.prevItem = prevItem;
		menu.item.setup = itemSetup;
		menu.item.setup(menu.itemCount,menu.array);
		if (menu.item.hasMore) {
			makeMenuNS(true,menuCount + "_" + menu.itemCount,menu,menu.item);
			menu = menu.parentMenu;
		}
	}
	menu.lastItem = menu.item;
	menu.setup(isChild,parMenu,parItem);
}
function setMenuTree(isChild,parMenu) {
	if (!isChild) {
		this.menuWidth = this.array[0] ;
		this.menuLeft = this.array[1];
		this.menuTop = this.array[2];
		this.menuFontColor = fntCol;
		this.menuFontOver = overFnt;
		this.menuBGColor = backCol;
		this.menuBGOver = overCol;
		this.menuBorCol = borCol;
		this.menuSeparatorCol = separatorCol;
		this.treeParent = this;
		this.startChild = this;
	}
	
	this.maxItems = (isChild) ? this.array.length/3 : (this.array.length-9)/3;
	this.hasParent = isChild;
    this.setup = menuSetup;
	this.itemCount = 0;
}
function makeMenuIE(isChild,menuCount,parMenu) {
	menu = makeElement("elMenu" + menuCount);
	menu.array = eval("arMenu" + menuCount);
	menu.setMenuTree = setMenuTree;
	menu.setMenuTree(isChild,parMenu);
	menu.itemStr = "";
	
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
		itemName = "item" + menuCount + "_" + menu.itemCount;
		arrayPointer = (isChild) ? (menu.itemCount-1)*3 :((menu.itemCount-1)*3)+9;
		dispText = menu.array[arrayPointer];
		hasMore = menu.array[arrayPointer + 2];
		htmStr = (hasMore) ? imgStr + dispText : dispText;
		menu.itemStr += "<SPAN ID=" + itemName + " STYLE=\"width:" + menu.menuWidth + "\">" + htmStr + "</SPAN><BR>";
		if (hasMore) {
			makeMenuIE(true,menuCount + "_" + menu.itemCount,menu);
			menu = menu.parentMenu;
		}	
	}
	menu.innerHTML = menu.itemStr;
	itemColl = menu.children.tags("SPAN");
	for (i=0; i<itemColl.length; i++) {
		it = itemColl(i);
		it.setup = itemSetup;
		it.setup(i+1,menu.array);
	}
	menu.lastItem = itemColl(itemColl.length-1);
	menu.setup(isChild,parMenu);
}
function makeElement(whichEl,whichWidth,whichParent,whichContainer) {
	if (NS4) {
		if (whichWidth) {
			elWidth = whichWidth;
		}
		else {
			elWidth = (whichContainer) ? whichContainer.menuWidth : whichParent.menuWidth;
			if (whichContainer) elWidth = elWidth-(borWid*2)-(itemPad*2);
		}
		if (!whichContainer) whichContainer = menuLoc;
		eval(whichEl + "= new Layer(elWidth,whichContainer)");
	}
	else {
		elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute'></DIV>";
		menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);
		if (isFrames) eval(whichEl + "= menuLoc." + whichEl);
	}
	return eval(whichEl);
}
function itemSetup(whichItem,whichArray) {
	this.onmouseover = itemOver;
	this.onmouseout = itemOut;
	this.container = (NS4) ? this.parentLayer : this.offsetParent;
	arrayPointer = (this.container.hasParent) ? (whichItem-1)*3 : ((whichItem-1)*3)+9;
	this.dispText = whichArray[arrayPointer];
	this.linkText = whichArray[arrayPointer + 1];
	this.hasMore = whichArray[arrayPointer + 2];
	if (IE4 && this.hasMore) {
		this.child = eval("elMenu" + this.id.substr(4));
		this.child.parentMenu = this.container;
		this.child.parentItem = this;
	}
	if (this.linkText) {
		if (NS4) {
			this.captureEvents(Event.MOUSEUP)
			this.onmouseup = linkIt;
		}
		else {
			this.onclick = linkIt;
		}
	}
	if (NS4) {
		htmStr = this.dispText;
		if (fntBold) htmStr = htmStr.bold();
		if (fntItal) htmStr = htmStr.italics();
		htmStr = "<FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSiz + ">" + htmStr+ "</FONT>";
		htmStrOver = htmStr.fontcolor(this.container.menuFontOver);
		htmStr = htmStr.fontcolor(this.container.menuFontColor);
		this.htmStr = (this.hasMore) ? imgStr + htmStr : spStr + htmStr;
		this.htmStrOver = (this.hasMore) ? imgStr + htmStrOver : spStr + htmStrOver;		
		this.visibility = "inherit";
		this.bgColor = this.container.menuBGColor;
		if (whichItem == 1) {
			this.top = borWid + itemPad;
		}
		else {
			this.top = this.prevItem.top + this.prevItem.clip.height + separator;
		}
		this.left = borWid + itemPad;
		this.clip.top = this.clip.left = -itemPad;
		this.clip.right = this.container.menuWidth-(borWid*2)-itemPad;
		this.txtLyr = new Layer(this.container.menuWidth-(borWid*2)-itemPad,this);
		this.txtLyr.document.write(this.htmStr);
		this.txtLyr.document.close();
		this.txtLyr.visibility = "inherit";
		this.clip.bottom += this.txtLyr.document.height+itemPad;
		this.dummyLyr = new Layer(100,this);
		this.dummyLyr.left = this.dummyLyr.top = -itemPad;
		this.dummyLyr.clip.width = this.clip.width;
		this.dummyLyr.clip.height = this.clip.height;
		this.dummyLyr.visibility = "inherit";
	}
	else {
		with (this.style) {
			padding = itemPad;
			if (isRight && !this.hasMore) paddingLeft = parseInt(padding)+imgSiz;
			color = this.container.menuFontColor;
			fontSize = fntSiz + "pt";
			fontWeight = "normal";
			fontStyle =	"normal";
			fontFamily = fntFam;
		
			borderBottomWidth = 1 + "px";
			borderBottomColor = "black";
			borderBottomStyle = "solid";
			backgroundColor = this.container.menuBGColor;
		}
	}
}	
function menuSetup(hasParent,openCont,openItem) {
	this.onmouseover = menuOver;
	this.onmouseout = menuOut;
	this.showIt = showIt;
	this.keepInWindow = keepInWindow;
	this.hideTree = hideTree
	this.hideParents = hideParents;
	this.hideChildren = hideChildren;
	this.hideTop = hideTop;
	this.hasChildVisible = false;
	this.isOn = false;
	this.hideTimer = null;
	this.childOverlap = (perCentOver != null) ? ((perCentOver/100) * this.menuWidth) : childOverlap;
	this.currentItem = null;
	this.hideSelf = hideSelf;
		
	if (hasParent) {
		this.hasParent = true;
		this.parentMenu = openCont;
		if (NS4) {
			this.parentItem = openItem;
			this.parentItem.child = this;
		}
	}
	else {
		this.hasParent = false;
	}
	if (NS4) {
		this.bgColor = this.menuBorCol;
		this.fullHeight = this.lastItem.top + this.lastItem.clip.bottom + borWid;
		this.clip.right = this.menuWidth;
		this.clip.bottom = this.fullHeight;
	}
	else {
		with (this.style) {
			width = this.menuWidth;
			borderWidth = borWid;
			borderColor = this.menuBorCol;
			borderStyle = borSty;
		}
		this.lastItem.style.border="";
		this.fullHeight = this.scrollHeight;
		this.showIt(false);
		this.onselectstart = cancelSelect;
		this.moveTo = moveTo;
		this.moveTo(0,0);
	}
}
function popUp(menuName,e,num){
for (i=1; i<6; i++){
	imgOff('img'+i);}
	if (NS4 && NSresized) startIt();
	mSecsVis = 100;	
	if (!isLoaded) return;
	imgOn('img'+num);
	gnum = num;
	linkEl = (NS4) ? e.target : event.srcElement;
	if (!beingCreated && !areCreated) startIt();
	linkEl.menuName = menuName;	
    popMenu(e);
	
}
function popMenu(e){
	if (!isLoaded || !areCreated) return true;
	eType = (NS4) ? e.type : event.type;
	if (clickStart && eType != "click") return true;
	hideAll();
	linkEl = (NS4) ? e.target : event.srcElement;
	
	currentMenu = eval(linkEl.menuName);
	currentMenu.hasParent = false;
	currentMenu.treeParent.startChild = currentMenu;
	
	if (IE4) menuLocBod = menuLoc.document.body;
	
		xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? e.pageX : (event.clientX + menuLocBod.scrollLeft);
		yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY : (event.clientY + menuLocBod.scrollTop);
	
	currentMenu.moveTo(xPos,yPos);
	currentMenu.keepInWindow()
	currentMenu.isOn = true;
	currentMenu.showIt(true);
	return false;
}
function menuOver(e) {
imgOn('img'+gnum);
	this.isOn = true;
	isOverMenu = true;
	currentMenu = this;
	if (this.hideTimer) clearTimeout(this.hideTimer);
}
function menuOut() {
	imgOff('img'+gnum);
	if (IE4) {
		theEvent = menuLoc.event;
		if (theEvent.srcElement.contains(theEvent.toElement)) return;
			}
	this.isOn = false;
	isOverMenu = false;
	allTimer = setTimeout("currentMenu.hideTree()",1);  
}
function itemOver(){
	if (IE4) {
		theEvent = menuLoc.event;
		if (theEvent.srcElement.tagName == "IMG") return;
		this.style.backgroundColor = this.container.menuBGOver;
		this.style.color = this.container.menuFontOver;
	}
	else {
		this.bgColor = this.container.menuBGOver;
		if (NSfontOver) {
			this.txtLyr.document.write(this.htmStrOver);
			this.txtLyr.document.close();
		}
	}
	this.container.currentItem = this;
	if (this.hasMore) {
		horOffset = (isRight) ? (this.container.childOverlap - this.container.menuWidth) : (this.container.menuWidth - this.container.childOverlap);
		if (NS4) {
			this.childX = this.container.left + horOffset;
			this.childY = this.pageY + childOffset;
		}
		else {
			this.childX = this.container.style.pixelLeft + horOffset;
			this.childY = this.offsetTop + this.container.style.pixelTop + childOffset;
		}
		this.child.moveTo(this.childX,this.childY);
		this.child.keepInWindow();
		this.container.hasChildVisible = true;
		this.container.visibleChild = this.child;
		this.child.showIt(true);
	}
}
function itemOut() {
	if (IE4) {
		theEvent = menuLoc.event;
    	if (theEvent.srcElement.contains(theEvent.toElement)
     || (theEvent.fromElement.tagName=="IMG" && theEvent.toElement.contains(theEvent.fromElement)))
        return;
		
			this.style.backgroundColor = this.container.menuBGColor;
			this.style.color = this.container.menuFontColor;
		
	}
	else {
			this.bgColor = this.container.menuBGColor;
			if (NSfontOver) {
				with (this.txtLyr.document) {
					write(this.htmStr);
					close();
				}
			}
	
		if (!isOverMenu && !clickKill) {
			allTimer = setTimeout("currentMenu.hideTree()",10);
				
		}
	}
}
function moveTo(xPos,yPos) {
	this.style.pixelLeft = xPos;
	this.style.pixelTop = yPos;
}
function showIt(on) {
	
	if (NS4) {
		this.visibility = (on) ? "show" : "hide";
		if (keepHilite && this.currentItem) {
			this.currentItem.bgColor = this.menuBGColor;
			if (NSfontOver) {
				with (this.currentItem.txtLyr.document) {
					write(this.currentItem.htmStr);
					close();
				}
			}
		}
	}
	else {
		this.style.visibility = (on) ? "visible" : "hidden";
		
	}
	this.currentItem = null;
}
function keepInWindow() {
	scrBars = 20;
	botScrBar = (isFrames && navFrLoc=="bottom") ? (borWid*2) : scrBars;
	rtScrBar = (isFrames && navFrLoc=="right") ? (borWid*2) : scrBars;
	if (NS4) {
		winRight = (menuLoc.pageXOffset + menuLoc.innerWidth) - rtScrBar;
		rightPos = this.left + this.menuWidth;
   
		if (rightPos > winRight) {
			if (this.hasParent) {
				parentLeft = this.parentMenu.left;
				newLeft = ((parentLeft-this.menuWidth) + this.childOverlap);
				this.left = newLeft;
			}
			else {
				dif = rightPos - winRight;
				this.left -= dif;
			}
		}
		winBot = (menuLoc.pageYOffset + menuLoc.innerHeight) - botScrBar ;
		botPos = this.top + this.fullHeight;
		if (botPos > winBot) {
			dif = botPos - winBot;
			this.top -= dif;
		}
		
		winLeft = menuLoc.pageXOffset;
		leftPos = this.left;
		if (leftPos < winLeft) {
			if (this.hasParent) {
				parentLeft = this.parentMenu.left;
				newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
				this.left = newLeft;
			}
			else {
				this.left = 5;
			}
		}
	}
	else {
    	winRight = (menuLoc.document.body.scrollLeft + menuLoc.document.body.clientWidth) - rtScrBar;
		rightPos = this.style.pixelLeft + this.menuWidth;
	
		if (rightPos > winRight) {
			if (this.hasParent) {
				parentLeft = this.parentMenu.style.pixelLeft;
				newLeft = ((parentLeft - this.menuWidth) + this.childOverlap);
				this.style.pixelLeft = newLeft;
			}
			else {
				dif = rightPos - winRight;
				this.style.pixelLeft -= dif;
			}
		}
		winBot = (menuLoc.document.body.scrollTop + menuLoc.document.body.clientHeight) - botScrBar;
		botPos = this.style.pixelTop + this.fullHeight;
		if (botPos > winBot) {
			dif = botPos - winBot;
			this.style.pixelTop -= dif;
		}
		
		winLeft = menuLoc.document.body.scrollLeft;
		leftPos = this.style.pixelLeft;
		if (leftPos < winLeft) {
			if (this.hasParent) {
				parentLeft = this.parentMenu.style.pixelLeft;
				newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
				this.style.pixelLeft = newLeft;
			}
			else {
				this.style.pixelLeft = 5;
			}
		}
	}
}
function linkIt() {
	menuLoc.location.href = this.linkText;
}
function popDown(menuName,num){
	imgOff('img'+num);
	if (!isLoaded || !areCreated) return;
mSecsVis=50;
	whichEl = eval(menuName);
	whichEl.isOn = false;
whichEl.hideTop();
}
function hideAll() {
	for(i=1; i<topCount; i++) {
		temp = eval("elMenu" + i + ".startChild");
		temp.isOn = false;
		if (temp.hasChildVisible) temp.hideChildren();
		temp.showIt(false);
	}	
}
function hideTree() { 
	
	allTimer = null;
	if (isOverMenu) return;
	if (this.hasChildVisible) {
		this.hideChildren();
		
	}
	this.hideParents();
}
function hideTop() {
	whichEl = this;
	
	(this.hideTimer = setTimeout("whichEl.hideSelf()",mSecsVis));
			
}
function hideSelf() {
	this.hideTimer = null;
	if (!this.isOn && !isOverMenu) { 
		this.showIt(false);
	}
}
function hideParents() {
	tempMenu = this;
	while (tempMenu.hasParent) {
		tempMenu.showIt(false);
		tempMenu.parentMenu.isOn = false;		
		tempMenu = tempMenu.parentMenu;
	}
	tempMenu.hideTop();
}
function hideChildren(item) {
	tempMenu = this.visibleChild;
	while (tempMenu.hasChildVisible) {
		tempMenu.visibleChild.showIt(false);
		tempMenu.hasChildVisible = false;
		tempMenu = tempMenu.visibleChild;
	}
	if (!this.isOn || !item.hasMore || this.visibleChild != this.child) {
		this.visibleChild.showIt(false);
		this.hasChildVisible = false;
	}
}
function cancelSelect(){return false}
function reDo(){
	if (loader.innerWidth==origWidth && loader.innerHeight==origHeight) return;
	initVars();
	NSresized=true;
	menuLoc.location.reload();
}
function clicked() {
}
}
//-->
