/*User Agent (Browserkennung) auf einen bestimmten Browsertyp prüfen */ 
      function checkBrowserName(name){  
      var agent = navigator.userAgent.toLowerCase();  
      if (agent.indexOf(name.toLowerCase())>-1) {  
        return true;  
      }  
        return false;  
      } 
      
      
      
      
      var opac = "100";
      var mop = "1";
      
      
      
      function fade_out(container,content) {                
          
              mop-='0.05';              
              opac-='5';           
                
           if(mop <= '0.5') {
              mop = '0.5';
              opac = "0.5";
              window.clearInterval(aktiv1);
              document.getElementById(container).innerHTML = content;
              content = ""; 
              aktiv = window.setInterval(function myfunc() {fade_in(container); },100);              
           }    
                
           
           if(checkBrowserName('firefox')){  
              document.getElementById(container).style.opacity = mop;
           }
           /*document.getElementById(cont).style.moz-opacity = mop;*/
           if(checkBrowserName('MSIE')){  
              document.getElementById(container).style.filter = "Alpha(opacity="+opac+")";
           }
            
           
           
           
      
      }
      
      function fade_in(container) {
      
       
              mop = parseFloat(mop) + 0.05;
              opac = parseFloat(opac) + 5;        
           
           if(mop >= '1') {
              mop = '1';
              opac = "100";
              window.clearInterval(aktiv);
              window.setTimeout(function myfunc5() { setRequest(container); },pause);
              
           }
           
           if(checkBrowserName('firefox')){  
              document.getElementById(container).style.opacity = mop;
           }
           /*document.getElementById(cont).style.moz-opacity = mop;*/
           if(checkBrowserName('MSIE')){  
              document.getElementById(container).style.filter = "Alpha(opacity="+opac+")";
           }
           
      
      }
      
      function openpic(width, height, id) {       /*Bilder öffnen*/
        width = parseFloat(width) + 20;
        height= parseFloat(height) + 100;
        window.open("showpic.php?pic="+id,"Test","toolbar=no,location=no, status=no,resizable=no,width="+width+",height="+height+",top=50,left=50");      
      }
      
      function open_piccont()      /*Container für Bilder bei Neuer Seite einblenden*/
      {
          document.getElementById('piccont').style.display = "block";
      }
         
