jQuery(document).ready(function($){
  // we just check if there is a first tour slide
  if ($('.tour1')) {
    // lets hide others first
    $('.tour2, .tour3, .tour4, .tour5').hide();
    
    //tour1
    $('#next1').click(function() {
      $('.tour1').hide();
      $('.tour2').show();
      
      return false;
    });

    //tour2
    $('#next2').click(function() {
      $('.tour2').hide();
      $('.tour3').show();
      
      return false;
    });
    
    $('#prev2').click(function() {
      $('.tour2').hide();
      $('.tour1').show();
      
      return false;
    });
    
    //tour3
    $('#next3').click(function() {
      $('.tour3').hide();
      $('.tour4').show();
      
      return false;
    });
    
    $('#prev3').click(function() {
      $('.tour3').hide();
      $('.tour2').show();
      
      return false;
    });
    
    //tour4
    $('#next4').click(function() {
      $('.tour4').hide();
      $('.tour5').show();
      
      return false;
    });
    
    $('#prev4').click(function() {
      $('.tour4').hide();
      $('.tour3').show();
      
      return false;
    });
    
    //tour5    
    $('#prev5').click(function() {
      $('.tour5').hide();
      $('.tour4').show();
      
      return false;
    });
    
    
  };
});