
var FlashMode4 =0;
var FlashMode5 =0;
var FlashMode6 =0;
var FlashMode7 =0;
var FlashMode8 =0;
var FlashMode9 =0;
var UseFlash  =0;
var FlashModeCookie  =0;
var versionIndex =0;

if (document.cookie && (document.cookie.indexOf("FlashForTeds=P") >= 0)) {
	FlashModeCookie = 1;
} else if (document.cookie && (document.cookie.indexOf("FlashForTeds=I") >= 0)) {
	FlashModeCookie = 2;
}

   if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] 
    && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) 
    {
    if (navigator.plugins && navigator.plugins["Shockwave Flash"] 
    && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) 
    != - 1) {
    var versionString = navigator.plugins["Shockwave Flash"].description.substring(versionIndex-1, versionIndex);
    versionIndex = parseInt( versionString );
    if ( versionIndex >= 4 ) {
    UseFlash = 1;
    } } }

    else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
    
    && (navigator.userAgent.indexOf("Windows")!= -1
    )) {
    document.write('<SCRIPT LANGUAGE=VBScript\> \n');
    document.write('on error resume next \n');
    document.write('FlashMode4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
    document.write('FlashMode5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
    document.write('FlashMode6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
    document.write('FlashMode7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n');
    document.write('FlashMode8 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n');
    document.write('FlashMode9 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))\n');
    document.write('</SCRIPT\> \n');
    if ( FlashMode4 || FlashMode5 || FlashMode6 || FlashMode7 || FlashMode8 || FlashMode9) {UseFlash = 1;}
    }
   if ( FlashMode4 || FlashMode5 || FlashMode6 || FlashMode7 || FlashMode8 || FlashMode9 ) {UseFlash = 1;}
   if ( FlashModeCookie == 1 ) {UseFlash = 1;}
   if ( FlashModeCookie == 2 ) {UseFlash = 0;}
   
