// JavaScript Document
function TloRow(wiersz, akcja, color)
{
  if(akcja == 'on') wiersz.bgColor = '#00aeef';
  else              wiersz.bgColor = '#f5f5f5';
  return true;
}

function KolorMenu(wiersz, akcja, ikona)
{
  if(akcja == 'on') 
  {
    wiersz.bgColor = '#F6F6F6';
    wiersz.style.color = '#B82601';
    //document.images[ikona].src = 'Image/menu_on.gif';
  }
  else              
  {
    wiersz.bgColor = '#FFFFFF';
    wiersz.style.color = '#2A2A2A';
    //document.images[ikona].src = 'Image/menu_off.gif';
  }
  return true;
}

function KolorMenu2(wiersz, akcja, ikona)
{
  if(akcja == 'on') 
  {
    wiersz.bgColor = '#88d102';
    wiersz.style.color = '#FFFFFF';
    document.images[ikona].src = 'Image/menu_on2.gif';
  }
  else              
  {
    wiersz.bgColor = '#f5f5f5';
    wiersz.style.color = '#000000';
    document.images[ikona].src = 'Image/menu_off2.gif';
  }
  return true;
}

function ZmienTekst(wiersz, akcja, kolor)
{
  //alert(wiersz.cells.length);
  
  if(akcja == 'on') wiersz.cells[3].style.color = kolor;
  else              wiersz.cells[3].style.color = kolor;

  return true;
}

// Detekcja przegl±darki


function View(name, akcja)
{
  //document.getElementById(name).style.visibility = 'visible';
  
  if(ns4)        podmenu = document.layers[name];
	if(ie4)        podmenu = document.all[name].style;
  if(ie5||ns6)   podmenu = document.getElementById(name).style;
  
  if(podmenu.visibility)
  {
    if(akcja == 1) podmenu.visibility = "visible";
    else           podmenu.visibility = "hidden";
  }
}


function pokaz(co,max)
{
for (i=1;i<max;i++)
{
document.getElementById(i).style.visibility = "hidden";
document.getElementById(i).style.position = "absolute";
}

podmenu = document.getElementById(co).style.visibility;


document.getElementById(co).style.visibility = "visible";
document.getElementById(co).style.position = "relative";



}

  
  function tlo(co)
  {
  document.getElementById(co).style.backgroundColor = "#b0b0b0";
  document.getElementById(co).style.color="white"; 
  }
function tlo_stare(co)
  {
  document.getElementById(co).style.backgroundColor = "#ebebd7";
  document.getElementById(co).style.color="#515151";  
  }



