var menucontent = "";
var sourcedir = "./pics/"; 
menucontent += '<HTML><HEAD><STYLE><!--.generale{ position: absolute; left: -999; top: -999; z-index: 999; cursor: default; background-color: menu; color: menuText; width: 280;visibility: hidden; border-style: outset; border-width: 2px; height: 190}.components{ font-family: Ms Shell Dlg; font-size: 12px; padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px }// --></STYLE></HEAD>';
menucontent += '<BODY><OBJECT ID="cerca" CLASSID="clsid:B45FF030-4447-11D2-85DE-00C04FA35C89" HEIGHT="0" WIDTH="0"></OBJECT><DIV ID="right_menu" CLASS="generale">';
menucontent += '<center><b><font color="#0000FF" face="Arial" size="1">Eichelsachsen-Steuerung</font></b></center><hr>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'back\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_back.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="15">&nbsp;&nbsp;Vorherige Seite</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'forward\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_forward.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="15">&nbsp;&nbsp;N�hste Seite</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'reload\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_reload.gif" ALIGN="absmiddle" WIDTH="15" HEIGHT="16">&nbsp;&nbsp;Aktualisieren</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_home.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;Eichelsachsen.de als Startseite</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'bookmark\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_bookmark.gif" ALIGN="absmiddle" WIDTH="15" HEIGHT="15">&nbsp;&nbsp;Eichelsachsen.de zu den Favoriten</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'emaildp\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_email.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;E-Mail an Webmaster Eichelsachsen</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'emailws\')" STATUSTEXT=""><td><IMG SRC="' + sourcedir + 'menu_email.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;E-Mail an den Autor</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'info\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'menu_info.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;Info & Copyright</DIV>';
menucontent += '</BODY></HTML>';

	if (document.all && window.print) document.write (menucontent);


	function light_on (){
		if (event.srcElement.className == "components"){
			event.srcElement.style.backgroundColor="highlight";
			event.srcElement.style.color="highlightText";
				if (event.srcElement.STATUSTEXT) {
					window.status = event.srcElement.STATUSTEXT;
				}
		}
	}

	function light_off (){
		if (event.srcElement.className == "components"){
			event.srcElement.style.backgroundColor= "menu";
			event.srcElement.style.color="menuText";
			window.status = "";
		}
	}

	function extension (){
		if (event.clientY > 0 && event.clientX > 0  &&  event.clientY < document.body.clientHeight && event.clientX < document.body.clientWidth) {
			if (document.body.clientHeight - event.clientY + document.body.scrollTop > document.body.clientHeight / 2){
				right_menu.style.top = event.clientY + document.body.scrollTop;
			} else {
				right_menu.style.top = event.clientY + document.body.scrollTop - 255;
			}

			if (document.body.clientWidth- event.clientX + document.body.scrollLeft > document.body.clientWidth / 2){
				right_menu.style.left = event.clientX + document.body.scrollLeft;
			} else {
				right_menu.style.left = event.clientX + document.body.scrollLeft - 180;
			}
		} else {
			right_menu.style.top = document.body.scrollTop;
			right_menu.style.left = document.body.scrollLeft;
		}

		right_menu.style.visibility = "visible";
		return false;

	}

	function hide (){
			right_menu.style.visibility = "hidden";
			right_menu.style.left = -999;
			right_menu.style.top = -999;

	}

	function exe (type){
		if (type == "back"){
			history.back();
			
		} else if (type == "forward"){
			history.forward();

		} else if (type == "home"){
			document.body.style.behavior='url(#default#homepage)';
			document.body.setHomePage('http://www.Eichelsachsen.de/');

		} else if (type == "bookmark"){
			window.external.AddFavorite('http://www.Eichelsachsen.de', 'Eichelsachsen Info Seite');

		} else if (type == "reload"){
			self.location.reload();

		} else if (type == "icq"){
			location.href="";
			
		} else if (type == "emaildp"){
			location.href="mailto:Webmaster@Eichelsachsen.de";

		} else if (type == "emailws"){
			location.href="mailto:Bjoern.Regenbogen@Eichelsachsen.de";

		} else if (type == "vote"){
              			location.href="";
		
		} else if (type == "autor"){
			alert('');
				
		} else if (type == "pass"){
			alert('');
					
		} else if (type == "info"){
			alert(' 2002 Bj�n Regenbogen');

		}
	}

	function cancelproc () { 
		window.event.cancelBubble = true;
		window.event.returnValue = false;
	}

	if (document.all && window.print){
		document.oncontextmenu=extension;
		document.body.onclick=hide;
		right_menu.onmouseover=light_on;
		right_menu.onmouseout=light_off;
		right_menu.ondragstart=cancelproc;
		right_menu.onselectstart=cancelproc;
	}

