// JavaScript Document
jQuery(document).ready(function(){
				jQuery('#slider-stage').carousel('#previous', '#next');
				jQuery('#viewport').carousel('#simplePrevious', '#simpleNext');  
			});			

var auto = false;
var time;	
	
//The auto-scrolling function
function slide(){
  auto = true;
  $('#simpleNext').click();
  auto = false;
}

function relaunch(){
  intervalId = window.setInterval(slide, 3000);
}

//Launch the scroll every 4 seconds
var intervalId = window.setInterval(slide, 3000);
