/*===============================================*/
/* BILDERWECHSEL */
/*===============================================*/

function SwitchImg()
{
var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
}

function RestoreImg()
{
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
}

/*===============================================*/
/* MAUSKOORDINATEN */
/*===============================================*/

function MausXY()
{
Pos = "X | Y = " + window.event.x + " | " + window.event.y;
window.status = Pos;
return true;
}


/*===============================================*/
/* POPUP-FENSTER ÖFFNEN */
/*===============================================*/

function popup(bild) 
{
newWin = window.open("fenster.html?" + bild, "fenstername", "scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0,width=800,height=600");
}

function popup_center(bild,w,h) 
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 112;
TopPosition = 0;
settings = 'width='+w+',height='+h+',left='+LeftPosition+',top='+TopPosition+',scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=1';
newWin = window.open("pix/fenster.html?" + bild, "fenstername", settings);
}



/*===============================================*/
/* FENSTER SCHLIESSEN */
/*===============================================*/

function schliesseFenster()
{
window.close();
}

