// Open a specific thumbnail based on querystring input.
hs.addEventListener(window, "load", function() {
   // get the value of the autoload parameter
   var autoload = /[?&]autoload=([^&#]*)/.exec(window.location.href);
   // virtually click the anchor
   if (autoload) document.getElementById(autoload[1]).onclick();
});
