	function showNavigation(id)
	{
		hideNavigation("events");
		hideNavigation("service");
		hideNavigation("standort");
		hideNavigation("ueberuns");
		if(id != "nothing")
		{
			document.getElementById("nav_" + id).className="navigation_on";
		}
	}
	function hideNavigation(id)
	{
		document.getElementById("nav_" + id).className="navigation_off";
	}

	var ap_instances = new Array();

	function ap_stopAll(playerID) {
		for(var i = 0;i<ap_instances.length;i++) {
			try {
				if(ap_instances[i] != playerID) document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 1);
				else document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 0);
			} catch( errorObject ) {
				// stop any errors
			}
		}
	}

	function PopupPic(sPicURL) {
		window.open("popup.htm?"+sPicURL, "Plauscherl", "resizable=1,HEIGHT=200,WIDTH=200");
	}

	function ap_registerPlayers() {
		var objectID;
		var objectTags = document.getElementsByTagName("object");
		for(var i=0;i<objectTags.length;i++) {
			objectID = objectTags[i].id;
			if(objectID.indexOf("audioplayer") == 0) {
				ap_instances[i] = objectID.substring(11, objectID.length);
			}
		}
	}

	var ap_clearID = setInterval( ap_registerPlayers, 100 );

