function fenster() {
window.resizeTo(595,800)
}



// start popup window 
// aufruf : <a href="test.html" onclick="newwindow('test.html','name','400','400','no','no','no','no','no','no'); return false;">new window</a>

var win= null;
function newwindow(url,name,w,h,scroll,menu,rezi,tool,stat,direct){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
	  settings +='scrollbars='+scroll+',';
	  settings +='menubar='+menu+',';
	  settings +='resizable='+rezi+',';
	  settings +='toolbar='+tool+',';
	  settings +='status='+stat+',';
	  settings +='directories='+direct+',';
	  
  win=window.open(url,name,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

// end popup window


// start mouseover function
var restoreArray = new Array;
var restoreCount = 0;
var restoreTimer = 0;
function cyEscape (input)
  {
  var output = "";
  if  (input == null)
      {
      return output;
      }
  var parts = input.split ('+');
  var count = parts.length;
  for (var i=0; i<count; i++)
      {
      part = parts[i];
      if  (i > 0)  output += "%2B";
      output += escape (part);
      }
  return output;
  }
function  preloadImages  ()
{
 if  (preloadArray == null)  return;
 var imageObject;
 var fileName;
 count = preloadArray.length;
 for (index=0; index<count; index++)
     {
     fileName = preloadArray [index];
     imageObject = new Image;
     imageObject.src = fileName;
     preloadArray [index] = imageObject;
     }
}
function  replaceImage  (ImageName, FileName)
 {
 imageObject = eval ('document.' + ImageName);
 if  ((imageObject == null) || (FileName == null) || (FileName == ''))  return;
 if  (restoreArray != null)
     {
     restoreArray [restoreCount++] = imageObject.src;
     restoreArray [restoreCount++] = imageObject;
     }
 imageObject.src = FileName;
 }
function  clearRestoreList  ()
 {
 restoreCount = 0;
 }
function  restoreImages  (DelaySeconds)
 {
 if  (restoreTimer > 0)
     {
     clearTimeout (restoreTimer);
     restoreTimer = 0;
     }
 if  ((restoreArray == null) || (restoreCount < 1))  return;
 if  (DelaySeconds > 0)
     {
     restoreTimer = window.setTimeout ('restoreImages ();', DelaySeconds * 1000);
     return;
     }
 while (restoreCount > 0)
     {
     imageObject = restoreArray [--restoreCount];
     fileName = restoreArray [--restoreCount];
     if  ((imageObject != null) && (fileName != null) && (fileName != ''))  imageObject.src = fileName;
     }
 }
// end mouseover function
