<!--
function disappear(id) {
	displayString = document.getElementById(id).style.display;
	val = (displayString == "none") ?  "inline" : "none";
	eval("document.getElementById(id).style.display = '" + val + "';");
}

function newAppear(id) {
	eval("document.getElementById(id).style.display = 'inline';");
}

function newDisappear(id) {
	eval("document.getElementById(id).style.display = 'none';");
}

function swaptab(id) {
	newId = 't' + id + 'Contents';
	totalTabs = 5;
	for (i=1;i<totalTabs+1;i++) {
		val = eval("(newId == 't" + i + "Contents') ? \"inline\" : \"none\";");
		eval("document.getElementById('t" + i + "Contents').style.display = '" + val + "';");
		
		// Reset focus on all section titles (panel-head elements) in the tab-headers div.
		eval("document.getElementById('panel-head" + i + "').className = 'panel-head-off';");
	}
	// Now bring focus to the selected section title (panel-head element) in the tab-headers div.
	eval("document.getElementById('panel-head" + id + "').className = 'panel-head-on';");
}
/*function swapSectionTitleFocus(obj) {
	totalSections = 9;
	for (i=0;i<totalSections;i++) {
		eval("document.getElementById(\"sectitle" + i + "\").className = \"sectitle-off\";"); 
	}
	if (obj != "null") {
		document.getElementById(obj).className = "sectitle-on"; 
	}
}*/
function tabGuideNav(type, num) {
	// first check whether a num has been passed, if so then we take the count from that variable / otherwise we take the existing count from our Object.
	if (num != "") {
		var count;
		count = parseInt(num);
	} else {
		// get the current value for the count
		var count = tabGuide['count'];
	}
	if (type == "num") {
		// get the old count
		oldCount = tabGuide['count'];
		if (count != oldCount) {
			prevValue = oldCount - 1;
			nextValue = oldCount + 1;
			/*
			if (count == tabGuide['minlastvalue']) {
				// make the back button invisible
				document.getElementById('tab-last').style.display = "none";
			} else if (count >= tabGuide['minlastvalue']) {
				document.getElementById('tab-last').style.display = "inline";
			}
			*/
			/*
			// hide the previous back section / tags
			if (prevValue >= tabGuide['minlastvalue']) {
				// hide the back text from previous count
				eval("document.getElementById('tab-last-" + prevValue + "').style.display = \"none\";");
			}
			*/
			newPrev = count - 1;
			/*
			if ( count > tabGuide['minlastvalue']) {
				// make the text relevant to the last section visible
				eval("document.getElementById('tab-last-" + newPrev + "').style.display = \"inline\";");
			}
			*/
			/*
			if (nextValue <= tabGuide['maxnextvalue']) {
				// hide the next text from the previous count
				eval("document.getElementById('tab-next-" + nextValue + "').style.display = \"none\";");
			}
			*/
			newNext = count + 1;
			/*
			if (newNext <= tabGuide['maxnextvalue']) {
				// make the text relevant to the next section visible
				eval("document.getElementById('tab-next-" + newNext + "').style.display = \"inline\";");
			}
			*/
			// now display the relevant section and hide the previous one
			eval("swaptab('" + count + "');");
			/*
			// swap the focus
			eval("swapSectionTitleFocus('sectitle" + count + "');");
			*/
		}
	}
	// set the count in our Object to the new value.
	tabGuide['count'] = count;
}
tabGuide = new Object();
tabGuide['count'] = 1;
tabGuide['maxnextvalue'] = 6;
tabGuide['maxlastvalue'] = 5;
tabGuide['minnextvalue'] = 2;
tabGuide['minlastvalue'] = 1;
tabGuide['numTabs'] = 5;
-->