var html="";
html+='<TABLE STYLE="border:solid 2px;border-color:#f0f0f0 #6f6f6f #6f6f6f #f0f0f0; font-family:tahoma; cursor:default;" BGCOLOR="silver" WIDTH="140" CELLPADDING="2" CELLSPACING="1">';
html+='<ST'+'YLE TYPE="text/css">\n';
html+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
html+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
html+='hr{color:white;border:inset 1px;}\n';
html+='td{font-size:8pt;}\n';
html+='</ST'+'YLE>\n';
html+='<SC'+'RIpx LANGUAGE="JavaScripx">\n';
html+='\n<'+'!--\n';
html+='window.onerror=null;\n';
html+='/'+' -'+'->\n';
html+='</'+'SCRIpx>\n';
html+='<tr><td>';
html+='<div STYLE="border:0px solid silver;padding:1px;" ID="i0" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.neuerOrdner();">&nbsp;&nbsp;Neuer Ordner</div>';
html+='<div STYLE="border:0px solid silver;padding:1px;" ID="i0" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.neueDatei();">&nbsp;&nbsp;Neue Datei</div><hr>';
html+='<div STYLE="border:0px solid silver;padding:1px;" ID="i1" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.fileUpload();">&nbsp;&nbsp;Datei Upload</div>';
html+='<div STYLE="border:0px solid silver;padding:1px;" ID="i4" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK=window.parent.fileMod("paste")>&nbsp;&nbsp;Einfügen</div><hr>';
html+='<div STYLE="border:0px solid silver;padding:1px;" ID="i5" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.location.reload()">&nbsp;&nbsp;Aktualisieren</div><hr>';
html+='<div STYLE="border:0px solid silver;padding:1px;" ID="i7" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.eigenschaften();">&nbsp;&nbsp;Eigenschaften</div>';
html+='</TD></TR></TABLE>';

var htmlDatei="";
htmlDatei+='<TABLE STYLE="border:solid 2px;border-color:#f0f0f0 #6f6f6f #6f6f6f #f0f0f0; font-family:tahoma; cursor:default;" BGCOLOR="silver" WIDTH="140" CELLPADDING="2" CELLSPACING="1">';
htmlDatei+='<ST'+'YLE TYPE="text/css">\n';
htmlDatei+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
htmlDatei+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
htmlDatei+='hr{color:white;border:inset 1px;}\n';
htmlDatei+='td{font-size:8pt;}\n';
htmlDatei+='</ST'+'YLE>\n';
htmlDatei+='<SC'+'RIpx LANGUAGE="JavaScripx">\n';
htmlDatei+='\n<'+'!--\n';
htmlDatei+='window.onerror=null;\n';
htmlDatei+='/'+' -'+'->\n';
htmlDatei+='</'+'SCRIpx>\n';
htmlDatei+='<tr><td>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.objOeffnen();">&nbsp;&nbsp;Öffnen</div>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.fileBearbeiten();">&nbsp;&nbsp;Bearbeiten</div><hr>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK=window.parent.fileMod("cut");>&nbsp;&nbsp;Ausschneiden</div>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i3" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK=window.parent.fileMod("copy");>&nbsp;&nbsp;Kopieren</div><hr>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i1" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.zielSpeichernUnter();">&nbsp;&nbsp;Speichern unter...</div>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i6" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.delFile()">&nbsp;&nbsp;Löschen</div>';
htmlDatei+='<div STYLE="border:0px solid silver;padding:1px;" ID="i6" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.rename()">&nbsp;&nbsp;Umbenennen</div>';
htmlDatei+='</TD></TR></TABLE>';

var htmlPapierkorb="";
htmlPapierkorb+='<TABLE STYLE="border:solid 2px;border-color:#f0f0f0 #6f6f6f #6f6f6f #f0f0f0; font-family:tahoma; cursor:default;" BGCOLOR="silver" WIDTH="140" CELLPADDING="2" CELLSPACING="1">';
htmlPapierkorb+='<ST'+'YLE TYPE="text/css">\n';
htmlPapierkorb+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
htmlPapierkorb+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
htmlPapierkorb+='hr{color:white;border:inset 1px;}\n';
htmlPapierkorb+='td{font-size:8pt;}\n';
htmlPapierkorb+='</ST'+'YLE>\n';
htmlPapierkorb+='<SC'+'RIpx LANGUAGE="JavaScripx">\n';
htmlPapierkorb+='\n<'+'!--\n';
htmlPapierkorb+='window.onerror=null;\n';
htmlPapierkorb+='/'+' -'+'->\n';
htmlPapierkorb+='</'+'SCRIpx>\n';
htmlPapierkorb+='<tr><td>';
htmlPapierkorb+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.objOeffnen();">&nbsp;&nbsp;Öffnen</div><hr>';
htmlPapierkorb+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.delPapierkorb();">&nbsp;&nbsp;Papierkorb leeren</div>';
htmlPapierkorb+='</TD></TR></TABLE>';

var htmlPapierkorbFile="";
htmlPapierkorbFile+='<TABLE STYLE="border:solid 2px;border-color:#f0f0f0 #6f6f6f #6f6f6f #f0f0f0; font-family:tahoma; cursor:default;" BGCOLOR="silver" WIDTH="140" CELLPADDING="2" CELLSPACING="1">';
htmlPapierkorbFile+='<ST'+'YLE TYPE="text/css">\n';
htmlPapierkorbFile+='a:link {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
htmlPapierkorbFile+='a:visited {text-decoration:none;font-family:Arial;font-size:8pt;}\n';
htmlPapierkorbFile+='hr{color:white;border:inset 1px;}\n';
htmlPapierkorbFile+='td{font-size:8pt;}\n';
htmlPapierkorbFile+='</ST'+'YLE>\n';
htmlPapierkorbFile+='<SC'+'RIpx LANGUAGE="JavaScripx">\n';
htmlPapierkorbFile+='\n<'+'!--\n';
htmlPapierkorbFile+='window.onerror=null;\n';
htmlPapierkorbFile+='/'+' -'+'->\n';
htmlPapierkorbFile+='</'+'SCRIpx>\n';
htmlPapierkorbFile+='<tr><td>';
htmlPapierkorbFile+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.objOeffnen();">&nbsp;&nbsp;Öffnen</div><hr>';
htmlPapierkorbFile+='<div STYLE="border:0px solid silver;padding:1px;" ID="i2" ONMOUSEOVER="this.style.background=\'#000080\';this.style.border=\'0px solid #737B92\';this.style.color=\'white\';" ONMOUSEOUT="this.style.background=\'silver\';this.style.border=\'0px solid silver\';this.style.color=\'black\';" ONCLICK="window.parent.PapierkorbRe();">&nbsp;&nbsp;Datei wiederherstellen</div>';
htmlPapierkorbFile+='</TD></TR></TABLE>';

var oPopup = window.createPopup();

function dopopup(x,y) {
	var oPopupBody = oPopup.document.body;
	oPopupBody.innerHTML = html;
	oPopup.show(x, y, 140,148, document.body);
	
}

function dopopup_objekt(x,y,wer,was) {
	var oPopupBody = oPopup.document.body;
	oPopupBody.innerHTML = htmlDatei;
	oPopup.show(x, y, 140,150, document.body);
	werBinIch = wer;
	wasBinIch = was;
}

function dopopup_papierkorb(x,y,wer,was) {
	var oPopupBody = oPopup.document.body;
	oPopupBody.innerHTML = htmlPapierkorb;
	oPopup.show(x, y, 140,60, document.body);
	werBinIch = wer;
	wasBinIch = was;
}

function dopopup_papierkorb_file(x,y,wer,was) {
	var oPopupBody = oPopup.document.body;
	oPopupBody.innerHTML = htmlPapierkorbFile;
	oPopup.show(x, y, 140,160, document.body);
	werBinIch = wer;
	wasBinIch = was;
}

function click() {
	if(event.button==2||event.button==3) {
	dopopup(event.x-1,event.y-1);
	}
}

document.oncontextmenu = function() {return false;}
document.onmouseup = click;

