// 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\">Navigate within this module</span>", "")
      	insDoc(foldersTree, gLnk("S", "Preface", "preface_e.htm")) // node3
      	insDoc(foldersTree, gLnk("S", "Introduction and summary", "intro_e.htm")) // node3
	insDoc(foldersTree, gLnk("S", "Accession in perspective", "c1s1p1_e.htm"))		// node2
	c2 = insFld(foldersTree, gFld("The basic rules", "")) // node13
      	insDoc(c2, gLnk("S", "Basic WTO provision", "c2s1p1_e.htm")) // node3
      	insDoc(c2, gLnk("S", "Other relevant WTO provisions", "c2s2p1_e.htm")) // node3
      	insDoc(c2, gLnk("S", "Ministerial Declarations", "c2s3p1_e.htm")) // node3
      	insDoc(c2, gLnk("S", "Guidelines on the accession of Least-Developed countries", "c2s4p1_e.htm")) // node3
		insDoc(c2, gLnk("S", "Test Questions",	"c2quiz_e.htm"))		// node12
	c3 = insFld(foldersTree, gFld("Technical assistance and training for acceding countries", "")) // node13
      	insDoc(c3, gLnk("S", "Introduction", "c3s1p1_e.htm")) // node3
      	insDoc(c3, gLnk("S", "WTO Secretariat ", "c3s2p1_e.htm")) // node3
      	insDoc(c3, gLnk("S", "WTO Members and other organizations", "c3s3p1_e.htm")) // node3
		insDoc(c3, gLnk("S", "Test Questions",	"c3quiz_e.htm"))		// node12
	c4 = insFld(foldersTree, gFld("The accession process &mdash; the procedures and how they have been applied", "")) // node13
      	insDoc(c4, gLnk("S", "Introduction", "c4s1p1_e.htm")) // node3
      c4s2 = insFld(c4, gFld("Application for membership and establishment of Working Party", "")) // node3
      	insDoc(c4s2, gLnk("S", "Page 1", "c4s2p1_e.htm")) // node3
      	insDoc(c4s2, gLnk("S", "Page 2", "c4s2p2_e.htm")) // node3
      	insDoc(c4, gLnk("S", "The Working Party process", "c4s3p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Provision of factual Information on the applicant’s trade regime", "c4s4p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Working Party examination of applicant’s trade regime", "c4s5p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Negotiation of terms on which the applicant will accede", "c4s6p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Completion of Working Party Mandate", "c4s7p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Invocation of Article XIII of the WTO", "c4s8p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Adoption of Report by General Council / Ministerial Conference", "c4s9p1_e.htm")) // node3
      	insDoc(c4, gLnk("S", "Accession of applicant", "c4s10p1_e.htm")) // node3
		insDoc(c4, gLnk("S", "Test Questions",	"c4quiz_e.htm"))		// node12
	c5 = insFld(foldersTree, gFld("Substance of accession negotiations", "")) // node13
      	insDoc(c5, gLnk("S", "Introduction", "c5s0p1_e.htm")) // node3
      	insDoc(c5, gLnk("S", "General points", "c5s1p1_e.htm")) // node3
      c5s2 = insFld(c5, gFld("Rules", "")) // node3
      	insDoc(c5s2, gLnk("S", "Introductory statements", "c5s2p1_e.htm")) // node3
      c5s2s2 = insFld(c5s2, gFld("Economic policies", "")) // node3
      	insDoc(c5s2s2, gLnk("S", "Page 1", "c5s2p2_e.htm")) // node3
      	insDoc(c5s2s2, gLnk("S", "Page 2", "c5s2p3_e.htm")) // node3
      	insDoc(c5s2, gLnk("S", "Policy framework", "c5s2p4_e.htm")) // node3
      c5s2s4 = insFld(c5s2, gFld("Rules on trade in goods", "")) // node3
      	insDoc(c5s2s4, gLnk("S", "Page 1", "c5s2p5_e.htm")) // node3
      	insDoc(c5s2s4, gLnk("S", "Page 2", "c5s2p6_e.htm")) // node3
      	insDoc(c5s2s4, gLnk("S", "Page 3", "c5s2p7_e.htm")) // node3
      	insDoc(c5s2s4, gLnk("S", "Page 4", "c5s2p8_e.htm")) // node3
      	insDoc(c5s2s4, gLnk("S", "Page 5", "c5s2p9_e.htm")) // node3
      	insDoc(c5s2, gLnk("S", "Trade-Related Intellectual Property Rights", "c5s2p10_e.htm")) // node3
      	insDoc(c5s2, gLnk("S", "Trade in services", "c5s2p11_e.htm")) // node3
      	insDoc(c5s2, gLnk("S", "Transparency", "c5s2p12_e.htm")) // node3
      	insDoc(c5s2, gLnk("S", "Trade agreements", "c5s2p13_e.htm")) // node3
      c5s3 = insFld(c5, gFld("Negotiation of market access concessions and commitments", "")) // node3
      	insDoc(c5s3, gLnk("S", "Goods Schedule &mdash; tariff concessions", "c5s3p1_e.htm")) // node3
      	insDoc(c5s3, gLnk("S", "Goods Schedule &mdash; agricultural commitments", "c5s3p2_e.htm")) // node3
	    insDoc(c5s3, gLnk("S", "Services Schedule", "c5s3p3_e.htm")) // node3
insDoc(foldersTree, gLnk("S", "Test Summary", "quiz_summary_e.htm"))	// node15
      annex = insFld(foldersTree, gFld("Annexes", "")) // node3
      	insDoc(annex, gLnk("B", "Annex 1 &mdash; Statistical survey", "annex1_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 2 &mdash; WTO provisions on accession", "annex2_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 3 &mdash; Ministerial declarations", "annex3_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 4 &mdash; Guidelines for accession of LDCs", "annex4_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 5 &mdash; Documentation and timeline for completed accessions", "annex5_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 6 &mdash; Basic factual information to be supplied", "annex6_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 7 &mdash; Supplementary factual information", "annex7_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 8 &mdash; Formats for initial tariff offer and for tariff schedule", "annex8_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 9 &mdash; Format for schedule of specific commitments on services", "annex9_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 10 &mdash; Text of decisions on accessions and accession protocols", "annex10_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 11 &mdash; List of WTO agreements", "annex11_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 12 &mdash; Overview of protocol commitments", "annex12_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 13 &mdash; Formats for legislative action plans", "annex13_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 14 &mdash; Agricultural tariff rate quotas and special safeguards", "annex14_e.doc")) // node3
      	insDoc(annex, gLnk("B", "Annex 15 &mdash; Sectoral initiatives", "annex15_e.doc")) // node3

//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
					["preface_e.htm",  1],
					["intro_e.htm",  2],
					["c1s1p1_e.htm",  3],
					["c2s1p1_e.htm",  5],
					["c2s2p1_e.htm",  6],
					["c2s3p1_e.htm",  7],
					["c2s4p1_e.htm",  8],
					["c2quiz_e.htm",  9],
					["c3s1p1_e.htm",  11],
					["c3s2p1_e.htm",  12],
					["c3s3p1_e.htm",  13],
					["c3quiz_e.htm",  14],
					["c4s1p1_e.htm",  16],
					["c4s2p1_e.htm",  18],
					["c4s2p2_e.htm",  19],
					["c4s3p1_e.htm",  20],
					["c4s4p1_e.htm",  21],
					["c4s5p1_e.htm",  22],
					["c4s6p1_e.htm",  23],
					["c4s7p1_e.htm",  24],
					["c4s8p1_e.htm",  25],
					["c4s9p1_e.htm",  26],
					["c4s10p1_e.htm",  27],
					["c4quiz_e.htm",  28],
					["c5s0p1_e.htm",  30],
					["c5s1p1_e.htm",  31],
					["c5s2p1_e.htm",  33],
					["c5s2p2_e.htm",  35],
					["c5s2p3_e.htm",  36],
					["c5s2p4_e.htm",  37],
					["c5s2p5_e.htm",  39],
					["c5s2p6_e.htm",  40],
					["c5s2p7_e.htm",  41],
					["c5s2p8_e.htm",  42],
					["c5s2p9_e.htm",  43],
					["c5s2p10_e.htm",  44],
					["c5s2p11_e.htm",  45],
					["c5s2p12_e.htm",  46],
					["c5s2p13_e.htm",  47],
					["c5s3p1_e.htm",  49],
					["c5s3p2_e.htm",  50],
					["c5s3p3_e.htm",  51],
					["quiz_summary_e.htm",  52],
					["annex1_e.doc",  54],
					["annex2_e.doc",  55],
					["annex3_e.doc",  56],
					["annex4_e.doc",  57],
					["annex5_e.doc",  58],
					["annex6_e.doc",  59],
					["annex7_e.doc",  60],
					["annex8_e.doc",  61],
					["annex9_e.doc",  62],
					["annex10_e.doc",  63],
					["annex11_e.doc",  64],
					["annex12_e.doc",  65],
					["annex13_e.doc",  66],
					["annex14_e.doc",  67],
					["annex15_e.doc",  68]
					]


// functions required to highlight link on 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;
}
