var zhoehe;
//stylesheet
if (browser_variable=="Opera")
  {
  if (res == 2)
    {document.write('<link rel=stylesheet type="text/css" href="../../css/1024op.css">');
    zhoehe=22;}
  if (res == 3)
    {document.write('<link rel=stylesheet type="text/css" href="../../css/800op.css">');
    zhoehe=22;}
   }
else if (browser_variable=="IE")
  {
  if (res == 2)
    {document.write('<link rel=stylesheet type="text/css" href="../../css/1024ie.css">');
        zhoehe=22;}
  if (res == 3)
    {document.write('<link rel=stylesheet type="text/css" href="../../css/800ie.css">');
        zhoehe=22;}
    }
else {
  if (res == 2)
    {document.write('<link rel=stylesheet type="text/css" href="../../css/1024ns.css">');
        zhoehe=22;}
  if (res == 3)
    {document.write('<link rel=stylesheet type="text/css" href="../../css/800ns.css">');
        zhoehe=22;}
     }

// CD-Info
var winCD;
function cdinfo()
{
var Eingabe;
if (sp=="de")Eingabe=confirm ("Infos zur CD-Rom und zum Dokumentationsband ?");
else if (sp=="es")Eingabe=confirm (" Informaciones sobre la exposición de internet en CD-Rom 'Instituto de Sexología (1919-1933)' y el catálogo?");
else Eingabe=confirm ("Info to CD-Rom and to dokumentation book ?");

if (Eingabe==true)
 {
 winCD=window.open ("../cdinfo.html","ifsCDROM","menubar=yes,scrollbars=yes,resizable=yes,status=yes,left=60,top=10,width=700,height=400");
winCD.focus();
  }
}

function bldShow(bldnr)
{parent.ifsTitel.bldShowTitel(bldnr);}


//Framekontrolle plus Titelzuweisung im Framefenster


//Fehler     parent.location.href wird abgefangen
window.onerror = parentFehler;
function parentFehler()
{
 for (a=0; a<280; a++)
         {
          if (dbs[a][2]==tnr)
            {
             seitenName=dbs[a][0];
             break;
            }
         }
      frameOpen(seitenName);
      window.history.back();
      return true;
  }


var seitenName = "haus_00.html";
var parentURL = parent.location.href;
if(parent.location.search.length > 0)
    {
    var Gesamt_Laenge = parent.location.href.length;
    var Search_Laenge = parent.location.search.length;
    var Parent_Laenge = Gesamt_Laenge - Search_Laenge;
    parentURL = parent.location.href.substring(0,Parent_Laenge);
       }

onerror = stopError;
function stopError()
{
return true;
}

var frameOK=false;

if (CDROM==true)// local oder CDROM
    {
    if (top.location != self.location) frameOK=true;
    }
else //Internet
   {
   if (top.location.href !=self.location.href)
     {
     if ((parentURL==berlinURL+"de/ifsframe.html")||   (parentURL==berlinURL+"en/ifsframe.html")||(parentURL==berlinURL+"es/ifsframe.html")) frameOK=true;
      }

   }

if (frameOK==true)
   {

    for (a=0; a<280; a++)
         {
          if (dbs[a][2]==tnr)
            {
             seitenTitel= "../"+ dbs[a][1];
             parent.ifsKap.location.href = seitenTitel;
             break;
            }
        }
     }
else {

     for (a=0; a<280; a++)
         {
          if (dbs[a][2]==tnr)
            {
             seitenName=dbs[a][0];
             break;
            }
         }
      frameOpen(seitenName);
      window.history.back();

  }
      //Ende Framekotrolle


//Beginn Framekontrolle

function  frameTK()
{

}

 //Ende Framekontrolle
