function ie6Menus() {
	$(".top").mouseover(function() { $(this).children("ul").css("display","block"); })
	.mouseout(function() { $(this).children("ul").css("display","none"); });
	
	$("#menu ul li ul li").mouseover(function() { $(this).css("background-position","0 -34px"); })
	.mouseout(function() { $(this).css("background-position","0 0"); });
}

$(document).ready(function() {
	$(document).pngFix(); 
	
	if($.browser.msie && jQuery.browser.version == 6) {$(ie6Menus);}
	$("#videobox").click(function(){
		$("#video").show();
	});

	$("#close").click(function(){
		$("#video").hide();
	});


});

function introFlash(fichier,largeur,hauteur)
{ 
	if (arguments.length > 3) // Vérification du nombre d'arguments pass√©es dans cette fonction
	{
		var transparence  = arguments[3];
		if (arguments[4] == null) { version = 6 }
		else { version = arguments[4]; }
	
		if (arguments[5] == null) { link = '' }
		else {link = arguments[5] }
		if (arguments[6] == null) { menu = '' }
		else {menu = arguments[6] }
		if (arguments[7] == null) { zone = '' }
		else {zone = arguments[7] }
	}
	// Document outputs with OPTIONS
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version + '.0.0.0" ');
	document.write(' width="'+ largeur +'" height="'+ hauteur +'">\n');
	document.write('<param name="movie" value="' + fichier + '" />\n');
	document.write('<param name="menu" value="false" />\n');
	document.write('<param name="quality" value="high" />\n');
	if (transparence) { document.write('<param name="wmode" value="transparent" />\n');	}
	if (link != null) { document.write('<param name="FlashVars" value="dataUrl=' + link + ''); }
	if (menu != null) { document.write('&urlFond=' + menu + ''); }
	if (zone != null) { document.write('&actif=' + zone + ''); }
											document.write('" />\n');
	document.write('<embed src="' + fichier + '" quality="high"');
	document.write(' width="'+ largeur +'" height="'+ hauteur +'" ');
	if (transparence) { document.write('wmode="transparent"');	}
	if (link != null) { document.write('FlashVars="dataUrl=' + link);	}
	if (menu != null) { document.write('&urlFond=' + menu);	}
	if (zone != null) { document.write('&actif=' + zone);	}
											document.write('"');
	document.write(' type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"');
	document.write(' menu="false" />\n');
	document.write('</object>\n');
}
