$(document).ready(function(){ 
    $("table tbody tr:even").addClass("even");
    
    $("table tbody tr.compact").each(function(){
      $(this).remove();
    });
    
//    $("table tbody tr").each(function(){
//      if ($(this).attr("class")=="compact") {
//        $(this).prev().addClass("nobottomborder");
//        $(this).next().addClass("notopborder");
//        $(this).css("display","none");
//      }
//    });    
    
    //$("table thead tr th:first").each(function(){
    //  $(this).corner("12px tl");
    //});
    
    $("table thead tr th:nth-child(1)").corner("12px tl");
    $("table thead tr th:last-child").corner("12px tr");
    
    $("table tbody tr:last-child td").attr("class","bb");
    
    $("table tbody tr").each(
      function() {
        $("td:first-child").addClass("lb");
        $("td:last-child").addClass("rb");
      }
    );
    //$("table.akce tbody tr:even").attr("class","even");
    //$("table.akce tbody tr").each(function(){
      //if ( ($(this).attr("class")!='compact') ) {
        //$(this).attr("class","even");
        //alert ($(this).index(this));
      //}
    //});
    
    
    $("tr:last-child").addClass("last-child");
});
