// JavaScript Document by Warski
var idx_auto_warski = 0;
$(document).ready(
function() {

$('.gallery_scroll ul.gallery').cycle({ 
  fx:    'scrollHorz',    
    delay: -4000  ,
    speed:  'slow', 
    timeout: 0,
    next:   '.next', 
    prev:   '.prev' 
    
});

$('.galery_logos').cycle({ 
  fx:      'fade', 
    delay: -3000, 
    timeout: 0,
    speed:  'normal',
    next:   '.next', 
    prev:   '.prev'
    
});
$("table.info tr:even").addClass("dark");  

$('table tr').hover(
 function () {
    $(this).addClass("over");
 },
 function () {
    $(this).removeClass("over");
});

 $("#table") 
    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
    .tablesorterPager({container: $("#pager")}); 

  // zakładki w nagłówkach

$(".top li.tabs").click(function()
 {

  // pobieramy nazwe identyfikatora
  var elBox =  $(this).parent().parent().attr("id");

  // jezeli nie ma identyfikatora	
  if (elBox == "") {  
	//generujemy nazwe identyfikatora inkrementujac parametr globalny
	elBox = "abox_" + ++idx_auto_warski;
	// dodajemy id na nasz element
	$(this).parent().parent().attr("id", elBox);
  }

  $("#" + elBox + " li.tabs").removeClass("active");
  $(this).addClass("active");

  var element_index = $("#" + elBox + " li.tabs").index(this);

   $("#" + elBox + " .content li.tabs:visible").hide();
   $("#" + elBox + " .content li.tabs").eq(element_index).show();  
 
  return false;
 });


  
});
 
$(document).ready(
function() {
$("a[@rel*=lightbox]").lightBox();    	
});

