// JavaScript Document

var currentLoc = "";
function showDirections(which) {
	if(currentLoc!="") {
		var loc = document.getElementById(currentLoc);
		if(typeof(loc) != undefined) {
			loc.className="hide";
		}
	}
	
	var itm = which.location[which.location.selectedIndex].value;
	currentLoc=itm;
	
	if(itm!="") {
		loc = document.getElementById(itm);
		
		if(typeof(loc) != undefined) {
			loc.className = "show";
		}
	}
}

function showInfo(which) {
	if(currentLoc!="") {
		var loc = document.getElementById(currentLoc);
		if(typeof(loc) != undefined) {
			loc.className="hide";
		}
	}
	
	var itm = which.subjects[which.subjects.selectedIndex].value;
	currentLoc=itm;
	
	if(itm!="") {
		loc = document.getElementById(itm);
		
		if(typeof(loc) != undefined) {
			loc.className = "showInfo";
		}
	}
}
