text: var canvas = document.getElementById('can'),
      context = canvas.getContext('2d');
  var img = document.createElement('img');
  var canvas_link = document.getElementById('canvas-link');
  var timer = 0;
  
  /*function changeImage()
  {
          var url = 'url(' + imgs[i] + ')';
          if(imgs[i] !== undefined){
              $("#home-header").css("background-image", url);
          }
          i++;
  
          if(i >= imgs.length){
              i = 0;
          }
          setTimeout("changeImage()", 5000);
  }*/
  
  function changeText()
  {
      var url = 'url(' + imgs[j] + ')';
      if(imgs[j] !== undefined){
          $("#home-header").css("background-image", url);
      }
          addRibbon();
          updateDots();
          if(header[j] !== undefined && text[j] !== undefined){
              document.getElementById("slide-title").innerHTML = header[j];
              document.getElementById("slide-text").innerHTML = text[j];
          }
          j++;
  
          if(j >= header.length){
              j = 0;
          }
          timer = setTimeout("changeText()", 6000);
  }
  
  function addRibbon()
  {
      if(j < ribbons.length){
          img.onload = function () {
              context.clearRect(0, 0, canvas.width, canvas.height);
              context.drawImage(this,0,0, 150, 150);
          };
          if(ribbons[j] == '')
              context.clearRect(0, 0, canvas.width, canvas.height);
          else {
              img.src = ribbons[j];
              canvas_link.href = ribbonLinks[j];
          }
      }
  }
  
  function updateDots(){
      var dots = document.getElementsByClassName("dot");
       for (i = 0; i < dots.length; i++) {
           dots[i].className = dots[i].className.replace(" active", "");
       }
       dots[j].className += " active";
  }
  
  function currentSlide(num){
      if(timer){
          clearTimeout(timer);
          timer = 0;
      }
      var n = parseInt(num);
      if(n >= 0 && n < header.length){
          j = n;
          changeText();
      }
  }
  
  //TODO: Create header image for the move
  var imgs = ['img/header/Callier-Center_slider.jpg', 
      'img/header/FriendsofBrainHealth_Logo_slider.jpg',
  	'img/header/hybrid_ms_v2_header.jpg', 
  	'img/header/CVL_slider.jpg']; 
  var ribbonLinks = ['', 'index.html#recent-events', '',''];
  var ribbons = ['', 'img/ribbons/recent_news.png','', ''];
  var header = ["Welcome to SLAM Lab!",
      "Friends of BrainHealth Award", 
  	"Newest Publication", 
  	"Center for Vital Longevity Talk"];
  var text = ['We are the auditory neuroscience lab at The University of Texas at Dallas Department of Speech, Language, &amp; Hearing in the School of Behavioral and Brain Sciences. We study the connection between speech, language, and music in the brain.', 
      'Doctoral student Hyun-Woong Kim is honored to receive the 2021 Friends of BrainHealth Visionary New Scientist Award. Leveraging this award, he will investigate neural underpinnings of rhythm-induced language enhancement for children with developmental language disorders. He will officially receive the award at the Friends of BrainHealth Luncheon on September 27th.',
  	'The latest publication shares a new auditory neuroimaging strategy to combat the distortion of sounds produced by MRI scanners.', 
  	'Dr. Lee presented on "The Brain, Music, and Well-Being: The BMW Story".'];
  
  var j = 0;
  
  timer = setTimeout("changeText()", 100);
  