<!--

function getRealTop(obj) {
	yPos = obj.offsetTop;
	tempEl = obj.offsetParent;
	while (tempEl != null) {
	        yPos += tempEl.offsetTop;
	        tempEl = tempEl.offsetParent;
	}
	return yPos;
}

function handleMice(eventSrc,state) {
	if (state) {
		y = getRealTop(eventSrc);
		h = eventSrc.offsetHeight;
		topStyle = document.getElementById('tstyle');
		btmStyle = document.getElementById('bstyle');
		topStyle.style.top = y - 4;
		btmStyle.style.top = y + h;
		eventSrc.style.background = "#80ce49 url(/images/arrow_white.gif) no-repeat 16px 9px";
		topStyle.style.visibility = "visible";
		btmStyle.style.visibility = "visible";
	} else {
		topStyle.style.visibility = "hidden";
		btmStyle.style.visibility = "hidden";
		eventSrc.style.background = "url(/images/arrow_green.gif) no-repeat 16px 9px";
	}
}

numMenus = 8;

function offSub() {
	for (i=1;i<=numMenus;i++) {
		hideSub = document.getElementById('sub'+i);
		if (hideSub != null) {
			if (hideSub.style.display == 'block') {
				hideSub.style.display = 'none';
			}
		}
	}
}

function changeSub(num) {
	whatSub = document.getElementById('sub'+num);
	if ((whatSub.style.display == 'none')||(whatSub.style.display == '')) {
		offSub();
		whatSub.style.display = 'block';
	} else {
		whatSub.style.display = 'none';
	}
}

//-->
