/********************************************************************************************************/
/************************************ GLOBAL VAR ********************************************************/
/********************************************************************************************************/
// -------------------------- DECLARE ------------------------- //
// Window size
var widthWindow;
var heightWindow;
// ------------------------------------------------------------ //

// --------------------------- INIT --------------------------- //
//Initialize
widthWindow = computeWidthWindow();
heightWindow = computeHeightWindow();

// Don't put brakets because we replace the default function of "window.onresize" with "computeWindowSize".
window.onresize = computeWindowSize;
// ------------------------------------------------------------ //

/********************************************************************************************************/
/*************************************** INFO ***********************************************************/
/********************************************************************************************************/
//Add java detector
document.writeln('<div style="position:absolute; left:-1px; top:-1px;" id="divJavaDetector" name="divJavaDetector" >');
document.writeln('<APPLET code="ci.detector.java.CIJavaDetector" codebase="./APPLET/JAVA/" archive="CIJavaDetector.jar" width="1" height="1" id="javaDetector" name="javaDetector" mayscript>');
document.writeln('</APPLET>');
document.writeln('</div>');

// Add applet cedreo div.
document.writeln('<div style="position:absolute; left:0px; top:0px;" width="1" height="1" id="divAppletCedreo" name="divAppletCedreo">');
document.writeln('</div>');

// Checks if isActive function is enable.
try
{
    var applet;
    applet = document.getElementById("javaDetector");
    if (applet != null)
    {
        applet.isActive();
        g_javaIsActive = true;
    }
}
catch (error)
{
    g_javaIsActive = false;
}

// Uses for debug.
// alert("JavaIsActive : " + g_javaIsActive);



