// JavaScript Document
function courriel(nom,site)
{
	window.location.href = "mailto:" + nom + "@" + site;
}

function popup(fichier, name,largeur, hauteur, scroller, resizable, menus)
{
 	window.open(fichier,name,"toolbar="+menus+",scrollbars="+scroller+",directories=no,status=no,menubar="+menus+",resizable="+resizable+",left=50,right=0,top=50,width="+largeur+",height="+hauteur);
	screen.focus;
}

function changeCSSclass(obj,style)
{
	obj.className = style;
}

function showhideObj(obj,action)
{
	switch(action) {
		case 'hide':
			obj.style.display = 'none';
			break;
		case 'show':
			obj.style.display = 'block';
			break;
		case 'toggle':
			if(obj.style.display == 'block') {
				obj.style.display = 'none';
			} else {
				obj.style.display = 'block';
			}
			break;
	}
	
	ini_hauteur();
}

function iniAjax()
{
	try {
	// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e) {
	// Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				return false;
			}
		}
	}
	
	return xmlHttp;
}