$("document").ready(function(){   

var flashinstalled = 0;
var flashversion = 0;
MSDetect = false;
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = true;
	
if(MSDetect)
{
	// IE flash detection.
	flashVersion = 0;
	for(var i=9; i>0; i--){
		
		try{
			var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
			flashVersion = i;
			flashinstalled = 1;
			break;
		}
		catch(e){
		}
	}

}

if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
	flashinstalled=false;
}

if(!flashinstalled)
{
	$("#entete").html("<img src='vfx/img/header.jpg' alt='' />");
	$("#footer_anim").html("<img src='vfx/img/footer.jpg' alt='' />");
	$("#schema_etudes").html("<img src='vfx/img/schema_etudes.jpg' alt='' />");
	//$("#schema_etudes1").html("<img src='vfx/img/schema_etudes1.jpg' alt='' />");
	$("#schema_etudes2").html("<img src='vfx/img/schema_etudes2.jpg' alt='' />");
}

});
