// 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 = '#0080C0'
ICONPATH = '../../../../images/img_treemenus/'


foldersTree = gFld("<span class=\"paraboldcolourtext\">Understanding the WTO</span>", "tif_e.htm")

	c1 = insFld(foldersTree, gFld("Basics", ""))                                                          // node=1
		insDoc(c1, gLnk("S", "What is the WTO?",	"fact1_e.htm"))					// node=2
		insDoc(c1, gLnk("S", "Principles of the trading system",	"fact2_e.htm"))		// node=3
		insDoc(c1, gLnk("S", "The case for open trade",	"fact3_e.htm"))				// node=4
		insDoc(c1, gLnk("S", "The GATT years",	"fact4_e.htm"))						// node=5
		insDoc(c1, gLnk("S", "The Uruguay Round",	"fact5_e.htm"))					// node=6
	c2 = insFld(foldersTree, gFld("Agreements", ""))									// node=7
		insDoc(c2, gLnk("S", "Overview",	"agrm1_e.htm"))							// node=8
		insDoc(c2, gLnk("S", "Tariffs",	"agrm2_e.htm"))							// node=9
		insDoc(c2, gLnk("S", "Agriculture",	"agrm3_e.htm"))						// node=10
		insDoc(c2, gLnk("S", "Standards and safety",	"agrm4_e.htm"))			// node=11
		insDoc(c2, gLnk("S", "Textiles",	"agrm5_e.htm"))							// node=12
		insDoc(c2, gLnk("S", "Services",	"agrm6_e.htm"))							// node=13
		insDoc(c2, gLnk("S", "Intellectual property",	"agrm7_e.htm"))				// node=14
		insDoc(c2, gLnk("S", "Anti-dumping, subsidies etc",	"agrm8_e.htm"))		// node=15
		insDoc(c2, gLnk("S", "Non-tariff barriers",	"agrm9_e.htm"))				// node=16
		insDoc(c2, gLnk("S", "Plurilaterals",	"agrm10_e.htm"))						// node=17
		insDoc(c2, gLnk("S", "Trade policy reviews",	"agrm11_e.htm"))				// node=18
	c3 = insFld(foldersTree, gFld("Settling disputes", ""))							// node=19
		insDoc(c3, gLnk("S", "A unique contribution",	"disp1_e.htm"))			// node=20
		insDoc(c3, gLnk("S", "The panel process",	"disp2_e.htm"))				// node=21
		insDoc(c3, gLnk("S", "Case study",	"disp3_e.htm"))						// node=22
	c4 = insFld(foldersTree, gFld("Cross-cutting and new issues", ""))				// node=23
		insDoc(c4, gLnk("S", "Regionalism",	"bey1_e.htm"))						// node=24
		insDoc(c4, gLnk("S", "The environment",	"bey2_e.htm"))					// node=25
		insDoc(c4, gLnk("S", "Investment etc",	"bey3_e.htm"))                              // node=26
		insDoc(c4, gLnk("S", "Electronic commerce",	"bey4_e.htm"))                        // node=27
		insDoc(c4, gLnk("S", "Labour standards",	"bey5_e.htm"))                        // node=28
	c5 = insDoc(foldersTree, gLnk("S", "The Doha agenda", "doha1_e.htm"))          // node=29
	c6 = insFld(foldersTree, gFld("Developing countries", ""))                                  // node=30
		insDoc(c6, gLnk("S", "Overview",	"dev1_e.htm"))							// node=31
		insDoc(c6, gLnk("S", "Committees",	"dev2_e.htm"))						// node=32
		insDoc(c6, gLnk("S", "WTO technical cooperation",	"dev3_e.htm"))		// node=33
		insDoc(c6, gLnk("S", "Some issues raised",	"dev4_e.htm"))				// node=34
	c7 = insFld(foldersTree, gFld("The organization", ""))							// node=35
		insDoc(c7, gLnk("S", "Whose WTO?",	"org1_e.htm"))						// node=36
		insDoc(c7, gLnk("S", "Organization chart",	"org2_e.htm"))					// node=37
		insDoc(c7, gLnk("S", "Membership, alliances and bureaucracy",	"org3_e.htm"))		// node=38
		insDoc(c7, gLnk("S", "Secretariat chart",	"org4_e.htm"))						// node=39
		insDoc(c7, gLnk("S", "Special policies",	"org5_e.htm"))						// node=40
		insDoc(c7, gLnk("S", "Members list",	"org6_e.htm"))							// node=41
		insDoc(c7, gLnk("S", "Least-developed countries list",	"org7_e.htm"))		// node=42
	c8 = insDoc(foldersTree, gLnk("S", "Abbreviations", "abbr_e.htm"))          // node=43


//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
					["fact1_e.htm",  2],
					["fact2_e.htm",  3],
					["fact3_e.htm",  4],
					["fact4_e.htm",  5],
					["fact5_e.htm",  6],
					["agrm1_e.htm",  8],
					["agrm2_e.htm",  9],
					["agrm3_e.htm",  10],
					["agrm4_e.htm",  11],
					["agrm5_e.htm",  12],
					["agrm6_e.htm",  13],
					["agrm7_e.htm",  14],
					["agrm8_e.htm",  15],
					["agrm9_e.htm",  16],
					["agrm10_e.htm",  17],
					["agrm11_e.htm",  18],
					["disp1_e.htm",  20],
					["disp2_e.htm",  21],
					["disp3_e.htm",  22],
					["bey1_e.htm",  24],
					["bey2_e.htm",  25],
					["bey3_e.htm",  26],
					["bey4_e.htm",  27],
					["bey5_e.htm",  28],
					["doha1_e.htm",  29],
					["dev1_e.htm",  31],
					["dev2_e.htm",  32],
					["dev3_e.htm",  33],
					["dev4_e.htm",  34],
					["org1_e.htm",  36],
					["org2_e.htm",  37],
					["org3_e.htm",  38],
					["org4_e.htm",  39],
					["org5_e.htm",  40],
					["org6_e.htm",  41],
					["org7_e.htm", 42],
					["abbr_e.htm", 43]
					]


// 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;
}

