//zwijanie i rozwijanie menu z lewej

function zwinmenu(i)
{
        c=document.getElementById("a"+i+"0");
        if(c.style.display=="none") {
                
                
                for(k=0;k<20;k++)
                document.getElementById("a"+i+""+k).style.display="block"; 
                
        }
        
        else {
        
                for(k=0;k<20;k++)
                document.getElementById("a"+i+""+k).style.display="none";
        
        }


}


//zwijanie i rozwijanie newslettera

function zwinnewsl()
{
        c=document.getElementById("newp");
        if(c.style.display=="none") {
                c.style.display="block"; 
        }
        
        else {
                c.style.display="none";
        }


}


function dodaj(){
  if (window.external || window.sidebar || (window.opera && window.print)) {
    var tytul = "Elbit";
    var adres = "http://www.elbit.info.pl";
    if (window.sidebar) { //FireFox
      window.sidebar.addPanel(tytul, adres, "");
    } else if (window.external) { //IE
      window.external.AddFavorite(adres, tytul);
    } else if (window.opera && window.print) { //Opera
    var a = document.createElement('a');
      a.setAttribute('href', adres);
      a.setAttribute('title', tytul);
      a.setAttribute('rel','sidebar');
      a.click();
    }
  }else{
  alert("Nie wiem jak dodać do ulubionych w twojej przeglądarce.");
  }
} 
