// JavaScript Document

function AssignPosition(d) {
//d.style.left = (cX+10) + "px";
//d.style.top = (cY+10) + "px";
}

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }

var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = "block"; }
else { dd.style.display = "none"; }
}

function HighlightLink(d) {
if(d.length < 1) { return; }
document.getElementById(d).className = 'activelink';
}

var i=0;

function populateMenu() {

HighlightLink(highlight);

for (x in menus)
{
	ShowContent(menus[x]);
}

}
