// FlashPlayer Detection
// 
// flashinstalled == 0 => Flash (sicher) nicht installiert
// flashinstalled == 1 => Flash (nicht sicher) installiert
// flashinstalled == 2 => Flash (sicher) installiert

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;
            compare1 = y.charAt(y.indexOf('.') - 1);
            compare2 = y.charAt(y.indexOf('.') - 2);

            compare3 = compare2;
            compare3.length = 1;

            if (compare3 == " ") 
            {
                flashversion = compare1
            }
            else 
            {
                flashversion = compare2.concat(compare1)
            }
            
        }
    }
    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";

