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: 178;visibility: hidden; border-style: outset; border-width: 2px; height: 100}.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><DIV ID="right_menu" CLASS="generale">';
menucontent += '<center><img border="0" src="bilder/allgemeinbilder/back.gif" width="170" height="14"></center><HR size="3">';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT="Diese Seite als Startseite"><img border="0" src="bilder/rechtsklick/startseite.gif" width="12" height="12"> Diese Seite als Startseite</DIV>';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'bookmark\')" STATUSTEXT="Diese Seite zu den Favoriten"><img border="0" src="bilder/rechtsklick/favoriten.gif" width="12" height="12"> Diese Seite zu den Favoriten</DIV><HR size="3">';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'reload\')" STATUSTEXT="Seite aktualisieren"><img border="0" src="bilder/rechtsklick/aktualisieren.gif" width="12" height="12"> Aktualisieren</DIV><HR size="3">';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'email\')" STATUSTEXT="E-Mail an den Dojoleiter"><img border="0" src="bilder/rechtsklick/email.gif" width="12" height="12"> E-Mail an den Dojoleiter</DIV><HR size="3">';
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'info\')" STATUSTEXT="Info & Copyright"><img border="0" src="bilder/rechtsklick/copyright.gif" width="12" height="12"> Info & Copyright</DIV>';
menucontent += '</DIV></BODY></HTML>';

if (document.all && window.print) document.write (menucontent);

function light_on (){
if (event.srcElement.className == "components"){
event.srcElement.style.backgroundColor="#CCCCCC";
event.srcElement.style.color="#000000";
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.karate-doerfles-esbach.de/');
} else if (type == "bookmark"){
var imgFav= new Image();
imgFav.src= "http://www.karate-doerfles-esbach.de/favicon.ico";
window.external.AddFavorite('http://www.karate-doerfles-esbach.de/', 'Shotokan Karate Dörfles-Esbach');
} else if (type == "reload"){
self.location.reload();
} else if (type == "email"){
location.href="http://www.karate-doerfles-esbach.de/php/emailshotokan/index.php";
}else if (type == "info"){
alert('Copyright © by Shotokan 2005');
}
}
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;
}

