
$(document).ready(function(){  
      $('.tx-header-pi1').cycle({
        timeout: 7000,
        speed: 2000,
        random: true
      });
      $('.success_stories').cycle({
        timeout: 20000,
        speed: 1000,
        next: '.nextButton',
        prev: '.prevButton'
      });
      $('#dataTable').dataTable({
        "sPaginationType": "full_numbers"
      });
      
      // center images in news-list
      //$("div.news-image-holder a").each(function(){
      //   var elWidth = $(this).children('img').width();
      //   $(this).css("width", elWidth);
      //});
      
      // center images in news-list
      $("div.news-image-holder").each(function(){
         var elWidth = $(this).find('img').width();
         var elHeight = $(this).find('img').height();
         var marginTop = 0;

         if(parseInt(elHeight) < 120) {
            marginTop = (120 - elHeight)/2;
         }
         $(this).css({"width": elWidth, "height": elHeight, "margin": marginTop + "px auto 0"});

      });
      
});




