	
	
	// Navigation Script 
	timer=0;
	function hideallbut(n){
		for (i=1; i<6; i++){
			if (i!=n) document.getElementById("nav-collum_"+i).style.visibility="hidden";
		}
	}
	function showsubnav(n){
		cleartimer();
		hideallbut(n);
		document.getElementById("nav-collum_"+n).style.visibility="visible";
	}
	function navout(){
		timer=window.setTimeout("clearall()", 500);
	}
	function cleartimer(){
		clearTimeout(timer);
	}
	function clearall(){
		hideallbut(0);
	}
	
	// Local links 
	function jumptolocal(id){
		elm=document.getElementsByName(id)[0];
		elm.scrollIntoView(true);
		if (navigator.appName=="Microsoft Internet Explorer"){
			window.scrollTo(0,0);
		}
		else {
			anzeigehoehe=window.innerHeight;
			scrollposition=window.pageYOffset;
			gesamthoehe=document.body.scrollHeight;
			if (gesamthoehe-(scrollposition+anzeigehoehe)<=0){ // Problem entdeckt
				elmpos=elm.offsetTop;
				offset=(elmpos-scrollposition);
				window.scrollBy(0,-(262-offset));
			}	
			else { // Normal
				window.scrollBy(0,-262);
			}
		}
	}
	function jumptotop(){
		window.scrollTo(0,0);
		document.getElementById("scrollarea").scrollTop=0;
	}


	
	// Terms and conditions window
	function openterms(){						
		termwindow=window.open("terms.html","terms","left=150,top=100,height=300,width=520,scrollbars=yes");			}