//Declarations.
var timerDelId = 0;
var menu;

// rollOnParent
function rollOnParent(a) {
	a.style.backgroundColor='#d6ebc1';
}

// rollOffParent
function rollOffParent(a) {
	if (a.className == 'menuBarParentActive') {
		a.style.backgroundColor='#d6ebc1'
	}
	else {
		a.style.backgroundColor='#ffffff';
	}
}
// rollOnChild
function rollOnChild(a) {
	a.style.backgroundColor='#BEDF9D';
}

// rollOffChild
function rollOffChild(a) {
	a.style.backgroundColor='#d6ebc1'
}

// cancelDelay
function cancelDelay() {
	if (timerDelId != 0) {
		window.clearTimeout(timerDelId);
		timerDelId = 0;
	}
}

// delayRemove
function delayRemove() {
	timerDelId = window.setTimeout('deletePopup()', 200);
}

// deletePopup
function deletePopup() {
	if (menu) {
		menu.style.display = 'none';
		var selects = document.all.tags("SELECT");
		if (selects!=null) {
			for (var i=0; i<selects.length; i++) {
				selects[i].style.visibility = 'visible';
			}
		}
	}
}
