bn = navigator.appName;
bv = navigator.appVersion.substring(0,1);

if (navigator.userAgent.indexOf('Opera') != -1) bn = 'Netscape';

if (bn != 'Netscape')
{ var tmp = navigator.appVersion.split(';'); tmp = tmp[1].split(' '); bv = tmp[2]; }

var gNoFlasStr='';

function errorNoFlash()
{
    document.write(gNoFlasStr);
    window.onerror=null;
}

function flashDetectHTML(f,nof,rv)
{
gNoFlasStr = nof;
window.onerror=errorNoFlash;
if (bn == 'Netscape')
{
    if (navigator.plugins['Shockwave Flash'] )
    { 
       tmp = navigator.plugins['Shockwave Flash'].description; 
       tmp = tmp.split(' ');
       fver = tmp[2].split('.');
       fver = fver[0];

       if (fver < rv ) document.write(nof);
       else  document.write(f); 
    } 
    else document.write(nof); 
} 
else 
{
    if (navigator.userAgent.indexOf('Win') != -1) 
    {
         gNoFlasStr = nof;
         var flash = null;
         flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+rv);

         if (flash != null) document.write(f)
         else document.write(nof); 
    } 
    else document.write(f); 
}
    window.onerror=null;
}
