﻿<!--
/*
 File		: vas_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]/vas_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_precc'] = thisPath + "valueadded/prearrival.htm";
    urls['but_schcc'] = thisPath + "valueadded/scheduled.htm";
    urls['but_hactlspeed'] = thisPath + "valueadded/hactlspeed.htm";
    urls['but_consolid'] = thisPath + "valueadded/consolidation.htm";    
    urls['but_css'] = thisPath + "valueadded/screening.htm";
    urls['but_relabrepack'] = thisPath + "valueadded/relabelling.htm";
    urls['but_seur'] = thisPath + "valueadded/emptyunit.htm";
    urls['but_supercd'] = thisPath + "valueadded/superlink.htm";
    urls['but_airdirect'] = thisPath + "valueadded/airportdirect.htm";
	urls['but_dgr'] = thisPath + "valueadded/courses.htm";

//the variable "thisSection" was declared in common.js and the corresponding html page will set the value
    var chkSection = new Object;
    chkSection[vasSection] = true;

    var but_precc_on = new Image();
    var but_precc_off = new Image();
    var but_schcc_on = new Image();
    var but_schcc_off = new Image();
    var but_hactlspeed_on = new Image();
    var but_hactlspeed_off = new Image();
    var but_consolid_on = new Image();
    var but_consolid_off = new Image();
    var but_css_on = new Image();
    var but_css_off = new Image();
    var but_relabrepack_on = new Image();
    var but_relabrepack_off = new Image();
    var but_seur_on = new Image();
    var but_seur_off = new Image();
    var but_supercd_on = new Image();
    var but_supercd_off = new Image();
    var but_airdirect_on = new Image();
    var but_airdirect_off = new Image();
    var but_dgr_on = new Image();
    var but_dgr_off = new Image();

    but_precc_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_precc_off.src = thisPath + 'images/common/blank.gif';
    but_schcc_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_schcc_off.src = thisPath + 'images/common/blank.gif';
    but_hactlspeed_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_hactlspeed_off.src = thisPath + 'images/common/blank.gif';
    but_consolid_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_consolid_off.src = thisPath + 'images/common/blank.gif';
    but_css_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_css_off.src = thisPath + 'images/common/blank.gif';
    but_relabrepack_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_relabrepack_off.src = thisPath + 'images/common/blank.gif';
    but_seur_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_seur_off.src = thisPath + 'images/common/blank.gif';
    but_supercd_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_supercd_off.src = thisPath + 'images/common/blank.gif';
    but_airdirect_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_airdirect_off.src = thisPath + 'images/common/blank.gif';
	but_dgr_on.src = thisPath + 'images/valueadded/val_arrow.gif';
    but_dgr_off.src = thisPath + 'images/common/blank.gif';

    var vasNavStr = "";

    vasNavStr += "<TR VALIGN=\"TOP\"><TD HEIGHT=\"15\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=\"0\"></TD>\n"
    vasNavStr += "<TD><IMG SRC=\"" + thisPath + "images/valueadded/val_import_st.gif\" WIDTH=\"156\" HEIGHT=\"12\" BORDER=\"0\" ALT=\"Import\"></TD></TR>";
    vasNavStr += genNavImageTag('but_precc', chkSection['but_precc'], false, 156, 12, 'valueadded', 'Pre-arrival Customs Clearance');
    vasNavStr += genNavImageTag('but_schcc', chkSection['but_schcc'], false, 156, 12, 'valueadded', 'Scheduled Cargo Collection');
    vasNavStr += "<TR VALIGN=\"TOP\"><TD HEIGHT=\"15\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=\"0\"></TD>\n"
    vasNavStr += "<TD><IMG SRC=\"" + thisPath + "images/valueadded/val_export_st.gif\" WIDTH=\"156\" HEIGHT=\"12\" BORDER=\"0\" ALT=\"Export\"></TD></TR>";
    vasNavStr += genNavImageTag('but_hactlspeed', chkSection['but_hactlspeed'], false, 156, 12, 'valueadded', 'HactlSpeed');
    vasNavStr += genNavImageTag('but_consolid', chkSection['but_consolid'], false, 156, 12, 'valueadded', 'Consolidation');    
    vasNavStr += genNavImageTag('but_css', chkSection['but_css'], false, 156, 12, 'valueadded', 'Cargo Security Screening');
    vasNavStr += genNavImageTag('but_relabrepack', chkSection['but_relabrepack'], false, 156, 12, 'valueadded', 'Re-labelling & Re-packaging');
    vasNavStr += genNavImageTag('but_seur', chkSection['but_seur'], false, 156, 12, 'valueadded', 'Scheduled Empty Unit Release');
    vasNavStr += "<TR VALIGN=\"TOP\"><TD HEIGHT=\"15\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=\"0\"></TD>\n"
    vasNavStr += "<TD><IMG SRC=\"" + thisPath + "images/valueadded/val_logistics_st.gif\" WIDTH=\"156\" HEIGHT=\"12\" BORDER=\"0\" ALT=\"Logistics\"></TD></TR>";
    vasNavStr += genNavImageTag('but_supercd', chkSection['but_supercd'], false, 156, 12, 'valueadded', 'SuperLink China Direct');
    vasNavStr += genNavImageTag('but_airdirect', chkSection['but_airdirect'], false, 156, 12, 'valueadded', 'Airport Direct');


	vasNavStr += "<TR VALIGN=\"TOP\"><TD HEIGHT=\"15\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=\"0\"></TD>\n"
    vasNavStr += "<TD><IMG SRC=\"" + thisPath + "images/valueadded/val_tranning_st.gif\" WIDTH=\"156\" HEIGHT=\"12\" BORDER=\"0\" ALT=\"IATA Accredited Training\"></TD></TR>";
    vasNavStr += genNavImageTag('but_dgr', chkSection['but_dgr'], false, 156, 24, 'valueadded', 'IATA Dangerous Goods Training');
   
document.write(vasNavStr);
//-->
