var players= new Array();
var videos= new Array();

if (typeof console === "undefined" || typeof console.log === "undefined") {
     console = {};
     console.log = function() {};
}   
   
$(document).ready(function(){
  console.log('Document is ready');
  $(".tabs").tabs(".panes div");
 
  $('#seo-container-proper').html($('#seo-container').html());
  var increment=1;
  $('.customer-list').each(
    function(){
     $(this).innerfade(
      { animationtype: 'fade', speed: 1000, timeout: 3000+(increment++*1000), type: 'sequence', containerheight: 'auto' }
     );
    }
  );
  
  $('#home-customer-list li img').click(function(){
    location.href="/customers/customer-success";
   } 
  );
  
  $("#customer-videos-scrollable").scrollable({ circular: true, mousewheel: false }).autoscroll({ autoplay: true, interval: 7000 }).navigator({

		// select #flowtabs to be used as navigator
		navi: "#video-navigation",

		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'li',

		// assign "current" class name for the active A tag inside navigator
		activeClass: 'current',

		// make browser's back button work
		history: false

	});
  
  var api = $("#customer-videos-scrollable").data("scrollable");
      
/*
   $('.video-object iframe').each(
    function(){
     videos.push($(this).attr("class"));
    }
   );
   
   console.log(videos);      
    */
 
});

