if(mnOn){
	flGl=[
	"name","fWidth","bkgC","flow","fvisC","fpad",
	"brdW","brdC","brdL","brdD","brdS",
	"leftC","leftO","leftL","leftSize", "leftH", "leftV",
	"rightC","rightO","rightL","rightSize", "rightH", "rightV",
	"tab","pad",
	"fFntC","fFntB","fFntI","fFntU","fOFntC","fOFntB","fOFntI","fOFntU","fOBkg",
	"lFntC","lFntB","lFntI","lFntU","lOFntC","lOFntB","lOFntI","lOFntU","lOBkg"
	];

	flBr=["fFntF","fFntS","lFntF","lFntS"];

	isLoaded = NSresized = false;
	isWin = (navigator.appVersion.indexOf("Win") != -1)
	if(!isWin && !isMac) NSfontOver = showVisited = false;

	fl_open_node = null;
	}

function fStart(){
	if(!mnOn) return;
	menuLoc = window;
	flCount = 0;
	while(eval("window.flAr" + flCount)){
		lv=0;
		fl=eval("fl"+br+flCount);
		gl=eval("flGlob"+flCount);
		for(i=0;i<gl.length;i++) eval(flGl[i] + "=" + gl[i]);
		for(i=0;i<flBr.length;i++) eval(flBr[i] + "=" + fl[i]);
		classIEf="font-family:" + fFntF + ";font-size:" + fFntS + "px;color:" + fFntC;
		if(fFntB)classIEf+=";font-weight:bold";
		if(fFntI)classIEf+=";font-style:italic";
		if(fFntU)classIEf+=";text-decoration:underline";
		classIEl="font-family:" + lFntF + ";font-size:" + lFntS + "px;color:" + lFntC;
		if(lFntB)classIEl+=";font-weight:bold";
		if(lFntI)classIEl+=";font-style:italic";
		if(lFntU)classIEl+=";text-decoration:underline";
		classIE=[classIEl, classIEf];

		flStr="<div id=fl" + flCount + " style='position:absolute;left:1px;top:140px;cursor:default;overflow:" + flow + ";width:" + fWidth + ";height:" + (fpad*2) + ";background-color:" + bkgC + "'>";
		flIE(flCount);
		document.write(flStr + "</div>");
		folder=document.getElementById("fl" + flCount);
		folder.fheight=fpad*2;
		folder.ovBkg=[lOBkg,fOBkg];
		flMake(false,flCount);
		fvis=null;
		if(fvisited){
			fvis=document.getElementById(fvisited);
			fvis.onmouseover=fvis.onmouseout=fvis.onclick=fvis.onmouseup=null;
			if(fvis.parent){
				openvis=true;
				str=fvisited.substr(0,fvisited.indexOf("_",fvisited.indexOf("_")+1))
				document.getElementById(str).expand();
				}
			else{
				openvis=false;
				if(fvis.isSub) fvis.expand();
				}
			if(fvis.isSub)fvis.onclick=fExpand; fvis.style.backgroundColor=fvisC; fvis.style.cursor="default";
			}
		flCount++;
		}
	}

function flIE(ndCnt){
	var i, array = eval("flAr" + ndCnt);
	var lg=array.length/4;
	for(i=0; i<lg; i++){	

		arPtr = i*4;
		inTxt			= array[arPtr];
		linkText	= array[arPtr + 1];
		hasHilite = array[arPtr + 2];
		isSub			= array[arPtr + 3];
		
		txtWidth=fWidth-lv*tab;
		if(isSub){
			if(leftC!="") txtWidth-=(leftSize + 2*leftH);
			if(rightC!="") txtWidth-=(rightSize + 2*rightH);
			}
		else{
			if(leftL!="") txtWidth-=(leftSize + 2*leftH);
			if(rightL!="") txtWidth-=(rightSize + 2*rightH);;
			}

		if(isSub){
			leftPtrStr = leftC!="" ? "<td width=" + (leftSize + 2*leftH) + "><img id=nlp" + ndCnt + "_" + i + " src=" + leftC + " border=0 hspace=" + leftH + " vspace=" + leftV + "></td>" : "";
			rightPtrStr = rightC!="" ? "<td width=" + (rightSize + 2*rightH) + "><img id=nrp" + ndCnt + "_" + i + " src=" + rightC + " border=0 hspace=" + rightH + " vspace=" + rightV + "></td>" : "";
			flStr+="<span ID=nd" + ndCnt + "_" + i + " style='position:absolute'><table border=0 cellspacing=0 cellpadding=0 width=" + (fWidth-lv*tab) + "><tr valign=top align=left>" + leftPtrStr + "<td width=" + txtWidth + " style='" + classIE[isSub] + "'>" + inTxt + "</td>" + rightPtrStr + "</tr></table></span>";
			}
		else{
			leftLeefStr = leftL!="" ? "<td width=" + (leftSize + 2*leftH) + "><img id=nll" + ndCnt + "_" + i + " src=" + leftL + " border=0 hspace=" + leftH + " vspace=" + leftV + "></td>" : "";
			rightLeefStr = rightL!="" ? "<td width=" + (rightSize + 2*rightH) + "><img id=nrl" + ndCnt + "_" + i + " src=" + rightL + " border=0 hspace=" + rightH + " vspace=" + rightV + "></td>" : "";
			flStr+="<span ID=nd" + ndCnt + "_" + i + " style='position:absolute'><table border=0 cellspacing=0 cellpadding=0 width=" + (fWidth-lv*tab) + "><tr valign=top align=left>" + leftLeefStr + "<td width=" + txtWidth + " style='" + classIE[isSub] + "'>" + inTxt + "</td>" + rightLeefStr + "</tr></table></span>";
			}

		if(array[i*4+3]) flIE(ndCnt + "_" + i);
		}
	}
	
function flMake(prNd,ndCount){
	var i, array = eval("flAr" + ndCount);
	var lg=array.length/4;
	for(i=0; i<lg; i++){
		pNd = i>0 ? nd : null;
		nd = document.getElementById("nd" + ndCount + "_" + i);
		nd.lv=lv;
		if(pNd){nd.lead=pNd.lead; pNd.next=nd; pThr=pNd.last; while(pThr){pThr.thr=nd; pThr=pThr.last;}} else nd.lead=nd;
		if(prNd){if(i<=0)prNd.first=nd;	nd.parent=prNd;	if(i==lg-1)prNd.last=nd;}

		arPtr = i*4;
		nd.folder=folder
		nd.linkText	= array[arPtr + 1];
		nd.hasHilite = array[arPtr + 2];
		nd.isSub			= array[arPtr + 3];
		nd.show=showNode;
		nd.onmouseover = fIeOver;
		nd.onmouseout = fIeOut;
		
		if(nd.isSub){
			if(leftO!=""){nd.fptr = document.getElementById("nlp" + ndCount + "_" + i); nd.imgO=leftO; nd.imgC=leftC;}
			else if(rightO!=""){nd.fptr = document.getElementById("nrp" + ndCount + "_" + i); nd.imgO=rightO; nd.imgC=rightC;}
			}

		nd.onselectstart = function(){return false;};

		if(nd.linkText){nd.onclick = fLink; nd.style.cursor = "hand";}
		else if(nd.isSub) nd.onclick = fExpand;
		if(nd.isSub)nd.expand = fExpand;
		
		with(nd.style){
			width = fWidth;
			padding = pad;
			paddingLeft = lv*tab + pad;
			if(brdW){
				borderBottomWidth=brdW;
				borderBottomColor=brdC;
				borderBottomStyle=brdS;
				}
			}
		if(nd.parent) nd.style.visibility="hidden";
		else{
			nd.top = nd.style.top = folder.fheight-fpad;
			folder.fheight+=nd.offsetHeight;
			folder.style.height=folder.fheight;
			}
		nd.fheight=nd.offsetHeight;

		if(nd.isSub){lv++; flMake(nd,ndCount + "_" + i); lv--; nd=nd.parent;}
		}
	}

function fExpand(){
	if(this.open){this.fptr.src= this.imgC; 	this.open=false; hideNode(this.first, this.top+this.fheight);}
	else{
		hnode=this.lead;
		while(hnode){if(hnode.open)break; hnode=hnode.next;}
		if(hnode){fl_open_node=this;	hnode.expand();}
		else{fl_open_node=null; this.fptr.src=this.imgO; this.open=true; showNode(this.first, this.top+this.fheight);}
		}
	}
	
function hideNode(nd, pos){
	nd.folder.fheight-=nd.fheight;
	nd.folder.style.height=nd.folder.fheight;
	var node = nd.open ? nd.first : (nd.next ? nd.next : nd.thr);
	while(node){
		node.top-=nd.fheight; node.style.top=node.top;
		node = node.open ? node.first : (node.next ? node.next : node.thr);
		}
	nd.style.visibility="hidden";
	cr_node=seekNext(nd,nd.parent.lv);
	if(cr_node){cr_pos=pos+nd.fheight; setTimeout("hideNode(cr_node, cr_pos);",20);}
	else if(fl_open_node)setTimeout("fl_open_node.expand();",20);
	}

function showNode(nd, pos){
	nd.folder.fheight += nd.fheight; nd.folder.style.height=nd.folder.fheight;
	var topPos=pos+nd.fheight;
	var node = nd.open ? nd.first : (nd.parent.next ? nd.parent.next : nd.parent.thr);
	while(node){
		node.top=topPos;
		node.style.top=node.top;
		topPos+=node.fheight;
		node = node.open ? node.first : (node.next ? node.next : node.thr);
		}
	nd.top=pos; nd.style.top=pos;	nd.style.visibility="visible";
	cr_node=seekNext(nd,nd.parent.lv);
	if(cr_node){
		cr_pos=pos+nd.fheight;
		setTimeout("showNode(cr_node, cr_pos);",20);
		}
	else if(openvis){
		var i=0, fv=fvisited.indexOf("_",fvisited.indexOf("_")+1);
		while(i<nd.lv){fv=fvisited.indexOf("_",fv+1); i++;}
		str=fvisited.substr(0,fv);
		if(fv>-1){
			cr_node=eval(str);
			cr_node.expand();
			}
		else{
			openvis=false;
			if(fvis.isSub)fvis.expand();
			}
		}
	}

function seekNext(nd, level){if(nd.open)return nd.first;	else if(nd.next)return nd.next;	else if(nd.thr && nd.thr.lv>level)return nd.thr; return null;}

function fIeOut(){this.style.backgroundColor = this.folder.style.backgroundColor;}
	
function fIeOver(){this.style.backgroundColor = this.folder.ovBkg[this.isSub];}

function fLink(){window.top.location.href = this.linkText;}
