function check() {
	var msg = "";

		if (document.formMessage.mail.value != "")	{
		indexAroba = document.formMessage.mail.value.indexOf('@');
		indexPoint = document.formMessage.mail.value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
		document.formMessage.mail.style.backgroundColor = "#ffcccc";
			msg += "Votre mail est incorrect\n";
		}
	}
	else	{
		document.formMessage.mail.style.backgroundColor = "#ffcccc";
		msg += "Veuillez saisir votre mail.\n";
	}

if (document.formMessage.nom.value == "")	{
		msg += "Veuillez saisir votre nom\n";
		document.formMessage.nom.style.backgroundColor = "#ffcccc";
	}

	if (msg == "") return(true);
	else	{
		alert(msg);
		return(false);
	}
}

function popup(page) {
	window.open(page,'popup','width=700, height=550, toolbar=false, scrollbars=yes, resizable=yes');	
}

function popup2(page) {
	window.open(page,'popup2','width=800, height=600, toolbar=false, scrollbars=no, resizable=no');	
}

function popupclem(page) {
	window.open(page,'popupclem','width=820, height=580, toolbar=false, scrollbars=no, resizable=no');	
}

function popupchaos(page) {
	window.open(page,'popupchaos','width=545, height=500, toolbar=false, scrollbars=yes, resizable=yes');	
}


// patch flash ie

function Runactu()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="img/menu_actu.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="img/menu_actu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}


function Runcat()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="../img/menu_cat.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="../img/menu_cat.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runclem()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="../img/menu_clem.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="../img/menu_clem.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runpat()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="../img/menu_pat.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="../img/menu_pat.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runjardin()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="../img/menu_jardin.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="../img/menu_jardin.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runatelier()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="../img/menu_atelier.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="../img/menu_atelier.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runcontact()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="160">\n');
    document.write('<param name="movie" value="img/menu_contact.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="img/menu_contact.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="160">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runjs06()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="747" height="560" title="jardin secret 06">\n');
    document.write('<param name="movie" value="img/js_06.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="img/js_06.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="747" height="560">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Runjs062()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="747" height="560" title="jardin secret 06">\n');
    document.write('<param name="movie" value="img/js_062.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="img/js_062.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="747" height="560">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function MenuJardin()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="127" height="200">\n');
    document.write('<param name="movie" value="img/menu_nav.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="img/menu_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="127" height="200">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Liens1()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="290" height="120">\n');
    document.write('<param name="movie" value="img/menu_pratique1.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="img/menu_pratique1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="290" height="120">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Liens2()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="290" height="120">\n');
    document.write('<param name="movie" value="../img/menu_pratique2.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="../img/menu_pratique2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="290" height="120">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Lienscat()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="123" height="62">\n');
    document.write('<param name="movie" value="cat/liens.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="cat/liens.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="123" height="62">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}

function Liensclem()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="142" height="220">\n');
    document.write('<param name="movie" value="clement/nav_clem.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<embed src="clement/nav_clem.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="142" height="203">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
}
