/******************************************************************/
/* Quelldatei navigation.js                                       */
/* Javaskript-Definitionen                                        */
/* Projekt: wissenschaftundaberglauben                            */
/* Autor und Copyright: Werner Schneider, Kairodata Mediendesign  */
/* Aktualisiert: 22.07.2007                                       */
/******************************************************************/


function box(thema)
{
text = window.open(thema+".html","BOX","menubar=no,status=no,location=no,width=321,height=199");
text.focus();
}

window.onerror=vergiss_es;

function vergiss_es(){return true;}

function init()
{
  aus = new Image();
  aus.src = "a/leer.gif";              /* Passiv-Anzeige */
  an = new Image();
  an.src = "a/linkszeigpfeil.gif";     /* Negativ-Anzeige */
}

function init2(leer,pfeil)
{
  aus = new Image();
  aus.src = leer;              /* Passiv-Anzeige */
  an = new Image();
  an.src = pfeil;              /* Negativ-Anzeige */
}

function radioAllesAus()
{
for ( i=1; i<=13; i++ )
    top.frames[0].document.images[i].src = aus.src;
}

function radioAn(Bildnr)
{
  radioAllesAus();
  top.frames[0].document.images[Bildnr].src = an.src;
}

function init_radio(Bildnr)
{
init();
radioAn(Bildnr);
}

function init_radio2(Bildnr,leer,pfeil)
{
init2(leer,pfeil);
radioAn(Bildnr);
}


function fenster(pfad,breit,hoch)
{
if(screen.availWidth < breit) breit=screen.availHeight;
if(screen.availHeight < hoch) hoch=screen.availHeight;
text = window.open(pfad,"text","menubar=no,status=no,locationbar=no,width="+breit+",height="+hoch+",resizable,scrollbars");
text.focus();
}


function textfenster(pfad,hoch)
{
if(screen.availHeight < hoch) hoch=screen.availHeight;
text = window.open(pfad,"text","menubar=no,status=no,locationbar=no,width=800,height="+hoch+",resizable,scrollbars");
text.focus();
}


function textfensterplatz(pfad,platz,hoch)
{
if(screen.availHeight < hoch) hoch=screen.availHeight;
text = window.open(pfad,"text","menubar=no,status=no,locationbar=no,width=800,height="+hoch+",resizable,scrollbars");
text.location.hash="#"+platz;
text.focus();
}

function play(sound)
{
window.location.href=sound;
}
