      function display(year, month, day, time, title, country, city, venue, description, type, picURL, height, width, hideplayer) {
        var x = self.pageXOffset ? self.pageXOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollLeft : document.body ? document.body.scrollLeft : null;
        var y = self.pageYOffset ? self.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body ? document.body.scrollTop : null;

        var topMargin, leftMargin;
        var element = document.getElementById(type + 'popup');
        var code = "<div class=\"popupdiv\">";

        if (type == "schedule") {
          hide("picture");
          var date = day + " " + month + " " + year + " " + time ;
          topMargin = -125; // (.5 * height)

          code += "<div class=\"popupheading\">" + title + "</div>"; 
          code += "<div class=\"line\"><span class=\"popupsubheading\">When: </span>" + date + "</div>";
          code += "<div class=\"line\"><span class=\"popupsubheading\">Where: </span>" + city+ " (" + country + ")</div>";
 
          if (venue != "") {
            code += "<div class=\"line\"><span class=\"popupsubheading\">Venue: </span>" + venue + "</div>"; }

          code += "<div class=\"line\"><span class=\"popupsubheading\">Details: </span></div>";
          code += "<div style=\"margin-left: 20px;\">" + description + "</div>";
        }

        if (type == "picture") {
          hide("schedule");
 
          if (hideplayer == "1") {
            document.getElementById('player').style.visibility='hidden';            
          }

          var padding = .15 * height;
          topMargin = ((height + padding) * 0.5) * -1; 
          leftMargin = ((width + padding) * 0.5) * -1; 

          element.style.height = (height + padding + 'px');
          element.style.width = (width + padding + 'px');
          element.style.marginLeft = leftMargin + x + 'px';

          if (picURL != "") {
            code += "<div style=\"width: 100%; text-align: center; margin-top: " + (padding * 0.25) + "px;\"><img src=\"" + picURL + "\" height=\"" + height + "\" width=\"" + width + "\"></div>"; }
 
          if (description != "") {
            code += "<div style=\"width: 100%; text-align: center; font-style: italic;\">" + description + "</div>"; }

        }

        code += "<div class=\"popupclose\">[X]</div>";
        code += "</div>";

        element.style.zIndex='10';
        element.innerHTML= code;
        element.style.marginTop = topMargin + y + 'px';
        element.style.visibility='visible'; 
      }

      function hide(type, showplayer) {
        if (type == "picture" && showplayer == "1") {
        document.getElementById('player').style.visibility='visible';   }
        document.getElementById(type + 'popup').style.visibility='hidden';
      }


function toggle(id,tog) {
  if (tog == "0") {
    document.getElementById(id).style.display = "none";
    var STUFF = "<a href=\"javascript:toggle('" + id +"', 1);  \">Show Summary</a>";
    document.getElementById(id+'h').innerHTML = STUFF;
    return;
  }

  else { 
    document.getElementById(id).style.display = "block";
    var STUFF = "<a href=\"javascript:toggle('" + id +"', 0);  \">Hide Summary</a>";
    document.getElementById(id+'h').innerHTML = STUFF;
    return;
  }
}