//used to show only one panel assuming other panels are within the same parent DIV
//assumes all panels are DIVs and all child DIVs are panels
//if we can require that the parent of any panel, only contain panels, this will be more reliable
function switchToPanel(panelID) {
	var desiredPanel = document.getElementById(panelID);
	var parentElement = desiredPanel.parentNode;

	var panels = parentElement.childNodes;
	for (var child=0;child<panels.length;child++) {
		panel = panels[child];
		if (panel.id == panelID) {
			panel.style.display = 'block';
		} else if (panel.tagName == 'DIV') {
			//window.alert(panel);
			panel.style.display = 'none';
		} else {
			//window.alert(panel.tagName);	
		}
	}
}

function appendLikeButton(path) {
	var fb = document.createElement('fb:like');
	fb.setAttribute("href","www.sandiego.edu" + path); 
	fb.setAttribute("layout","button_count");
	fb.setAttribute("show_faces","false");
	fb.setAttribute("width","100");
	fb.setAttribute("font","arial");
	document.getElementById("FaceBookLikeButton").appendChild(fb);
}


