function change_panel(panel) {
	if (document.getElementById) {
		document.getElementById('publications').src = "images/panel_publications_off.jpg";
		document.getElementById('secure').src = "images/panel_secure_off.jpg";
		document.getElementById('planning').src = "images/panel_planning_off.jpg";
		document.getElementById('health').src = "images/panel_health_off.jpg";
		document.getElementById('highlights').src = "images/panel_highlights_off.jpg";
	}

	if (panel == "publications") {
		if (document.getElementById) {
			document.getElementById('cardTitle').innerHTML = "PUBLICATIONS EDITORIAL";
			document.getElementById('publications').src = "images/panel_publications_on.jpg";
			document.getElementById('imgWindow').src = "images/publications_window.jpg";
			document.getElementById('textBox').innerHTML = "Barbara A. Nadel, FAIA is an award-winning author, editor, and journalist whose writing appears in books, magazines, newspapers, websites, academic research, and studies.";
		}
	}
	else if (panel == "secure") {
		if (document.getElementById) {
			document.getElementById('cardTitle').innerHTML = "SECURE BUILDINGS";
			document.getElementById('secure').src = "images/panel_secure_on.jpg";
			document.getElementById('imgWindow').src = "images/secure_window.jpg";
			document.getElementById('textBox').innerHTML = "Barbara Nadel Architect has been at the forefront of emerging security, justice, and healthcare industry trends, including special needs correctional facilities across the U.S.";
		}
	}
	else if (panel == "planning") {
		if (document.getElementById) {
			document.getElementById('cardTitle').innerHTML = "PLANNING PROGRAMMING";
			document.getElementById('planning').src = "images/panel_planning_on.jpg";
			document.getElementById('imgWindow').src = "images/planning_window.jpg";
			document.getElementById('textBox').innerHTML = "Barbara Nadel Architect specializes in security planning, architectural programming, and design of civic buildings, including justice, healthcare, psychiatric, cultural, and institutional facilities.";
		}
	}
	else if (panel == "health") {
		if (document.getElementById) {
			document.getElementById('cardTitle').innerHTML = "HEALTH & CORRECTIONAL";
			document.getElementById('health').src = "images/panel_health_on.jpg";
			document.getElementById('imgWindow').src = "images/health_window.jpg";
			document.getElementById('textBox').innerHTML = "Barbara Nadel Architect specializes in master planning, programming, and design of correctional and healthcare facilities, critical infrastructure, and institutional campuses.";
		}
	}
	else if (panel == "highlights") {
		if (document.getElementById) {
			document.getElementById('cardTitle').innerHTML = "HIGHLIGHTS";
			document.getElementById('highlights').src = "images/panel_highlights_on.jpg";
			document.getElementById('imgWindow').src = "images/highlights_window.jpg";
			document.getElementById('textBox').innerHTML = "Barbara A. Nadel, FAIA is the American Institute of Architects 2009 Edward C. Kemper Award recipient. This prestigious national award recognizes individuals who contribute significantly to the profession of architecture.";
		}
	}
}
function preloadImages() {
	if (document.images) {
		// The planning window gets loaded onload.
		// And all the off states get set onload.
		var pubPanel = new Image(107,113);
		var securePanel = new Image(105,113);
		//var planPanel = new Image(105,113);
		var healthPanel = new Image(104,113);
		var highlightsPanel = new Image(108,113);
	
		var pubWindow = new Image(529,217);
		var secureWindow = new Image(529,217);
		var planWindow = new Image(529,217);
		var healthWindow = new Image(529,217);
		var highlightsWindow = new Image(529,217);
	
		pubPanel.src = "images/panel_publications_on.jpg";
		securePanel.src = "images/panel_secure_on.jpg";
		// planPanel.src = "images/panel_planning_on.jpg";
		healthPanel.src = "images/panel_health_on.jpg";
		highlightsPanel.src = "images/panel_highlights_on.jpg";
	
		pubWindow.src = "images/secure_window.jpg";
		secureWindow.src = "images/highlights_window.jpg";
		// planWindow.src = "images/health_window.jpg";
		healthWindow.src = "images/planning_window.jpg";
		highlightsWindow.src = "images/publications_window.jpg";
	}
}
function showPopMenu(which) {
	document.getElementById(which).style.display = "block";
}
function hidePopMenu(which) {
       	document.getElementById(which).style.display = "none";
}


