﻿var rolloverColor = "#d9e1ec";
var defaultColor = "#efefef";
var timerOut = null;
function subnavmouseover(aelement) {
    if (timerOut != null) {
        clearTimeout(timerOut);
        timerOut = null;
    }
    
	if (aelement!= null) {
	var lielement = aelement.parentNode;
	if (lielement.tagName == "LI") {
		lielement.style.backgroundColor = rolloverColor;
		if (glielement != null) {
			glielement.style.backgroundColor = defaultColor;
		}
		glielement = lielement;
	} else {
		if (glielement != null) {
			glielement.style.backgroundColor = defaultColor;
		}
		glielement = null;
	}
	} else {
		if (glielement != null) {
			glielement.style.backgroundColor = defaultColor;
		}
		glielement = null;
	}
}
function subnavmouseout() {
    if (glielement != null) {
        timerOut = setTimeout("subnavmouseover(null)", 1000)
	}
}
