var _SEL;
function showSection(secId) {
	var el = document.getElementById(secId);
	if(!el) return 0;

	if(_SEL) {
		hide(_SEL);
	}

	_SEL = secId;
	return show(secId);
}

function show(secId) {
	var el = document.getElementById(secId);
	if( !el ) return 0;
	el.style.display = "block";
	return 1;	
}

function hide(secId) {
	var el = document.getElementById(secId);
	if( !el ) return 0;
	el.style.display = "none";
	return 1;	
}

function navinit(expID) {
	var divs = document.getElementsByTagName('div');
	for( var i=0, l=divs.length, j=0; i<l; i++ ) {
		if( divs[i].className == "Section" ) {
			divs[i].onclick = function() {
				//showSection("s" + this.id.substr(1));
				top.location = 'content.php?id=' + this.id.substr(1);
			}
			divs[i].onmouseover = function() {
				this.style.cursor = 'pointer';

			}
			divs[i].onmouseout  = function() {
				this.style.cursor = 'default';
			}
			j++;
		}
	}
	showSection('s' + expID);	
}
