
//adapter redirUrl (512) et getPageID 412 si changement d'url


//msg contient 
//l'ordre d'affichage, et si l'ordre se répète, celà définnit des sous menus (en principe pour les sous menus, l'ordre de définnition
//est respecté dans l'affichage ... à tester encore
//le texte visible dans la col de gauche
//Le texte qui apparait dans la home page lorsque la souris passe dessus
//une ligne qui s'affiche en dessus (seule utilisation pour Online journals avant math
//le chemin qui s'affiche en haut de la page
//'test/index.htm' : [0, 
//					'Home', 
//					'Willkommen!&nbsp;&nbsp;&nbsp;Bienvenue!&nbsp;&nbsp;&nbsp;Welcome!<BR>Opening hours: Monday to Friday, from 8:00 am to 7:00 pm.<BR>Faculty members may have a key to come at any times.', 
//					'',
//					"<SPAN id='captxt'>www.unifr.ch/dokpe/</SPAN>"],

function getMenu() {
var locale = getLocale();
var msg;
switch (locale) {
	case "de":
msg = {
'de/index.htm' : [0, 
					'Home', 
					'Willkommen!<BR>&Ouml;ffnung: von Montag bis Freitag 8h00 - 19h00.', 
					'',
					"<SPAN id='captxt'>www.unifr.ch/dokpe/</SPAN>"],
'about_dokpe/de/about.htm':[1, 
						 '&Uuml;ber Dokpe', 
						 'Alles auf:<BR>Die Dienstleistungen - Das Personal - Die B&uuml;cher und Zeitschriften - Bibliothekskarten - Reglement.', 
						 '<TR><TD>&nbsp;</TD><TD align=left><h3>&Uuml;ber uns:</h3></TD></TR>',
						 "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; &Uuml;ber Dokpe</SPAN>"],
'about_dokpe/maps/maps.htm': [1,
							  'Bibliothekskarten','','',
							  "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='about_dokpe/fr/about.htm'>&Uuml;ber Dokpe</a> &gt; </SPAN>Bibliothekskarten"],
'informatics/de/informatics.htm': [2,
								'Informatik',
								'Informationen &uuml;ber<BR>Installationen - Benutzerfragen - Studenten Computer Account - Support', 
								'',
								"<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; Informatics</SPAN>"],
'informatics/pc.htm': [2,
					   'Pc','','',
					   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; PC</SPAN>"],
'informatics/mac.htm': [2,
						'Mac','','',
						"<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Macintosh</SPAN>"],
'informatics/de/toshiba.htm':[2,
						   'Printer: Toshiba','','',
						   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Das Toshiba benuetzen</SPAN>"],
'informatics/de/privatprint.htm':[2,
						   'Printer: Laptop','','',
						   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Mit eines Laptop drücken</SPAN>"],
'informatics/de/macprivatprint.htm':[2,
						   'Printer: Macbook','','',
						   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Mit eines Macbook drücken</SPAN>"],
'informatics/scanner.htm': [2, 
							'Scanner','','',
							"<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Scanner</SPAN>"],
'informatics/beamer.htm': [2, 'Beamer', '','',
						   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Beamer</SPAN>"],
'informatics/vpn.htm': [2, 
						'Access online VPN', '','',
						"<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; VPN</SPAN>"],
'informatics/wlan.htm': [2,
						 'Wlan Access', '','',
						 "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='informatics/de/informatics.htm'>Informatics</a> &gt; Wlan Access</SPAN>"],
'about_dokpe/de/books.htm': [3,
						  'B&uuml;cher &amp; Zeitschriften',
						  'B&uuml;cher &amp; Zeitschriften suchen und finden, ob online oder nicht<BR><BR>',
						  '<TR><TD>&nbsp;</TD><TD align=left><h3>Service:</h3></TD></TR>',
						  "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; B&uuml;cher &amp; Zeitschriften</SPAN>"],
'about_dokpe/de/newbook.htm': [3, 
					   'Anschaffungsvorschl&auml;ge','', '',
					   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='about_dokpe/de/books.htm'>B&uuml;cher &amp; Zeitschriften</a> &gt; Anschaffungsvorschl&auml;ge</SPAN>"],
'about_dokpe/de/DocDelivery.htm': [3,
								'Dokumenten Fernleihe','','',
								"<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='about_dokpe/de/books.htm'>B&uuml;cher &amp; Zeitschriften</a> &gt; Dokumenten Fernleihe</SPAN>"],
'paperj/searchJ.php': [3, 
					   'Zeitschriften','', '',
					   "<SPAN ID='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='about_dokpe/de/books.htm'>B&uuml;cher &amp; Zeitschriften</a> &gt; P&eacute;riodiques</SPAN>"],
'references/list.php':[4, 
					   'B&uuml;cher oder Refernzseiten',
					   'Liste der von Lehrpersonen ausgew&auml;hlten B&uuml;cher und Referenzlisten.', 
					   '',
					   "<SPAN ID='captxt'><a href='de/index.htm'>Home</a> >Livres ou sites</SPAN>"],
'tutorials/index.htm':[5, 
					   'Tutorials', 
					   'Anleitungen f&uuml;r<BR>Die Bibliotheksressourcen otimal nutzen<BR>Tipps und Tricks zur Ausleihe zwischen verschiedenen Bibliotheken.', 
					   '',
					   "<SPAN ID='captxt'><a href='de/index.htm'>Home</a> &gt; Tutorials</SPAN>"],
'webtools/links.htm': [6, 
					   'Ben&uuml;tze link',
					   'Einige n&uuml;tzliche Internetadressen.<BR>Thematische Linkliste, Seiten der Departemente und der naturwissenschaftlichen Fakult&auml;t.', 
					   '',
					   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; External links</SPAN>"],

'webtools/de/openaccess.htm':[7,
						   'Open access', 
						   'Freier Zugang zu wissenschaftlichen Artikeln, <BR>warum ein Abonnement bezahlen und wissenschaftliche Artikel nicht gratis runterladen.', 
						   '<TR><TD>&nbsp;</TD><TD align=left><h3>Ressource:</h3></TD></TR>',
						   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; Open Access</SPAN>"],
'webtools/de/eprint.htm':[7,
					   'Akademische OA Server','','',
					   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='webtools/de/openaccess.htm'>Open Access</a> &gt; Akademische OA Server</SPAN>"],				   
'webtools/de/oajournals.htm':[7,
						   'OA Zeitschriften','','',
						   "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; <a href='webtools/de/openaccess.htm'>Open Access</a> &gt; OA Zeitschriften</SPAN>"],
'webtools/de/webtools.htm':[8,
						 'Suchmaschinen', 
						 'Suchmaschinen im Internet und anderen Datenbanken<BR>das Konsortium der Bibliothek. ', 
						 '',
						 "<SPAN id='captxt'><a href='de/index.htm'>Home</a> &gt; Suchmaschinen</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=SA-SP&selected_colors[]=1&selected_colors[]=2':[10,
				'Mathematik', 
				'Elektronische Mathematische Zeitschriften.', 
				"<TR><TD>&nbsp;</TD><TD align=left><br><h3>Elektronische Zeitschriften:</h3></TD></TR>",
				"<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Mathematics</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=ZA-ZE&Notations[]=W&Notations[]=WW-YZ&Notations[]=ZM&Notations[]=ZX-ZY&selected_colors[]=1&selected_colors[]=2':[13, 
				  'Biomed', 
				  'Elektronische Biomedizinische Zeitschriften.', 
				  '',
				  "<SPAN id='captxt'><a href='index.htm'>Home</a> &gt; Online journals Biomed</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=U&selected_colors[]=1&selected_colors[]=2':[11, 
				   'Physik',
				   'Elektronische Physische Zeitschriften.', 
				   '',
				   "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Physics</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=V&Notations[]=ZM&selected_colors[]=1&selected_colors[]=2&sc=A':[12, 
					 'Chemie',
					 'Elektronische Chemische Zeitschriften.', 
					 '',
					 "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Chemistry</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=LD-LG&Notations[]=R&Notations[]=TE-TZ&selected_colors[]=1&selected_colors[]=2':[14, 
				  'Erdwissenschaften', 
				  'Elektronische Erdwissenschaftliche Zeitschriften.', 
				  '',
				  "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Geosciences</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=SQ-SU&selected_colors[]=1&selected_colors[]=2':[15, 
					'Informatik', 
					'Elektronische Informatische Zeitschriften.', 
					'',
					"<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Informatics</SPAN>"]
};
	break;
	case "en":
  msg = {
'en/index.htm' : [0, 
					'Home', 
					'Welcome!<BR>Opening hours: Monday to Friday, from 8:00 am to 7:00 pm.', 
					'',
					"<SPAN id='captxt'>www.unifr.ch/dokpe/</SPAN>"],
'about_dokpe/en/about.htm':[1, 
						 'About Dokpe', 
						 'Information about:<BR>Services - Contact Persons - Book Collections - Maps - Regulatory texts.', 
						 '<TR><TD>&nbsp;</TD><TD align=left><h3>About us:</h3></TD></TR>',
						 "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; About Dokpe</SPAN>"],
'about_dokpe/maps/maps.htm': [1,
							  'Maps of the library','','',
							  "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='about_dokpe/en/about.htm'>About Dokpe</a> &gt; Maps</SPAN>"],
'informatics/en/informatics.htm': [2,
								'Informatics',
								'Information about<BR>Installations - Users questions - Students Computer Account - Support', 
								'',
								"<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; Informatics</SPAN>"],
'informatics/pc.htm': [2,
					   'Pc','','',
					   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; PC</SPAN>"],
'informatics/mac.htm': [2,
						'Mac','','',
						"<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Macintosh</SPAN>"],
'informatics/en/toshiba.htm':[2,
						   'Printer: Toshiba','','',
						   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Printing with the photocopier</SPAN>"],
'informatics/en/privatprint.htm':[2,
						   'Printer: Laptop','','',
						   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Printing from the laptop</SPAN>"],
'informatics/en/macprivatprint.htm':[2,
						   'Printer: Macbook','','',
						   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Printing from the macbook laptop</SPAN>"],
'informatics/scanner.htm': [2, 
							'Scanner','','',
							"<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Scanner</SPAN>"],
'informatics/beamer.htm': [2, 'Beamer', '','',
						   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Beamer</SPAN>"],
'informatics/vpn.htm': [2, 
						'Access online VPN', '','',
						"<SPAN id='captxt'><a href='index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; VPN</SPAN>"],
'informatics/wlan.htm': [2,
						 'Wlan Access', '','',
						 "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='informatics/en/informatics.htm'>Informatics</a> &gt; Wlan Access</SPAN>"],
'about_dokpe/en/books.htm': [3,
						  'Books & journals',
						  'Finding and using books and journals online or not<BR><BR>',
						  '<TR><TD>&nbsp;</TD><TD align=left><h3>Services:</h3></TD></TR>',
						  "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; Books and journals</SPAN>"],
'about_dokpe/en/newbook.htm': [3, 
					   'Book purchase proposal','', '',
					   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='about_dokpe/en/books.htm'>Books and journals</a> &gt; Book proposal</SPAN>"],
'about_dokpe/en/DocDelivery.htm': [3,
								'Document delivery','','',
								"<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='about_dokpe/en/books.htm'>Books and journals</a> &gt; Documents delivery</SPAN>"],
'paperj/searchJ.php': [3, 
					   'Paper journals', '', '',
					   "<SPAN ID='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='about_dokpe/en/books.htm'>Books and journals</a> &gt; Paper journals</SPAN>"],
'references/list.php':[4, 
					   'Reference works',
					   'A list of courses from the Faculty, <BR>teached at the Faculty, <BR>with their references books or web pages.', 
					   '',
					   "<SPAN ID='captxt'><a href='en/index.htm'>Home</a> &gt; Reference works</SPAN>"],
'tutorials/index.htm':[5, 
					   'Tutorials', 
					   'Tutorials on:<BR>Finding what you need in the library<BR>Interlibrary loans: the essential tools.', 
					   '',
					   "<SPAN ID='captxt'><a href='en/index.htm'>Home</a> &gt; Tutorials</SPAN>"],

'webtools/links.htm': [6, 
					   'External links',
					   'Some external internet sites.<BR>Thematic lists of links, scientific pages, departments pages.<BR>', 
					   '',
					   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; External links</SPAN>"],
'webtools/en/openaccess.htm':[7,
						   'Open access', 
						   'On open access to science<BR>or how to have a toll-free online access to the full text<BR>of all peer-reviewed research articles for everyone.', 
						   '<TR><TD>&nbsp;</TD><TD align=left><h3>Ressource:</h3></TD></TR>',
						   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; Open Access</SPAN>"],
'webtools/en/eprint.htm':[7,
					   'Open Access Servers','','',
					   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='webtools/en/openaccess.htm'>Open Access</a> &gt; Open Access Servers</SPAN>"],				   
'webtools/en/oajournals.htm':[7,
						   'Open Access Journals','','',
						   "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; <a href='webtools/en/openaccess.htm'>Open Access</a> &gt; Open Access Journals</SPAN>"],
'webtools/en/webtools.htm':[8,
						 'Search Engine', 
						 'Usefull web tools to search databases<BR>Consortium news.<BR>', 
						 '',
						 "<SPAN id='captxt'><a href='en/index.htm'>Home</a> &gt; Search engines</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=SA-SP&selected_colors[]=1&selected_colors[]=2':[10,
				'Mathematics', 
				'Online journals in mathematics.', 
				"<TR><TD>&nbsp;</TD><TD align=left><br><h3>Online journals:</h3></TD></TR>",
				"<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Mathematics</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=ZA-ZE&Notations[]=W&Notations[]=WW-YZ&Notations[]=ZM&Notations[]=ZX-ZY&selected_colors[]=1&selected_colors[]=2':[13, 
				  'Biomed', 
				  'Online journals in medicine and biology.', 
				  '',
				  "<SPAN id='captxt'><a href='index.htm'>Home</a> &gt; Online journals Biomed</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=U&selected_colors[]=1&selected_colors[]=2':[11, 
				   'Physics',
				   'Online journals in physics.', 
				   '',
				   "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Physics</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=V&Notations[]=ZM&selected_colors[]=1&selected_colors[]=2&sc=A':[12, 
					 'Chemistry',
					 'Online journals in chemistry.', 
					 '',
					 "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Chemistry</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=LD-LG&Notations[]=R&Notations[]=TE-TZ&selected_colors[]=1&selected_colors[]=2':[14, 
				  'Geosciences', 
				  'Online journals in geosciences and geography.', 
				  '',
				  "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Geosciences</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=SQ-SU&selected_colors[]=1&selected_colors[]=2':[15, 
					'Informatics', 
					'Online journals in computer science.', 
					'',
					"<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Online journals Informatics</SPAN>"]
};

break;
case "fr":
  msg = {
'fr/index.htm' : [0, 
					'Home', 
					'Bienvenue!<BR>Ouverture: du lundi au vendredi de 8h00 &agrave; 19h00.', 
					'',
					"<SPAN id='captxt'>www.unifr.ch/dokpe/</SPAN>"],
'about_dokpe/fr/about.htm':[1, 
						 '&Agrave; propos de Dokpe', 
						 'Tout savoir sur:<BR>Les services - le personnel - les livres et les journaux - les plans - les r&egrave;glements.', 
						 '<TR><TD>&nbsp;</TD><TD align=left><h3>Info pratiques:</h3></TD></TR>',
						 "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; &Agrave; propos de Dokpe</SPAN>"],
'about_dokpe/maps/maps.htm': [1,
							  'Plans de la biblioth&egrave;que','','',
							  "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='about_dokpe/fr/about.htm'>&Agrave; propos de Dokpe</a> &gt; Plans</SPAN>"],
'informatics/fr/informatics.htm': [2,
								'Informatique',
							'Les ordinateurs &agrave; la biblioth&egrave;que<BR>Installations - Questions - Compte d&rsquo;acc&egrave;s - Aide', 
								'',
								"<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; Informatique</SPAN>"],
'informatics/pc.htm': [2,
					   'Pc','','',
					   "<SPAN id='captxt'><a href='index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; PC</SPAN>"],
'informatics/mac.htm': [2,
						'Mac','','',
						"<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Macintosh</SPAN>"],
'informatics/fr/toshiba.htm':[2,
						   'Printer: Toshiba','','',
						   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Imprimer avec la Toshiba</SPAN>"],
'informatics/fr/privatprint.htm':[2,
						   'Printer: Laptop','','',
						   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Imprimer depuis son laptop</SPAN>"],
'informatics/fr/macprivatprint.htm':[2,
						   'Printer: Macbook','','',
						   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Imprimer depuis son Macbook</SPAN>"],
'informatics/scanner.htm': [2, 
							'Scanner','','',
							"<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Scanner</SPAN>"],
'informatics/beamer.htm': [2, 'Beamer', '','',
						   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Beamer</SPAN>"],
'informatics/vpn.htm': [2, 
						'Utiliser VPN', '','',
						"<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; VPN</SPAN>"],
'informatics/wlan.htm': [2,
						 'Utiliser Wlan', '','',
						 "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='informatics/fr/informatics.htm'>Informatique</a> &gt; Utiliser Wlan</SPAN>"],

'about_dokpe/fr/books.htm': [3,
						  'Livres &amp; journaux',
						  'Chercher et utiliser les ressources papiers ou en ligne.',
						  '<TR><TD>&nbsp;</TD><TD align=left><h3>Services:</h3></TD></TR>',
						  "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; Livres &amp; journaux</SPAN>"],
'about_dokpe/fr/newbook.htm': [3, 
					   'Proposition d&rsquo;achat','', '',
					   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='about_dokpe/fr/books.htm'>Livres &amp; journaux</a> &gt; Proposition d&rsquo;achat</SPAN>"],
'about_dokpe/fr/DocDelivery.htm': [3,
								'Fourniture de documents','','',
								"<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='about_dokpe/fr/books.htm'>Livres &amp; journaux</a> &gt; Fourniture de documents</SPAN>"],
'paperj/searchJ.php': [3, 
					   'P&eacute;riodiques', '', '',
					   "<SPAN ID='captxt'><a href='fr/index.htm'>Home</a> <a href='about_dokpe/fr/books.htm'>Livres &amp; journaux</a> &gt; P&eacute;riodiques</SPAN>"],
'references/list.php':[4, 
					   'Livres ou sites de r&eacute;f&eacute;rences',
					   'Une liste de livres ou de sites s&eacute;lectionn&eacute;s par les profs.', 
					   '',
					   "<SPAN ID='captxt'><a href='fr/index.htm'>Home</a> >Livres ou sites de r&eacute;f&eacute;rences</SPAN>"],
'tutorials/index.htm':[5, 
					   'Manuels en ligne', 
					   'Manuels pour<BR>Exploiter au mieux les ressources de la biblioth&egrave;que<BR>Trucs et astuces pour le pr&ecirc;t interbiblioth&egrave;que.', 
					   '',
					   "<SPAN ID='captxt'><a href='fr/index.htm'>Home</a> &gt; Manuels en ligne</SPAN>"],

'webtools/links.htm': [6, 
					   'Liens utiles','', '',
					   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; Liens utiles</SPAN>"],

'webtools/fr/openaccess.htm':[7,
						   'Acc&egrave;s libre', 
						   'Acc&egrave;s libre aux articles scientifiques<BR>ou pourquoi payer des abonnements aux revues scientifiques<BR>au lieu de pouvoir d&eacute;charger librement les articles scientifiques.', 
						   '<TR><TD>&nbsp;</TD><TD align=left><h3>Dossiers:</h3></TD></TR>',
						   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; Acc&egrave;s libre</SPAN>"],
'webtools/fr/eprint.htm':[7,
					   'Serveurs insitutionnels','','',
					   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='webtools/fr/openaccess.htm'>Acc&egrave;s libre</a> &gt; Serveurs insitutionnels</SPAN>"],				   
'webtools/fr/oajournals.htm':[7,
						   'Journaux en acc&egrave;s libre','','',
						   "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; <a href='webtools/fr/openaccess.htm'>Acc&egrave;s libre</a> &gt; Journaux</SPAN> en acc&egrave;s libre"],

'webtools/fr/webtools.htm':[8,
						 'Rechercher sur le web', 
						 'Moteurs de recherches sur web et autres bases de donn&eacute;es scientifiques<BR>Le consoritum des biblioth&egrave;ques. ', 
						 '',
						 "<SPAN id='captxt'><a href='fr/index.htm'>Home</a> &gt; Rechercher sur le web</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=SA-SP&selected_colors[]=1&selected_colors[]=2':[10,
				'Math&eacute;matique', 
				'Journaux &eacute;lectroniques en math&eacute;matique.', 
				"<TR><TD>&nbsp;</TD><TD align=left><br><h3>Journaux &eacute;lectroniques:</h3></TD></TR>",
				"<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Journaux e&eacute;lectroniques en math&eacute;matique</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=ZA-ZE&Notations[]=W&Notations[]=WW-YZ&Notations[]=ZM&Notations[]=ZX-ZY&selected_colors[]=1&selected_colors[]=2':[13, 
				  'Biomed', 
				  'Journaux &eacute;lectroniques biom&eacute;dicaux.', 
				  '',
				  "<SPAN id='captxt'><a href='index.htm'>Home</a> &gt; Journaux &eacute;lectroniques biom&eacute;dicaux</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=U&selected_colors[]=1&selected_colors[]=2':[11, 
				   'Physique',
				   'Journaux &eacute;lectroniques en physique.', 
				   '',
				   "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Journaux &eacute;lectroniques en physique</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=V&Notations[]=ZM&selected_colors[]=1&selected_colors[]=2&sc=A':[12, 
					 'Chimie',
					 'Journaux &eacute;lectroniques en chimie.', 
					 '',
					 "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Journaux &eacute;lectroniques en chimie</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=LD-LG&Notations[]=R&Notations[]=TE-TZ&selected_colors[]=1&selected_colors[]=2':[14, 
				  'G&eacute;osciences', 
				  'Journaux &eacute;lectroniques en g&eacute;osciences et g&eacute;ographie.', 
				  '',
				  "<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Journaux &eacute;lectroniques en g&eacute;osciences et g&eacute;ographie</SPAN>"],
'http://rzblx1.uni-regensburg.de/ezeit/searchres.phtml?bibid=KUBFR&colors=3&lang=en&jq_type1=KT&jq_term1=&jq_bool2=AND&jq_not2=+&jq_type2=KS&jq_term2=&jq_bool3=AND&jq_not3=+&jq_type3=PU&jq_term3=&jq_bool4=AND&jq_not4=+&jq_type4=IS&jq_term4=&offset=-1&hits_per_page=250&search_journal=Start+search&Notations[]=SQ-SU&selected_colors[]=1&selected_colors[]=2':[15, 
					'Informatique', 
					'Journaux &eacute;lectroniques en informatique.', 
					'',
					"<SPAN ID='captxt'><a href='index.htm'>Home</a> &gt; Journaux &eacute;lectroniques en informatique</SPAN>"]
};

break;

} // switch

return msg;
}

//empile les éléments ci-dessus dans un vecteur pour les trier ensuite
function getSortMenu(){
	var m = getMenu();
	
	var s = [];
	for (var i in m){
		//alert(i);
		m[i].push(i); //placer la clé (le chemin d'accès) en dernière position du vecteur
		s.push(m[i]); //empiler les données de chaque page dans un vecteur temporaire
	}
	return s.sort(function(a,b){return a[0]-b[0];});	//qu'on trie suivant l'ordre indiqué dans l'élément 0
}



function putClass (target, current){
	//alert (target + " - " + current);
	var s="";
	if (target==current) {
		//return "'./images/youarehere.gif' ALT='' BORDER='0' WIDTH='15' HEIGHT='15'"; 
		s = "CLASS=youarehere";
	} 
		return s;
}


function putMouseOver(currentPage, pageID, loc){ 
	var m = getMenu();
	var result = "";
	//var loc = getLocale();
	//ne renvouyer la chaine que si la page en cours et la page de démarrage...
	if (currentPage == loc + "/index.htm" || currentPage == "test/index.htm"){
	 	result =  "textmo='" + m[pageID][2] + "' ";
	}
	//alert ("putMouseO " + currentPage + " / " + pageID);
	return result;
}


function drawMenu(howMuch) {
	//alert (howMuch);
	var p = getPageID(location.pathname);
	//alert("ID " + p);
	var m = getSortMenu();
	var unsorted = getMenu();	
	var level = -1;	
	var loc = getLocale();
	//for (var i in m){
	//	last = m[i].length -1;
	//	s+=m[i][last]+ " ";
	//	}
	//alert(s);
	//alert (m['webtools/oajournals.htm'][4]);
	var currentlevel;
	if (unsorted[p]){
		currentlevel = unsorted[p][0];
	} else {
		currentlevel=0;
	}
	
	//var s = "<DIV class='box002'>";
	var s = "<DIV class='box002'>";
	for (i=1;i<=howMuch;i++) {
		var s2="<br><TABLE>";
		//var s2 = "<br><ul class='arrowDG'>";
		for (var j in m){
			var elem = m[j];
			var last = m[j].length -1;
			var id = elem[last]; //getSortMenu place la clé en dernière position du vecteur
			var head = elem[3];
			//if (p==id){currentlevel = elem[0];}
			if (level !=elem[0]){
				level = elem[0];
			//s2+= head + "<TR><TD><IMG SRC=" + putImage(p, id) + "></TD><TD align='left'><A HREF='" + id + "' " + putMouseOver(id) + ">" + elem[1] + "</A></TD></TR>"+ putSubMenu(p, id);
			s2+= head + "<TR><TD " + putClass(p, id) + ">&nbsp;</TD><TD "+ putClass(p, id) + " align='left'><A HREF='" + id + "' " + putMouseOver(p, id, loc) + ">" + elem[1] + "</A></TD></TR>";
			// s2+="<li><A HREF='" + id + "' " + putMouseOver(id) + ">" + elem[1] + "</a></li>";
			} else {
				//level est le niveau de l'entrée de menu qui vient d'etre mis à gauche. Pour savoir s'il faut afficher en sous menu ou non
				//il faut trouver le niveau de la page affichée, ce niveau est dans elem[0] si p = id. 
				//Il faut alors afficher toutes les entrées de meme niveau
					if (currentlevel == elem[0]){
						s2+= head + "<TR><TD " + putClass(p, id) + " >&nbsp;</TD><TD "+ putClass(p, id) + " align='left'><A HREF='" + id + "' " + putMouseOver(p, id, loc) + ">&nbsp;&nbsp;&nbsp;&nbsp;" + elem[1] + "</A></TD></TR>";
					}
			}
		} //for j
		s2+="</TABLE>";
		//s2+="</ul>";	
		
	var esp = (howMuch==1?1:12);
	   for (var k=1; k<=esp; k++){
			s2+="<br><br>";
		}//for k
		s+=s2;
	} //for i
	printToXLayer(s + "</DIV>", "navigbarre");
	
		if (unsorted[p] && unsorted[p][1] == "Home") {
			printToXLayer(displayaddress(loc), "navigbarre");
	} 
}


function displayaddress(loc){
	return '\
	<div class="boxAdresse">\
		<div class="boxAdresseTop">\
				<div class="boxAdresseTop_titre">' + (loc == 'fr' ? 'Adresse' : (loc == 'de' ? 'Adresse' : 'Address' )) + '</div>\
				<div class="boxAdresseTop_domaine"></div>\
		</div>\
        <div class="boxAdresseMiddle">\
			<div class="boxAdresseTop_linedouble"></div>\
			<div class="boxAdresseTop_adresse">\
				<p class="bodytext"><b>' + 
				(loc == 'fr' ? 'Centre de documentation de la Facult&eacute; des Sciences<br>Universit&eacute; de Fribourg' : 
				    (loc=='de' ? 'Dokumentationszentrum&nbsp;der&nbsp;&nbsp;&nbsp; Naturwissenschaftlichen Fakult&auml;t<br>Universit&auml;t Freiburg' : 'Center of Documentation of the Faculty of Sciences<br>Fribourg University' )) + '</b></p>\
				<p class="bodytext">Rue du mus&eacute;e 4</p>\
				<p class="bodytext">CH - 1700 Fribourg</p>\
				<p class="bodytext">&nbsp;</p>\
			</div>\
			<div class="boxAdresseTop_line"></div>\
			<div class="boxAdresseTop_tel"><span class="tel_txt"></span><span class="numero">+41 26 300 92 65</span></div>\
			<div class="boxAdresseTop_line"></div>\
			<div class="boxAdresseTop_fax"><span class="fax_txt"></span><span class="numero">+41 26 300 97 30</span></div>\
			<div class="boxAdresseTop_line"></div>\
			<p class="bodytext">&nbsp;</p>\
			<div class="boxAdresseTop_mail"><div class="mail_txt"></div>\
				<div class="mail_numero"><p class="bodytext">dokpe[at]unifr.ch</p><br></div>\
			</div>\
		</div>\
	   <div class="boxAdresseBottom"></div>\
	   <div class="clear"></div>\
   </div>'
}

//recherche dans l'url la string qui permet de savoir la page en cours dans msg
function getPageID(path){
	//var lcPath = path.toLowerCase();
	//var template = '/dokpe_test/';
	var template = '/dokpe/';
	var iLen = path.length;
	//alert(iLen);
	if (path.charAt(iLen-1)=="/"){
		iLen = iLen + 9;
		path = path + "index.htm";
	}
	//alert("getPageID: " + path);
	var pos = path.indexOf(template);
	//var pos = path.indexOf("/dokpe/");
	var resultStr;
	if (pos>-1) {
		resultStr = path.substring(pos+template.length, iLen);
	} else {resultStr = "";}
	//alert ("getPageID: " + resultStr);
	return resultStr;
}

function getLocale(){
	var path = location.pathname;
	//alert ("getLocale: " + path);
	var iLen = path.length;
	var last=0; var retval;
	//if (path.charAt(iLen-1)=="/"){last = iLen-1;} else
	last = path.lastIndexOf("/");
	//alert("last: " + last + path.charAt(last-3));
	if (path.charAt(last-3) == "/") {
		retval = path.substring(last-2, last);
	} else {
		retval = "en";
	}
	//alert ("getLocale: " + retval);
	return retval;
}

function displayPath(){
	//alert(replaceStr("unaadeuxaatrois", "aa", "zzz"));
	var pid = getPageID(location.pathname);
	var m = getMenu();
		if (m[pid] && m[pid][4]) {		
			printToXLayer("<p>"+m[pid][4]+"</p>", "colMain");
		}
		//printToXLayer(resultStr, "navigBarre");
	
	//return resultStr;
	
}
function setFDEColor(goto){
	var path = location.pathname;
	var last = path.lastIndexOf("/");
	var deb; var col="";
	if (path.charAt(last-3) == "/") {
		deb =  path.substring(last-2, last);
	}
	//alert ( goto + " / " + deb);
	if (goto == deb){
		col = "style=\"background-color:#E4EDF2; color:#009970;\" ";
	}
	return col;
}
function redirUrl (goto){
	var path = location.pathname;
	//alert (window.location.host + " " + path);
	var last = path.lastIndexOf("/");
	var res = "";
	if (path.charAt(last-3) == "/") {
		var deb =  path.substring(0, last-2);
		var fin = path.substring(last);
		//alert ("redir: http://localhost" + deb + goto + fin );
		//window.location("http://localhost" + deb + goto + fin);
		res= "http://www.unifr.ch" +  deb + goto + fin;
		//tmp = location.hostname + "";
		//res = tmp + deb + goto + fin;
		//alert (res);
		window.location.replace(res);
	//} else {
	//	res = path;
	}
	//return res;
	
}

function displayFDE(){
	var rslt = "<li><a " + setFDEColor("fr") + "href='javascript:redirUrl(\"fr\");'>f</a></li><li><a " + setFDEColor("de") + "href='javascript:redirUrl(\"de\");'>d</a></li><li><a " + setFDEColor("en") + "href='javascript:redirUrl(\"en\");'>e</a></li>";
	printToXLayer(rslt, "navigBarre");
}
function displayGoogleSearch(){
	//path = location.pathname;
	//path = path.toLowerCase();
	//pos = path.indexOf("/dokpe/");
	var pathname = getPageID(location.pathname);
	var loc = getLocale();
	resultStr="&nbsp;";
	//alert(pos);
		if (pathname == loc + "/index.htm" ) {
			//resultStr = "<p><form method='get' action='http://www.google.com/u/unifrch'><input type='text' name='q' size='10' maxlength='50'><input type='hidden' name='sitesearch' value='unifr.ch'><input type='hidden' name='hq' value='inurl:www.unifr.ch/dokpe'><input type='submit' value='Search site' name='Submit'></form></p>";
			resultStr="<li><div id='floater'><form  method='get' action='http://www.google.com/u/unifrch'><input type='text' name='q' size='10' maxlength='50' class='searchtxt'><input type='hidden' name='sitesearch' value='unifr.ch'><input type='hidden' name='hq' value='inurl:www.unifr.ch/dokpe'><input type='image' src='./images/search.gif' border='0' class='searchtxt'></form></div></li>";
		} else {
			resultStr = "<li><a href='http://www.unifr.ch/annuaire' class='last'>Directories</a></li><li><a href='https://mail.unifr.ch/' target='_blank'>Webmail</a></li>";
		}
	printToXLayer(resultStr, "navigBarre");
	//return resultStr;
}

function printNavBar(nav, BkmName){
//originedocument.write("<a name='" + BkmName + "'><a NAME='A'></a><a href='#A'>A</a> | <a href='#B'>B</a> | <a href='#C'>C</a> | <a HREF='#D'>D</a>EF | <a href='#G'>G</a>H | <a HREF='#I'>I</a> | <a href='#J'>J</a>K | <a HREF='#L'>L</a>M | <a href='#N'>N</a>OPQR | <a HREF='#S'>S</a> | <a href='#T'>T</a>UVWXYZ");
//avec suppressions de B, I, T
//probleme: avec Netscape, si le texte est inclu dans un div, document.write ne donne rien
//fermer le div text avant et le rouvrir après la barre ne donne rien

var navbar;
switch ("" + nav) {
case "7": //external links
	var styleStr;
	if (!(document.layers) || (document.getElementById)){
		styleStr = " style='text-decoration:none; font-weight:bold'";
		//navbar= "| <a name='" + BkmName + "'></a><a "+ (BkmName=="bioinfo"?styleStr:"") + " href='#bioinfo'>Bioinformatics</a> | <a "+ (BkmName=="edu"?styleStr:"") + " href='#edu'>Educational ressources</a> | <a "+ (BkmName=="lib"?styleStr:"") + " href='#lib'>Libraries & digital libraries</a> | <a "+ (BkmName=="microscopy"?styleStr:"") + " href='#microscopy'>Microscopy</a> | <a "+ (BkmName=="patent"?styleStr:"") + " href='#patent'>Patents</a> | <a "+ (BkmName=="publishing"?styleStr:"") + " href='#publishing'>Publishing</a> | <a "+ (BkmName=="scisites"?styleStr:"") + " href='#scisites'>Scientific sites search tools</a> | <a "+ (BkmName=="ufacsci"?styleStr:"") + " href='#ufacsci'> UniFR Faculty of sciences</a> |";
	} else {		
		styleStr = "";
		//navbar= "| <a name='" + BkmName + "'></a><a href='#bioinfo'>Bioinformatics</a> | <a href='#edu'>Educational ressources</a> | <a href='#lib'>Libraries & digital libraries</a> | <a href='#microscopy'>Microscopy</a> | <a href='#patent'>Patents</a> | <a href='#publishing'>Publishing</a> | <a href='#scisites'>Scientific sites search tools</a> | <a href='#ufacsci'> UniFR Faculty of sciences</a> |";;
	}
	//ça ne marche pas avec ns4...
	//navbar= "| <a name='" + BkmName + "'></a><a"+ (BkmName=="bioinfo"?styleStr:"") + " href='#bioinfo'>Bioinformatics</a> | <a"+ (BkmName=="edu"?styleStr:"") + " href='#edu'>Educational ressources</a> | <a"+ (BkmName=="lib"?styleStr:"") + " href='#lib'>Libraries & digital libraries</a> | <a"+ (BkmName=="microscopy"?styleStr:"") + " href='#microscopy'>Microscopy</a> | <a"+ (BkmName=="patent"?styleStr:"") + " href='#patent'>Patents</a> | <a"+ (BkmName=="publishing"?styleStr:"") + " href='#publishing'>Publishing</a> | <a"+ (BkmName=="scisites"?styleStr:"") + " href='#scisites'>Scientific sites search tools</a> | <a"+ (BkmName=="ufacsci"?styleStr:"") + " href='#ufacsci'> UniFR Faculty of sciences</a> |";
	navbar= "<span class='nvb'>| <a name='" + BkmName + "'></a><a"+ (BkmName=="all"?styleStr:"") + " href='webtools/links.htm#all'>General tools</a> | <a name='" + BkmName + "'></a><a"+ (BkmName=="bioinfo"?styleStr:"") + " href='webtools/links.htm#bioinfo'>Bioinformatics</a> | <a"+ (BkmName=="chem"?styleStr:"") + " href='webtools/links.htm#chem'>Chemistry</a> | <a"+ (BkmName=="ecol"?styleStr:"") + " href='webtools/links.htm#ecol'>Ecology</a>";
	navbar+="| <a"+ (BkmName=="geog"?styleStr:"") + " href='webtools/links.htm#geog'>Geography</a> | <a"+ (BkmName=="geol"?styleStr:"") + " href='webtools/links.htm#geol'>Geology</a> | <a"+ (BkmName=="infrm"?styleStr:"") + " href='webtools/links.htm#infrm'>Informatics</a> | <a"+ (BkmName=="lib"?styleStr:"") + " href='webtools/links.htm#lib'>Libraries & digital libraries</a> | <a"+ (BkmName=="math"?styleStr:"") + " href='webtools/links.htm#math'>Math</a> | <a"+ (BkmName=="med"?styleStr:"") + " href='webtools/links.htm#med'>Medicine</a>";
	navbar+="| <a"+ (BkmName=="microscopy"?styleStr:"") + " href='webtools/links.htm#microscopy'>Microscopy</a> | <a"+ (BkmName=="molbio"?styleStr:"") + " href='webtools/links.htm#molbio'>Molecular biology & genetics</a> | <a"+ (BkmName=="patent"?styleStr:"") + " href='webtools/links.htm#patent'>Patents</a> | <a"+ (BkmName=="phys"?styleStr:"") + " href='webtools/links.htm#phys'>Physics</a> | <a"+ (BkmName=="publishing"?styleStr:"") + " href='webtools/links.htm#publishing'>Publishing</a> | <a"+ (BkmName=="sci"?styleStr:"") + " href='webtools/links.htm#sci'>Sciences</a>";
	navbar+="| <a"+ (BkmName=="ufacsci"?styleStr:"") + " href='webtools/links.htm#ufacsci'> UniFR Faculty of sciences</a> |</span>";
	break;
}//case
printToXLayer(navbar, "webpage");
}



function printToXLayer(what, lyrNm) {
	//alert(what);
	if (document.layers) {
	//alert(what);
		document.layers[lyrNm].document.write(what);
	} else {
		document.write(what);
	}
}

//
// format date as dd-mmm-yy
// example: 12-Jan-99
//
function date_ddmmmyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();

  // handle different year values 
  // returned by IE and NS in 
  // the year 2000.
  if(y >= 2000)
  {
    y -= 2000;
  }
  if(y >= 100)
  {
    y -= 100;
  }

  // could use splitString() here 
  // but the following method is 
  // more compatible
  var mmm = 
    ( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
    ( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
    ( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
    (10==m)?'Oct':(11==m)?'Nov':'Dec';

  return "" +
    (d<10?"0"+d:d) + "-" +
    mmm + "-" +
    (y<10?"0"+y:y);
}


//
// get last modified date of the 
// current document.
//
function date_lastmodified()
{
  var lmd = document.lastModified;
  //var lmd = thisdoc.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date
  // before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_ddmmmyy(new Date(d1));
  } else {s="-"}
	
  printToXLayer(s, "webpage");
}


