﻿<!--
/*
 File		: chs_nav.js

 Purpose    : Generate the left navigation bar for Cargo Handling 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 path]/chs_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_phyhand'] = thisPath + "cargohandling/physical.htm";
    urls['but_dochand'] = thisPath + "cargohandling/document.htm";
    urls['but_ramhand'] = thisPath + "cargohandling/ramp.htm";

//the variable "thisSection" was declared in common.js and the corresponding html page will set the value
    var chkSection = new Object;
    chkSection[chsSection] = true;

    var but_phyhand_on = new Image();
    var but_phyhand_off = new Image();
    var but_dochand_on = new Image();
    var but_dochand_off = new Image();
    var but_ramhand_on = new Image();
    var but_ramhand_off = new Image();

    but_phyhand_on.src = thisPath + 'images/cargohandling/ch_arrow.gif';
    but_phyhand_off.src = thisPath + 'images/common/blank.gif';
    but_dochand_on.src = thisPath + 'images/cargohandling/ch_arrow.gif';
    but_dochand_off.src = thisPath + 'images/common/blank.gif';
    but_ramhand_on.src = thisPath + 'images/cargohandling/ch_arrow.gif';
    but_ramhand_off.src = thisPath + 'images/common/blank.gif';

    var abtNavStr = "";

    abtNavStr += genNavImageTag('but_phyhand', chkSection['but_phyhand'], false, 156, 12, 'cargohandling', 'Physical Cargo Handling');
    abtNavStr += genNavImageTag('but_dochand', chkSection['but_dochand'], false, 156, 12, 'cargohandling', 'Document Handling');
    abtNavStr += genNavImageTag('but_ramhand', chkSection['but_ramhand'], false, 156, 12, 'cargohandling', 'Ramp Handling');

document.write(abtNavStr);
//-->