anchor.diff:      }
   }
   
  +// puts video into delegated space on button press --> (snapshot)
   
   </script>
   
  -<script>
   
  -/* Open when someone clicks on the span element */
  -function openNav() {
  -    document.getElementById("myNav").style.width = "100%";
  -}
   
  -/* Close when someone clicks on the "x" symbol inside the overlay */
  -function closeNav() {
  -    document.getElementById("myNav").style.width = "0%";
  -}
   
  -</script>
  
positive.code:            vidID = id;
          }
  
  
  //    document.write(mp4url + youtubeLink);
  //    var newVid = mp4url+youtubeLink;
  
  
  //
      source.setAttribute('src', mp4url+vidID);
      video.appendChild(source);
      video.load();
  
  
  
  
  
  
  } //END getUserLink()
  
  </script>
  
  
  <script>
  
  var videoId = 'video';
  var scaleFactor = 0.5;
  var snapshots = [];
  
  /**
   * Captures a image frame from the provided video element.
  
negative.code:     return canvas;
  }
  
  // creates canvas element
  
  /**
   * Invokes the <code>capture</code> function and attaches the canvas element to the DOM.
   */
      function shoot(){
      var video  = document.getElementById(videoId);
      var output = document.getElementById('output');
      var canvas = capture(video, scaleFactor);
  