<!--	//Base-Defaults für das Kontext-Menü
	//dieses Script muss am Body-Ende aufgerufen werden!

//aktuelle Jahreszahl für Copyright-Angabe:
var jahr=new Date();
var JJJJ=jahr.getFullYear();

//Browser-Logo, abhängig vom verwendeten Browser:
var BrowserLogo = "pixel.gif";
if(document.all) BrowserLogo = "menu_ie.gif";
else if(!document.all && document.getElementById) {
    (navigator.userAgent.indexOf("Flock") > -1) ? BrowserLogo = "menu_flock.gif" : 
    (navigator.userAgent.indexOf("Chrome") > -1) ? BrowserLogo = "menu_chrome.gif" : 
    (navigator.userAgent.indexOf("Safari") > -1) ? BrowserLogo = "menu_safari.gif" : 
    (navigator.userAgent.indexOf("Firefox") > -1) ? BrowserLogo = "menu_ff.gif" : BrowserLogo = "menu_nc.gif";
}

//hier beginnt das Context-Script:-------------------------------------

var menucontent = "";
//var sourcedir = "http://www.laufergebnis.de";
var sourcedir = "/contextimages/";

//Fortsetzung des Context-Scripts (ausgelagert):-----------------------
createMenu();

//---------------------------------------------------------------------
//Kontext-Menü generieren:

	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.laufergebnis.de');

		} else if (type == "bookmark"){
			var imgFav= new Image();
			imgFav.src= "http://www.laufergebnis.de/favicon.ico";
			window.external.AddFavorite('http://www.laufergebnis.de', 'laufergebnis.de');
		
		} else if (type == "reload"){
			self.location.reload();

		} else if (type == "print"){
			window.print();

		} else if (type == "icq"){
			location.href="";

		} else if (type == "qf"){
			location.href="javascript:QF()";

		} else if (type == "laufkal"){
			location.href="javascript:LAUFKALENDER()";

		} else if (type == "email1"){
			location.href="mailto:%6D%61%69%6C%40%6C%61%75%66%65%72%67%65%62%6E%69%73%2E%64%65?Subject=Mail%20an%20'laufergebnis.de'";

		} else if (type == "email2"){
			location.href="javascript:MAIL()";

		} else if (type == "vote"){
              		location.href="";
		
		} else if (type == "autor"){
			alert('');
				
		} else if (type == "pass"){
			alert('');

		} else if (type == "faq"){
			location.href="javascript:FAQ()";

		} else if (type == "sys"){
			location.href="javascript:SYS()";

		} else if (type == "imprint"){
			location.href="javascript:IMPR()";
	
		} else if (type == "info"){
			alert("\n© \'laufergebnis.de\' 2001-"+JJJJ+
		              "\n________________________________________________"+
			      "\n\nLaufergebnis-Listen, Lauf-Termine & mehr!"+
			      "\n\n...da, wo\'s läuft!");
		
		} else if (type == "close"){
			top.close();

		}
	}

//---------------------------------------------------------------------
//Browser-Weiche:
//IE:
	if (document.all && window.print){
		document.write (menucontent);
		document.oncontextmenu=extension_IE;
		document.body.onclick=hide_IE;
		right_menu.onmouseover=light_on_IE;
		right_menu.onmouseout=light_off_IE;
		right_menu.ondragstart=cancelproc_IE;
		right_menu.onselectstart=cancelproc_IE;
	}
//NC:
	else if (!document.all && document.getElementById && window.print){
		document.write (menucontent);
		document.oncontextmenu=extension_NC;
		document.onclick=hide_NC;
		document.body.onmouseover=light_on_NC;
		document.body.onmouseout=light_off_NC;
		document.body.ondragstart=cancelproc_NC;
		document.body.onselectstart=cancelproc_NC;
	}

//---------------------------------------------------------------------

	function light_on_IE (){
		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_on_NC (e){
		if (e.target.className == "components"){
			e.target.style.backgroundColor="highlight";
			e.target.style.color="highlightText";
				if (e.target.STATUSTEXT) {
					window.status = e.target.STATUSTEXT;
				}
		}
	}

//---------------------------------------------------------------------

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

	function light_off_NC (e){
		if (e.target.className == "components"){
			e.target.style.backgroundColor= "menu";
			e.target.style.color="menuText";
			window.status = "";
		}
	}

//---------------------------------------------------------------------

	function extension_IE (){
		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 extension_NC (e){
		if (e.pageY > 0 && e.pageX > 0  &&  e.pageY < document.body.clientHeight && e.pageX < document.body.clientWidth) {
			if (document.body.clientHeight - e.pageY + document.body.scrollTop > document.body.clientHeight / 2){
				document.getElementById("right_menu").style.top = e.pageY + document.body.scrollTop;
			} else {
				document.getElementById("right_menu").style.top = e.pageY + document.body.scrollTop - 255;
			}

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

		document.getElementById("right_menu").style.visibility = "visible";
		return false;

	}

//---------------------------------------------------------------------

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

	function cancelproc_NC (e) { 
		e.cancelBubble = true;
		e.returnValue = false;
		}

//---------------------------------------------------------------------

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

	function hide_NC (){
			document.getElementById("right_menu").style.visibility = "hidden";
			document.getElementById("right_menu").style.left = -999;
			document.getElementById("right_menu").style.top = -999;
	}

//-->