function On(lang,z) {document.images["A"+z+"A"].src="img/przyciski/"+lang+'/'+z+"0.jpg";} 
//function On(z) {document.images["A"+z+"A"].src="img/przyciski/"+z+"0.jpg";} 
function Off(lang,z) {document.images["A"+z+"A"].src="img/przyciski/"+lang+'/'+z+".jpg";} 
//function Off(z) {document.images["A"+z+"A"].src="img/przyciski/"+z+".jpg";} 

function isFunction(a) {
    return typeof a == 'function';
}

function isNull(a) {
    return typeof a == 'object' && !a;
}

function isNumber(a) {
    return typeof a == 'number' && isFinite(a);
}

function isObject(a) {
    return (a && typeof a == 'object') || isFunction(a);
}


function odkryj(arg)
{

 /*for (i=1; i<5; i++)
  {
  obj=document.getElementById('podpoziom'+i);

   obj.style.height='1px';
   obj.style.overflow='hidden';
   obj.style.visibility='hidden';
   obj.style.margin='1px !important';
  }

arg.style.height='auto';
arg.style.overflow='visible';
arg.style.visibility='visible';
//arg.style.margin='3px';
arg.style.marginBottom='10px';

//arg.class="podpoziom_odkryty";*/



 for (i=1; ; i++)
  {
  obj=document.getElementById('podpoziom'+i);
 
  if (!isObject(obj)) break;
  
   obj.style.height='1px';
   obj.style.overflow='hidden';
   obj.style.visibility='hidden';
   obj.style.margin='1px !important';
  }

o=document.getElementById(arg);
o.style.height='auto';
o.style.overflow='visible';
o.style.visibility='visible';
//arg.style.margin='3px';
o.style.marginBottom='10px';


}
