function drop(navi_id) {

	if(!document.getElementById(navi_id)) return false;

	var naviItems = document.getElementById(navi_id).getElementsByTagName("LI");

	for (var i=0; i<naviItems.length; i++) {
		naviItems[i].onmouseover = nOver;
		naviItems[i].onmouseout = nOut;

		var anchors = naviItems[i].getElementsByTagName("A");
		anchors[0].classNameOrig = anchors[0].className;
		
	}

}

function nOver() {
	var children = this.getElementsByTagName("UL");
	var anchors = this.getElementsByTagName("A");

	if(children.length) {
		children[0].className += ' over';
	}

	if(anchors.length) {
		anchors[0].className += ' over';
	}
}

function nOut() {
	var children = this.getElementsByTagName("UL");
	var anchors = this.getElementsByTagName("A");

	if(children.length) {
		children[0].className = '';
//		children[0].className = this.className.replace(new RegExp(" over\\b"), "");
	}

	if(anchors.length) {
		anchors[0].className = anchors[0].classNameOrig;
//		anchors[0].className = this.className.replace(new RegExp(" over\\b"), "");
	}
}

