// JavaScript Document
function initEvents() {
	setList("eastern");
	initEventLinks();
}
var strCurList = "";
function setList(strListID) {
	if (strListID != strCurList) {
		if (strCurList != "") {
			document.getElementById(strCurList).style.display = "none";
			document.getElementById(strCurList + "-link").className = "";
		}
		strCurList = strListID;
		document.getElementById(strCurList).style.display = "block";
		document.getElementById(strCurList + "-link").className = "active";
	}
}
var objCurOpenDescription = "";
function initEventLinks() {
	var arrEventLinks = document.getElementsByTagName("a");
	for (var i=0; i<arrEventLinks.length; i++) {
		if (arrEventLinks[i].className == "event-link") {
			arrEventLinks[i].onclick = function() {
				if (objCurOpenDescription != "") {
					objCurOpenDescription.style.display = "none";
				}
				objCurOpenDescription = this.parentNode.getElementsByTagName("div")[0];
				objCurOpenDescription.style.display = "block";
				return false;
			}
		}
	}
}
function closeSplat() {
	document.getElementById("splash-cover").style.display = "none";
	document.getElementById("center-bg-wrapper").style.display = "inline";
	sIFR.activate(TradeGothic);
	sIFR.replace(TradeGothic, {
		selector: '#description h1',
		wmode: 'transparent'
		,css: [
				'.sIFR-root { color: #ffffff; font-size: 39px; leading: -2;text-transform: uppercase }'
				,'em { color: #f5841f;font-style: normal; }'
		]
	});
	sIFR.replace(TradeGothic, {
		selector: '#description h2',
		wmode: 'transparent'
		,css: [
				'.sIFR-root { color: #7e7676; font-size: 14px;leading: 5;text-transform: uppercase  }'
				,'em { color: #f5841f;font-style: normal; }'
				,'strong { color: #ffffff;font-style: normal; }'
		]
	});
	
	sIFR.replace(TradeGothic, {
		selector: '#description h3',
		wmode: 'transparent'
		,css: [
				'.sIFR-root { color: #FF0000; font-size: 18px;leading: 5;text-transform: uppercase  }'
				,'em { color: #f5841f;font-style: normal; }'
				,'strong { color: #ffffff;font-style: normal; }'
		]
	});
}
initEvents();