	//# of sections
	n = 14
	var currentMenu;

	var offImg = new Image(6, 6)
	offImg.src = "pixel.gif"
	var onImg = new Image(6, 6)
	if(document.all || document.getElementById){
		onImg.src = "arrow_left_yellow.gif"
	}
	else{
		onImg.src = "arrow_left.gif"
	}
	var offHereImg = new Image(6, 6)
	offHereImg.src = "arrow.gif"
	var onHereImg = new Image(6, 6)
	if(document.all || document.getElementById){
		onHereImg.src = "arrow_yellow.gif"
	}
	else{
		onHereImg.src = "arrow_left.gif"
	}

	function checkBrowser(){
		this.ver = navigator.appVersion
		this.dom = (document.getElementById) ? 1 : 0
		this.ie5 = (this.ver.indexOf("MSIE 5") > -1 && this.dom) ? 1 : 0
		this.ie4 = (this.ver.indexOf("MSIE 4") > -1 ) ? 1 : 0
		//this.ie4 = (document.all && !this.dom) ? 1 : 0
		this.ns5 = (this.dom && parseInt(this.ver) >=  5) ? 1 : 0
		this.ns4 = (document.layers && !this.dom) ? 1 : 0
		this.bw = (this.ie5 || this.ie4 || this.ns4 || this.ns5)
		return this
	}


	function makeMenu(obj,nest){
	//alert(obj);
		nest = (!nest) ? '' : 'document.' + nest + '.'
	   	this.css = (bw.dom) ? document.getElementById(obj).style : bw.ie4 ? eval(obj + ".style") : bw.ns4 ? eval(nest + "document.layers." + obj) : eval(nest + "document.layers." + obj)
		this.el = (bw.dom) ? document.getElementById(obj) : bw.ie4 ? eval(obj) : bw.ns4 ? eval(nest + 'document.' + obj) : eval(nest + 'document.' + obj)
		this.ref = (bw.dom || bw.ie4) ? document : bw.ns4?eval(nest + "document.layers." + obj + ".document") : eval(nest + "document.layers." + obj + ".document")
		this.x = (bw.ns4 || bw.ns5) ? this.css.left : this.css.pixelLeft
		this.y = (bw.ns4 || bw.ns5) ? this.css.top : this.css.pixelTop
		this.height = (bw.ns4) ? this.ref.height : this.el.offsetHeight
		//alert(this.height)
		//*if(this.height == 12){
		//	alert(obj + " " + document.all[obj].style.pixelHeight)
		//	alert(obj + " " + document.all[obj].clientHeight)
		//}*/
		this.hideIt = syncHideIt
		this.showIt = syncShowIt
		this.moveIt = syncMoveIt
		this.status = 0
		return this
	}
	function syncShowIt(){
		if (bw.ie4) {
			this.css.display = "block";
		}
		else {
			this.css.visibility = "visible";
		}
		this.status = 1;
	}
	function syncHideIt(){
		if (bw.ie4){
			this.css.display = "none";
		}
		else {
			this.css.visibility = "hidden";
		}
		this.status = 0;
	}
	function syncMoveIt(x,y){
		this.x = x
		this.y = y
		this.css.left = this.x
		this.css.top = this.y
	}

	function foldInit(){
		oFold = new Array()
		y = 0
		for(i = 0; i < n; i++){
			oFold[i] = new makeMenu('divFold'+i,'divFoldCont')
			oFold[i].moveIt(0,y)
			oFold[i].size = oFold[i].height
			y += oFold[i].height
			oFold[i].sub = new Array()
			oFold[i].subs = top_subs
			suby = oFold[i].height
				oFold[i].sub[0] = new makeMenu('divFoldSub'+i,'divFoldCont.document.divFold'+i)
				oFold[i].sub[0].hideIt()
				oFold[i].sub[0].moveIt(0,suby)
				suby += oFold[i].sub[0].height
		}
	  	oFoldCont = new makeMenu('divFoldCont')
	  	oFoldCont.showIt()

	  	/**********************************************************************************
	  	populate the foldMenu() function with the ordinal reference of the same array used
	  	to populate the style sheet & menu contents, ie: foldMenu(%ordinal%)
	  	this calls the function to display the section currently viewed
	  	**********************************************************************************/
	  	//foldMenu(4)
	}

	function top_subs(show,num){
		for(j = 0; j < this.sub.length; j++){
			if(show){
				this.sub[j].showIt()
			}else{
				this.sub[j].hideIt()
			}
		}
	}

	function checkheight(org){
		for(i = 0; i < oFold.length; i++){
			oFold[i].size = oFold[i].height
			for(j = 0; j<oFold[i].sub.length; j++){
				oFold[i].sub[j].size = oFold[i].sub[j].height
				if(oFold[i].sub[j].status){
					oFold[i].size+= oFold[i].sub[j].size
				}
				if(j!= 0){
					oFold[i].sub[j].moveIt(10,oFold[i].sub[j-1].y+oFold[i].sub[j-1].size)
				}
			}
			if(i!= 0){
				oFold[i].moveIt(0,oFold[i-1].y+oFold[i-1].size)
			}
		}
	}

	function subfoldmenu(main,sub){
		if(!oFold[main].sub[sub].sub.status){
			oFold[main].sub[sub].sub.showIt()
		}else{
			oFold[main].sub[sub].sub.hideIt()
		}
		checkheight(main)
	}

	function foldMenu(num){
		if (num == currentMenu) return;
		currentMenu = num;
	
		for(i = 0; i < oFold.length; i++){
			if(i!= num) oFold[i].subs(0,i)
		}
		if(!oFold[num].sub[0].status){
			oFold[num].subs(1,num)
		}else{
			oFold[num].subs(0,num)
		}
		checkheight(num)
	}
