////
function toggleSteps(x) {
		// If "Interaction Container" is hidden and an "Interaction Box" button is pressed...:
		if ($(x).is(":hidden")) {
			// Hide "other containers":
			$('.containers').hide();
			// Then show "the container":
			$(x).slideDown(200);
		// If "Interaction Container" is visible and an "Interaction Box" button is pressed:
		} else {
			// hide the container:
			$(x).hide();
		}
}


//// jQuery functionality for toggling "Interaction Containers".
// "(x)" is this function target (passing value), which is "interactionContainer" id:
function toggleInteractContainers(x) {
		// If "Interaction Container" is hidden and an "Interaction Box" button is pressed...:
		if ($('#'+x).is(":hidden")) {
			// ..."slide down"-reveal the container:
			$('#'+x).slideDown(200);
		// If "Interaction Container" is visible and an "Interaction Box" button is pressed:
		} else {
			// hide the container:
			$('#'+x).hide();
		}
}


//// jQuery function to replace "plus sign" with "white background" when hovered:
$(function() {
	$('img[src="images/plusSign.jpg"]').mouseover(function(){
	  var newSrc = $(this).attr("src").replace("images/plusSign.jpg", "images/plusSignHover.jpg");
	  $(this).attr("src", newSrc); 
	});
	$('img[src="images/plusSign.jpg"]').mouseout(function(){
	  var newSrc = $(this).attr("src").replace("images/plusSignHover.jpg", "images/plusSign.jpg");
	  $(this).attr("src", newSrc); 
	});
});
//
$(function() {
	$('img[src="images/plusSign_pink.jpg"]').mouseover(function(){
	  var newSrc = $(this).attr("src").replace("images/plusSign_pink.jpg", "images/plusSignHover_pink.jpg");
	  $(this).attr("src", newSrc); 
	});
	$('img[src="images/plusSign_pink.jpg"]').mouseout(function(){
	  var newSrc = $(this).attr("src").replace("images/plusSignHover_pink.jpg", "images/plusSign_pink.jpg");
	  $(this).attr("src", newSrc); 
	});
});


//// Javascript function to resize text:
function resizeText(multiplier)
{
  if (document.getElementById('mainBody').style.fontSize == "")
  {
    document.getElementById('mainBody').style.fontSize = "1.0em";
	document.getElementById('mainBody').style.lineHeight = "1.0em";
  }
  document.getElementById('mainBody').style.fontSize = parseFloat(document.getElementById('mainBody').style.fontSize) + (multiplier * 0.2) + "em";
  document.getElementById('mainBody').style.lineHeight = parseFloat(document.getElementById('mainBody').style.lineHeight) + (multiplier * 0.2) + "em";
}


//// Javascript function to normalize text size:
function normalizeText()
{
  document.getElementById('mainBody').style.fontSize = "14px";
  document.getElementById('mainBody').style.lineHeight = "17px";
  // Normalize the "font-size" and "line-height" for the "text resizer" function:
  document.getElementById('mainBody').style.fontSize = "";
  document.getElementById('mainBody').style.lineHeight = "";
}


//// Change "odd column" color in "site map":
$(function()
{
	$("#siteMap .row2 td:odd").css({"background" : "#beecf6"});
})


//// jQuery Lightbox function:
$(function() {
	for (var g = 1; g < 300; g++)
	{
		$('.g' + g + ' a').lightBox();
	}
});

