// You can find instructions for this file at http://www.treeview.net

//Environment variables are usually set at the top of this file.
USETEXTLINKS = 1
STARTALLOPEN = 0
USEFRAMES = 0
USEICONS = 1
WRAPTEXT = 1
PERSERVESTATE = 0
HIGHLIGHT = 1
HIGHLIGHT_BG = '#800000'
ICONPATH = '../../../images/img_treemenus/'


foldersTree = gFld("<span class=\"paraboldcolourtext\">Competition Policy</span>", "comp_e.htm")

	c1 = insFld(foldersTree, gFld("Trade & Competition Policy - Interaction", "comp_e.htm"))                                                          // node=1
		insDoc(c1, gLnk("S", "Introduction",	"comp_e.htm#introduction"))			// node=2
		insDoc(c1, gLnk("S", "WGTCP",	"comp_e.htm#wgtcp"))					    // node=3
		insDoc(c1, gLnk("S", "Documents",	"comp_e.htm#documents"))				// node=4
		insDoc(c1, gLnk("S", "Additonal Information",	"comp_e.htm#mandate"))		// node=5
	c2 = insDoc(foldersTree, gLnk("S", "WGTCP Documents", "wgtcp_docs_e.htm"))		// node=6
	c3 = insFld(foldersTree, gFld("Mandate and History", "history_e.htm"))			// node=7
		insDoc(c3, gLnk("S", "Singapore (1996)",	"history_e.htm#singapore"))	 	// node=8
		insDoc(c3, gLnk("S", "Doha (2001)",	"history_e.htm#doha"))				 	// node=9
		insDoc(c3, gLnk("S", "Cancún (2003)",	"history_e.htm#cancun"))		 	// node=10
		insDoc(c3, gLnk("S", "&#147;July&nbsp;Decision&#148; (2004)",	"history_e.htm#julydec"))	// node=11
	c4 = insFld(foldersTree, gFld("Technical Assistance", "ta_e.htm"))				// node=12
		insDoc(c4, gLnk("S", "Since 2005",	"ta_e.htm#2005"))				// node=13
		insDoc(c4, gLnk("S", "Until 2004",	"ta_e.htm#2004"))				// node=14
	c5 = insDoc(foldersTree, gFld("Links", "links_e.htm"))          		// node=15
		insDoc(c5, gLnk("S", "International Orgs.",	"links_e.htm#ios"))		// node=16
		insDoc(c5, gLnk("S", "NGOs",	"links_e.htm#ngos"))				// node=17


//Set this string if Treeview and other configuration files may also be loaded in the same session
foldersTree.treeID = "t2" 
 
// add the page names and their appropriate numbers to this array - node numbers will need changing when new
// pages are inserted into the hierarchy
var nodes_array = [ // pagename, nodeid
					["comp_e.htm#introduction",  2],
					["comp_e.htm#wgtcp",  3],
					["comp_e.htm#documents",  4],
					["comp_e.htm#mandate",  5],
					["wgtcp_docs_e.htm",  6],
					["history_e.htm",  7],
					["history_e.htm#singapore",  8],
					["history_e.htm#doha",  9],
					["history_e.htm#cancun",  10],
					["history_e.htm#julydec",  11],
					["ta_e.htm",  12],
					["ta_e.htm#2005",  13],
					["ta_e.htm#2004",  14],
					["links_e.htm",  15],
					["links_e.htm#ios",  16],
					["links_e.htm#ngos",  17]
					]


// functions required to highlight link for current page
function clickOnLink2(clickedId, target, windowName) 
{  
    highlightObjLink(findObj(clickedId));
    
}

function loadSynchPage2(linkID) 
{
	var folderObj;
	docObj = findObj(linkID);
	docObj.forceOpeningOfAncestorFolders();
	clickOnLink2(linkID,docObj.link,'_self'); 
} 


function HighlightTreeNode(pagename) 
{

	for (var q=0; q<(nodes_array.length); q++)
	{
		if (nodes_array[q][0] == pagename)
		{
			loadSynchPage(nodes_array[q][1]);
			break;
		}
	}
	return false;
}

function HighlightTreeNode2(pagename) 
{

	for (var q=0; q<(nodes_array.length); q++)
	{
		if (nodes_array[q][0] == pagename)
		{
			loadSynchPage2(nodes_array[q][1]);
			break;
		}
	}
	return false;
}

