function DropDown_linkOnClick(dropDownBoxID) {
	document.getElementById(dropDownBoxID).style.visibility = "visible";
}

function DropDown_linkOnMouseOver(dropDownBoxID) {
	document.getElementById(dropDownBoxID).style.visibility = "visible";
}

function DropDown_linkOnMouseOut(dropDownBoxID) {
	document.getElementById(dropDownBoxID).style.visibility = "hidden";
}

function DropDown_boxOnClick(dropDownBoxName, level) {
	//~ for (var i = level; i >= 0; i--) {
		//~ document.getElementById(dropDownBoxName + level).style.visibility = "hidden";
}

function DropDown_boxOnMouseOver(dropDownBoxID) {
	document.getElementById(dropDownBoxID).style.visibility = "visible";
}

function DropDown_boxOnMouseOut(dropDownBoxID) {
	document.getElementById(dropDownBoxID).style.visibility = "hidden";
}

function DropDown_getDropDownBoxPosition(dropDownOpenerID, dropDownBoxID, level1) {
	var dropDownOpener = document.getElementById(dropDownOpenerID);
	var dropDownBox = document.getElementById(dropDownBoxID);
	var dropDownBoxParent = dropDownBox.parentNode;

	dropDownBox.style.visibility = 'visible';
	dropDownBox.style.top = (dropDownOpener.offsetTop + (level1?25:0)) + "px";

	if (!level1)
		dropDownBox.style.left = (dropDownBoxParent.offsetWidth - 8) + "px";
}

function DropDown_getFirstLocationInMenu(dropDownBoxID) {
	node = getFirstChildByNodeType(document.getElementById(dropDownBoxID));

	if (node.onclick)
		node.onclick.call();
	else
		window.location.href = node;
}
