
 var debug = 0;
 var imgover= new Array(14);
 var imgout=  new Array(14);
 
 if(LoadCSS == null) {
   var LoadCSS = 1; 
 }  


 var bNetscape = false;
 var ns4       = (document.layers)? true:false;
 var ie4       = (document.all)? true:false;          

 function CheckIt() {
      if(location.href.indexOf("file:///N|",0) >= 0) { return true; }
      if((top._Main == null) || (top._Nav == null)) {
           top.location.href= "http://www.alkersum.de/cgi-bin/newmain.pl?nav="+szNav+"&main="+szMain+"&base="+szBase;
           return false;
       }
       return true;
 }

 function itsNetscape() {
  document.write("<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\""+szBaseUrl+"/mystyle.css\">");
 }	

 function ieVersion(){
   document.write("<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\""+szBaseUrl+"/iestyle.css\">");
 }
 
 if(LoadCSS) {
   if (ns4){
      if(debug) { alert("Netscape found !")};
      bNetscape = true;
      if (navigator.appName.substr(0,1) == "N" && navigator.appVersion.substr(0,1) == "5") {
         ieVersion();
      } else
         itsNetscape();
   }
   else{
      ieVersion();
   }
 } 
     

    if (document.images) {
//
   imgover[1] = new Image();
    imgover[1].src = szBaseUrl+"/Icons/btnBackd.gif";
    if(debug) {
		   alert( " Path to image is :"+imgover[1].src );
	 }   

    imgover[2] = new Image();
    imgover[2].src = szBaseUrl+"/Icons/btnForwardd.gif";
    imgover[3] = new Image();
    imgover[3].src = szBaseUrl+"/Icons/btnStartd.gif";
    imgover[4] = new Image();
    imgover[4].src = szBaseUrl+"/Icons/btnKontaktd.gif";
    imgover[5] = new Image();
    imgover[5].src = szBaseUrl+"/Icons/btnImpressd.gif";
    imgover[6] = new Image();
    imgover[6].src = szBaseUrl+"/Icons/btnEMaild.gif";
    imgover[7] = new Image();
    imgover[7].src = szBaseUrl+"/Icons/Werkstattd.gif";
    imgover[8] = new Image();
    imgover[8].src = szBaseUrl+"/Icons/TuerFensterd.gif";
    imgover[9] = new Image();
    imgover[9].src = szBaseUrl+"/Icons/Innend.gif";
    imgover[10] = new Image();
    imgover[10].src = szBaseUrl+"/Icons/Impressd.gif";
    imgover[11] = new Image();
    imgover[11].src = szBaseUrl+"/Icons/Kontaktd.gif";
    imgover[12] = new Image();
    imgover[12].src = szBaseUrl+"/Icons/UeberUnsd.gif";
    imgover[13] = new Image();
    imgover[13].src = szBaseUrl+"/Icons/Gaestbookd.gif";
    
//
    imgout[1] = new Image();
    imgout[1].src = szBaseUrl+"/Icons/btnBacku.gif";
    imgout[2] = new Image();
    imgout[2].src = szBaseUrl+"/Icons/btnForwardu.gif";
    imgout[3] = new Image();
    imgout[3].src = szBaseUrl+"/Icons/btnStartu.gif";
    imgout[4] = new Image();
    imgout[4].src = szBaseUrl+"/Icons/btnKontaktu.gif";
    imgout[5] = new Image();
    imgout[5].src = szBaseUrl+"/Icons/btnImpressu.gif";
    imgout[6] = new Image();
    imgout[6].src = szBaseUrl+"/Icons/btnEMailu.gif";
    imgout[7] = new Image();
    imgout[7].src = szBaseUrl+"/Icons/Werkstattu.gif";
    imgout[8] = new Image();
    imgout[8].src = szBaseUrl+"/Icons/TuerFensteru.gif";
    imgout[9] = new Image();
    imgout[9].src = szBaseUrl+"/Icons/Innenu.gif";
    imgout[10] = new Image();
    imgout[10].src = szBaseUrl+"/Icons/Impressu.gif";
    imgout[11] = new Image();
    imgout[11].src = szBaseUrl+"/Icons/Kontaktu.gif";
    imgout[12] = new Image();
    imgout[12].src = szBaseUrl+"/Icons/UeberUnsu.gif";
    imgout[13] = new Image();
    imgout[13].src = szBaseUrl+"/Icons/Gaestbooku.gif";


    
   }


// Function to show active images.
function imgOver(imgName,i) {
    if (document.images) {
        document[imgName].src = imgover[i].src;
    }
}

// Function to show inactive images.
function imgOut(imgName,i) {
    if (document.images) {
        document[imgName].src = imgout[i].src;
    }
}


