function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  //alert('Query Variable ' + variable + ' not found');
}

function showslideshow() {
	if (document.getElementById("ss") != null) document.getElementById("ss").style.display = "block";
	if (document.getElementById("subjectdescription") != null) document.getElementById("subjectdescription").style.display = "none";
	if (document.getElementById("linkto") != null) document.getElementById("linkto").style.display = "none";
	if (document.getElementById("showcartoonlink") != null) document.getElementById("showcartoonlink").style.display = "none";
}

function showdesc() {
	if (document.getElementById("ss") != null) document.getElementById("ss").style.display = "none";
	if (document.getElementById("subjectdescription") != null) document.getElementById("subjectdescription").style.display = "none";
	if (document.getElementById("linkto") != null) document.getElementById("linkto").style.display = "none";
	if (document.getElementById("showcartoonlink") != null) document.getElementById("showcartoonlink").style.display = "block";
}

function showsubjectdesc() {
	if (document.getElementById("ss") != null) document.getElementById("ss").style.display = "none";
	if (document.getElementById("subjectdescription") != null) document.getElementById("subjectdescription").style.display = "block";
	if (document.getElementById("linkto") != null) document.getElementById("linkto").style.display = "none";
	if (document.getElementById("showcartoonlink") != null) document.getElementById("showcartoonlink").style.display = "block";
}

function showlinkto() {
	if (document.getElementById("ss") != null) document.getElementById("ss").style.display = "none";
	if (document.getElementById("subjectdescription") != null) document.getElementById("subjectdescription").style.display = "none";
	if (document.getElementById("linkto") != null) document.getElementById("linkto").style.display = "block";
	if (document.getElementById("showcartoonlink") != null) document.getElementById("showcartoonlink").style.display = "block";
}