<!--
function mmhover(i) { setTimeout("r__mmhover('"+i.id+"')",0); }
function mmout(i) { setTimeout("r__mmout('"+i.id+"')",0); }
function r__mmhover(id) {	var i = document.getElementById(id); i.src = 'images/'+i.id+'_on.png'; }
function r__mmout(id) { var i = document.getElementById(id); i.src = 'images/'+i.id+'_off.png'; }
function flashMediaElt(swf_path, swf_width, swf_height, is_transparent) {
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+swf_width+"\" HEIGHT=\""+swf_height+"\" id=\"flashMedia\">\n");
	document.write("\t<PARAM NAME=\"movie\" VALUE=\""+swf_path+"\">\n");
	document.write("\t<PARAM NAME=\"menu\" VALUE=\"false\">\n");
	document.write("\t<PARAM NAME=\"quality\" VALUE=\"high\">\n");
	document.write("\t<param name=\"allowScriptAccess\" value=\"sameDomain\" />\n");
	document.write("\t<param name=\"allowFullScreen\" value=\"false\" />\n");
	if (is_transparent == 1) { document.write("\t<PARAM NAME=\"wmode\" VALUE=\"transparent\">\n"); }
	document.write("\t<EMBED src=\""+swf_path+"\" menu=\"false\" quality=\"high\" ");
	if (is_transparent == 1) { document.write(" wmode=\"transparent\" "); }
	document.write("WIDTH=\""+swf_width+"\" HEIGHT=\""+swf_height+"\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" NAME=\"flashMedia\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\n");
	document.write("</OBJECT>\n");
}
function dosmover(d) {
	if (d.className=='lm sbut') { d.className = 'lm sbutO'; return true; }
	if (d.className=='lm but') { d.className = 'lm butO'; return true; }
	return false;
}
function dosmout(d) {
	if (d.className=='lm sbutO') { d.className = 'lm sbut'; return true; }
	if (d.className=='lm butO') { d.className = 'lm but'; return true; }
	return false;
}
function show(num) {
	if (document.getElementById('ne_main_'+num) && document.getElementById('ne_main')) {
		document.getElementById('ne_main').style.display = 'none';
		document.getElementById('ne_main_'+num).style.display = 'block';
		document.getElementById('ne_menu_'+num).style.display = 'block';
	}
	if (document.getElementById('ne_main_'+num) && document.getElementById('bne_main')) {
		document.getElementById('bne_main').style.display = 'none';
		document.getElementById('ne_main_'+num).style.display = 'block';
		document.getElementById('ne_menu_'+num).style.display = 'block';
	}
}
function hide(num) {
	if (document.getElementById('ne_main_'+num) && document.getElementById('ne_main')) {
		document.getElementById('ne_main').style.display = 'block';
		document.getElementById('ne_main_'+num).style.display = 'none';
		document.getElementById('ne_menu_'+num).style.display = 'none';
	}
	if (document.getElementById('ne_main_'+num) && document.getElementById('bne_main')) {
		document.getElementById('bne_main').style.display = 'block';
		document.getElementById('ne_main_'+num).style.display = 'none';
		document.getElementById('ne_menu_'+num).style.display = 'none';
	}
}

function hide_site() {
	document.getElementById('main').style.display = 'none';
}

var animlogo = null;
var anim_speed = 10; var anim_step = 2; var newopa = 1;

if (window.innerWidth) {
	var iw = window.innerWidth; var ih = window.innerHeight;
	var final_sx = (((iw-980)/2)+63); var final_sy = 65;
} else {
	var iw = document.documentElement.offsetWidth; var ih = document.documentElement.offsetHeight;
	var final_sx = (((iw-980)/2)+55); var final_sy = 65;
}

var anim_sx = (((iw-980)/2)+300); var anim_sy = (ih-250);
var anim_tmr = null;

function run_anim() {
	animlogo = document.getElementById('anim-logo');
	animlogo.style.display = 'block';
	animlogo.style.top = anim_sy + 'px';
	animlogo.style.left = anim_sx + 'px';
	anim_tmr = setTimeout("do_anim()",anim_speed);
}

function do_anim() {
	if (animlogo!=null) {
		if (anim_sx>final_sx) {
			anim_sx = anim_sx-anim_step;
			animlogo.style.left = anim_sx + 'px';
		} else if (anim_sy>final_sy) {
			anim_sy = anim_sy-anim_step;
			animlogo.style.top = anim_sy + 'px';
		} else {
			animlogo = null;
		}
		if (animlogo!=null) {
			if ((anim_sx % 3) != 0) { newopa = newopa + 1; }
			if (newopa >= 100) { newopa = 100; }
			animlogo.style.filter = 'Alpha(Opacity='+newopa+')';
			if (newopa < 100) {
				if (newopa < 10) {
					animlogo.style.opacity = '0.0'+newopa;
				} else {
					animlogo.style.opacity = '0.'+newopa;
				}
			} else {
				animlogo.style.opacity = '1';
			}
		}
		setTimeout("do_anim()",anim_speed);
	} else {
		clearTimeout(anim_tmr);
		location.href='index.php';
	}
}
function chk_cont(f) {
	var aok = true;
	if (f.nom.value=='') { aok = false; }
	if (f.prenom.value=='') { aok = false; }
	if (f.email.value=='') { aok = false; }
	if (f.telfixe.value=='') { aok = false; }
	if (f.commentaire.value=='') { aok = false; }
	if (!aok) { alert('Merci de remplir le formulaire correctement.'); }
	return aok;
}

//-->