<!--
/*
////////////////////////////////////////////////////////////////////////////
   (C) Copyright Marcus Efraimsson, 2006
       All designs and code belongs to Marcus Efraimsson!
       Contact: kontakt (at) administrationen.se
////////////////////////////////////////////////////////////////////////////
*/
sfHover = function() 
{
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i = 0; i < sfEls.length; i++) 
	{
		sfEls[i].onmouseover=function() 
		{
			this.className += " sfhover";
		}
		sfEls[i].onmouseout = function() 
		{
			this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

sfHover2 = function() 
{
	var sfEls = document.getElementById("administrationen_icon").getElementsByTagName("LI");
	for (var i = 0; i < sfEls.length; i++) 
	{
		sfEls[i].onmouseover=function() 
		{
			this.className += " sfhover2";
		}
		sfEls[i].onmouseout = function() 
		{
			this.className = this.className.replace(new RegExp(" sfhover2\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
if (window.attachEvent) window.attachEvent("onload", sfHover2);

function show_desc(str)
{		
	document.getElementById("desc").style.display = "";
	document.getElementById("desc").innerHTML = document.getElementById(str).innerHTML;
}

function hide_desc()
{
	document.getElementById("desc").style.display = "none";
}

function mailto(address, title, extra)
{
	document.write('<a href="mailto: ' + address + '" title="' + address + '"' + extra + '>' + title + '</a>');
}

function open_window(url, width, height)
{	
	var top = (screen.height / 2) - (height / 2) - 50;
	var left = (screen.width / 2) - (width / 2);
	
	window.open(url, "window", ("toolbar=no, menubar=no, resizable=no, scrollbars=yes, width=" + width + ", height=" + height + ", top=" + top + ", left=" + left));	
}
//-->
