var bWrittenFunctions;
function IEFlashTest()
{
var objFlash;
var bHasFlash;
if (navigator.appVersion.indexOf('MSIE 5')!=-1)
bHasFlash=eval('try { var objFlash; objFlash=new ActiveXObject(\'ShockwaveFlash.ShockwaveFlash\'); delete objFlash; bHasFlash=true; } catch(e) { bHasFlash=false; }');
else
{
// JavaScript version doesn't support try catch, so we'll output some VBScript to use
if (!bWrittenFunctions)
{
bWrittenFunctions=true;
document.writeln('');
document.writeln('Function VBIETest');
document.writeln('Dim objFlash');
document.writeln('VBIETest=false');
document.writeln('On Error Resume Next');
document.writeln('Set objFlash=CreateObject("ShockwaveFlash.ShockwaveFlash")');
document.writeln('If Err.Number=0 Then VBIETest=True');
document.writeln('Set blnFlash=Nothing');
document.writeln('End Function');
document.writeln('');
}
bHasFlash=VBIETest();
}
return(bHasFlash);
}
function HasFlash()
{
var bHasFlash=false;
if ( (navigator.userAgent.indexOf("MSIE") == -1) || ( navigator.userAgent.indexOf("Mac")!=-1 ) )
{
// Netscape
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
{
bHasFlash=true;
}
else
{
bHasFlash=false;
}
}
else
{
bHasFlash=IEFlashTest();
}
return(bHasFlash);
}
function InsertFlash( sFilename, iWidth, iHeight, sBackground )
{
var sOut;
sOut='';
sOut+='';
document.write(sOut);
}
function InsertTag( sTag )
{
document.write(sTag);
}