var net4 = (document.layers) ? true:false;
var net6 = ((navigator.appName.indexOf("Net") != -1) && !net4);
var ie5 = (document.getElementById && !net6) ? true:false;
var ie4 = (document.all && !document.getElementById) ? true:false;
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var dom = (document.getElementById) ? true:false;

function CheckVoice()
{
   if (navigator.appName == 'Netscape')
      {//alert("Netscape");
      if (navigator.platform == "Win32")
         {
         if (navigator.plugins["MyVoice Plugin "])
            {//alert("Netscape Win32 - Spazio");
            return (1);
            }
          else
             if (navigator.plugins["MyVoice Plugin"])
                {//alert("Netscape Win32 - NO Spazio");
                return (1);
                }
             else
                {
				return (0);
                }
         }
      else //platform Mac
         if (navigator.plugins["MyVoice Plugin"])
            {//alert("Netscape Mac");
            return (1);
            }
         else
            {//alert("Netscape - NO OS");
            return (0);
            }
      }
   else if (navigator.appName == "Microsoft Internet Explorer")
      {//alert("Internet Explorer");
      if (navigator.platform == "Win32")
         {//alert("Internet Explorer Win32"+"  "+CheckIEControl());
         return (CheckIEControl()); //CheckIEControl è in vbscripts.vbs
         }
      else
         if (navigator.platform == "MacPPC")
            {
            if (navigator.plugins["MyVoice Plugin"])
               {//alert("Internet Explorer Mac");
               return (1);
               }
            else
               {
			   return (0);
               }
            }
          else
             {
			 return (0);
             }
      }
}

function FlashInstalled()
{
result = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
{
result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
}
else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
{
// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
}
return result;
}


