/*
var currentPopup = null;
var bShowPopup = false;

function showPopup(elm) {
	bShowPopup = true;
	if (elm && (elm.style.display == "none" || elm.style.display == "")) {
		if (currentPopup != null) {
			currentPopup.style.display = "none";
		}
		currentPopup = elm;
		elm.style.left = parseInt(window.event.clientX) + 5;
		elm.style.top = parseInt(window.event.clientY) + 5;
		elm.style.display = "block";
		elm.style.zIndex = isNaN(parseInt(elm.style.zIndex))? 10 : parseInt(elm.style.zIndex) + 1;
	}
}
function hidePopup(elm) {
	bShowPopup = false;
	window.setTimeout("doHidePopup()", 2000);
}
function doHidePopup() {
	if (!bShowPopup) {
		if (currentPopup != null) {
			currentPopup.style.display = "none";
			currentPopup = null;
		}
	}
}
function showDiv(elm) {
	if (elm) {
		elm.style.left = parseInt(window.event.clientX) + 1;
		elm.style.top = parseInt(window.event.clientY) + 1;
		elm.style.display = "block";
		elm.style.zIndex = isNaN(parseInt(elm.style.zIndex))? 10 : parseInt(elm.style.zIndex) + 1;
	}
}
function hideDiv(elm) {
	if (elm) {
		elm.style.display = "none";
	}
}
*/
function toggleMenu(elm) {
	var a = elm.style;
	var td = elm.parentElement.style;
	if (a.color == "#568769" || a.color == "" || a.color == null) {
		td.color = "#F2E9CD";
		td.backgroundColor = "#568769";
		a.color = "#F2E9CD";
		a.backgroundColor = "#568769";
		td.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100,finishOpacity=25,style=1,startX=0,finishX=110,startY=0,finishY=30)";
	}
	else {
		td.color = "#568769";
		td.backgroundColor = "#F2E9CD";
		a.color = "#568769";
		a.backgroundColor = "#F2E9CD";
		a.backgroundColor = "transparent";
		td.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100,finishOpacity=100,style=1,startX=0,finishX=110,startY=0,finishY=30)";
	}
	a.textDecoration = "none";
}
