


		// check if this page is in a frameset
		// ----------------------------------------------------------------
		if ( top != self )
			top.location = self.location;

	// ================================================================================
	//  Farbeinstellungen
	// ================================================================================

	//	var setBackgroundColorOn = "<?php echo$actcolor ?>";
		var setBackgroundColorOff = "#fafafa";
		var setForegroundColorOn = "#ffffff";
		var setForegroundColorOff = "#888888";

		function menuOn(menu) {

			document.getElementById(menu).style.backgroundColor = setBackgroundColorOn;
			document.getElementById("a"+menu).style.color = setForegroundColorOn;
		}
		function menuOff(menu) {

			document.getElementById(menu).style.backgroundColor = setBackgroundColorOff;
			document.getElementById("a"+menu).style.color = setForegroundColorOff;

			menuSetLinkColor();
		}
		function menuColor(menu) {

			switch (menu)
			{
				case 1:
					setBackgroundColorOn = "#87082e";
				break;
				case 2:
					setBackgroundColorOn = "#004887";
				break;
				case 3:
					setBackgroundColorOn = "#238dbd";
				break;
				case 4:
					setBackgroundColorOn = "#f7bb0d";
				break;
				case 5:
					setBackgroundColorOn = "#42a500";
				break;
				case 6:
					setBackgroundColorOn = "#ffe0e0";
				break;
				case 7:
					setBackgroundColorOn = "#e10070";
				break;
				case 8:
					setBackgroundColorOn = "#909090";
				break;
			}

			menuSetColor();
			menuSaveColor();
		}
		function menuSetColor() {

			document.getElementById('head_0').style.backgroundColor = setBackgroundColorOn;
			document.getElementById('head_1').style.backgroundColor = setBackgroundColorOn;
			document.getElementById('foot_0').style.backgroundColor = setBackgroundColorOn;
			// document.getElementById('advert_0').style.backgroundColor = setBackgroundColorOn;

			document.getElementById('wcolor_01').value = setBackgroundColorOn;
			document.getElementById('waddress_01').value = document.URL;

			menuSetLinkColor();
		}
		function menuSetLinkColor() {

			var menuLinkID = "menu2_" + pageID;

			if ((pageID >= 1) && (pageID <= 9)) {
				document.getElementById(menuLinkID).style.backgroundColor = setBackgroundColorOn;
				document.getElementById("a"+menuLinkID).style.color = setForegroundColorOn;
			}
		}
		function menuSaveColor() {

			document.getElementById('fcolor_01').submit();
		}

