﻿activateMenu = function(nav) {
	if (document.all && document.getElementById(nav).currentStyle) {
		var navroot = document.getElementById(nav);
		var lis=navroot.getElementsByTagName("LI");
		for (i=0; i<lis.length; i++) {
			if(lis[i].lastChild.tagName=="UL") {
				lis[i].onmouseover=function() {
					this.lastChild.style.display="block";
				}
				lis[i].onmouseout=function() {
					this.lastChild.style.display="none";
				}
			}
		}
	}
}

function Over(str_ID)
{
	try
	{
		if ( document.getElementById || document.all )
		{
			if (document.getElementById(str_ID).bgColor == '#cccccc')
				document.getElementById(str_ID).bgColor = '#ffffff';
			else
				document.getElementById(str_ID).bgColor = '#cccccc';
		}
	}
	catch(e)
	{
		window.status = 'Der opstod en fejl: ' + e.message;
	}
}
function Skjul(str_link)
{
	try
	{
		if ( document.getElementById || document.all )
		{
			document.getElementById(str_link).style.display = 'none';
			document.getElementById(str_link).style.visibility = 'hidden';
		}
	}
	catch(e)
	{
		window.status = 'Der opstod en fejl: ' + e.message;
	}
}
function Vis(str_link,int_x,int_y)
{
	try
	{
		if ( document.getElementById || document.all )
		{
			document.getElementById(str_link).style.top = 120 + (int_y*20) + 'px';
			document.getElementById(str_link).style.left = 144 + (int_x*126) + 'px';
			document.getElementById(str_link).style.display = 'block';
			document.getElementById(str_link).style.visibility = 'visible';
		}
	}
	catch(e)
	{
		window.status = 'Der opstod en fejl: ' + e.message;
	}
}