function navOver(id) {
	document.getElementById(id).className = "button_over";
}

function navOff(id) {
	document.getElementById(id).className = "button";
}

function beamTo(target) {
	switch(target) {
		case 'home' : window.location.href = "index.php";
		break;
		
		case 'bewerben' : window.location.href = "bewerben.php";
		break;
		
		case 'forum' : window.location.href = "http://forum.hominii.de";
		break;
		
		case 'links' : window.location.href = "links.php";
		break;
		
		case 'legal' : window.location.href = "impressum.php";
		break;
		
		case 'staff' : window.location.href = "staff.php";
		break;
		
		case 'history' : window.location.href = "history.php";
		break;
		
		case 'contact' : window.location.href = "contact.php";
		break;
		
		case 'members' : window.location.href = "members.php";
		break;
		
		case 'classes'  : window.location.href = "classes.php";
		break;
		
		case 'twinkraid'  : window.location.href = "twinkraids.php";
		break;
		
		case 'hnraid'  : window.location.href = "raid.php";
		break;
		
		case 'raidregeln'  : window.location.href = "raidregeln.php";
		break;
		
		case 'hnfiles'  : window.location.href = "http://files.hominii.de";
		break;
		
		case 'hnmovies'  : window.location.href = "http://movies.hominii.de";
		break;
		
		case 'hninterface'  : window.location.href = "http://interface.hominii.de";
		break;
		
		case 'arena'  : window.location.href = "arena.php";
		break;
	}
}

function menuOver(id) {
	document.getElementById(id).className = "menu_over";
	childs = document.getElementById(id).childNodes;
	
	for (i = 0; i < childs.length; i++) {
		elem = childs[i];
		if (elem.nodeName == "TD") {
			elem.style.color = "#FFFFFF";
		}
	}
}

function menuOff(id) {
	document.getElementById(id).className = "";
	childs = document.getElementById(id).childNodes;
	
	for (i = 0; i < childs.length; i++) {
		elem = childs[i];
		if (elem.nodeName == "TD") {
			elem.style.color = "#999999";
		}
	}
}


function show(target) {
	id = target + "_frame";
	document.getElementById(id).style.visibility = "visible";
	navOver(target);
}

function hide(target) {
	id = target + "_frame";
	document.getElementById(id).style.visibility = "hidden";
	navOff(target);
}

function showSub() {
	document.getElementById('feature_frame').style.visibility = "visible";
	document.getElementById('blitz_frame').style.visibility = "visible";
	document.getElementById('blitz').className = "button_over";
}

function hideSub() {
	document.getElementById('feature_frame').style.visibility = "hidden";
	document.getElementById('blitz_frame').style.visibility = "hidden";
	document.getElementById('blitz').className = "button";
}
