﻿//MRB 08-05-09 FIX for the FLASH Javascript Error on EXIT of a PAGE
//Source FOR FIX: https://bts.dokeos.com/attachments/2651/__flash__removeCallback_patch.txt
//<![CDATA[
// This is a fix about the "__flash__removeCallback" bug.
    if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
    {
     window.attachEvent( 'onunload', function()
      {
       window['__flash__removeCallback'] = function ( instance, name )
        {
         try
         {
          if ( instance )
          {
           instance[name] = null ;
          }
         }
         catch ( flashEx )
         {
         }
        } ;
       }
      ) ;
    }
 //]]>


