// JavaScript Document
function clearHeaderButtons()
{
	$("ceremony_button_container").innerHTML = "";	
	$("header_buttons_main_container").innerHTML = "";	
	$("advance_button_container").innerHTML = "";
}

function reloadHeaderButtons()
{
	clearHeaderButtons();
	loadHeaderButtons();
	$("current_selector").style.display="none";//the selecting image
}

function loadGeneralDocumentButton()
{

}

function load_buttons()
{
	try{
		//FRENCH

		new Buttons.create({
			id: "Accueil",
			theCaption: "Accueil" ,
			enabled: true,
			onclick_actions: function(){
				accueil();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});

		new Buttons.create({
			id: "Hebergement",
			theCaption: "H&eacute;bergement" ,
			enabled: true,
			onclick_actions: function(){
				window.open('http://www.venise-en-quebec.ca/gites.html','Hebergement');
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Carte",
			theCaption: "Carte Routi&egrave;re" ,
			enabled: true,
			onclick_actions: function(){
				map();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});

		new Buttons.create({
			id: "Inscription",
			theCaption: "<b>Inscription</b>" ,
			enabled: true,
			onclick_actions: function(){
				window.open('inscription.pdf','Inscription');
			},
			positionning: {
				cssFloat: 'left'			
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		
		new Buttons.create({
			id: "Partenaires",
			theCaption: "Partenaires" ,
			enabled: true,
			onclick_actions: function(){
				collaborateur();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Contact",
			theCaption: "Contactez-nous" ,
			enabled: true,
			onclick_actions: function(){
				contact();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Region",
			theCaption: "Notre R&eacute;gion" ,
			enabled: true,
			onclick_actions: function(){
				region();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Parcours",
			theCaption: "Parcours V&eacute;lo" ,
			enabled: true,
			onclick_actions: function(){
				parcour();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "English",
			theCaption: "English" ,
			enabled: true,
			onclick_actions: function(){
				accueil_eng();
			},
			positionning: {
				cssFloat: 'right'
			},
			child_of: "french_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
	}catch(e){alert("error in function loadButtons(button_logic.js). Error:"+e)}
}

function load_buttons_eng()
{
	try{
		//ENGLISH
		
		new Buttons.create({
			id: "Home",
			theCaption: "Home" ,
			enabled: true,
			onclick_actions: function(){
				accueil_eng();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});

		
		new Buttons.create({
			id: "Lodging",
			theCaption: "Lodging" ,
			enabled: true,
			onclick_actions: function(){
				window.open('http://www.venise-en-quebec.ca/gites.html','Hebergement');
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Map",
			theCaption: "Map" ,
			enabled: true,
			onclick_actions: function(){
				map_eng();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});

		new Buttons.create({
			id: "Registration",
			theCaption: "<b>Registration</b>" ,
			enabled: true,
			onclick_actions: function(){
				window.open('inscription.pdf','Inscription');
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		
		new Buttons.create({
			id: "Partners",
			theCaption: "Partners" ,
			enabled: true,
			onclick_actions: function(){
				collaborateur_eng();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "ContactUs",
			theCaption: "Contact-us" ,
			enabled: true,
			onclick_actions: function(){
				contactUs();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Ouregion",
			theCaption: "Our Region" ,
			enabled: true,
			onclick_actions: function(){
				region_eng();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "BikeRoutes",
			theCaption: "Bike Routes" ,
			enabled: true,
			onclick_actions: function(){
				parcour_eng();
			},
			positionning: {
				cssFloat: 'left'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
		new Buttons.create({
			id: "Francais",
			theCaption: "Francais" ,
			enabled: true,
			onclick_actions: function(){
				accueil();
			},
			positionning: {
				cssFloat: 'right'
			},
			child_of: "english_buttons",
			class_Prefix: "header",
			tip:null,
			type: "link"
		});
	}catch(e){alert("error in function loadButtons(button_logic.js). Error:"+e)}
}





