$(document).ready(function() { 
 
 $("#tabLatestPhotos").show();
 $("#tabPopularPhotos").hide();
 $("#tabRandomPhotos").hide();  
  
 /*TAB ONE*/
 $('#tab1').click(function () {
 
  /*Show active carousel*/
  $("#tabLatestPhotos").show();
  $("#tabPopularPhotos").hide();
  $("#tabRandomPhotos").hide();
  
  /*Add / Remove active class*/
  $("#tab1").addClass("active");
  $("#tab2").removeClass("active");
  $("#tab3").removeClass("active");  
  
  return false;
  
 });
 
 /*TAB TWO*/
 $('#tab2').click(function () {
 
  /*Show active carousel*/
  $("#tabPopularPhotos").show();
  $("#tabLatestPhotos").hide();
  $("#tabRandomPhotos").hide();
  
  /*Add / Remove active class*/
  $("#tab1").removeClass("active");
  $("#tab2").addClass("active");
  $("#tab3").removeClass("active"); 
  
  return false;
  
 });
 
 /*TAB THREE*/
 $('#tab3').click(function () {
 
  /*Show active carousel*/
  $("#tabRandomPhotos").show();
  $("#tabLatestPhotos").hide();
  $("#tabPopularPhotos").hide();
  
  /*Add / Remove active class*/
  $("#tab1").removeClass("active");
  $("#tab2").removeClass("active");
  $("#tab3").addClass("active"); 
  
  return false;
  
 });

});