﻿
function detectFlash(divOK, divKO)
{

	noautoinstall = ""

	if(navigator.appName == "Microsoft Internet Explorer" && 
		(navigator.appVersion.indexOf("Mac") != -1 || 
		 navigator.appVersion.indexOf("3.1") != -1)){
			noautoinstall = "true";
	}

	if (navigator.appName == "Microsoft Internet Explorer" && noautoinstall != "true")
	{
		detectFlashMostraDiv(divOK);
	}
	else if(navigator.plugins)
	{
		if(navigator.plugins["Shockwave Flash"] || navigator.plugins["Shockwave Flash 2.0"])
		{
			detectFlashMostraDiv(divOK);
		}
		else
		{
			detectFlashMostraDiv(divKO);
		}
	}
	else
	{
	  detectFlashMostraDiv(divKO);
	}
}

function detectFlashMostraDiv(div)
{
  document.getElementById(div).style.visibility="visible";
  document.getElementById(div).style.display="";
}