Cufon.replace('#navi li:not(.active, #first)', { hover: true, fontSize: '14px', textShadow: '#223a54 -1px -1px' });
Cufon.replace('#navi li.active:not(#first)', { hover: true, fontSize: '14px' });
Cufon.replace('.cuf, .boxHp h2, .btn, .mainContent h2, .fullContent h2, .mainCol h4', { hover: true });

$(document).ready(function(){
  /* Uzitecnost clanku */
  $('#help, #usefull p').hide();
  $('#use1').click(function(){
    if($(this).attr('checked')) {
      $('#help, #usefull p').hide();
    }
  });
  $('#use2').click(function(){
    if($(this).attr('checked')) {
      $('#help, #usefull p').show();
    }
  });

  /* Kouka po DL a priradi jim classy */
  $('.fullContent dl dt').hover(function() {
    $(this).addClass('hover');
  }, function() {
    $(this).removeClass('hover');
  });
  $('.fullContent dl dt').toggle(function() {
    $(this).addClass('active');
    $(this).next('dd').show();
  }, function() {
    $(this).removeClass('active');
    $(this).next('dd').hide();
  });
  $('.fullContent dl dd').hide();

  /* Kouka po TABLE a priradi classy */
  if($('.mainContent table').length) {
    $('.mainContent table').each(function(){
      $('tr', this).each(function(){
        $('td:first', this).addClass('first');
      });
      $('tr', this).each(function(){
        $('td:last', this).addClass('last');
      });
      $('th:first', this).addClass('first');
      $('th:last', this).addClass('last');
      $('tr:last', this).addClass('last');
    });
  }

  /* Kouka po OL a priradi classy */
  if($('.fullContent ol').length) {
    var i = 1;
    $('.fullContent ol').each(function(){
      $('li', this).each(function(){
        $(this).addClass('list-' + i);
        i++;
      });
    i = 1;
    });
  }

  /* ColorBox */
  if($('a.colorbox').length) {
    $('a.colorbox').colorbox(); 
  } 
})

