// JavaScript Document
//DEFINIZIONE VARIABILI INTERFACCIA
//*********************************************************
//Estensione dei files
var estensioneFile = ".htm";
//Home
var strHome = "Manual Home";
//Mappa
var strMappa = "Site map";
//Contatti
var strContatti = "Contact us";
//Inglese
var strInglese = "English";
//Francese
var strFrancese = "Français";
//Spagnolo
var strSpagnolo = "Español";
//Traduzione Livello
var strLivello = "Level";
//Etichetta Torna Su
var strTop = "top ^";
//Traduzione Etichetta Pagina
var strPage = "Page";
//Traduzione Etichetta Ricerca
var strRicerca = "INDEX";
//Traduzione Etichetta Sottotitolo Ricerca
var txtTitoloRicerca = "Explanatory note";
//Traduzione Etichetta Biblioteca
var strBiblio = "LIBRARY";
//Traduzione Precedente
var strPrecedente = "previous";
//Traduzione Successivo
var strSuccessivo = "next";
//Stampa
var strStampa = "print";
//Testo Acronymes
var strAcronymes="List of acronyms";
//Testo Annesso
var strAnnexes="APPENDICES";
//Variabili Biblioteca Inserimento Numero
var strBiblInsertNum = "E' necessario inserire il numero di una ";
//Variabili Biblioteca Inserimento Numero
var strBiblNoRicerca = " non è un parametro di ricerca corretto. \nLeggere le istruzioni per utilizzo della biblioteca";
//Variabili Biblioteca File non presente
var strBiblNoFile = " non è presente.";
//Variabili Biblioteca Tipo di ricerca
var tipoRicerca = "";
//Variabile testo introduttivo ricerca
var strIntroRicerca = '<img src="../img/separatore_orizzontale550.gif" width="550" height="7"><br><span class="testo12">The Manual’s INDEX is designed to give you swift access to the information you need, starting from the most frequently used words.<br><br>We have made it as simple as possible to use. This is what you do to find a term you want:<br><br>Take, for example, the term "Annexes"<ul><li>- click on the letter "A" on the alphabet on the horizontal bar;</li><li>- click on the term this calls up on the scroll bar on the right.</li></ul>A pop-up window appears on the screen. You can read what it says about the term you have chosen without leaving the page in the Manual which you are looking at. The pop-up window includes a "print" option.';
//Variabile Titolo Pagina
var strTitlePage = "<title>Manual for drafting ILO instruments</title>";
//Variabili Indice
var strIndiceLink = "See";
var strIndiceAltroLink = "See also";

//Variabili Footer
//Jur
var strJurHome = "JUR Home";
var linkJurHome = "<a href=\"http://www.ilo.org/public/english/bureau/leg/index.htm\" target=\"_blank\" class=\"mappa\">";
var strJurMappa = "JUR Sitemap";
var linkJurMappa = "<a href=\"http://www.ilo.org/public/english/bureau/leg/sitemap.htm\" target=\"_blank\" class=\"mappa\">";
var strJurContatti = "JUR Contact";
var linkJurContatti = "<a href=\"http://www.ilo.org/public/english/bureau/leg/contact.htm\" target=\"_blank\" class=\"mappa\">";
//Oit
var strOitHome = "ILO Home";
var linkOitHome = "<a href=\"http://www.ilo.org/public/english/index.htm\" target=\"_blank\" class=\"mappa\">";
var strOitMappa = "ILO Sitemap";
var linkOitMappa = "<a href=\"http://www.ilo.org/public/english/sitemap.htm\" target=\"_blank\" class=\"mappa\">";
var strOitAbout = "About the ILO";
var linkOitAbout = "<a href=\"http://www.ilo.org/public/english/about/index.htm\" target=\"_blank\" class=\"mappa\">";
var strOitContatti = "Contact";
var linkOitContatti = "<a href=\"http://www.ilo.org/public/english/depts/dir.htm\" target=\"_blank\" class=\"mappa\">";
//Copyright
var strCopyright = "Copyright @ 2006 International Labour Organization (ILO) - Disclaimer";

//DEFINIZIONE VARIABILI FUNZIONAMENTO
//*********************************************************
//Definizione Lingua
var lang = "en";
//Link Home Page
var strLinkHome = '<a href=\"../'+lang+'/index.htm\" class=\"mappa\">'+strHome+'</a>';
//Codice Corrente Pagina
strPage = ReplaceString(estensioneFile,"",document.location.href); 
tmpCurrentPage = ricavaString(strPage,"/");
tmpCurrentPage = tmpCurrentPage.split('?');
if (tmpCurrentPage.length == 2){var currentPage = tmpCurrentPage[0];}
else{var currentPage = ricavaString(strPage,"/");}
//Array Pagina Corrente
var arCurrentPage = currentPage.split("_");
//Menu
var menu='';
//Percorso
var strPercorso='';
//Link sul Livello
var linkLivello='';
//Stringa Lingue disponibili
var strLanguage='';
//Indice Pagina Corrente
var indexPage='';
//Indice SottoSoggetto
var indexPage2='';
//Indice Pagine all'interno del sottosoggetto
var indexPage3='';
//Variabile Immagine Ilo
var imgHeader="";

//DEFINIZIONE ARRAY
//*********************************************************
//Array Traduzioni MENU
var arLanguage = new Array ("INTRODUCTORY NOTE","Methodology followed","The procedure for the adoption of  international labour standards","Parallel drafting/monolingual drafting","PART I: FORMAL STRUCTURE of the INSTRUMENT","Title of the Conventions and Recommendations of the ILO","Preamble","Operative provisions","Final provisions","Annexes to Conventions and Recommendations","PART II: SUBSTANTIVE CONTENT of the INSTRUMENT","Terminology and definitions","Clauses frequently used with a commonly understood meaning","Changes to scope and application of obligations","Drafting rules and methods");

//Array Traduzioni ANNESSI
var arAnnexLingua = new Array(new Array("INTRODUCTORY NOTE","Summary description of ILO instruments"),new Array("PART I: FORMAL STRUCTURE of the INSTRUMENT","Minute from C.W. Jenks to Jean Morellet","Letter from J. Morellet to J.H. Nisot"),new Array("PART II: SUBSTANTIVE CONTENT of the INSTRUMENT","List of defined terms in ILO instruments","Glossary of frequently defined terms in ILO instruments","Exclusion, exception, inclusion","References to terms such as &ldquo;adequate&rdquo;, &ldquo;appropriate&rdquo;, &ldquo;suitable&rdquo;, &ldquo;proper&rdquo;, &ldquo;relevant&rdquo;, &ldquo;consistent&rdquo;, &ldquo;convenient&rdquo;, &ldquo;(in)compatible&rdquo;, &ldquo;satisfactory&rdquo;","Reasonable, practicable, possible, reasonably practicable","Application by stages"));
var arAnnexLinguaSec = new Array(new Array("",""),new Array("","Preamble",""),new Array("","Terminology and definitions","","Changes to scope and application of obligations","","",""));

//SET E DEFINIZIONE LIVELLO
//*********************************************************
//Definizione del Livello
if ((typeof(arPageN1) != 'undefined') || (typeof(arPageN2) != 'undefined')) {
	if (arCurrentPage[0] == "1") {
		var livello = "1";
		var arPage = arPageN1;
		var bgcolor = "#F1F1D3";
		var bgcolormenu = "#F5ED47";
		var classmenu = "blu";
	}else{
		var livello = "2";
		var arPage = arPageN2;
		var bgcolor = "#EBF3FB";
		var bgcolormenu = "#7DA1C3";
		var classmenu = "bianco";
	}
	
	//Creazione Array Menu
	for (i=0; i<arPage.length; i++){
		pLink = arPage[i];
		if (typeof(pLink) == "object"){//Controllo se contiene un array al suo inteno
			if (typeof(pLink[0]) == "object"){
				pLink = pLink[0][0];
			}else{
				pLink = pLink[0];
			}
			pLink = pLink.substring(0,5);
		}
		arMenu.push(pLink);
	}
}