	var name;
	function menu(){						
			if(document.title){
				var title = document.title;
				if(document.getElementById(title.substring(0,4).toLowerCase())){ //checker om ID*en findes i menu. Hvis ja, styles den
					document.getElementById(title.substring(0,4).toLowerCase()).style.color = "#fff900";
					document.getElementById(title.substring(0,4).toLowerCase()).parentNode.style.color = "#fff900"; //styler aktiv bullet
				}
				if(title.substring(0,4).toLowerCase() == "onli"){ //checker om det er forsiden
					document.getElementById("onli").style.color = "#000000";
					document.getElementById("onli").style.background = "url(gfx/generatorSprite.png) right -68px no-repeat";
					document.getElementById("on").style.background = "url(gfx/generatorSprite.png) -280px 0px no-repeat";
				}
			}
	};
	
	function showmenu(id){
		document.getElementById(id).style.display="block";
	}
	
	function hidemenu(id){
		document.getElementById(id).style.display="none";
	}
	
/* Skriver det sidste navn ud på savelisten */ 
	function save(){
		//$("#savepoint").after(name + "<br/ >");
		var elem = document.createElement("div");			
		elem.className = "namelistName"; //I stedet for setAttribute pga IE7 (http://www.nielsgamborg.dk/wordpress/programmering/setattribute-og-internet-explorer.htm)
		if(document.title.substring(0,4) == 'Busi' || 
			document.title.substring(0,4) == 'Comp' ||
			document.title.substring(0,4) == 'Code' ||
			document.title.substring(0,4) == 'Proj' ||
			document.title.substring(0,4) == 'Doma' ||
			document.title.substring(0,4) == 'Prod' ||
			document.title.substring(0,4) == 'Band' ||
			document.title.substring(0,4) == 'Rand' ||
			document.title.substring(0,4) == 'Fake' ||
			document.title.substring(0,4) == 'Team' ||
			document.title.substring(0,4) == 'Clan' ||
			document.title.substring(0,4) == 'Guil'){
			elem.onclick = new Function("document.getElementById('domainInput').value = '" + name + "';document.forms['goDaddyForm'].submit();_gaq.push(['_trackEvent', 'Klik', 'Domain Check', '" + document.title + "'])"); 
			/* Funktion herover er kodet som en streng, da IE7 ikke haandterer at eventhandlers som onclick bliver added til DOM'en.
				http://www.howtocreate.co.uk/tutorials/javascript/dombasics */
			//elem.setAttribute("onclick", "checkDomain('" + name + "');_gaq.push(['_trackEvent', 'Klik', 'Domain Check', '" + document.title + "'])"); //Affiliate checkdomain function + Google Analytics
		}
		var nameTextNode = document.createTextNode(name);
		elem.appendChild(nameTextNode);
		document.getElementById("savepoint").appendChild(elem);
		}

	/* Virker ikke i IE7 pga browseren ikke understøtter eventhandlers bliver added til dommen
	function checkDomain(nameToCheck){
		if(document.getElementById('domainInput')){
			document.getElementById('domainInput').value = nameToCheck;
			document.forms["goDaddyForm"].submit();
		}
	 }	*/
