function loadCheck(){
	var contentid = getQueryVariable("contentid");
	cs_change_content(contentid);
	//alert("loaded");
}



function getQueryVariable(variable) {
  // Author: Pete Freitag
  // http://www.activsoftware.com/code_samples/code.cfm/CodeID/59/JavaScript/Get_Query_String_variables_in_JavaScript
  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];
    }
  } 
}

function section_highlight(menuid){
	var menuitem = document.getElementById(menuid);
	menuitem.style.backgroundColor = "yellow";
	menuitem.style.color = "black";
	menuitem.style.borderColor = "black";
}

function section_unhighlight(menuid){
	var menuitem = document.getElementById(menuid);
	menuitem.style.backgroundColor = "#003366";
	menuitem.style.color = "white";
	menuitem.style.borderColor = "#003366";

}


function cs_content_highlight(menuid){
	var menuitem = document.getElementById(menuid);
	menuitem.style.backgroundColor = "#4E5B23";

}

function cs_content_unhighlight(menuid){
	var menuitem = document.getElementById(menuid);
	menuitem.style.backgroundColor = "#45453D";
}

function cs_change_content(contentid){
	var content_item = document.getElementById(contentid);
	
	//hide all
	for (i=1;i<8;i++)
	{	
		content_element = "content_" + i;
		var contentitem = document.getElementById(content_element);
		contentitem.style.visibility = "hidden";
	}

	// show content
	content_item.style.visibility = "visible";
}
