// JavaScript Document
// JavaScript Document


// initializes display by hiding popup windows and nav


function ridall() {

hideId('terms1');
hideId('terms2');
hideId('terms3');
hideId('terms4');

}

//show menu when link clicked
function ddb() {
	if (document.getElementById) {
		document.getElementById('cbut').onclick = function() {
			return showhide('popup');
		}
	}
}



//shows/hides an id
function showhide(myId) {
	ridall();
	
			showId(myId);
}
	

//hides an id
function hideId(myId) {
	if (document.getElementById) {
		document.getElementById(myId).style.visibility = 'hidden';
		document.getElementById(myId).style.height = '1px';
		document.getElementById(myId).style.position = 'absolute';
		
		
		document.body.style.height = 'auto';
		
	}
}

function makewhite(idtowhite) {
	document.getElementById('1').style.color = '#DA4524';
	document.getElementById('2').style.color = '#DA4524';
	document.getElementById('3').style.color = '#DA4524';
	document.getElementById('4').style.color = '#DA4524';
	document.getElementById(idtowhite).style.color = '#FFFFFF';
}

//shows an id
function showId(myId) {
	if (document.getElementById) {
		document.getElementById(myId).style.visibility = 'visible'
		document.getElementById(myId).style.height = 'auto';
		document.getElementById(myId).style.position = 'relative';
		document.body.style.height = 'auto';
		
	}
}


startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
 if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav2");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
 
 if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav3");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}


 



