// Menüsteuerung, Copyright Lutz Eckner, Reichenbach 2006
function nachlade () {
if(self == top)
{window.location.href = '../frame.html?'+self.location.href;};
}

var b;  b=0;
var a;  a=0;

// Farbsteuerung
function farbe(s) {document.getElementById('li'+s).style.color="#ff9900"}
function farbeback(s) {document.getElementById('li'+s).style.color="#FFCC66"}
function ufarbe(s) {document.getElementById('uli'+s).style.color="#ff9900"}
function ufarbeback(s) {document.getElementById('uli'+s).style.color="#FFCC66"}


// Untermenü-Steuerung
function untermen(s,h,l,t) {
         b=0;
         document.getElementById("ra"+s).style.height=h+"px";
         document.getElementById("ura"+s).style.left=l+"px";
         document.getElementById("ura"+s).style.top=t+"px"
         }

function untermenback(b) {
         document.getElementById("ra"+b).style.height="28px";
         document.getElementById("ura"+b).style.left="-600px";
         document.getElementById("ura"+b).style.top="0px" }

//onLoad main
function flag(i) {
         b2=i;
         a=i;
         }

//onMouseOver frame  im Body, Seitenstart ????
         function untermenback2() {
         document.getElementById("ra"+b2).style.height="28px";
         document.getElementById("ura"+b2).style.left="-600px";
         document.getElementById("ura"+b2).style.top="0px";
         b2=0 }

//onMouseOut navi
function flagreset() {
         b2=a;
         }

// linke Kästen der Linkseite
function lion (z) {
         document.getElementById("xli"+z).style.backgroundColor="#004080";
         }
function liof (z) {
         document.getElementById("xli"+z).style.backgroundColor="#000000";
         }



// Popup für Vergrößerung

 function popseite (url,w,h,sb)
{
var win;
win=window.open (url,"NeuesFenster","width="+w+",height="+h+",left=50,top=30,menubar=yes,scrollbars="+sb+",resizable=yes");
// win.setTimeout ("window.close ()",300000);
win.focus();
return false;
}

function nz ()
{
alert ("Für diese Abbildung ist keine Vergrößerung vorgesehen");
}


function popbild (bild,w,h,sb)
{
var win2;
win2=window.open ("","NeuesFenster2","width="+w+",height="+h+",left=100,top=50,hotkeys=no,status=no,menubar=yes,locationbar=no,scrollbars="+sb+",resizable=yes");
win2.document.write ("<html><head><link rel='stylesheet' href='../css/body.css' type='text/css'></head></html><body bgcolor='black'>");
win2.document.write ("<div align='center'><img src='galerie/"+bild+"' border='1'><br></div>");
// win.setTimeout ("window.close ()",60000);
// win2.document.write ("<br><div style='color:white'>*<!--echo var='DATE_LOCAL' -->*</div>");
win2.document.write ("<br><div align='center' style='color:#C0C0C0;cursor:pointer;font-size: 9pt;font-family: arial,helvetica,sans-serif' onClick='javascript:window.close()'><u>Fenster schließen</u><br><br><br></div>");
win2.document.write ("</body></html>");
win2.focus();
return false;
}

function popbild2 (bild,w,h,sb)
{
var win3;
win3=window.open ("","NeuesFenster3","width="+w+",height="+h+",left=100,top=50,hotkeys=no,status=no,menubar=yes,locationbar=no,scrollbars="+sb+",resizable=yes");
win3.document.write ("<html><head><link rel='stylesheet' href='../css/body.css' type='text/css'></head></html><body bgcolor='black'>");
win3.document.write ("<div align='center'><img src='"+bild+"' border='1'><br></div>");
// win.setTimeout ("window.close ()",60000);
// win2.document.write ("<br><div style='color:white'>*<!--echo var='DATE_LOCAL' -->*</div>");
win3.document.write ("<br><div align='center' style='color:#C0C0C0;cursor:pointer;font-size: 9pt;font-family: arial,helvetica,sans-serif' onClick='javascript:window.close()'><u>Fenster schließen</u><br><br><br></div>");
win3.document.write ("</body></html>");
win3.focus();
return false;
}

/* diese Funktion für Online aktivieren /für Offline deaktivieren
function ede (x)
{
alert ('Pfad: '+x+'.txt');
} */

/* diese Funktion für Online deaktivieren / für Offline anktivieren */
function ede (pt)
{
/*  alert ('Pfad: '+pt+'.txt');   */
var win4;
var url;
url="http://localhost/vogtlandgold/edit.php?pfad="+pt;
win4=window.open (url,"NeuesFenster4","width=640,height=450,left=100,top=50,hotkeys=no,status=no,menubar=yes,locationbar=no,scrollbars=yes,resizable=yes");
win4.focus();
return false;
}


/* function g(nmr) {
var win;
win=window.open("","NeuesFenster2","width=620,height=460,left=100,top=50,hotkeys=no,status=no,menubar=yes,locationbar=no,scrollbars=no,resizable=yes");
win.document.write="<html><head><title>Bild</title><link rel='stylesheet' href='/css/body.css' type='text/css'></head>";
win.document.write="<body text='#FFCC66' bgcolor='#000000' link='#FF0000' alink='FF0000' vlink='#FF0000'>";
win.document.write="<div align='#center'><img src='bild"+nmr+".jpg' width='560' height='420' border='0' alt='<!--#include virtual=/'../bild"+nmr+"kurz.txt/' -->'>";
win.document.write="<br><br><div align='left' style='font-family:helvetica,arial,sans serif; font-size:10pt; color:#FFCC66; width:520px'><!--#include virtual=/'bild"+nmr+"lang.txt/' --></div>";
win.document.write="<br><br><div align='center' style='color:#FFCC66; cursor:pointer; font-size: 9pt;font-family: arial,helvetica,sans-serif' onClick='javascript:window.close()'><u>Fenster schließen</u>";
win.document.write="<br></div></div></body></html>";
win.focus();
return false;
}   */
