
function display(name){
    if (jQuery(name).is(':hidden')){
          jQuery(name).show();
    }else{
            jQuery(name).hide();
    }  
}


jQuery(document).ready(function() {


    jQuery('.zwinchildren').click(function()
    { 
         jQuery(this).next().toggle("slow");
     }   
     );   
     
     
     
    jQuery('.tipschildren').click(function()
    { 
    
    if (jQuery(this).next().is(':hidden')){
          jQuery(this).next().show();
    }else{
            jQuery(this).next().hide();
    }  
     } 
    ); 

   
    jQuery('a#t_gd').click(function()
    { 
        jQuery('#on').css("display", "none");
        jQuery('#gd').css("display", "");  
        jQuery('#tab_on').addClass('tabnoctiv');
        jQuery('#tab_gd').removeClass('tabnoctiv')
     }   
     );
     
     
     jQuery('a#t_on').click(function(){    
        jQuery('#gd').css("display", "none");
        jQuery('#on').css("display", ""); 
        jQuery('#tab_gd').addClass('tabnoctiv');
        jQuery('#tab_on').removeClass('tabnoctiv')
      }      
     );     
});

tab_now=1;

function tab(id){

//alert (tab_count);
//alert(tab_now);
//alert(id);


if (id!=tab_now){

   name='#tabp_'+id;

   name='#dzial_'+id;
   
   jQuery(name).css("display", ""); 
   jQuery(name).removeClass('tab_zwyk').addClass('tab_akty');
 
    name='#dzial_'+tab_now;
    jQuery(name).css("display", "none");
    jQuery(name).removeClass('tab_akty').addClass('tab_zwyk');

    tab_now=id;
}
  
}