// JavaScript Document
var ie = ((document.all)&&(!document.layers)) ? true : false;
var currentDD;
var activeDD = false;

function DDM(obj, state) {
	if (ie) {
		if (state) {
			DDMopen(obj);
		} else {
			activeDD = false;
			setTimeout("DDMclose()",1000);
		}
	}
}

function DDMopen(obj) {
	currentDD ? DDMclose(true) : false;
	for (i=0; i < obj.childNodes.length; i++) {
		if (obj.childNodes[i].nodeName.toLowerCase() == "ul") {
			obj.childNodes[i].style.display = "block";
			currentDD = obj.childNodes[i];
			activeDD = true;
		}
	}
}

function DDMclose(fast) {
	if (!activeDD) {
		currentDD.style.display = "none";
	}
	if (fast) {
		currentDD.style.display = "none";
	}
}

function DDMmove() {
	activeDD = true;
}

function DDMlink(obj) {
	window.location.href = obj.childNodes[0].href;
}