


function MyszkaNadPrzyciskiem(nr)
{
  var vi;
       vi = (((nr/10)-1)*3);
       document.body.style.cursor = "pointer";
       lastnr = nr;
       if( document.getElementById("b"+nr) != undefined ) { 
         document.getElementById("b"+nr).src = aktywny[ mmbtn[nr]];
         document.getElementById("n"+(500+vi).toString()).src = btnfocPath+"top.jpg";
         document.getElementById("n"+(501+vi).toString()).src = btnfocPath+"left.jpg";
         document.getElementById("n"+(502+vi).toString()).src = btnfocPath+"right.jpg";
         if( document.getElementById("n"+(503+vi).toString()) != undefined ) {
           document.getElementById("n"+(503+vi).toString()).src = btnfocPath+"bottom.jpg";
         } 
       }
}

function MyszkaPozaPrzyciskiem(nr)
{
  var vi;
       vi = (((nr/10)-1)*3);
       document.body.style.cursor = "default";
       if( document.getElementById("b"+nr) != undefined ) { 
         document.getElementById("b"+nr).src = nieaktywny[ mmbtn[ nr]];
         document.getElementById("n"+(500+vi).toString()).src = btnPath+"top.jpg";
         document.getElementById("n"+(501+vi).toString()).src = btnPath+"left.jpg";
         document.getElementById("n"+(502+vi).toString()).src = btnPath+"right.jpg";
         if( document.getElementById("n"+(503+vi).toString()) != undefined ) {
           document.getElementById("n"+(503+vi).toString()).src = btnPath+"bottom.jpg";
         }
         lastnr = nr;
       }
}

function StepTheTimer()
{
   lastnr = -1;
   clearTimeout( timerID);
   document.body.style.cursor = "default";
}

function subMenu(nr)
{
   //selElementMenu = (nr+1)*10;
  // location.replace( "../"+btnNames[mmbtn[nr]]+"/index.php?lang="+currentLang);
   location.href = "../"+btnNames[mmbtn[nr]]+"/index.php?lang="+currentLang;
}

function WindowInnerHeight()
{
  if (self.innerHeight)
    return self.innerHeight;                        // all except Explorer
  else if (document.documentElement && document.documentElement.clientHeight)
    return document.documentElement.clientHeight;   // Explorer 6 Strict Mode
  else if (document.body)
    return document.body.clientHeight;              // other Explorers
}

function WindowInnerWidth()
{
  if (self.innerWidth)
    return self.innerWidth;                        // all except Explorer
  else if (document.documentElement && document.documentElement.clientWidth)
    return document.documentElement.clientWidth;   // Explorer 6 Strict Mode
  else if (document.body)
    return document.body.clientWidth;              // other Explorers
}



