var PAGE_ID;
var INIT_TOPLEVEL_INDEX;
var NAVMASTERS = new NavMasters(); // in most cases, page will have only one nav, but there is no upper limit
		
		 // todo: move global to a better location. It is used by ofxNavOop_accordion to show init open immediate, not w/ duration

function ofPageInit(pageid, tocsectionid)
	{

		PAGE_ID = pageid;
			
		INIT_TOPLEVEL_INDEX = tocsectionid;

		if (document.getElementById("ofAccordion")) {
			var toc = new Accordion("ofAccordionUL", NAVMASTERS,"id");
			toc.init();
		}
	}

function Zen() {
//do nothing
}


var currentLayer=0;
function layerSwap(layerToShow){
	document.getElementById(divArray[currentLayer]).style.display='none';
	document.getElementById(divArray[layerToShow]).style.display='block';
	currentLayer=layerToShow;
}

