﻿function getFirstChild(n) {
	x = n.firstChild;
	while (x.nodeType != 1) {
		x = x.nextSibling;
	}
	return x;
}
function showPanel(panelNum) {
	var panel = document.getElementById('footerPanel'+panelNum);
	panel.className = 'up';
	var fc = getFirstChild(panel);
	fc.style.display = 'block';
}
function hidePanels() {
	var panelCount = 3;
	for (var i = 1; i <= panelCount; i++) {
		var panel = document.getElementById('footerPanel'+i);
		panel.className = 'down';
		var fc = getFirstChild(panel);
		fc.style.display = 'none';
	}
}

