// JavaScript Document

//
// FUNCTION TO CHECK FOR A VARIABLE AND OPEN CORRECT SECTION ON LOAD
//
function checkForSection(){
	var theSectionFromURL = getValue("theSectionFromURL");
	showSection(theSectionFromURL);
}



//
//  FUNCTIONS FOR TOP LINK CLICKS
//

function showSection(theSection){
	document.getElementById('Liria').style.display = 'none'; 
	document.getElementById('MAXQ').style.display = 'none'; 
	document.getElementById('Mathew').style.display = 'none'; 
	document.getElementById('Raiser').style.display = 'none'; 
	document.getElementById('Donner').style.display = 'none'; 
	document.getElementById('Dawson').style.display = 'none';
	document.getElementById('Wagner').style.display = 'none'; 
	document.getElementById('Smith').style.display = 'none';
	document.getElementById('Dellamonica').style.display = 'none';
	document.getElementById('Dickson').style.display = 'none';
//	alert("message here");
	document.getElementById(theSection).style.display = 'block'; 
}

//
// RETRIEVES VARIABLE FROM URL
//

function getValue(varname)
{
	
	
  // First, we load the URL into a variable
  var url = window.location.href;

  // Next, split the url by the ?
  var qparts = url.split("?");

  // Check that there is a querystring, return "" if not
  if (qparts.length == 0)
  {
	
    return "";
  }

  // Then find the querystring, everything after the ?
  var query = qparts[1];
	
  // Return the value
  return query;
  
}

function joinMailList(){
	document.getElementById('kwd-constant-contact').style.display = 'inline'; 
}



//function removeBox(){
//	document.getElementById('kwd-constant-contact').style.display = 'none'; 
//}
