jQuery(document).ready(function(){

    $(".vice").hide();
    $(".viceKnihy").hide();
    $(".viceFilmy").hide();
    
    $('#showAll').click(function(){
			$(".vice").show(400);
			$('#showAll').hide();
			return false;
		});

    $('#showAllKnihy').click(function(){
			$(".viceKnihy").show(400);
			$('#showAllKnihy').hide();
			return false;
		});

    $('#showAllFilmy').click(function(){
			$(".viceFilmy").show(400);
			$('#showAllFilmy').hide();
			return false;
		});
    
     stripe();
    
      
})  


var stripe = function() {
  var tables = document.getElementsByTagName("table");  
  for(var i=0;i!=tables.length;i++){
    var table = tables[i];
    if (! table) { return; }
    if ((table.className != "tab_clear") && (table.className != "tab_clear")) {
      var tbodies = table.getElementsByTagName("tbody");
      
      for (var h = 0; h < tbodies.length; h++) {
        var suda = true;
        var trs = tbodies[h].getElementsByTagName("tr");
        
        for (var j = 0; j < trs.length; j++) {
          trs[j].onmouseover=function(){
            this.className += " over"; return false
          }
          trs[j].onmouseout=function(){
            this.className = this.className.replace("over", ""); return false
          }
          
          if(suda)
            trs[j].className += " suda";
          suda = !suda;
        }
      }
    }
  }
}



