// 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\">Entender la OMC</span>", "tif_s.htm")

	c1 = insFld(foldersTree, gFld("Información básica", ""))                                                          // node=1
		insDoc(c1, gLnk("S", "¿Qué es la OMC?",	"fact1_s.htm"))					// node=2
		insDoc(c1, gLnk("S", "Los principios del sistema de comercio",	"fact2_s.htm"))		// node=3
		insDoc(c1, gLnk("S", "Argumentos a favor de un comercio abierto",	"fact3_s.htm"))				// node=4
		insDoc(c1, gLnk("S", "Los años del GATT",	"fact4_s.htm"))						// node=5
		insDoc(c1, gLnk("S", "La Ronda Uruguay",	"fact5_s.htm"))					// node=6
	c2 = insFld(foldersTree, gFld("Los Acuerdos", ""))									// node=7
		insDoc(c2, gLnk("S", "Panorama general",	"agrm1_s.htm"))							// node=8
		insDoc(c2, gLnk("S", "Aranceles",	"agrm2_s.htm"))							// node=9
		insDoc(c2, gLnk("S", "Agricultura",	"agrm3_s.htm"))						// node=10
		insDoc(c2, gLnk("S", "Normas y seguridad",	"agrm4_s.htm"))			// node=11
		insDoc(c2, gLnk("S", "Textiles",	"agrm5_s.htm"))							// node=12
		insDoc(c2, gLnk("S", "Servicios",	"agrm6_s.htm"))							// node=13
		insDoc(c2, gLnk("S", "Propiedad intelectual",	"agrm7_s.htm"))				// node=14
		insDoc(c2, gLnk("S", "Antidumping, subvenciones, salvaguardias",	"agrm8_s.htm"))		// node=15
		insDoc(c2, gLnk("S", "Obstáculos no arancelarios",	"agrm9_s.htm"))				// node=16
		insDoc(c2, gLnk("S", "Acuerdos plurilaterales",	"agrm10_s.htm"))						// node=17
		insDoc(c2, gLnk("S", "Exámenes de las políticas comerciales",	"agrm11_s.htm"))				// node=18
	c3 = insFld(foldersTree, gFld("Solución de diferencias", ""))							// node=19
		insDoc(c3, gLnk("S", "Una contribución excepcional",	"disp1_s.htm"))			// node=20
		insDoc(c3, gLnk("S", "Procedimiento de los grupos especiales",	"disp2_s.htm"))				// node=21
		insDoc(c3, gLnk("S", "El calendario en un caso práctico",	"disp3_s.htm"))						// node=22
	c4 = insFld(foldersTree, gFld("Cuestiones transversales y cuestiones nuevas", ""))				// node=23
		insDoc(c4, gLnk("S", "Regionalismo",	"bey1_s.htm"))						// node=24
		insDoc(c4, gLnk("S", "Medio ambiente",	"bey2_s.htm"))					// node=25
		insDoc(c4, gLnk("S", "Inversiones etc",	"bey3_s.htm"))                              // node=26
		insDoc(c4, gLnk("S", "Comercio Electrónico",	"bey4_s.htm"))                        // node=27
		insDoc(c4, gLnk("S", "Normas del trabajo",	"bey5_s.htm"))                        // node=28
	c5 = insDoc(foldersTree, gLnk("S", "Programa de Doha", "doha1_s.htm"))          // node=29
	c6 = insFld(foldersTree, gFld("Países en desarrollo", ""))                                  // node=30
		insDoc(c6, gLnk("S", "Panorama general",	"dev1_s.htm"))							// node=31
		insDoc(c6, gLnk("S", "Comités",	"dev2_s.htm"))						// node=32
		insDoc(c6, gLnk("S", "La cooperación técnica en la OMC",	"dev3_s.htm"))		// node=33
		insDoc(c6, gLnk("S", "Algunas cuestiones planteadas",	"dev4_s.htm"))				// node=34
	c7 = insFld(foldersTree, gFld("La Organización", ""))							// node=35
		insDoc(c7, gLnk("S", "¿De quién es la OMC?",	"org1_s.htm"))						// node=36
		insDoc(c7, gLnk("S", "Organigrama de la Organización",	"org2_s.htm"))					// node=37
		insDoc(c7, gLnk("S", "Miembros, asociaciones y administración",	"org3_s.htm"))		// node=38
		insDoc(c7, gLnk("S", "Organigrama de la Secretaría",	"org4_s.htm"))						// node=39
		insDoc(c7, gLnk("S", "Políticas especiales",	"org5_s.htm"))						// node=40
		insDoc(c7, gLnk("S", "Lista de los Miembros",	"org6_s.htm"))							// node=41
		insDoc(c7, gLnk("S", "Lista de los países menos adelantados",	"org7_s.htm"))		// node=42
	c8 = insDoc(foldersTree, gLnk("S", "Abreviaturas", "abbr_s.htm"))          // node=29


//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_s.htm",  2],
					["fact2_s.htm",  3],
					["fact3_s.htm",  4],
					["fact4_s.htm",  5],
					["fact5_s.htm",  6],
					["agrm1_s.htm",  8],
					["agrm2_s.htm",  9],
					["agrm3_s.htm",  10],
					["agrm4_s.htm",  11],
					["agrm5_s.htm",  12],
					["agrm6_s.htm",  13],
					["agrm7_s.htm",  14],
					["agrm8_s.htm",  15],
					["agrm9_s.htm",  16],
					["agrm10_s.htm",  17],
					["agrm11_s.htm",  18],
					["disp1_s.htm",  20],
					["disp2_s.htm",  21],
					["disp3_s.htm",  22],
					["bey1_s.htm",  24],
					["bey2_s.htm",  25],
					["bey3_s.htm",  26],
					["bey4_s.htm",  27],
					["bey5_s.htm",  28],
					["doha1_s.htm",  29],
					["dev1_s.htm",  31],
					["dev2_s.htm",  32],
					["dev3_s.htm",  33],
					["dev4_s.htm",  34],
					["org1_s.htm",  36],
					["org2_s.htm",  37],
					["org3_s.htm",  38],
					["org4_s.htm",  39],
					["org5_s.htm",  40],
					["org6_s.htm",  41],
					["org7_s.htm", 42],
					["abbr_s.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;
}

