var menucontent = "";
var sourcedir = "";
menucontent += '<HTML><HEAD><STYLE><!--.generale{ position: absolute; left: -999; top: -999; z-index: 999; cursor: default; background-color: menu; color: menuText; width: 180;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 += '<DIV CLASS="components" ONCLICK="exe(\'back\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'http://www.mistery1.de/images/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 + 'http://www.mistery1.de/images/menu_forward.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="15">&nbsp;&nbsp;Nächste Seite</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'reload\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'http://www.mistery1.de/images/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 + 'http://www.mistery1.de/images/menu_home.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;Als Startseite</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'bookmark\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'http://www.mistery1.de/images/menu_bookmark.gif" ALIGN="absmiddle" WIDTH="15" HEIGHT="15">&nbsp;&nbsp;Zu den Favoriten</DIV><HR>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'emaildp\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'http://www.mistery1.de/images/menu_email.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;E-Mail an den Webmaster</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'info\')" STATUSTEXT=""><IMG SRC="' + sourcedir + 'http://www.mistery1.de/images/menu_info.gif" ALIGN="absmiddle" WIDTH="16" HEIGHT="16">&nbsp;&nbsp;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.mistery1.de');

		} else if (type == "bookmark"){
			var imgFav= new Image();
			imgFav.src= "";
			window.external.AddFavorite('http://www.mistery1.de', 'Mistery1´s HP');
		
		} else if (type == "reload"){
			self.location.reload();

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

		} else if (type == "emailws"){
			location.href="mailto:steffen@mistery1.de";

		} else if (type == "vote"){
              			location.href="";
		
		} else if (type == "autor"){
			alert('');
				
		} else if (type == "pass"){
			alert('');
					
		} else if (type == "info"){
			alert("Mistery1´s Private Homepage"+
		              "\n     © 2007 Mistery1"+
			"\n\n\nDanke das du auf meine Page gekommen bist"+
			"\n Schönen Tag Noch! ");

		}
	}

	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;
	}

