/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var ile = 5;
function uaktywnij(P)
{
   for (var i=1;i<=ile;i++) {
       var panel=document.getElementById('panel'+i);
       var zakladka=document.getElementById('zakladka'+i);
       if (i==P) {
          panel.style.display='block';
          zakladka.style.backgroundColor='white';
          zakladka.style.color='#333333';
       } else {
          panel.style.display='none';
          zakladka.style.backgroundColor='#D2CCBE';
          zakladka.style.color='#555555';
       }
   }
}

function alternate(id)
{
    if(document.getElementById(id))
    {
        var table = document.getElementById(id);
        var rows = table.getElementsByTagName("tr");
        for(i = 0; i < rows.length; i++)
        {
             //manipulate rows
             if(i % 2 == 0){
               rows[i].className = "even";
             }else{
               rows[i].className = "odd";
             }
        }
    }
}

$(document).ready(
function()
{
        $("#link").click(function(){
                $("#more").toggle('normal');
        }).toggle( function(){$(this).text('- Ukryj dane szczegółowe'); }, function(){$(this).text("+ Pokaż dane szczegółowe"); });

        $("#cal_link").click(function(){
                $("#cal_more").toggle('normal');
        }).toggle(function() {
                    $(this).text('Ukryj kalendarz'); }, function() { $(this).text("Pokaż kalendarz"); });

        $("#link1").click(
        function()
        {
                $("#more").toggle('normal');
        });
});

