//komunikaty - wyswietlajace sie komunikaty
var komunikaty = new Object();

komunikaty.init = function()
{
 komunikaty.initElement("A");
}
//----------------------------------------------
komunikaty.initElement = function(tagElement)
{
  var tagElements = document.getElementsByTagName(tagElement);
  if(tagElements)
  {
   //---------------------------------------
   for(i=0;i<tagElements.length;i++)
   {
    if(tagElements[i].getAttribute('title'))
    {
      obj = tagElements[i];
      tytul = tagElements[i].getAttribute('title');

      //------------------------------------
      komunikaty.addEvent(obj,tytul);

      //------------------------------------
    }

   }

  }


}
//----------------------------------------------
komunikaty.addEvent = function(obj,tytul)
{
  if(obj.attachEvent)
  {
   obj.attachEvent('onmouseover',function() { window.status = tytul;return true; }  );
   obj.attachEvent('onmouseout',function() { window.status = ''; } );
  }
   else if(obj.addEventListener)
  {
   obj.addEventListener('mouseover',function() { window.status = tytul;return true; },false );
   obj.addEventListener('mouseout',function() { window.status = ''; },false );
  }

}

//----------------------------------------------
