var total=1;
var db = new Array();

// Format: dbAdd(parent[true|false] , description, URL [blank for nohref], level , TARGET [blank for "content"], new? [1=yes])

dbAdd( true , "PAGINA PRINCIPALE" , "../index-it.htm" , 0 , "_self", 0)

 dbAdd( true , "Chi siamo" , "" , 1 , "" , 0)
	dbAdd( false , "Presentazione","presentation-it.htm" , 2 , "_self" , 0)	 
	dbAdd( false , "Membri","members-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Consiglio di Amministrazione","board-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Il nostro team","team-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "I nostri esperti","experts-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Opportunitą di lavoro","vacancies-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Contattaci","contact-it.htm" ,2 , "_self" , 0)
	
  dbAdd( true , "Norme" , "" , 1 , "" , 0)
	dbAdd( false , "Definizione", "definition-it.htm" , 2 , "_self" , 0)
	dbAdd( false , "Trovare/ottenere una norma", "find-it.htm" , 2 , "_self" , 0)
	dbAdd( false , "Nuovi sviluppi", "newdev-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Glossario & acronimi", "glossary-it.htm" , 2 , "_self" , 0)

  dbAdd( true , "Normazione" , "" , 1 , "" , 0)
	dbAdd( false , "Principi base", "principles-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Base giuridica/ direttive", "legal-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Normazione europea", "europstand-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Altro", "otherdeliv-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Organismi di normazione", "standbodies-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Marcatura CE e certificazione", "cemarking-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Elearning", "http://www.elearning.normapme.com" ,2 , "_self" , 0)

  dbAdd( true , "Attivitą ", "",  1 , "" , 0)
	dbAdd( false , "Lavorare in comitati tecnici", "tc-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Consultazione delle PMI", "consultation-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Interventi politici", "politics-it.htm" ,2 , "" , 0)
	dbAdd( false , "Difesa degli interessi delli PMI", "defending-it.htm" ,2 , "" , 0)
	dbAdd( false , "Progetti", "projects-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Seminari", "seminars-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Eventi ", "events-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Collaborazioni con la commissione", "collaboration-it.htm" ,2 , "_self" , 0)

  dbAdd( true , "Settori ", "" , 1 , "" , 0)
	dbAdd( false , "Edilizia", "sec_constr-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Installazioni Elettriche", "sec_electric-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Energia", "sec_energy-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Ambiente", "sec_enviro-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Alimentazione", "sec_food-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Salute", "sec_health-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Tecnologie dell'Informazione e delle Comunicazioni ", "sec_ict-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Gestione della qualitą", "sec_quality-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Servizi", "sec_services-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Tessile", "sec_textil-it.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Turismo", "sec_tourism-it.htm" ,2 , "_self" , 0)	 

  dbAdd( true , "Pubblicazioni ", "",  1 , "" , 0)
	dbAdd( false , "Newsletter", "newsletter-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Documenti di sintesi", "positions-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Documenti tecnici ", "technicalpap-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Comunicati stampa", "pressreview-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Report Annuali", "annualrep-it.htm" ,2 , "_self" , 0)

  dbAdd( true , "Link utili ", "" ,1 , "" , 0)
	dbAdd( false , "Centro Europeo di Iformazione", "eic-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Bancadati delle norme ", "standatabase-it.htm" ,2 , "_self" , 0)
	dbAdd( false , "Bancadati dei brevetti", "patent-it.htm" ,2 , "_self" , 0)
	
  dbAdd( false , "Mappa del sito" ,"" , 1 , "" , 0)

  dbAdd( false , "Contattaci ", "mailto:info@normapme.com" , 1 , "" , 0)

  
var current=getCurrState()
function getCurrState() {
  var label = "currState="
  var labelLen = label.length
  var cLen = document.cookie.length
  var i = 0
  while (i < cLen) {
    var j = i + labelLen
    if (document.cookie.substring(i,j) == label) {
      var cEnd = document.cookie.indexOf(";",j)
      if (cEnd == -1) { cEnd = document.cookie.length }
      return unescape(document.cookie.substring(j,cEnd))
    }
    i++
  }
  return ""
}


function dbAdd(mother,display,URL,indent,top,newitem) {
  db[total] = new Object;
  db[total].mother = mother
  db[total].display = display
  db[total].URL = URL
  db[total].indent = indent
  db[total].top = top
  db[total].newitem = newitem
  total++
  }


function setCurrState(setting) {
  var expire = new Date();
  expire.setTime(expire.getTime() + ( 7*24*60*60*1000 ) );
  document.cookie = "currState=" + escape(setting) + "; expires=" + expire.toGMTString();
  }


function toggle(n) {
  if (n != 0) {
    var newString = ""
    var expanded = current.substring(n-1,n)
    newString += current.substring(0,n-1)
    newString += expanded ^ 1
    newString += current.substring(n,current.length)
    setCurrState(newString)
  }
}


function pad(n) {
  var result = ""
  for (var i = 1; i <= n; i++) { result += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" }
  return result
}


function explode() { //++++++++++
  current = "";
  initState="";
  for (var i = 1; i < db.length; i++) {
    initState += "1"
    current += "1"
    }
  setCurrState(initState);
  history.go(0);
  }


function contract() { //------------
  current = "";
  initState="";
  for (var i = 1; i < db.length; i++) {
    initState += "0"
    current += "0"
    }
  setCurrState(initState);
  history.go(0);
  }

function tree_close() {
   window.close();
  }
