﻿<!--
/*
 File		: sto_nav.js

 Purpose    : Generate the left navigation bar for SuperTerminal Hactl pages 
 
 Functions  : 

 Modification History :
 
 Remarks    : The width of the first column must be 10 and that of the second column must be 156
            
            The following is the sample codes for including this js file
 
 	    <TABLE WIDTH="166" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
            <TD><IMG SRC="../images/common/blank.gif" WIDTH="10" HEIGHT="1" BORDER="0"></TD>
            <TD><IMG SRC="../images/common/blank.gif" WIDTH="156" HEIGHT="1" BORDER="0"></TD>
        </TR>
        <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="../js/sto_nav.js"></SCRIPT>
        </TABLE>
        
 
 Version    Date            By              Description
 -----------------------------------------------------------------------
 1st        2002-05-31     Vivian Au        First Version
 -----------------------------------------------------------------------
*/

//the object for storing the url links for the flash files
    var urls = new Object;
    urls['but_automation'] = thisPath + "superterminal/automated_fac.htm";
    urls['but_security'] = thisPath + "superterminal/security.htm";
    urls['but_cargohand'] = thisPath + "superterminal/handling_fac.htm";    
    urls['but_specialcargo'] = thisPath + "superterminal/special_fac.htm";
    urls['but_customfac'] = thisPath + "superterminal/customer_fac.htm";
    urls['but_express'] = thisPath + "superterminal/express_ctr.htm";

//the variable "thisSection" was declared in common.js and the corresponding html page will set the value
    var chkSection = new Object;
    chkSection[stoSection] = true;

    var but_automation_on = new Image();
    var but_automation_off = new Image();
    var but_security_on = new Image();
    var but_security_off = new Image();
    var but_cargohand_on = new Image();
    var but_cargohand_off = new Image();
    var but_specialcargo_on = new Image();
    var but_specialcargo_off = new Image();
    var but_customfac_on = new Image();
    var but_customfac_off = new Image();
    var but_express_on = new Image();
    var but_express_off = new Image();    

    but_automation_on.src = '../images/superterminal/sup_arrow.gif';
    but_automation_off.src = '../images/common/blank.gif';
    but_security_on.src = '../images/superterminal/sup_arrow.gif';
    but_security_off.src = '../images/common/blank.gif';
    but_cargohand_on.src = '../images/superterminal/sup_arrow.gif';
    but_cargohand_off.src = '../images/common/blank.gif';
    but_specialcargo_on.src = '../images/superterminal/sup_arrow.gif';
    but_specialcargo_off.src = '../images/common/blank.gif';
    but_customfac_on.src = '../images/superterminal/sup_arrow.gif';
    but_customfac_off.src = '../images/common/blank.gif';
    but_express_on.src = '../images/superterminal/sup_arrow.gif';
    but_express_off.src = '../images/common/blank.gif';

    var stoNavStr = "";

    stoNavStr += genNavImageTag('but_automation', chkSection['but_automation'], false, 156, 13, 'superterminal', '高度自勤化');
    stoNavStr += genNavImageTag('but_security', chkSection['but_security'], false, 156, 13, 'superterminal', '严密的保安');
    stoNavStr += genNavImageTag('but_cargohand', chkSection['but_cargohand'], false, 156, 13, 'superterminal', '货物处理设施');    
    stoNavStr += genNavImageTag('but_specialcargo', chkSection['but_specialcargo'], false, 156, 13, 'superterminal', '特殊货物处理设施');
    stoNavStr += genNavImageTag('but_customfac', chkSection['but_customfac'], false, 156, 13, 'superterminal', '客户设施');
    stoNavStr += genNavImageTag('but_express', chkSection['but_express'], false, 156, 13, 'superterminal', '速递中心');

document.write(stoNavStr);
//-->
