//DROPDOWN MENU
function show_dropdown(node){
	
	if(document.getElementById("idDropdownMenu_"+node)){
	
		//Visar dropdown-lager
		document.getElementById("idDropdownMenu_"+node).style.display = "block";
		
		//Hämtar absolut vänster-position för aktuellt lager
		xPos = document.getElementById('idTopMenu_'+node).offsetLeft;
		tempEl = document.getElementById('idTopMenu_'+node).offsetParent;
		while (tempEl != null) {
			xPos += tempEl.offsetLeft;
			tempEl = tempEl.offsetParent;
		}
		
		//Hämtar absolut topp-position för aktuellt lager
		yPos = document.getElementById('idTopMenu_'+node).offsetTop;
		tempEl = document.getElementById('idTopMenu_'+node).offsetParent;
		while (tempEl != null) {
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}
		
		//Justerar dropdown-lagrets position (i förhållande till länken)
		yPos = yPos+17+"px";
		xPos = xPos+"px";
		
		//Bestämmer dropdown-lagrets position
		document.getElementById("idDropdownMenu_"+node).style.left = xPos;
		document.getElementById("idDropdownMenu_"+node).style.top = yPos;

	}
	
}
function hide_dropdown(node){
	
		if(document.getElementById("idDropdownMenu_"+node)){
			//Gömmer dropdown-lager
			document.getElementById("idDropdownMenu_"+node).style.display = "none";
		}
	
}

/* Öppna nytt fönster */
function openWindow(url){
	newWindow=window.open(url, 'Information', 'toolbar=no,location=no,copyhistory=no,directories=no,scrollbars=yes,resizable=yes,width=380,height=500,left=100,top=50');
	newWindow.focus();
}