<!--



function SwitchStatus(imageNumber) {
  var imageCount = 10; // set number of images here
  var GoOn = true;
  if (!top.content.navFrame) {
    GoOn = false;
  } else {
    for (i=4; i < imageCount; i++) {
      if (!top.content.navFrame.document.images[i]) {GoOn = false;}
      if (!top.content.navFrame.imageStatus[i]) {GoOn = false;}
    } // End for
  } // End if

  if (GoOn==true) {
    for (i=4; i < imageCount; i++) {
      if (i==imageNumber) {
        top.content.navFrame.imageStatus[i] = 1;
        top.content.navFrame.document.images[i].src = eval('top.content.navFrame.image' + i + 'on.src');
      } else {
        if (top.content.navFrame.imageStatus[i]==1) {
          top.content.navFrame.imageStatus[i] = -1;
          top.content.navFrame.document.images[i].src = eval('top.content.navFrame.image' + i + 'off.src');
        } // End if
      } // End if
    } // End for
  } // End if
}





function checkWindow(){
  if (!(top.topFrame)){
    if (confirm('Sie versuchen eine isolierte Seite auf www.oldtimer-rhein-main.de aufzurufen, auf der Ihnen das Navigationsmenü nicht zur Verfügung steht.\nKlicken Sie auf OK um den Vorgang fortzusetzen oder auf Abbrechen um die vollständige Site von www.oldtimer-rhein-main.de zu laden')){
      return true;
    } else {
      top.location.href  = "frame.htm";
    }
  }
}


function OpenPictureWindow(text,headline,windowWidth,windowHeight,posLeft,posTop) {
  newWindow = window.open("","newWindow","width="+windowWidth+",height="+windowHeight+",left="+posLeft+",top="+posTop);
  newWindow.document.open(); 
  newWindow.document.write('<html><title>'+headline+'</title><body text="#333333" bgcolor="#CC6633" leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">');
  newWindow.document.write('<font face="Arial" size="2"><b>'+text+'</b></font>');
  newWindow.document.write('</body></html>');
  newWindow.document.close();
  newWindow.focus();
}


function ChangeImage(Bild) {
  if (self.document.images) {
    if (Bild<0) {
      currentImage++;
    } else {
      currentImage = Bild;
    } // End if Bild
    if(!(currentImage<imageCount)) currentImage = 0;
    self.document.images.WechselBild.src = eval("image" + currentImage + ".src");
  } // End if self.document.images
}


function OpenPicture(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
  newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
  newWindow.document.open();
  newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">');
  newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="'+alt+'">');
  newWindow.document.write('</body></html>');
  newWindow.document.close();
  newWindow.focus();
}

-->
