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 , "HOME PAGE" , "index.htm" , 0 , "", 0)

 dbAdd( true , " About the Project" , "" , 1 , "" , 0)
	 dbAdd( false , "Background" , "background.htm" ,2 , "" , 0)
	 dbAdd( false , "Objectives" , "objectives.htm" ,2 , "" , 0)
	 dbAdd( false , "Scope" , "scope.htm" ,2 , "" , 0)
	 dbAdd( false , "Management" , "management.htm" ,2 , "" , 0)
			 dbAdd( false , "Project Board" , "project_board.htm" ,3 , "" , 0)
			 dbAdd( false , "Expertise Centre" , "exc.htm" ,3 , "" , 0)
			 dbAdd( false , "Conformity Assessment Association" , "conformity.htm" ,3 , "" , 0)
 
 dbAdd( true , "Technical Harmonisation" , "" , 1 , "" , 0)
	 dbAdd( false , "Acquis Communautaire" , "acquis.htm" ,2 , "" , 0)
	 dbAdd( false , "Free Movement of Goods" , "free.htm" ,2 , "" , 0)
	 		dbAdd( false , "Customs Union Decision" , "custom.htm" ,3 , "" , 0)
			dbAdd( false , "TBTs" , "tbt.htm" ,3 , "" , 0)
			dbAdd( false , "CE Marking ","ce_marking.htm" ,3 , "" , 0)
	 dbAdd( false , "Old Approach" , "olda.htm" ,2 , "" , 0)
			dbAdd( false , "Motor Vehicles","html/harmonised/1.htm",3 , "" , 0)
			dbAdd( false , "Agricultural Or Forestry Tractors","html/harmonised/orm_en.htm",3 , "" , 0)
			dbAdd( false , "Hoisting And Mechanical Conveying Vehicles","html/harmonised/kal_en.htm",3 , "" , 0)
			dbAdd( false , "Household Appliances","html/harmonised/ev_en.htm",3 , "" , 0)
			dbAdd( false , "Appliances Burning Gaseous Fuels","html/harmonised/gaz_en.htm",3 , "" , 0)
			dbAdd( false , "Heavy Construction Equipment","html/harmonised/ins_en.htm",3 , "" , 0)
			dbAdd( false , "Other Machinery","html/harmonised/other.htm",3 , "" , 0)
			dbAdd( false , "Pressure Vessels","html/harmonised/bas_en.htm",3 , "" , 0)
			dbAdd( false , "Measuring Instruments","html/harmonised/olcu_en.htm",3 , "" , 0)
			dbAdd( false , "Electrical Equipment","html/harmonised/ele_en.htm",3 , "" , 0)
			dbAdd( false , "Textile","html/harmonised/teks_en.htm",3 , "" , 0)
			dbAdd( false , "Foodstuff","html/harmonised/2.htm",3 , "" , 0)
			dbAdd( false , "Medicinal Products","html/harmonised/tib_en.htm",3 , "" , 0)
			dbAdd( false , "Fertilisers","html/harmonised/gub_en.htm",3 , "" , 0)
			dbAdd( false , "Dangerous Substances","html/harmonised/teh_en.htm",3 , "" , 0)
			dbAdd( false , "Cosmetic Products","html/harmonised/koz_en.htm",3 , "" , 0)
			dbAdd( false , "Protection Of Environment","html/harmonised/cev_en.htm",3 , "" , 0)
			dbAdd( false , "Communication Technology, Telecommunication And Data Processing","html/harmonised/ile_en.htm",3 , "" , 0)
			dbAdd( false , "General Provisions On The Removal Of Technical Barriers To Trade","html/harmonised/tic_en.htm",3 , "" , 0)
			dbAdd( false , "Construction Products","html/harmonised/cpd_en.htm",3 , "" , 0)
			dbAdd( false , "Personal Protective Equipment","html/harmonised/person.htm",3 , "" , 0)
			dbAdd( false , "Toys","html/harmonised/toys.htm",3 , "" , 0)
			dbAdd( false , "Machinery","html/harmonised/mach.htm",3 , "" , 0)
			dbAdd( false , "Tobacco Products","html/harmonised/tobac.htm",3 , "" , 0)
			dbAdd( false , "Energy","html/harmonised/ener.htm",3 , "" , 0)
			dbAdd( false , "Explosives For Civil Uses","html/harmonised/exp.htm",3 , "" , 0)
			dbAdd( false , "Medical Devices","html/harmonised/medical.htm",3 , "" , 0)
			dbAdd( false , "Recreational Craft","html/harmonised/recr.htm",3 , "" , 0)
			dbAdd( false , "Miscellaneous","html/harmonised/mis_en.htm",3 , "" , 0)

	 dbAdd( false , "New Approach" , "newa.htm" ,2 , "" , 0)
	 dbAdd( false , "Global Approach" , "globala.htm" ,2 , "" , 0)

  dbAdd( true , "Conformity Assessment" , "" , 1 , "" , 0)
  		dbAdd( true , "Conformity Assessment Association" , "conformity.htm" , 2 , "" , 0)
			dbAdd( false , "Members" , "members.htm" ,3 , "" , 0)
			dbAdd( false , "Meetings" , "meetings.htm" ,3 , "" , 0)
			dbAdd( false , "Memorandum of Understanding" , "memo.htm" ,3 , "" , 0)
			dbAdd( false , "Statute" , "statute.htm" ,3 , "" , 0)
					
		dbAdd( false , "Standardisation" , "standard.htm" ,2 , "" , 0)
		dbAdd( false , "Accreditation" , "accred.htm" ,2 , "" , 0)
		dbAdd( false , "Metrology" , "metrol.htm" ,2 , "" , 0)
		dbAdd( false , "Certification" , "certif.htm" ,2 , "" , 0)
		dbAdd( false , "Testing" , "test.htm" ,2 , "" , 0)
		dbAdd( false , "Inspection" , "inspect.htm" ,2 , "" , 0)
		dbAdd( false , "Terminology" , "terminology.htm" ,2 , "" , 0)


	 dbAdd( false , "Technical Assistance" , "ta.htm" ,1 , "" , 0)	 
		 dbAdd( false , "Long-Term Technical Assistance" , "long.htm" ,2 , "" , 0)
				dbAdd( false , "Action Plan" , "action.htm" ,3 , "" , 0)
				dbAdd( false , "Seminars on New & Global Approach","tender1.htm" ,3 , "" , 0)
				dbAdd( false , "Support to CABs","tender2.htm" ,3 , "" , 0)
				dbAdd( false , "Support to Accreditation","tender3.htm" ,3 , "" , 0)
				dbAdd( false , "Support to Standardisation","tender4.htm" ,3 , "" , 0)
				dbAdd( false , "Travel Facilities","tender5.htm" ,3 , "" , 0)					
				dbAdd( false , "Proficiency Testing & Inter Laboratory Comparisons","tender6.htm" ,3 , "" , 0)
				dbAdd( false , "Development of Scientific & Industrial Metrology","tender7.htm" ,3 , "" , 0)
				dbAdd( false , "Assessment of Technical Legislation","tender8.htm" ,3 , "" , 0)	
  		 dbAdd( false , "Short-Term Technical Assistance" , "#" ,2 , "" , 0)
				 dbAdd( false , "How?" , "how.htm" ,3 , "" , 0)
				 dbAdd( false , "Process?" , "process.htm" ,3 , "" , 0)
				 dbAdd( false , "Completed Short-Term Technical Assistance" , "stac.htm" ,3 , "" , 0)
				 dbAdd( false , "Ongoing Short-Term Technical Assistance" , "stag.htm" ,3 , "" , 0) 
			 
  dbAdd( true , "News & Events" , "" , 1 , "" , 0)
	 dbAdd( false , "Symposia, Conferences, Seminars, Workshops" , "synposia.htm" ,2 , "" , 0)
	 dbAdd( false , "Press" , "press.htm" ,2 , "" , 0)
			dbAdd( false , "Newsletters" , "news.htm" ,3 , "" , 0)
			
  dbAdd( true , "Project in Press" , "" , 1 , "" , 0)
  
  dbAdd( true , "Project Visibility" , "" , 1 , "" , 0)
			
  dbAdd( true , "Documents" , "" , 1 , "" , 0)
	 dbAdd( false , "EU Turkey" , "eu_turkey.htm" ,2 , "" , 0)
	 dbAdd( false , "Country Report (Expertise Centre)" , "country.htm" ,2 , "" , 0)
			dbAdd( false , "Country Report 2006 - 2007","country_06_07.htm" ,3 , "" , 0)
			dbAdd( false , "Country Report 2005 - 2006","country_05_06.htm" ,3 , "" , 0)
			dbAdd( false , "Country Report 2004 - 2005","country_04_05.htm" ,3 , "" , 0)
			dbAdd( false , "Country Report 2003 - 2004","country_03_04.htm" ,3 , "" , 0)
	 		dbAdd( false , "Country Report 2002 - 2003","country_02_03.htm" ,3 , "" , 0)
	 dbAdd( false , "New Turkish Legislation into Force" , "newtc.htm" ,2 , "" , 0)
	 dbAdd( false , "EU Treaties","eu_treat.htm" ,2 , "" , 0)
	 dbAdd( false , "New EU Legislations" , "neweu.htm" ,2 , "" , 0)
	 dbAdd( false , "EU Policy Documents and Guidance" , "guidance.htm" ,2 , "" , 0)

  dbAdd( true , "Contact" , "contact.htm" , 1 , "" , 0)
  
  dbAdd( true , "FAQs" , "faq.htm" , 1 , "" , 0)
  	 dbAdd( false , "About the Project" , "faq.htm#1" ,2 , "" , 0)
	 dbAdd( false , "Project Management" , "faq.htm#2" ,2 , "" , 0)
	 dbAdd( false , "Short-Term Technical Assistance" , "faq.htm#3" ,2 , "" , 0)
  
  dbAdd( true , "Links" , "links.htm" , 1 , "" , 0)
 
  dbAdd( true , "Site Map" , "site_map.htm" , 1 , "" , 0)

  dbAdd( true , "Search" , "http://www.quality-turkey.org/search/search.html" , 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;" }
  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();
  }