var nbrTotal=0;
Liste=new Array();

//*************************LISTE DES PUBLICATIONS*********************************
//****indiquez les publication, les PLUS RECENTES au DESSUS des plus anciennes****
//****pas de " ou remplacer par ''                                            ****
//********************************************************************************
//Champs:		Theme#Titre#Observatoire#Date#Prix#image#pdf#resume
//champsNum		1	2	3	   4	5    6	  7	8
//********************************************************************************

//urba

//environ

//habitat
Liste[nbrTotal++]= "habitat#Le logement neuf en 2008#x#juillet 2009 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-2008.pdf# ";
Liste[nbrTotal++]= "habitat#Profils des acquéreurs en promotion immobilière#x#juin 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/profil_acquereurs_juillet_2008.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché locatif privé 2008-2009#x#mai 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/marche_locatif_2008_2009.pdf# ";
Liste[nbrTotal++]= "habitat#Logements neufs: du permis de construire à la livraison#x#janvier 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/permis_construction.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf en 2007#x#mai 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-2007.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché des terrains à bâtir- Février 2008#x#février 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/terrains_batir.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au quatrième trimestre 2008#x#avril 2009 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim4-2008.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché de l'occasion en 2007#x#mai 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/marche_occasion_2007.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au troisième trimestre 2007#x#janvier 2008 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim3-2007.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché locatif en 2006-2007#x#juillet 2007 - 4 pages#0#couvobshabitat-v2.jpg#habitat/marche_locatif_prive_janv_2007.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf en 2006#x#Juillet 2007 - 44 pages#31#couvobshabitat-v2.jpg#habitat/logement_neuf_2006.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au deuxième trimestre 2007#x#septembre 2007 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim2-2007.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au premier trimestre 2007#x#juin 2007 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim1-2007.pdf# ";
Liste[nbrTotal++]= "habitat#Construction neuve:Bilan 2006#x#Février 2007 - 2 pages#0#couvobshabitat-v2.jpg#habitat/construction_neuve_2006.pdf# ";
Liste[nbrTotal++]= "habitat#Promotion immobilière privée: Bilan 2006  #x#Mars 2007 - 2 pages#0#couvobshabitat-v2.jpg#habitat/construction_neuve_2006_promotion.pdf# ";
Liste[nbrTotal++]= "habitat#Observatoire accueil des gens du voyage##Mars 2007 - 4 pages#0#obs_gens_voyage.jpg#habitat/obs_depart_gens_du_voyage.pdf# ";
Liste[nbrTotal++]= "habitat#LES NOTES DU CLUB PROSPECTIVE HABITAT n° 1#x#Novembre 2006 - 4 pages#0#couvobshabitat-v2.jpg#habitat/notes_du_club_habitat_n_1.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au troisième trimestre 2006#x#Novembre 2006 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim3-2006.pdf# ";
Liste[nbrTotal++]= "habitat#Taux d'effort cumulé logement et transport chez les accédants à la propriété#x#Mai 2006 - 4 pages#0#couvobshabitat-v2.jpg#habitat/taux_effort_voiture.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché locatif en janvier 2006#x#Septembre 2006#(Disponible en téléchargement uniquement). 0 - 4 pages#couvobshabitat-v2.jpg#habitat/marche_locatif_2005_2006.pdf# "; 
Liste[nbrTotal++]= "habitat#Le logement neuf au deuxième trimestre 2006#x#Septembre 2006 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim2-2006.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché locatif étudiant rennais en 2005#x#Janvier 2006#(Disponible en téléchargement uniquement). 0 - 4 pages#couvobshabitat-v2.jpg#habitat/marche-locatif-etudiant-2005.pdf# ";  
Liste[nbrTotal++]= "habitat#Le logement neuf au premier trimestre 2006#x#Juin 2006 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim1-2006.pdf# ";
Liste[nbrTotal++]= "habitat#Accession à la propriété dans les couronnes : coût/perception de l'éloignement#x#Janvier 2006 - 6 pages#0#couvobshabitat-v2.jpg#habitat/accession-propriete-cout-percep-synth.pdf# ";  
Liste[nbrTotal++]= "habitat#Le logement neuf au 4ème trimestre 2005#x#Avril 2006 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim4-2005.pdf# ";
Liste[nbrTotal++]= "habitat#Indicateurs de solvabilité des ménages accédants#x#Janvier 2006 - 20 pages#16#couvobshabitat-v2.jpg#habitat/indicateur-solvabilite.pdf# ";  
Liste[nbrTotal++]= "habitat#L'accession aidée PTZ en 2004#x#Décembre 2005 - 4 pages#0#couvobshabitat-v2.jpg#habitat/accession-aidee-PTZ-2004.pdf# ";  
Liste[nbrTotal++]= "habitat#Le logement neuf en 2005#x#Juin 2006 - 44 pages#31#couvobshabitat-v2.jpg#habitat/logement_neuf_2005.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au 3ème trimestre 2005#x#Décembre 2005 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim3-2005.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché du logement d'occasion en 2004 #x#Janvier 2006 - 6 pages#16#couvobshabitat-v2.jpg#habitat/immobilier-occasion-2004.pdf# ";  
Liste[nbrTotal++]= "habitat#Le marché du logement d'occasion (Rétrospective 99-2003)#x#juin 2005 - 32 pages#16#couvobshabitat-v2.jpg#habitat/logement-occasion.pdf# ";  
Liste[nbrTotal++]= "habitat#Le marché locatif étudiant rennais en 2004#x#Décembre 2004#(Disponible en téléchargement uniquement). 0#couvobshabitat-v2.jpg#habitat/marche-locatif-etudiant-2004.pdf# ";  
Liste[nbrTotal++]= "habitat#Le logement neuf au 2ème trimestre 2005#x#Septembre 2005 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim2-2005.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf au 1er trimestre 2005#x#Juin 2005 - 4 pages#0#couvobshabitat-v2.jpg#habitat/log-neuf-trim1-2005.pdf# ";
Liste[nbrTotal++]= "habitat#Les loyers du parc privé#x#Septembre 2004 - 15 pages#31#couvobshabitat-v2.jpg#habitat/loyers-parc-prive.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf en 2004#x#Juin 2005 - 47 pages#31#couvobshabitat-v2.jpg#habitat/logement_neuf_2004.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf en 2003#x#Aout 2004 - 58 pages#31#couvobshabitat-v2.jpg#habitat/logement-neuf-2003.pdf# ";
Liste[nbrTotal++]= "habitat#Synthèse 2003: une tension accrue#x#Juin 2004 - 10p#16#couvobshabitat-v2.jpg#habitat/obs-hab-synth.pdf# ";
Liste[nbrTotal++]= "habitat#L'accession aidée à la propriété en 2002#x#Mars 2004 - 28p#31#couvobshabitat-v2.jpg#habitat/accession-aidee-2002.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement locatif social en 2003#x#Décembre 2003 -4p#(Disponible en téléchargement uniquement). 0#couvobshabitat-v2.jpg#habitat/locatif-social-2003.pdf# ";
Liste[nbrTotal++]= "habitat#Offre et demande de logements étudiant##Octobre 2003#31#couvobshabitat-v2.jpg#habitat/log-etudiant-2003.pdf# ";
Liste[nbrTotal++]= "habitat#Observatoire foncier numéro 1 - Résultats du Programme d'Action Foncière##Octobre 2000#23#couv.gif#habitat/observatoire-foncier.pdf# ";
Liste[nbrTotal++]= "habitat#Observatoire foncier numéro 1 - Résultats du Programme d'Action Foncière##Octobre 2000#23#couv.gif#habitat/observatoire-foncier.pdf# ";
Liste[nbrTotal++]= "habitat#Des prix très sélectifs: Quelles pistes d'action#x#Juin 2002#(Disponible en téléchargement uniquement). 0#couv.gif#habitat/obs-juin-2002.pdf# ";
Liste[nbrTotal++]= "habitat#Quel territoire du marché local de l'habitat#x#Janvier 2003 - 4p#(Disponible en téléchargement uniquement). 0#couv.gif#habitat/quel-territ-marche-habitat.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf en 2002#x#Juillet 2003 - 28p#31#couvobshabitat-v2.jpg#habitat/logement-neuf-2002.pdf# ";
Liste[nbrTotal++]= "habitat#La demande de logements neufs en 2000#x#Décembre 2000#16#couv.gif#habitat/obs-demande.pdf# ";
Liste[nbrTotal++]= "habitat#L'impact de la révolution internet sur l'immobilier#x#Juin 2001#(Disponible en téléchargement uniquement). 0#couv.gif#habitat/impact-internet.pdf# ";
Liste[nbrTotal++]= "habitat#L'accueil des gens du voyage##Juin 2000#16#couv.gif#habitat/gensduvoyage.pdf# ";
Liste[nbrTotal++]= "habitat#Observatoires locaux et politiques locales de l'habitat: Actes du colloque#x#Décembre 2000 - 4p#(Disponible en téléchargement uniquement). 0#couv.gif#habitat/obs-locaux-plh.pdf# ";
Liste[nbrTotal++]= "habitat#Le marché des terrains à bâtir en 1999#x#Avril 2000 - 36p#23#couv.gif#habitat/terrain1999.pdf# ";
Liste[nbrTotal++]= "habitat#Rétrospective des 20 ans de l'Observatoire#x#Mars 2000 - 52p#23#couv.gif#habitat/20-ans-synthese.pdf# ";
Liste[nbrTotal++]= "habitat#Le logement neuf en 1999#x#Juin 2000 - 50p#31#couv.gif#habitat/logneuf1999.pdf# ";

//economie
Liste[nbrTotal++]= "economie#L’évolution du secteur tertiaire dans l’aire urbaine#x#Novembre 2008#0#Etude_tertiarisation_Rennes.gif#economie/Etude_tertiarisation_Rennes.pdf# ";
Liste[nbrTotal++]= "economie#Tableau de bord n°8#x#Octobre 2009#0#tab-bord-02.gif#economie/tableau-bord-08.pdf# ";
Liste[nbrTotal++]= "economie#La taxe locale d'équipement#x#Octobre 2008#0#entreprises-locales.jpg#economie/TLE_2008.pdf# ";
Liste[nbrTotal++]= "economie#La circulation des actifs sur Saint-Malo-Rennes-Nantes#x#Novembre 2007#0#stmalo-rennes-nantes.jpg#economie/RN_fiche6.pdf# ";
Liste[nbrTotal++]= "economie#Base TP 2007 n°6#x#mars 2008#8#couvobsfinances-v2.jpg#economie/bases_TP_2007.pdf# ";
Liste[nbrTotal++]= "economie#Faits marquants des entreprises au 1er semestre 2008#x#juillet 2008#31#entreprises-locales.jpg#economie/vie-entreprises-locales-1ersem2008.pdf# ";
Liste[nbrTotal++]= "economie#L'enseignement supérieur et la recherche de l'agglomération rennaise#x#mai 2008#31#entreprises-locales.jpg#economie/enseignement_superieur.pdf# ";
Liste[nbrTotal++]= "economie#L'emploi public dans l'aire urbaine rennaise (mise à jour décembre 2007) #x#Février 2007#31#couv_emploi_public.jpg#economie/emploi_public.pdf# ";
Liste[nbrTotal++]= "economie#Faits marquants des entreprises en 2007#x#janvier 2008#31#entreprises-locales.jpg#economie/vie-entreprises-locales-2007.pdf# ";
Liste[nbrTotal++]= "economie#L'emploi public dans l'aire urbaine rennaise (mise à jour décembre 2007) #x#Février 2007#31#couv_emploi_public.jpg#economie/emploi_public.pdf# ";
Liste[nbrTotal++]= "economie#Tableau de bord n°6#x#Juin 2007#31#tab-bord-02.gif#economie/tableau-bord-06.pdf# ";
Liste[nbrTotal++]= "economie#Les pôles de compétitivité rennais#x#Juin 2007#31#entreprises-locales.jpg#economie/poles_competitivite_rennais_juin-2007.pdf# ";
Liste[nbrTotal++]= "economie#Le versement transport##décembre 2006#(Disponible en téléchargement uniquement).#versement-transport.jpg#economie/versement-transport-8p.pdf# ";
Liste[nbrTotal++]= "economie#Faits marquants des entreprises en 2006#x#janvier 2007#31#entreprises-locales.jpg#economie/vie-entreprises-locales-2006.pdf# ";
Liste[nbrTotal++]= "economie#les bases de taxe professionnelle en 2005 sur Rennes Métropole – reflet du dynamisme économique#x#décembre 2006#(Disponible en téléchargement uniquement).#bases-taxes-2005.jpg#economie/les-bases-taxe-professionnelle-2005.pdf# ";
Liste[nbrTotal++]= "economie#St Malo-Rennes-Nantes-St Nazaire#x#Juin 2005#31#st-malo-rennes.jpg#economie/Rennes-Nantes-St-Nazaire.pdf# ";
Liste[nbrTotal++]= "economie#Tableau de bord n°5#x#Décembre 2005#31#tab-bord-02.gif#economie/tableau-bord-05.pdf# ";
Liste[nbrTotal++]= "economie#Atlas des zones d'activités (extrait)#x#Mai 2004#40#couv-atlas-za.jpg#economie/atlas-partie1.pdf# ";
Liste[nbrTotal++]= "economie#Faits marquants des entreprises en 2005#x#Février 2006#31#entreprises-locales.jpg#economie/vie-entreprises-locales-2005.pdf# ";
Liste[nbrTotal++]= "economie#Tableau de bord n°4#x#Avril 2004#31#tab-bord-02.gif#economie/tableau-bord-04.pdf# ";
Liste[nbrTotal++]= "economie#Les exercices de prospective sectorielle n°2#x#Février 2005#(Disponible en téléchargement uniquement). 0#tl-version-1.jpg#economie/prospective-sectorielles-2.pdf# ";
Liste[nbrTotal++]= "economie#Fiscalité Dotation de Solidarité Communautaire pays de Rennes#x#Octobre 2004#(Disponible en téléchargement uniquement). 0#equipts-metropoles.jpg#economie/comparaison-equipements-metropoles.pdf# ";
Liste[nbrTotal++]= "economie#Les perspectives de développement économique du Pays de Rennes à l'horizon 2015#x#Avril 2004#(Disponible en téléchargement uniquement). 0#perspectives-developpt.jpg#economie/perspectives-developpement-pays-Rennes-2015.pdf# ";
Liste[nbrTotal++]= "economie#Quel avenir pour le transport logistique dans le bassin d'emploi rennais#x#Mai 2003#8#tl-version-1.jpg#economie/tl-version-1.pdf# ";
Liste[nbrTotal++]= "economie#Tableau de bord n°3 (Extrait)#x#Décembre 2002#31#tab-bord-02.gif#economie/tableau-bord-03.pdf# ";
Liste[nbrTotal++]= "economie#Les bases brutes de taxe professionnelle en 2002#x#Mars 2003#8#couvobsfinances-v2.jpg#economie/bases-tp-2002.pdf# ";
Liste[nbrTotal++]= "economie#Le tissu économique de l'aire urbaine rennaise (Synthèse)#x#Avril 2002#19#couvobseco.gif#economie/tissu-eco-2002.pdf# ";
Liste[nbrTotal++]= "economie#9 ans de Taxe Professionnelle communautaire##Septembre 2001#8#couv-tpc.gif#economie/9ans-tpu-rennes.pdf# ";
Liste[nbrTotal++]= "economie#Le tableau de bord n°2##Septembre 2001#31#tab-bord-02.gif#economie/tableau-bord-02.pdf# ";
Liste[nbrTotal++]= "economie#Contribution à la réflexion prospective sur le développement économique de l'agglomération rennaise##Mai 2000#31#couvcontribution.gif#economie/contribution.pdf# ";

//emploi 
Liste[nbrTotal++]= "emploi#8 tendances majeures pour le bassin rennais#x#Janvier 2007 #6#couvobseft.jpg#emploi/8 _tendances_majeures_janvier_2007.pdf# ";
Liste[nbrTotal++]= "emploi#Besoins de main d’œuvre dans 130 entreprises du bâtiment du territoire rennais #x#Septembre 2006#6#couvobseft.jpg#emploi/enquete_BTP_PLH.pdf# ";
Liste[nbrTotal++]= "emploi#Vieillissement de la population active sur le bassin rennais#x#Décembre 2005#12#couvobseft.jpg#emploi/Synth-vieillissement-population-active.pdf# ";
Liste[nbrTotal++]= "emploi#Principaux indicateurs sur l'emploi, le chômage et la formation dans le BTP#x#mai 2005#12#couvobseft-btp.jpg#emploi/tableau-bord-BTP.pdf# ";
Liste[nbrTotal++]= "emploi#Population active et emploi à l'horizon 2010/2015#x#Janvier 2005#7#couvobseft.jpg#emploi/pop-active-2010-2015.pdf# ";
Liste[nbrTotal++]= "emploi#Emploi et chômage : bilan 2004, tendances 2005#x#Juin 2006#(uniquement sur commande)8#couvobseft.jpg#emploi/bilan_emploi_chom_couv.pdf# ";
Liste[nbrTotal++]= "emploi#Les difficultés de recrutement - Secteur de la restauration#x#Août 2003#10#couvobseft.jpg#emploi/restauration-4p.pdf# ";
Liste[nbrTotal++]= "emploi#Les difficultés de recrutement - Secteur du transport routier#x#Août 2003#10#couvobseft.jpg#emploi/transport-4p.pdf# ";
Liste[nbrTotal++]= "emploi#Les difficultés de recrutement - Secteur de la métallurgie#x#Août 2003#10#couvobseft.jpg#emploi/metallurgie-4p.pdf# ";
Liste[nbrTotal++]= "emploi#Jeunes et entreprises : attentes réciproques#x#Mai 2003#15#couveft.gif#emploi/jeunes-et-entreprises-synth.pdf# ";
Liste[nbrTotal++]= "emploi#La garde d'enfants dans le pays de Rennes (Document complet de 4.5 Mo)#x#Juillet 2002#24,46#couveft.gif#emploi/Etude-garde-enfants.pdf# ";
Liste[nbrTotal++]= "emploi#Développer des services de garde d'enfants#x#Juillet 2002#35,57#couveft.gif#emploi/garde-document.pdf# ";

//culture
Liste[nbrTotal++]= "culture#Equipements métropolitains (sport, culture, accueil) : comparaison entre 13 métropoles régionales##Septembre 2004#23#couvobscult.gif#culture/comparaison-equipements-metropoles.pdf# ";
Liste[nbrTotal++]= "culture#Les équipements structurants dans le pays de Rennes – Diagnostic Scot##Septembre 2004#(Disponible en téléchargement uniquement). 0#couv-equipement-scot.jpg#culture/equipements-structurants-sept-2004.pdf# ";
Liste[nbrTotal++]= "culture#Atlas des équipements Publics communaux et intercommunaux dans Rennes Métropole (Hors Rennes) - 2001 - Tome 1: Cartes en couleurs (40 Pages au format A3) - Tome 2: Données (64 Pages au format A3)##Octobre 2001#69#couvatlasequip.gif#culture/synthese-equipements.pdf# ";

//demo
Liste[nbrTotal++]= "demo#Recensement de la population 2006 - Note n°2##Juillet 2009#(Disponible en téléchargement uniquement). 0#couv-rp06.jpg#demo/IS_recensement_note2.pdf#";
Liste[nbrTotal++]= "demo#Recensement de la population 2006 - Note n°1##Avril 2009#(Disponible en téléchargement uniquement). 0#couv-rp06.jpg#demo/IS_recensement.pdf#";

//pays
Liste[nbrTotal++]= "pays#Pays et Agglomération - La démarche Rennaise##Octobre 2000#(Disponible en téléchargement uniquement). 0#couv-pays-fnau.gif#pays/pays-agglorennes.pdf# ";
Liste[nbrTotal++]= "pays#Pays et Agglomération - Un même conseil de développement : Le CODESPAR##Octobre 2000#(Disponible en téléchargement uniquement). 0#couv-pays-fnau.gif#pays/pays-agglo-cod.pdf# ";
Liste[nbrTotal++]= "pays#Orientations de la Charte et synthèse du prédiagnostic##Décembre 2000#8#pays-synth-couv.gif#pays/synth-pays.pdf# ";
Liste[nbrTotal++]= "pays#Pré-diagnostic 1 : Habitants et mode de vie##Avril 2000#8#pays-couvdoc1.gif#pays/t1habitants.pdf# ";
Liste[nbrTotal++]= "pays#Pré-diagnostic 2 : Prospérité du territoire##Mai 2000#8#pays-couvdoc2.gif#pays/t2prosperite.pdf# ";
Liste[nbrTotal++]= "pays#Pré-diagnostic 3 : Diversité du territoire##Juin 2000#8#pays-couvdoc3.gif#pays/t3diversite.pdf# ";




//********************************************************************************
//*************************FIN LISTE DES PUBLICATIONS*****************************
//********************************************************************************

function DernieresPublications(theme,observatoireOnly){//observatoireOnly= true/false
	ListeFinale=new Array();
	n=0
	//on ne prends que ceux qui correspondent au theme demandé
	for(var i=0;i<nbrTotal;i++){
		if ( (prends(Liste[i],1,"#").toUpperCase())==theme.toUpperCase() ){
			if (observatoireOnly){
				if (prends(Liste[i],3,"#").length>0){
					ListeFinale[n++]=i
				}
			}
			else{
				ListeFinale[n++]=i
			}
		}
	}
	//on affiche les 5 premiers de la liste
	document.write("<table width='100%'><tr class='texteNormal2'>")
	cinqMaxi=ListeFinale.length
	if (cinqMaxi>5) {cinqMaxi=5}
	for(var i=0;i<cinqMaxi;i++){
		document.write("<td class='texteNormal2' valign='top'><div align='center'><table border='0' cellpadding='1'><tr><td bgcolor='#000000' ><a href='/publications/pdf/"+escape(prends(Liste[ListeFinale[i]],7,"#"))+"' target='_new'><img src='/publications/images/"+escape(prends(Liste[ListeFinale[i]],6,"#"))+"' width='60' border='0' alt='Télécharger le document ou la synthèse au format PDF'></a></td></tr></table>"+Majuscule(ConvertirHTML(prends(Liste[ListeFinale[i]],2,"#")))+"</div></td>")
	}
	document.write("</tr></table>")

}
function ToutesPublications(observatoireOnly){//observatoireOnly= true/false
	//mettre les themes dans l'ordre
	//FIN mettre les themes dans l'ordre
	tempo=self.location+""
	phrase="de nos publications"
	if (tempo.indexOf("observatoire.shtml")!=-1){observatoireOnly=true; phrase="de l\'Observatoire"; }else{observatoireOnly=false}
	if (!Noms[PageEnCours]){observatoireOnly=false;}else{phrase+=" du thème: \""+Noms[PageEnCours]+"\"";}
	
	document.write("<p><span class='texteNormal1'>   Vous avez la possibilit&eacute; de visionner les synthèses au format .PDF en cliquant sur la couverture des publications. Si vous souhaitez recevoir l'étude cliquez sur commander. </span></p>")
	
	document.write("<form name='commande'><table width='100%'  border=0><tr class='texteNormal2'>")
	themeEnCours=""

	for(var i=0;i<nbrTotal;i++){
		observatoire=""
		if (prends(Liste[i],3,"#")!=""){
			observatoire="<a href='/"+prends(Liste[i],1,"#")+"/observa/'><img src='/"+prends(Liste[i],1,"#")+"/images/observa.gif' border='0' alt='Document r&eacute;alis&eacute; par l&acute;observatoire'></a>"
		}
		continuer=true;
		if (observatoireOnly) { if (prends(Liste[i],3,"#")=="") {continuer=false} }
		if (Noms[PageEnCours]) {if (prends(Liste[i],1,"#")!=PageEnCours) {continuer=false} }

		if (continuer){
			if (themeEnCours!=Noms[prends(Liste[i],1,"#")] ) {
				themeEnCours=Noms[prends(Liste[i],1,"#")]
				document.write("<tr><td class='"+prends(Liste[i],1,"#")+"ThemeTitre' colspan='2'><img src='/"+prends(Liste[i],1,"#")+"/images/puce.gif'>&nbsp;"+Majuscule(themeEnCours)+"<br><img src='/"+prends(Liste[i],1,"#")+"/images/puce.gif' height='1' width='100%'>&nbsp;</td></tr>")
			}
			document.write("<tr><td class='texteNormal0'><table border='0' cellpadding='1'><tr>")
			document.write("<td bgcolor='#000000'><a href='/publications/pdf/"+escape(prends(Liste[i],7,"#"))+"' target='_new'>")
			document.write("<img src='/publications/images/"+escape(prends(Liste[i],6,"#"))+"' width='80' border='0' alt='Télécharger le document ou la synthèse au format PDF'></a></td></tr></table></td>")
			document.write("<td class='texteNormal1'><span class='"+prends(Liste[i],1,"#")+"ThemeEntete'>"+Majuscule (ConvertirHTML(prends(Liste[i],2,"#")))+"&nbsp;"+observatoire+"</span><br>"+ConvertirHTML(prends(Liste[i],8,"#"))+"<br><br> "+prends(Liste[i],4,"#")+" - "+prends(Liste[i],5,"#")+" € TTC")
			nom=replace(Majuscule(prends(Liste[i],2,"#")),"\'","")
			nom=replace(nom,"\"","")
			nom=ConvertirHTML(nom)
			document.write("<br><input onclick=' Calcule(\"("+themeEnCours.toUpperCase()+") "+nom+"  \", \""+prends(Liste[i],5,"#")+"\",this.checked)' type='checkbox' name='C"+i+"' value='"+prends(Liste[i],5,"#")+"'>Commander")
			document.write("</td></tr>")
			document.write("<tr><td>&nbsp;</td><td>&nbsp;</td></tr>")
		}
	}
	
	
	document.write("<tr> <td valign='top' width='50'>&nbsp;</td> <td valign='top'> <p align='right'>")
	if (Noms[PageEnCours]){
		document.write("<a href='/publications/toutespublications.shtml' class='texteNormalGras2'><i>Voir toutes les publications</i></a>")
	}
	document.write("</p><p>&nbsp;</p><p>&nbsp;</p></td></tr>")
	document.write("</table></form>")
}

function Majuscule(chaine){
	return chaine.substring(0,1).toUpperCase()+chaine.substring(1,chaine.length).toLowerCase()
}


var listeCommande=""
function Calcule(nom,prix,checked){
	totalCommande=0
	if (checked) {listeCommande+=prix+" € - " + nom +"#"}
	i=1
	document.Bon.texteCommande.value=""
	listeCommandefinale=""
	while ((suite=prends(listeCommande,i++,"#"))!="#"){
		if (!(checked) && (prix+" € - " + nom==suite) ) {suite=""}
		else
		{
			listeCommandefinale+=suite+"#"
		}
		if (suite!=""){
			document.Bon.texteCommande.value=document.Bon.texteCommande.value+suite+"\n"	
			totalCommande+=parseInt(prends(suite,1," "))
		}
		
	}
	
	listeCommande=listeCommandefinale
	document.Bon.totalCommande.value=totalCommande
}


function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;
    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;
    var newstr = string.substring(0,i) + by;
    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);
    return newstr;
}

function ConvertirHTML(str){
	//alert("debut:"+str)
str=replace (str, "¡","&iexcl;")
str=replace (str, "¢","&cent;")
str=replace (str, "£","&pound;")
str=replace (str, "¤","&curren;")
str=replace (str, "¥","&yen;")
str=replace (str, "¦","&brvbar;")
str=replace (str, "§","&sect;")
str=replace (str, "¨","&uml;")
str=replace (str, "©","&copy;")
str=replace (str, "ª","&ordf;")
str=replace (str, "«","&laquo;")
str=replace (str, "¬","&not;")
str=replace (str, "­","&shy;")
str=replace (str, "®","&reg;")
str=replace (str, "¯","&macr;")
str=replace (str, "°","&deg;")
str=replace (str, "±","&plusmn;")
str=replace (str, "²","&sup2;")
str=replace (str, "³","&sup3;")
str=replace (str, "´","&acute;")
str=replace (str, "µ","&micro;")
str=replace (str, "¶","&para;")
str=replace (str, "·","&middot;")
str=replace (str, "¸","&cedil;")
str=replace (str, "¹","&sup1;")
str=replace (str, "º","&ordm;")
str=replace (str, "»","&raquo;")
str=replace (str, "¼","&frac14;")
str=replace (str, "½","&frac12;")
str=replace (str, "¾","&frac34;")
str=replace (str, "¿","&iquest;")
str=replace (str, "À","&Agrave;")
str=replace (str, "Á","&Aacute;")
str=replace (str, "Â","&Acirc;")
str=replace (str, "Ã","&Atilde;")
str=replace (str, "Ä","&Auml;")
str=replace (str, "Å","&Aring;")
str=replace (str, "Æ","&AElig;")
str=replace (str, "Ç","&Ccedil;")
str=replace (str, "È","&Egrave;")
str=replace (str, "É","&Eacute;")
str=replace (str, "Ê","&Ecirc;")
str=replace (str, "Ë","&Euml;")
str=replace (str, "Ì","&Igrave;")
str=replace (str, "Í","&Iacute;")
str=replace (str, "Î","&Icirc;")
str=replace (str, "Ï","&Iuml;")
str=replace (str, "Ð","&ETH;")
str=replace (str, "Ñ","&Ntilde;")
str=replace (str, "Ò","&Ograve;")
str=replace (str, "Ó","&Oacute")
str=replace (str, "Ô","&Ocirc;")
str=replace (str, "Õ","&Otilde;")
str=replace (str, "Ö","&Ouml;")
str=replace (str, "×","&times;")
str=replace (str, "Ø","&Oslash;")
str=replace (str, "Ù","&Ugrave")
str=replace (str, "Ú","&Uacute;")
str=replace (str, "Û","&Ucirc;")
str=replace (str, "Ü","&Uuml;")
str=replace (str, "Ý","&Yacute;")
str=replace (str, "Þ","&THORN;")
str=replace (str, "ß","&szlig;")
str=replace (str, "à","&agrave;")
str=replace (str, "á","&aacute;")
str=replace (str, "â","&acirc;")
str=replace (str, "ã","&atilde;")
str=replace (str, "ä","&auml")
str=replace (str, "å","&aring;")
str=replace (str, "æ","&aelig;")
str=replace (str, "ç","&ccedil;")
str=replace (str, "è","&egrave;")
str=replace (str, "é","&eacute;")
str=replace (str, "ê","&ecirc;")
str=replace (str, "ë","&euml;")
str=replace (str, "ì","&igrave;")
str=replace (str, "í","&iacute;")
str=replace (str, "î","&icirc;")
str=replace (str, "ï","&iuml;")
str=replace (str, "ð","&eth;")
str=replace (str, "ñ","&ntilde;")
str=replace (str, "ò","&ograve;")
str=replace (str, "ó","&oacute;")
str=replace (str, "ô","&ocirc;")
str=replace (str, "õ","&otilde;")
str=replace (str, "ö","&ouml;")
str=replace (str, "÷","&divide;")
str=replace (str, "ø","&oslash;")
str=replace (str, "ù","&ugrave;")
str=replace (str, "ú","&uacute;")
str=replace (str, "û","&ucirc;")
str=replace (str, "ü","&uuml;")
str=replace (str, "ý","&yacute;")
str=replace (str, "þ","&thorn;")
str=replace (str, "ÿ","&yuml;")
str=replace (str, "\"","&quote;")
	//alert("fin:"+str)
return str
	
}
