<script language="JavaScript">
<!--
//Image Uploader detection
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) {
document.writeln('<scr' + 'ipt language="VBscript">');
document.writeln('Function supportImageUploader()');
document.writeln(' If ScriptEngineMajorVersion >= 2 Then');
document.writeln(' On Error Resume Next');
document.writeln(' supportImageUploader = "NotInstalled"');
document.writeln(' Dim installed');
document.writeln(' installed = False');
document.writeln(' installed = IsObject(CreateObject("Aurigma.ImageUploader.4"))');
document.writeln(' If installed Then');
document.writeln(' supportImageUploader = "Installed"');
document.writeln(' End If');
document.writeln(' Else');
document.writeln(' supportImageUploader = "Unsupported"');
document.writeln(' End If');
document.writeln('End Function');
document.writeln('</scr' + 'ipt>');
}
else {
// platform unsupported
// top.location.href = 'indexbf.cfm?ffail=unsupported';
top.location.href = 'indexbj.cfm';
}
var sSupportImageUploader = supportImageUploader();
if (sSupportImageUploader=='Unsupported'){
// platform unsupported (secondary check)
// top.location.href = 'indexbf.cfm?ffail=unsupported';
top.location.href = 'indexbj.cfm';
}
else if (sSupportImageUploader=='NotInstalled'){
top.location.href = 'indexbf.cfm?ffail=notinstalled';
}
else {
// supported platform and installed (do nothing)
}
//-->
</script>