// if level is upone, it means that we add ../ into the path to html pages so that the menu find it from where it is !

// if it is blank, the page is looked for in the current directory



function showToolbar(lvl)

{



if (lvl == "upone") {level="../";}

else				{level="";}



var canilang = GetCanivetCookie("CanivetLanguage");



if (canilang == null) {fr=1; en=0;}

if (canilang == "FR") {fr=1; en=0;}

if (canilang == "EN") {fr=0; en=1;}



// AddItem(id, text, hint, location, alternativeLocation);

// AddSubItem(idParent, text, hint, location);



menu = new Menu();



if (en) menu.addItem("home",		"HOME",			"Home Page",null, null);

if (fr) menu.addItem("home",		"ACCUEIL",		"Accueil",null, null);



if (en)	menu.addItem("about",		"THE BIG FAMILY",	"Association", null, null);

if (fr)	menu.addItem("about",		"LA GRANDE FAMILLE",	"Association", null, null);



if (en)	menu.addItem("genesis",		"GENESIS",		"Canivet through the ages", null, null);

if (fr)	menu.addItem("genesis",		"LA GENESE",		"Canivet à travers les âges", null, null);



if (en)	menu.addItem("genealogy",	"GENEALOGY",		"Our files", null, null);

if (fr)	menu.addItem("genealogy",	"GENEALOGIE",		"Nos archives", null, null);



if (en)	menu.addItem("espace",		"YOUR SPACE",		"Subscription", null, null);

if (fr)	menu.addItem("espace",		"VOTRE ESPACE",		"Inscriptions", null, null);



if (en)	menu.addItem("mail",		"MAIL",			"Write to us", null, null);

if (fr)	menu.addItem("mail",		"MAIL",			"Ecrivez-nous", null, null);



if (en)	menu.addItem("help",		"HELP",			"Help concerning this site", null, null);

if (fr)	menu.addItem("help",		"AIDE",			"Aide du site", null, null);



//----------------------------------------------------------------------------------------------------------------



if (en)	menu.addSubItem("home",		"Home Page",       	"Home Page",           			level+"index.php");

if (fr)	menu.addSubItem("home",     	"Page accueil",   	"Accueil",       			level+"index.php");

if (en)	menu.addSubItem("home",    	"",    			"",             			"");

if (fr)	menu.addSubItem("home",    	"",    			"",             			"");      

if (en)	menu.addSubItem("home",     	"Français",		"Français",           		"javascript:SetCanivetCookie(\"CanivetLanguage\",\"FR\");location.reload();");

if (fr)	menu.addSubItem("home",     	"Français",		"Français",           		"javascript:SetCanivetCookie(\"CanivetLanguage\",\"FR\");location.reload();");

if (en)	menu.addSubItem("home",     	"English",		"English",       		"javascript:SetCanivetCookie(\"CanivetLanguage\",\"EN\");location.reload();");

if (fr)	menu.addSubItem("home",     	"English",		"English",       		"javascript:SetCanivetCookie(\"CanivetLanguage\",\"EN\");location.reload();");



if (en)	menu.addSubItem("about",    	"Introduction",    	"A few words",       	 		level+"la_grande_famille_introduction.htm");

if (fr)	menu.addSubItem("about",    	"Introduction",     	"Quelques mots",    			level+"la_grande_famille_introduction.htm");

if (en)	menu.addSubItem("about",    	"Organization",      	"How, who and where",       		level+"organisation.htm");

if (fr)	menu.addSubItem("about",    	"Organisation",      	"Organisation",          		level+"organisation.htm");

if (en)	menu.addSubItem("about",    	"The news",       	"The news of the family",    		level+"le_grand_courrier.htm");

if (fr)	menu.addSubItem("about",    	"Le grand courrier", 	"Le courrier de la famille", 	level+"le_grand_courrier.htm");

if (en)	menu.addSubItem("about",    	"The big event", 	"The big event and the pictures", 	level+"la_grande_fete.htm");

if (fr)	menu.addSubItem("about",    	"La grande fête", 	"La grande fête et les photos", 	level+"la_grande_fete.htm");

if (en)	menu.addSubItem("about",    	"The photo gallery", 	"Other pictures", 	level+"event.php");

if (fr)	menu.addSubItem("about",    	"La galerie photo", 	"Encore des photos", 	level+"event.php");

if (en)	menu.addSubItem("about",    	"The song", 		"Hear the song and download",		level+"jukebox.htm");

if (fr)	menu.addSubItem("about",    	"La chanson", 		"Ecoutez et téléchargez la chanson", 	level+"jukebox.htm");

if (en)	menu.addSubItem("about",    	"The Encyclopedia", 		"All information on the Canivet",		level+"lencyclopedie.htm");

if (fr)	menu.addSubItem("about",    	"L'Encyclopédie", 		"Toutes les informations réunies", 	level+"lencyclopedie.htm");

if (en)	menu.addSubItem("about",    	"Contributions", 	"Homage",             			level+"contributions.htm");

if (fr)	menu.addSubItem("about",    	"Contributions", 	"Hommage",             			level+"contributions.htm");



if (en)	menu.addSubItem("genesis",     	"Origins",         	"Origins and ancestors",    		level+"origines.htm");

if (fr)	menu.addSubItem("genesis",     	"Origines",             "Origines et ancêtres",    		level+"origines.htm");

if (en)	menu.addSubItem("genesis",     	"Places in the world",	"Places in the world and our name", 	level+"lieux.htm");

if (fr)	menu.addSubItem("genesis",     	"Lieux dans le monde",	"Lieux dans le monde en avec notre nom", level+"lieux.htm");

if (en)	menu.addSubItem("genesis",     	"Places in Belgium",    	"Places in Belgium",   			level+"lieux_inbelgium.htm");

if (fr)	menu.addSubItem("genesis",     	"Lieux en Belgique",    	"Lieux en Belgique",   			level+"lieux_enbelgique.htm");

if (en)	menu.addSubItem("genesis",     	"Places in France",      	"Places in France",    			level+"lieux_infrance.htm");

if (fr)	menu.addSubItem("genesis",     	"Lieux en France",     	"Lieux en France",     			level+"lieux_enfrance.htm");



if (en)	menu.addSubItem("genealogy", 	"Our Goal",          	"What we mean by genealogy",  		level+"la_demarche.htm");

if (fr)	menu.addSubItem("genealogy", 	"La démarche",       	"La démarche",      			level+"la_demarche.htm");

if (en)	menu.addSubItem("genealogy", 	"The big book",   	"The genealogical data",  		level+"le_grand_livre.htm");

if (fr)	menu.addSubItem("genealogy", 	"Le grand livre",     	"Les données généalogiques", 		level+"le_grand_livre.htm");

if (en)	menu.addSubItem("genealogy", 	"The patronymics",     	"The patronyms: Canivez, Ganivet, ao", 	level+"patronymes.htm");

if (fr)	menu.addSubItem("genealogy", 	"Les patronymes", 	"Les patronymes: Canivez, Ganivet, etc", level+"patronymes.htm");

if (en)	menu.addSubItem("genealogy", 	"The statistics",     	"The statistics regarding the names",    			level+"statistiques.htm");

if (fr)	menu.addSubItem("genealogy", 	"Les statistiques", 	"Les statistiques de concentration", 	level+"statistiques.htm");

if (en)	menu.addSubItem("genealogy", 	"Jackie Chan-ivet",	"The archivist",    			level+"jackie.php");

if (fr)	menu.addSubItem("genealogy", 	"Jackie Chan-ivet",   	"Notre archiviste vous salue",       	level+"jackie.php");



if (en)	menu.addSubItem("espace", 	"Registration",		"Register",         			level+"enregistrement_liste.php");       

if (fr)	menu.addSubItem("espace", 	"Inscription",          "Inscrivez-vous",           		level+"enregistrement_liste.php");       

if (en)	menu.addSubItem("espace", 	"Update",         	"Update your data",        		level+"mise_a_jour_liste.php");       

if (fr)	menu.addSubItem("espace", 	"Mise à jour", 		"Mise à jour de vos données",		level+"mise_a_jour_liste.php");       

if (en)	menu.addSubItem("espace", 	"Cyber cousins",    	"Cyber cousins",      			level+"cousins_du_net.php");       

if (fr)	menu.addSubItem("espace", 	"Les cousins net",  	"Les cousins du net",             	level+"cousins_du_net.php"); 

if (en)	menu.addSubItem("espace", 	"Monthly birthdays",    	"This month birthdays",      		"javascript:window.open(\""+level+"monthly_birthday.php\",\"\",\"toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menubar=0,width=400,height=420\");history.go();"); 

if (fr)	menu.addSubItem("espace", 	"Anniversaires du mois",  	"Les anniversaires du mois", 		"javascript:window.open(\""+level+"monthly_birthday.php\",\"\",\"toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menubar=0,width=400,height=420\");history.go();"); 

if (en)	menu.addSubItem("espace", 	"Web links",    	"The links to Canivet related websites",      		level+"siteweb.php"); 
if (fr)	menu.addSubItem("espace", 	"Liens internet",  	"Les liens vers des sites Canivet", 		level+"siteweb.php"); 



if (en)	menu.addSubItem("espace",    	"",    			"",             								"");

if (fr)	menu.addSubItem("espace",    	"",    			"",             								"");      



if (en)	menu.addSubItem("espace", 	"Your announcement",    	"Send your announcement",      		level+"votrefairepart.php");       

if (fr)	menu.addSubItem("espace", 	"Votre faire-part",  	"Envoyez votre faire-part",             	level+"votrefairepart.php"); 

if (en)	menu.addSubItem("espace", 	"The pink pages",    	"See the announcements",      		level+"naissance.php");       

if (fr)	menu.addSubItem("espace", 	"Les carnets roses",  	"Consultez les annonces",             		level+"naissance.php"); 



if (en)	menu.addSubItem("espace",    	"",    			"",             								"");

if (fr)	menu.addSubItem("espace",    	"",    			"",             								"");      



if (en)	menu.addSubItem("espace", 	"Your articles",    	"Send us your articles",      			level+"votrereportage.php");       

if (fr)	menu.addSubItem("espace", 	"Votre reportage",  	"Envoyez vos articles",             		level+"votrereportage.php"); 

if (en)	menu.addSubItem("espace", 	"The Ga(ni)zette",    	"See the articles",      			level+"la_ganizette.php");       

if (fr)	menu.addSubItem("espace", 	"La Ga(ni)zette",  	"Consultez les articles",             			level+"la_ganizette.php"); 



if (en)	menu.addSubItem("espace",    	"",    			"",             								"");

if (fr)	menu.addSubItem("espace",    	"",    			"",             								"");      

if (en)	menu.addSubItem("espace",    	"E-cards",         	"Send an E-card to a friend",	level+"ecard/index.php");

if (fr)	menu.addSubItem("espace",    	"E-cartes",    	"Envoyez une E-carte à un ami",	level+"ecard/index.php");      

if (en)	menu.addSubItem("espace",    	"ScreenSaver",         	"ScreenSaver and desktop wallpaper",	level+"screensaver.htm");

if (fr)	menu.addSubItem("espace",    	"Ecran de veille",    	"Ecran de veille et wall paper",	level+"screensaver.htm");      



if (en)	menu.addSubItem("mail",   	"Genealogy",        	"Questions regarding genealogy",	"mailto:contact@canivet.com,contact2@canivet.com?subject=Questions regarding genealogy&body=Mail your comments or questions. We will try our very best to give you a prompt reply.");

if (fr)	menu.addSubItem("mail",   	"Généalogie",      	"Généalogie",							"mailto:contact@canivet.com,contact2@canivet.com?subject=Généalogie&body=Envoyez-nous vos questions ou commentaires, nous mettrons tout en oeuvre afin de vous répondre dans les meilleurs délais.");

if (en)	menu.addSubItem("mail",   	"Web Sites",      	"Submit your web sites links",			"mailto:contact@canivet.com,contact2@canivet.com?subject=Suggestion of a link&body=Mail your comments or questions. We will try our very best to give you a prompt reply.");

if (fr)	menu.addSubItem("mail",   	"Sites Web",      	"Les liens de sites",					"mailto:contact@canivet.com,contact2@canivet.com?subject=Liens intéressants&body=Envoyez-nous vos questions ou commentaires, nous mettrons tout en oeuvre afin de vous répondre dans les meilleurs délais.");

if (en)	menu.addSubItem("mail",   	"Administration", 	"Administration",						"mailto:contact@canivet.com,contact2@canivet.com?subject=Administration of the Big Canivet Family&body=Mail your comments or questions. We will try our very best to give you a prompt reply.");

if (fr)	menu.addSubItem("mail",   	"Secrétariat",   	"Secrétariat",           				"mailto:contact@canivet.com,contact2@canivet.com?subject=Le secrétariat de la Grande Famille Canivet&body=Envoyez-nous vos questions ou commentaires, nous mettrons tout en oeuvre afin de vous répondre dans les meilleurs délais.");

if (en)	menu.addSubItem("mail",   	"Other",       		"Mail us",              				"mailto:contact@canivet.com,contact2@canivet.com?subject=Other&body=Mail your comments or questions. We will try our very best to give you a prompt reply.");

if (fr)	menu.addSubItem("mail",   	"Divers",     		"Ecrivez-nous",            				"mailto:contact@canivet.com,contact2@canivet.com?subject=Divers&body=Envoyez-nous vos questions ou commentaires, nous mettrons tout en oeuvre afin de vous répondre dans les meilleurs délais.");



if (en)	menu.addSubItem("help",     	"Help",   		"Help",                 		level+"aide.htm");

if (fr)	menu.addSubItem("help",     	"Aide",         	"Aide",                 		level+"aide.htm");

if (en)	menu.addSubItem("help",    	"",    			"",             								"");

if (fr)	menu.addSubItem("help",    	"",    			"",             								"");      

if (en)	menu.addSubItem("help",     	"800x600",   		"Size screen to 800x600 pixels",                 		"javascript:window.resizeTo(800,600);history.go();");

if (fr)	menu.addSubItem("help",     	"800x600",         	"Ajuster sur 800x600",                 		"javascript:window.resizeTo(800,600);history.go();");

if (en)	menu.addSubItem("help",     	"1024x768",   		"Size screen to 1024x768 pixels",                 		"javascript:window.resizeTo(1024,768);history.go();");

if (fr)	menu.addSubItem("help",     	"1024x768",         	"Ajuster sur 1024x768",                 		"javascript:window.resizeTo(1024,768);history.go();");



menu.showMenu();

}