<!-- 
// Enter your menu items here in the following format 
// [nodeId] | parentId | pageName | fileName 
// nodeId goes up in 10's so you can add a parent page easily in between 
// nodeId is optional, only add if it is a parent 
// Only use spaces in the Page name, no where else. This is important!! 
// This script currently only works when all pages are located in the same directory 

var NODE_ID = 0; 
var PARENT_ID = 1; 
var PAGE_NAME = 2; 
var FILE_NAME = 3; 

var aTree = new Array; 

var nodes = new Array(); 
var nCurrentNodeId; 
var sCurrentFileName; 
var nodeValues; 
var childValues; 

var nTreeId = -1; 

// -- top and menu properties start -- 

aTree[++nTreeId] = "10|0|EDOC Home|http://www.edocconference.org/"; 

aTree[++nTreeId] = "20|0|Topics|#topics"; 

aTree[++nTreeId] = "30|0|Submission Guidelines|#submission"; 

aTree[++nTreeId] = "40|0|Important Dates|#dates"; 

aTree[++nTreeId] = "50|0|Organising Committee|#committee"; 

aTree[++nTreeId] = "60|0|Supporters|#supporters"; 

aTree[++nTreeId] = "70|0||"; 

aTree[++nTreeId] = "80|0|Past Edition: WODPEC 2004|http://www.lcc.uma.es/~av/wodpec2004/"; 

aTree[++nTreeId] = "90|0|Past Edition: WODPEC 2005|http://www.lcc.uma.es/~av/wodpec2005/"; 

aTree[++nTreeId] = "100|0|Past Edition: WODPEC 2006|http://wodpec2006.telin.nl/"; 

aTree[++nTreeId] = "110|0|Past Edition: WODPEC 2007|http://www.inf.ufes.br/~jpalmeida/wodpec2007/"; 

aTree[++nTreeId] = "120|0|RM-ODP Resource Site|http://www.rm-odp.net/"; 


// -- top and menu properties end -- 


function w(sString) { 
	document.write(sString); 
} 

function getFileName(sUrl) { 
var sPath, aPathElements, nLength; 
sPath = new String(sUrl); 
aPathElements = sPath.split("/"); 
nLength = aPathElements.length; 
return aPathElements[nLength-1].toLowerCase(); 
} 

function getTopNodeId() { 

var nNodeId; 
var nParentId; 
for (i=0; i<nodes.length; i++) { 
nodeValues = nodes[i].split("|"); 
if (nodeValues[FILE_NAME].toLowerCase()==sCurrentFileName) { 
nParentId = nodeValues[PARENT_ID]; 
nNodeId = nodeValues[NODE_ID]; 
} 
} 
if (nParentId==0) { 
// page is parent, return node id 
return nNodeId; 
} 
else { 
// page is child 
for (i=0; i<nodes.length; i++) { 
nodeValues = nodes[i].split("|"); 
if (nodeValues[NODE_ID]==nParentId) { 
return nodeValues[NODE_ID]; 
} 
} 
} 
} 

// Create the tree 
function createTree(arrName,sPage) { 
	nodes = arrName; 
	sCurrentFileName = new String(sPage); 
	nCurrentNodeId = getTopNodeId(); 

	if (nodes.length > 0) { 
		for (i=0; i<nodes.length; i++) { 
		nodeValues = nodes[i].split("|"); 
			if (nodeValues[PARENT_ID]==0) { 
				if (false && ((nodeValues[NODE_ID]==40) || (nodeValues[NODE_ID]==40))){
					//w("<tr><td align=\"right\" height=\"17\" valign=\"middle\"><a class=\"menulinknew\" href=\"" + nodeValues[FILE_NAME] + "\" onmouseover=\"window.status='" + nodeValues[PAGE_NAME] + "';return true;\" onmouseout=\"window.status=' ';return true;\">new: </a><a class=\"menulink\" href=\"" + nodeValues[FILE_NAME] + "\" onmouseover=\"window.status='" + nodeValues[PAGE_NAME] + "';return true;\" onmouseout=\"window.status=' ';return true;\">" + nodeValues[PAGE_NAME] + "</a></td></tr>");
					w("<tr><td align=\"right\" height=\"17\" valign=\"middle\"><a class=\"menulinknew\" href=\"" + nodeValues[FILE_NAME] + "\" onmouseover=\"window.status='" + nodeValues[PAGE_NAME] + "';return true;\" onmouseout=\"window.status=' ';return true;\">" + nodeValues[PAGE_NAME] + "</a></td></tr>");
				}else{
					w("<tr><td align=\"right\" height=\"17\" valign=\"middle\"><a class=\"menulink\" href=\"" + nodeValues[FILE_NAME] + "\" onmouseover=\"window.status='" + nodeValues[PAGE_NAME] + "';return true;\" onmouseout=\"window.status=' ';return true;\">" + nodeValues[PAGE_NAME] + "</a></td></tr>");
				}
				w("<tr><td height=\"1\" bgcolor=\"#cccccc\"><img alt=\"\" src=\"spacer.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>");
				if (nCurrentNodeId == nodeValues[NODE_ID]) { 
					for (j=0; j<nodes.length; j++) { 
						childValues = nodes[j].split("|"); 
						if (childValues[PARENT_ID]==nCurrentNodeId) { 
							w("<tr><td align=\"right\" height=\"17\" valign=\"middle\"><a class=\"menulink\" href=\"" + childValues[FILE_NAME] + "\" onmouseover=\"window.status='" + childValues[PAGE_NAME] + "';return true;\" onmouseout=\"window.status=' ';return true;\"><font color=\"#B9B9B9\">" + childValues[PAGE_NAME] + "</font>&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr>"); 
							w("<tr><td height=\"1\" bgcolor=\"#cccccc\"><img alt=\"\" src=\"spacer.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>");
						} 
					} 
				} 
			} 
		} 
	} 
} 

//--> 