<!--

var hod_AppTimer = 0;
var hod_LooseTimer = 0;
var canBeJava2AppletTag = true;

function switchToJ2IfNecessary(newName) {
  return false;
}

function reportJavaVersion(jString) {
  var s = jString.split(':');
  var jType = s[2].toLowerCase();
  var jVend = s[0].toLowerCase();
  var jVers = s[1];
  //Search for JRE 1.5.0_08 since behavior changed with that JRE
  var is_150_08 = jVers > '1.5.0_07';

  if (jType == 'loose') {
    cancelLooseClassTimer();
    if (jVend != 'ms') {
      setdetectandswitch(2, is_150_08);  // use APPLET tag with Java 2
    }
  } else if (jType == 'applet') {
    cancelAppletTimer();  
    if (jVers.substring(0,3) < '1.3') {
      setdetectandswitch(1);  // use APPLET tag with Java 1
    } else {
      setdetectandswitch((jVend == 'ms') ? 3 : 2, is_150_08);
    }
  } else if (jType == 'object') {
    setdetectandswitch(3, is_150_08);
  }
}


function startAppletTimer() {
  hod_AppTimer = setTimeout("checkJavaAndBuild()",15000);
}


function cancelAppletTimer() {
  if (hod_AppTimer != null) clearTimeout(hod_AppTimer);
  hod_AppTimer = null;
}


function startLooseClassTimer(timerValue, doWeContinueIfFailure) {
  if (doWeContinueIfFailure) 
    hod_AppTimer = setTimeout("switchToObjectDetect()", timerValue);
  else
    hod_AppTimer = setTimeout("setdetectandswitch(0)", timerValue);
}


function cancelLooseClassTimer() {
  if (hod_AppTimer != null) clearTimeout(hod_AppTimer);
  hod_AppTimer = null;
}

function switchToObjectDetect() {
  var myURL = parent.location.href;
  var j = myURL.indexOf("?");
  if (j == -1) {
    myURL += "?";
  } 
  myURL += 'Obplet=detect&JavaType=detect';
  parent.location= myURL;
}


function checkJavaAndBuild()
{
  if (isIE()) {
    var javaVersion = JavaVersionOBJECT_VB();
    if (typeof javaVersion == "undefined") {
      javaVersion = JavaVersionApplet_VB();
    }
    if (typeof javaVersion != "undefined") {
      reportJavaVersion(javaVersion);
      return;
    }
  }
  setdetectandswitch(0); // no Java found
}


function getBrowserType()
{
  var browser = navigator.userAgent.toLowerCase();
  var result = 'undefined';
  if (browser.indexOf('msie')!=-1) {
    result = 'MSIE';
  } else if (browser.indexOf('mozilla') != -1) {
    if (browser.indexOf('gecko') == -1)  {
      result = 'NS4x';
    } else if (browser.indexOf('Netscape') == -1) {
      result = 'Mozz';
    } else {
      result = 'NS6x';
    }
  }
  return result;

}


function isNetscape4x()
{
    return (getBrowserType() == 'NS4x');
}


function isNetscape6x()
{
    return (getBrowserType() == 'NS6x');
}


function isMozz()
{
    return (getBrowserType() == 'Mozz');
}


function isMac()
{
    var browser = navigator.userAgent.toLowerCase();                                                
    return ((browser.indexOf('mac_powerpc') != -1) || (browser.indexOf('macintosh') != -1));
}


function isMacIE()
{
    return (isIE() && isMac());
}


function isMacNS()
{
    return (isNetscape6x() && isMac());
}


function isIE()
{
// Returns false unless the browser is Microsoft's Internet Explorer
    return (getBrowserType() == 'MSIE');
}


function browserVendor_JS()
{
// Returns "Microsoft Internet Explorer" when the browser running is IE.
// Returns "Netscape" when the browser running is Netscape/Mozilla
    var browser=navigator.userAgent.toLowerCase();

    if (browser.indexOf('msie')!=-1) {
        var browserVersion=browser.substr(browser.indexOf('msie')+5,3);
        return("Microsoft Internet Explorer");
    } else
        return("Netscape");
}


function browserVersion_JS()
{
// Returns a string with the version of IE, or "6.x" for Netscape 6.x, or "4.x" for Netscape 4.x
    var browser=navigator.userAgent.toLowerCase();

    if (browser.indexOf('msie')!=-1) {
        var browserVersion=browser.substr(browser.indexOf('msie')+5,3);
        return(browserVersion);
    } else
        if (browser.indexOf('gecko')!=-1)
        return("6.x");
    else
        return("4.x");
}



function JavaVersionAPPLET_JS()
{
// Returns the version of the JRE/JVM when Java is invoked with a APPLET tag
        var javaVersion=document.detectappletAPPLET.getJavaVersion();
    return javaVersion;
}

function JavaVersionEMBED_JS()
{
// Returns the version of the JRE when Java is invoked with a EMBED tag
    var javaVersion=document.detectappletEMBED.getJavaVersion();
    return javaVersion;
}

function JavaVersionOBJECT_JS()
{
// Returns the version of the JRE when Java is invoked with a OBJECT tag
    var javaVersion=document.detectappletOBJECT.getJavaVersion();
    return javaVersion;
}


function JavaVendorAPPLET_JS()
{
// Returns the Java vendor of the JRE/JVM when Java is invoked with a APPLET tag
    var javaVendor = document.detectappletAPPLET.getJavaVendor();
    return javaVendor;
}

function JavaVendorEMBED_JS()
{
// Returns the Java vendor of the JRE/JVM when Java is invoked with a EMBED tag
    var javaVendor=document.detectappletEMBED.getJavaVendor();
    return javaVendor;
}

function JavaVendorOBJECT_JS()
{
// Returns the Java vendor of the JRE/JVM when Java is invoked with a OBJECT tag
    var javaVendor = document.detectappletOBJECT.getJavaVendor();
    return javaVendor;
}


function OSCheck_JS()
{
// Returns the current Operating System the browser is running under.
    var OperatingSystem = navigator.platform;
    return OperatingSystem;
}

// -->

