jQuery(document).ready(function(){
  jQuery('#program2').hide();
  jQuery('#program3').hide();
  jQuery('#program4').hide();
  jQuery('#program5').hide();
  jQuery('#program6').hide();
  jQuery('#program7').hide();
  var curActive = 1;
  
  jQuery('#programLink1').click(function() {
    if (curActive == 1) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 1;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      });  
      return false;
    }
  });

  jQuery('#programLink2').click(function() {
    if (curActive == 2) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 2;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      });  
      return false;
    }
  });
  
  jQuery('#programLink3').click(function() {
    if (curActive == 3) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 3;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      });
      return false;
    }
  });
  
  jQuery('#programLink4').click(function() {
    if (curActive == 4) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 4;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      });
      return false;
    }
  });
  
  jQuery('#programLink5').click(function() {
    if (curActive == 5) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 5;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      }); 
      return false; 
    }
  });
  
  jQuery('#programLink6').click(function() {
    if (curActive == 6) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 6;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      }); 
      return false; 
    }
  });
  
  jQuery('#programLink7').click(function() {
    if (curActive == 7) {
      return false;
    }
    else {
      jQuery('#programLink'+curActive).removeClass('active');
      jQuery('#program'+curActive).fadeOut('slow', function() {
        curActive = 7;
        jQuery('#programLink'+curActive).addClass('active');
        jQuery('#program'+curActive).fadeIn('slow');
      });  
      return false;
    }
  });
  
});