var currentThing = null;
var popupWidth = 1000;
var popupHeight = 680;
var popupLeft = (screen.width-popupWidth)/2;
var popupTop = (screen.height-popupHeight)/2;
function showTextBlock(thing) {
	if(currentThing != null) {
		if(currentThing==thing) {
			$(thing).style.display = "none";
			$("textBlock").style.display="none";
			$("flash").style.display="block";
			currentThing = null;
		} else {
			$(currentThing).style.display="none";
			$(thing).style.display="block";
			currentThing = thing;
		}
	} else {
		$("flash").style.display="none";
		$("textBlock").style.display="block";
		$(thing).style.display="block";
		currentThing = thing;
	}
}


var popup = null;
function launchPopup(url) {
	popup = window.open(url,"myPopup","width="+popupWidth+",height="+popupHeight+",left="+popupLeft+",top="+popupTop+",resizable=1");
	popup.focus();
}

function closePopup() {
	self.close();
	popup = null;
	currentThing = null;
}

function $(thing) {
	return document.getElementById(thing)
}