/* 
 * Ce  script  detecte  si le  plugin Flash  est  installe ou pas
 * Il contourne le fait que notre ami IE ne comprenne pas l'objet
 * window.navigator.plugins()  en incluant un bout de code vb :-(
 * Librement  inspire de  petits bouts de code trouves  ici et la
 * (o) 2004 - David Beja / Cyril MARION  -  Ateliers CYM  - PARIS
 */

var installe = 0;
var version = 0;
ie = "non";
if (navigator.plugins && navigator.plugins.length) {
	x = navigator.plugins["Shockwave Flash"];
	if (x) {
		installe = 2;
		if (x.description) {
			y = x.description;
			version = y.charAt(y.indexOf('.')-1);
		}
	} else 
		installe = 1;
	if (navigator.plugins["Shockwave Flash 2.0"]) {
		installe = 2;
		version = 2;
	}
} else if (navigator.mimeTypes && navigator.mimeTypes.length) {
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		installe = 2;
	else
		installe = 1;
} else
	ie = "oui";

/*
<SCRIPT LANGUAGE="VBScript">

on error resume next

If ie = "oui" Then
	For i = 2 to 6
		If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then

		Else
			installe = 2
			version = i
		End If
	Next
End If

If installe = 0 Then
	installe = 1
End If

</SCRIPT> */
