function spamsecure()
{
 	coded = "mz13@pw3uiqt.kwu"
		cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890"
		shift=coded.length
		link=""
		for (i=0; i<coded.length; i++){
			if (cipher.indexOf(coded.charAt(i))==-1){
				ltr=coded.charAt(i)
				link+=(ltr)
			}
			else {     
				ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length
				link+=(cipher.charAt(ltr))
			}				
    }
	return document.write("<a href='mailto:"+link+"'>Erling Steen</a>")
}

function ToggleDivs(id) 
{   
    if (document.getElementById && document.getElementsByTagName)
    {
        var content = document.getElementById("content");
        var divs = content.getElementsByTagName("div");    
        for (i = 0; i<divs.length; i++) 
        {        
            var elm = divs[i];        
            if (elm != null)
            {
               var attr = elm.getAttribute("id");
               if(attr != null)
               {
                   if ( attr == id )
                   {
                        elm.style.display='inline';                
                   }
                   else if ( attr.charAt(0) == "_")
                   {
                        elm.style.display='none';
                    }
               }
            }
        }
    }
}

function ChangeLinkBackGround(link)
{    
    if (document.body.getElementsByTagName)
    {        
        var divs = document.body.getElementsByTagName("a");    
        for (i = 0; i<divs.length; i++) 
        {                
            var elm = divs[i];        
            if (elm != null)
            {              
               if(elm.className != null)
               {
                   if ( elm.className == "selected" )
                   {
                        elm.className = "unselected";                
                   }
               }
            }
        }
    }    
    link.className = "selected" 
}
