//script.js juneco.de
// NoSpam
function nospam(x){
var yy=-6;var z=0;var xx=""; x="g\\eirn:" + x;
for(var y=0;y<x.length;y++)
        {
        z=x.charCodeAt(y);
        xx+=String.fromCharCode(z-(yy++%7));
        }
return xx;
}

function mail(x)
{
location.href=nospam(x);
}

// NavBar:
function findcurrent_p(navRoot, hover)
{	
	for (i=0; i<4; i++)
	{
		node = navRoot.getElementsByTagName("div")[i];
		if (node.attributes.length>0)
		{
			if (node.nodeName=="DIV"&&node.className=="navHead"&&node.getElementsByTagName("p").length>0)
			{	
				if (node.getElementsByTagName("p")[0].className=="navCurrent" && hover==true)
				{	
					node.getElementsByTagName("p")[0].className="navCurrentDeactivated";
				}
				if (node.getElementsByTagName("p")[0].className=="navCurrentDeactivated" && hover==false)
				{
					node.getElementsByTagName("p")[0].className="navCurrent";
				}
			}
		}
	}
}

				
startList = function() 
{
	if (document.all&&document.getElementById)
	{	
		navRoot = document.getElementById("navigation");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="DIV"&&node.className=="navHead") 
			{
				node.onmouseover=function() 
				{
					this.className+=" IEhover"; 
					findcurrent_p(navRoot, true);
	 			}
	  			node.onmouseout=function() 
				{
	 				this.className=this.className.replace(" IEhover", "");
					findcurrent_p(navRoot, false);
	   			}
	  		}
	  	}
	}
	else
	{
		navRoot = document.getElementById("navigation");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="DIV"&&node.className=="navHead") 
			{
				node.onmouseover=function() 
				{	
					findcurrent_p(navRoot, true);
	 			}
	  			node.onmouseout=function() 
				{
					findcurrent_p(navRoot, false);
	   			}
	  		}
	  	}
	}
}

window.onload=startList;

