$(document).ready(function() {

  $('#tab_boxes .container').tabs({ fxAutoHeight: true }); //create tabs
  
  var $legislators = $(".introduced_bills");
  
  //show only eight most recent bills
  $legislators.each(function() {
      var i = 0;
      $(this).children().each( function() {
          if(i > 10) {
              $(this).remove();
          }
          i++;
      });
  });
  
  var $headlineDivs = $(".headlines");

  $headlineDivs.each(function() {
      var i = 0;
      $(this).children().each( function() {
          if(i > 10) {
              //console.log($(this));
              $(this).remove();
          }
          i++;
      });
  });
  
  var $shadDiv = $("#shadplank");
  
  $shadDiv.each(function() {
      var i = 0;
      $(this).children().each( function() {
          if(i > 6) {
              $(this).remove();
          }
          i++;
      });
  });
  
  var $removeDiv = $("#mebacote2_tab-2");
  $removeDiv.remove();
  
  var $secondRemoveDiv = $("#mebacote3_tab-2");
  $secondRemoveDiv.remove();
  
});
