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;
}

function FlashWriteAlvar(url,clicktag,width,height){
        document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=' + width + ' HEIGHT=' + height + '>');
        document.write('<PARAM NAME=movie VALUE="' + url + '?ClickTag=' + clicktag + '"> <PARAM NAME=menu VALUE=false> ');
        document.write('<PARAM NAME=quality VALUE=high> ');
        document.write('<EMBED src="' + url + '?ClickTag=' + clicktag + '" menu=false quality=high WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
        document.write('</OBJECT>');
}
function FlashWrite(url,width,height){
        document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=' + width + ' HEIGHT=' + height + '>');
        document.write('<PARAM NAME=movie VALUE="' + url + '"> <PARAM NAME=menu VALUE=false> ');
        document.write('<PARAM NAME=quality VALUE=high> ');
        document.write('<EMBED src="' + url + '" menu=false quality=high WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
        document.write('</OBJECT>');
}

