﻿function hideCopyright()
	{
		document.getElementById("copyright").style.display="none";
	}
	
function showCopyright()
	{
		document.getElementById("copyright").style.display="block";
	}
function showMap()
	{
		document.getElementById("mapbackground").style.display="block";
	}

 
function clearSearch(theText) 
{
	if (theText.value == theText.defaultValue)
	{
		theText.value = "";
		theText.style.color="#fff";
		theText.style.border="1px #fff groove";
	}
 }
 
 function blurSearch(theText)
 {
 	if (theText.value=="")
 	{
 		theText.value=theText.defaultValue;
 		theText.style.color="#999999";
 		theText.style.border="1px #999999 groove";
 	}
 }
 function mouseOn(theText)
  {
 	if (theText.value=="")
 	{
 		theText.style.color="#fff";
 		theText.style.border="1px #999999 groove";
 	}
 }
 function mouseOff(theText)
  {
 	if (theText.value=="")
 	{
 		theText.style.color="#999999";
 		theText.style.border="1px #999999 groove";
 	}
 }
function balanceMembers()
{
	if (document.getElementById("member1").offsetHeight < document.getElementById("member2").offsetHeight){
		document.getElementById("member1").style.height = document.getElementById("member2").offsetHeight + "px";
	}
	else {
		document.getElementById("member2").style.height = document.getElementById("member1").offsetHeight + "px";
	}

}

function balanceStories()
{
	if (document.getElementById("story1").offsetHeight < document.getElementById("story2").offsetHeight){
		document.getElementById("story1").style.height = document.getElementById("story2").offsetHeight + "px";
	}
	if (document.getElementById("story1").offsetHeight < document.getElementById("story3").offsetHeight){
		document.getElementById("story1").style.height = document.getElementById("story3").offsetHeight + "px";
	}
	if (document.getElementById("story1").offsetHeight < document.getElementById("story4").offsetHeight){
		document.getElementById("story1").style.height = document.getElementById("story4").offsetHeight + "px";
	}
	document.getElementById("story2").style.height = document.getElementById("story1").offsetHeight + "px";
	document.getElementById("story3").style.height = document.getElementById("story1").offsetHeight + "px";
	document.getElementById("story4").style.height = document.getElementById("story1").offsetHeight + "px";
}

function balanceStoryPage()
{
	balanceMembers();
	balanceStories();
}
