function toggle_subnav (qui) {
	papa = document.getElementById('ctl00_MenuGauche1_nav_1');
	
	if (qui == 'papa') {
		if (document.getElementById('ctl00_MenuGauche1_sub_nav').style.display == 'none') {
		    document.getElementById('ctl00_MenuGauche1_sub_nav').style.display = 'block';
			papa.className = 'nav_1 actif';
		} else {
			papa.className = 'nav_1';
			document.getElementById('ctl00_MenuGauche1_sub_nav').style.display = 'none';
		}
	}
}

function dl (target) {
    
	var quoi = document.getElementById("dt_"+target);
	
	if (quoi.className == "passive") {
		
		var all_passive = getElementsByClassName(document, "dt", "passive");
		var all_closed  = getElementsByClassName(document, "dd", "closed");
		var all_active  = getElementsByClassName(document, "dt", "active");
		var all_open    = getElementsByClassName(document, "dd", "open");
		
		if (all_active.length == 0) {
			for (var i=0; i < all_passive.length; i++) {
				if (all_passive[i] == quoi) {
					all_passive[i].className = "active";
					all_closed[i].className  = "open";
					
					all_active  = getElementsByClassName(document, "dt", "active");
					all_open    = getElementsByClassName(document, "dd", "open");
					
					return true;
				}
			}
		} else if (all_active.length > 0) {
			for (var i=0; i < all_passive.length; i++) {
				if (all_passive[i] == quoi) {
					all_passive[i].className = "active";
					all_closed[i].className  = "open";
					
					all_active  = getElementsByClassName(document, "dt", "active");
					all_open    = getElementsByClassName(document, "dd", "open");
					
					return true;
				}
			}
		}
	} else if (quoi.className == "active") {
		quoi.className = "passive";
		document.getElementById("dd_"+target).className = "closed";
	}
}

function liste_dt (arg1) {
	trigger = document.getElementById(arg1);
	
	
	if (trigger.className == "passive") {
		trigger.className = "active";
		
		for (var i=1; i < arguments.length; i++) {
			if (arguments[i]) {
				hide1 = document.getElementById(arguments[i]);
				hide1.className = "passive";
			}
		}
		
	}
	
}

function liste_dd (arg1) {
	trigger = document.getElementById(arg1);
	
	
	if (trigger.className == "closed") {
		trigger.className = "open";
		
		for (var i=1; i < arguments.length; i++) {
			if (arguments[i]) {
				hide1 = document.getElementById(arguments[i]);
				hide1.className = "closed";
			}
		}
		
	}
	
}

function geoloc_popup(nom_page, nom_fenetre) {
	window.open (nom_page, nom_fenetre, config='height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
}

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Updated by: Mike Weiner :: http://www.wearebent.com 
Original author: Eric King (eric_andrew_king@hotmail.com)
Last Updated: May 2006

Changes: Added parameters for optional scrollbars, resizablility,
menubar, toolbar, addressbar, statusbar, fullscreen. Also tweaked the
implementation a bit - links will now give the user a popup window
even if JavaScript is disabled.

Notes: Some parameters are not cross-browser capable (e.g. fullscreen).
Browsers that do not support these abilities will ignore them.

Usage: The link is written as follows: 
onclick="newWindow(this.href, 'popup', 600, 500, 1, 1, 0, 0, 0, 1, 0);

Usage Description:
"this.href" refers to the URL given in the "a" tag; "'popup'" is the name of the popup window;
600 is the width of the popup window; 500 is the height of the popup window; the numbers that
follow designate whether a property is turned on ("1") or off ("0"), in this order:
scrollbars, resizable, menubar, toolbar, addressbar, statusbar, fullscreen
*/

function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
	var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
	var int_windowTop = (screen.height - a_int_windowHeight) / 2;
	var str_windowProperties = 'height=' + a_int_windowHeight 
						   + ',width=' + a_int_windowWidth 
						   + ',top=' + int_windowTop 
						   + ',left=' + int_windowLeft 
						   + ',scrollbars=' + a_bool_scrollbars 
						   + ',resizable=' + a_bool_resizable 
						   + ',menubar=' + a_bool_menubar 
						   + ',toolbar=' + a_bool_toolbar 
						   + ',location=' + a_bool_addressbar 
						   + ',statusbar=' + a_bool_statusbar 
						   + ',fullscreen=' + a_bool_fullscreen 
						   + '';
	var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
	if (parseInt(navigator.appVersion) >= 4) {
	  obj_window.window.focus();
	}
}

function tabs(show) {
	var tab_to_show   = document.getElementById("tab_"+show);
	var div_to_show   = document.getElementById("contenu_"+show);
	
	if(tab_to_show.className != "on") {
		tab_to_show.className     = "on";
		div_to_show.style.display = "block";
		
		for (var i=1; i < arguments.length; i++) {
			if (arguments[i]) {
				div_to_hide = document.getElementById("contenu_"+arguments[i]);
				div_to_hide.style.display = "none";
				
				tab_to_hide = document.getElementById("tab_"+arguments[i]);
				tab_to_hide.className = "off";
			}
		}
	} else {
		return false;
	}
}