// JavaScript Document
function clearTopNav(){
//	document.getElementById("dd1").className="nshw";
	document.getElementById("dd2").className="nshw";
	document.getElementById("dd3").className="nshw";
	document.getElementById("dd4").className="nshw";
}
function showTopNav(e){
//	document.getElementById("dd1").className=(e=="dd1")? "shwn":"nshw";
	document.getElementById("dd2").className=(e=="dd2")? "shwn":"nshw";
	document.getElementById("dd3").className=(e=="dd3")? "shwn":"nshw";
	document.getElementById("dd4").className=(e=="dd4")? "shwn":"nshw";
}

function showProfile(){
	document.getElementById("profileLong").className="shwn";
	document.getElementById("profLink").className="open";
}
function hideProfile(){	
	document.getElementById("profileLong").className="nshw";	
	document.getElementById("profLink").className="";
}
function toggleProfile(){
	var c=document.getElementById("profileLong").className;
	(c == "nshw") ? showProfile() : hideProfile();
}

function showEvent(intEventId, objEvent) {
	qc.handleEvent(objEvent);

	var objEventPopup = qc.getControl("eventpopup");
	objEventPopup.innerHTML = "<dl><dt>" + qc.strEventArray[intEventId][0] + "</dt><dt>" +
		qc.strEventArray[intEventId][1] + "</dt><dt>" +
		qc.strEventArray[intEventId][2] + "</dt><dt>" +
		qc.strEventArray[intEventId][3] + "<br/>&nbsp;</dt></dl>";
	objEventPopup.wrapper.setAbsolutePosition(qc.mouse.x + 8 + qc.scroll.x, qc.mouse.y + 8 + qc.scroll.y);

	objEventPopup.wrapper.toggleDisplay('show');
}

function hideEvent() {
	qc.getControl("eventpopup").wrapper.toggleDisplay('hide');	
}