// JavaScript Document

function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}

$(document).ready(function() {
						   
	var showcontent = getQuerystring('showcontent');  /* gets query string of showcontent on page load  */
	if (showcontent != "")   /* if querystring isn't null will hide all whitepapers and show the ID of the querystring  */
  {
  	$('.showcontentwrapper').css("display","none");
 	$('#' + showcontent).css("display","block");
  	$('.more-text').css("display","block");
  
  }
else { }
  });
