  var Pfad = self.location.href;
  
  if (Pfad.indexOf("file://") && ( parent.frames.length == 0) ){
    var Datei = Pfad.slice(Pfad.lastIndexOf("/") + 1);
    var Teile_der_Datei = Datei.split( "#" );
    
    if ( Teile_der_Datei.length == 0 ){
    	Teile_der_Datei = new Array( Datei );
    }
    
    document.close();
    
    with (document) {
      open();
      
      writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">');
      writeln('<html>');
      writeln('<head>');
      writeln('  <title>Englisch Lektüren von Cornelsen. Gesamtverzeichnis</title>');
       writeln('</head>');
      writeln('<frameset cols="1150,*" frameborder="0" border="0" framespacing="0">');
      writeln('<frameset rows="132,*,42" frameborder="0" framespacing="0">');
      writeln('  <frame name="Top_Frame" src="/TopFrame1.html" scrolling="no" marginwidth="0" marginheight="0" noresize="noresize" />');
      
      writeln('  <frameset name="Middle_Frame" cols="202,*" frameborder="0" framespacing="0">');
      writeln('    <frame name="Menue" src="/Leftframe-Hueber-Readers.html" marginwidth="0" marginheight="0" scrolling="no" noresize="noresize" />');
         writeln('    <frame name="Hauptframe" src="' + Teile_der_Datei[0] + '?frameset' + ( Teile_der_Datei.length > 1 ? '#' + Teile_der_Datei[1] : ''  )  + '" marginwidth="0" marginheight="0" scrolling="auto" noresize="noresize" frameborder="0">');
		 
      writeln('  </frameset>');
      
      writeln('  <frame name="Bottom_Frame" src="/BottomFrame.html" marginwidth="0" marginheight="0" scrolling="no" noresize="noresize" />');
      writeln('</frameset>');
      writeln('<frame name="Werbung" src="/Werbung.html" frameborder="0" border="0" scrolling="NO" noresize >');
      writeln('</html>');
      
      close();
    }
  }
