/* PROJECT ARCIX Javascript File */
/* Allows for mouse-over description of navigation */
var homeDesc = "Your starting point for exploring ProjectArcix";
var naturalDesc = "Nature's various threats and how to respond to them.";
var syntheticDesc = "Learn about man-made or synthetic disasters and how to respond to them.";
var terminologyDesc = "A list of contextual terms and definitions that extends beyond what's used in this Project.";
var mediaDesc = "A collage of flash simulations, interactive quizzes, educational printouts, and movies for all ages.";
var aboutDesc = "The birth of ProjectArcix, our mission statement, what we strive for today.";
var helpDesc = "Maximize your experience with ProjectArcix by following these tips.";

var orgtext = null;
function show(text, bodyid){
	if(bodyid == document.body.id) {
	orgtext = document.getElementById('bc_text').innerHTML;  }
//	document.getElementById('bc_text').innerHTML = '<h4 id="descbox" style="color: #3289c1;">'+text+'</h4>'; }
	else {
	orgtext = document.getElementById('bc_text').innerHTML; 
	document.getElementById('bc_text').innerHTML = '<h4 id="descbox">'+text+'</h4>';}
	}

function hide(){
	document.getElementById('bc_text').innerHTML = orgtext; 
	}
	

function showDialog(idname) {
	document.getElementById(idname).style.display = 'block';
	}
	
function hideDialog(idname) {
	document.getElementById(idname).style.display = 'none';
	}
	
function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

}

function dispQuotes() {
	var index = Math.floor(Math.random() * quote.length);
	var Quote = quote[index];
	var Author = author[index];	
	var Source = sourceQ[index];
	QuoteArray = new Array(Author, Quote, Source);
	return QuoteArray;
}

function dispFacts() {
	var index = Math.floor(Math.random() * facts.length);
	var Quote = facts[index];
	var Source = sourceF[index];	
	FactArray = new Array(Quote, Source);
	return FactArray;
}


function safeEmail(user,host,text) {
	document.write('<a href=\"mailto:' + user + '@' + host + '\">');
	document.write(text + '</a>');
}
