// workaround for the infamous Netscape CSS- and Layer-bug:
// reloads the window on resize
if (document.layers) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
//if (document.layers) onresize = reDo;
// ----------------------------------------------------------------------------------------
// scripts for the rollover-effect in the  navigation bar
// ----------------------------------------------------------------------------------------

var selectedtopic = 0;
var topicsPresent = 5;


if (document.images)  {
 picturesDef = new Array();
  
       
   picturesDef[1] = new Image();
   picturesDef[1].src = "nav_bilder/nav_spin_11d.gif";
    
   picturesDef[2] = new Image();
   picturesDef[2].src = "nav_bilder/nav_spin_12d.gif";

   picturesDef[3] = new Image();
   picturesDef[3].src = "nav_bilder/nav_spin_13d.gif";

   picturesDef[4] = new Image();
   picturesDef[4].src = "nav_bilder/nav_spin_14d.gif";

   picturesDef[5] = new Image(); 
   picturesDef[5].src = "nav_bilder/nav_spin_15d.gif";



 picturesHi = new Array();



   picturesHi[1] = new Image();
   picturesHi[1].src = "nav_bilder/nav_spin_11h.gif";

   picturesHi[2] = new Image();
   picturesHi[2].src = "nav_bilder/nav_spin_12h.gif";    

   picturesHi[3] = new Image();
   picturesHi[3].src = "nav_bilder/nav_spin_13h.gif";

   picturesHi[4] = new Image(); 
   picturesHi[4].src = "nav_bilder/nav_spin_14h.gif";

   picturesHi[5] = new Image();
   picturesHi[5].src = "nav_bilder/nav_spin_15h.gif";


}




function changePic(picNum)   {
 if (document.images)  {
 eval("document.topic" + picNum + ".src = picturesHi[picNum].src;");
    }        
}

function resetPic()   {
 if (document.images)  {
  for (i = 1; i <= topicsPresent; i++)   {
  if ( i != selectedtopic) {
  eval("document.topic" + i + ".src = picturesDef[i].src;");
        }
     }
 }
}

function checkTopic(pTopic) {
 if (document.images) { 
  resetPic();                
  selectedtopic = pTopic;       
  if (selectedtopic != 0) {
   eval("document.topic" + selectedtopic + ".src = picturesHi[selectedtopic].src;");
        }
    }  
}