
//-----------------------------------------
// Represents a Sliding panel object 
// Parameters:
//		button_id - the id of the button that opens and closes the panel
//		panel_id - the id of the panel that will be opened and closed
//		img_closed - filename of the image when the panel is closed
//		img_closed - filename of the image when the panel is open
//-----------------------------------------
function SlidingPanel(button_id, panel_id) {
	var button = document.getElementById(button_id);
	var panel = document.getElementById(panel_id);

	button.onclick = function() {
		if (panel.style.display == 'block') {
			panel.style.display = 'none';
		} else {
			panel.style.display = 'block';
		}
		return false;
	};
}
