// This code is taken from: http://www.willmaster.com/blog/css/show-hide-floating-div.php

  function HideContent(d) {
    if(d.length < 1) { return; }
    document.getElementById(d).style.display = "none";
  }
  function ShowContent(d) {
    if(d.length < 1) { return; }
    document.getElementById(d).style.display = "block";
  }
  function ReverseContentDisplay(d) {
    if(d.length < 1) { return; }
      if(document.getElementById(d).style.display == "block") { document.getElementById(d).style.display = "none"; }
    else { document.getElementById(d).style.display = "block"; }
  }

  // Custom code
  function ShowPPPshow(d) {
    if(d.length < 1) { return; }
    ReverseContentDisplay('details' + d);
  }

  function ShowPPPmorelink(d) {
    // Use Javascript to write the link, so this is gracefully hidden from non-JS visitors
    document.write("<a href=\"Javascript:ShowPPPshow('" + d + "');\">");
  }

