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 , "PAGE PRINCIPALE" , "../index-fr.htm" , 0 , "_self", 0)

 dbAdd( true , "A notre sujet" , "" , 1 , "" , 0)
	dbAdd( false , "Présentation","presentation-fr.htm" , 2 , "_self" , 0)	 
	dbAdd( false , "Membres","members-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Conseil d’administration","board-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Nos experts","experts-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Notre équipe","team-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Emploi","vacancies-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Contact","contact-fr.htm" ,2 , "_self" , 0)
	
  dbAdd( true , "Au sujet des normes" , "" , 1 , "" , 0)
	dbAdd( false , "Définition", "definition-fr.htm" , 2 , "_self" , 0)
	dbAdd( false , "Trouver/obtenir une norme", "find-fr.htm" , 2 , "_self" , 0)
	dbAdd( false , "Nouveau développement", "newdev-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Glossaire & acronymes", "glossary-fr.htm" , 2 , "_self" , 0)

  dbAdd( true , "Normalisation" , "" , 1 , "" , 0)
	dbAdd( false , "Principe de base", "principles-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Base légale / directives", "legal-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Normalisation européenne", "europstand-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Autres prestations", "otherdeliv-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Organismes de normalisation", "standbodies-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Marquage CE & certificat ", "cemarking-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "E-learning", "http://www.elearning.normapme.com" ,2 , "_self" , 0)

  dbAdd( true , "Activités", "",  1 , "" , 0)
	dbAdd( false , "Travail dans les comités techniques", "tc-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Consultations des PME", "consultation-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Interventions politiques", "politics-fr.htm" ,2 , "" , 0)
	dbAdd( false , " Défendre les intérêts des PME", "defending-fr.htm" ,2 , "" , 0)
	dbAdd( false , "Projets", "projects-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Séminaires", "seminars-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Evènements ", "events-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Collaboration avec la Commission", "collaboration-fr.htm" ,2 , "_self" , 0)

  dbAdd( true , "Secteurs", "" , 1 , "" , 0)
	dbAdd( false , "Construction", "sec_constr-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Installations électriques", "sec_electric-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Énergie", "sec_energy-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Environnement", "sec_enviro-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Alimentation", "sec_food-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Santé", "sec_health-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "TIC", "sec_ict-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Management de la qualité", "sec_quality-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Services", "sec_services-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Textiles", "sec_textil-fr.htm" ,2 , "_self" , 0)	 
	dbAdd( false , "Tourisme", "sec_tourism-fr.htm" ,2 , "_self" , 0)	 

  dbAdd( true , "Publications", "",  1 , "" , 0)
	dbAdd( false , "Newsletter", "newsletter-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Prise de position", "positions-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Papiers techniques", "technicalpap-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Revue de presse", "pressreview-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Rapports annuels", "annualrep-fr.htm" ,2 , "_self" , 0)

  dbAdd( true , "Liens utiles", "" ,1 , "" , 0)
	dbAdd( false , "Centre d’information européen", "eic-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Base de données de normes", "standatabase-fr.htm" ,2 , "_self" , 0)
	dbAdd( false , "Base de données de brevet", "patent-fr.htm" ,2 , "_self" , 0)
	
  dbAdd( false , "Plan du site" ,"" , 1 , "" , 0)

  dbAdd( false , "Contactez nous", "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();
  }
