﻿<!--
/*
 File		: tools.js

 Purpose    : This javascript file for generating the tools menu
 
 Functions  : 
 
 Remarks    : The table should contain 2 columns
            
            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]/tools.js"></SCRIPT>
        </TABLE>
        
 
 Version    Date            By              Description
 -----------------------------------------------------------------------
 1st        2002-05-31     Vivian Au        First Version
 -----------------------------------------------------------------------
*/

    var urls = new Object;
    urls['ti_ct'] = "/webapp/hactlpbf/CargoTracking/CargoTracking.jsp?language=en&country=US";
    urls['ti_sce'] = "/webapp/hactlpbf/StorageChargeEnquiry/StorageChargeEnquiry.jsp?language=en&country=US";
    urls['ti_gir'] = thisPath + "guides/default.htm";
    urls['ti_id'] = thisPath + "industrydir/default.htm";
    urls['ti_cal'] = thisPath + "calculators/default.htm";
    urls['ti_forms'] = thisPath + "forms/default.htm";


    var ti_ct_on = new Image();
    var ti_ct_off = new Image();
    var ti_sce_on = new Image();
    var ti_sce_off = new Image();
    var ti_gir_on = new Image();
    var ti_gir_off = new Image();
    var ti_id_on = new Image();
    var ti_id_off = new Image();
    var ti_cal_on = new Image();
    var ti_cal_off = new Image();
    var ti_forms_on = new Image();
    var ti_forms_off = new Image();
    
    ti_ct_on.src = thisPath + "images/common/ti_ct_on.gif";
    ti_ct_off.src = thisPath + "images/common/ti_ct_off.gif";
    ti_sce_on.src = thisPath + "images/common/ti_sce_on.gif";
    ti_sce_off.src = thisPath + "images/common/ti_sce_off.gif";
    ti_gir_on.src = thisPath + "images/common/ti_gir_on.gif";
    ti_gir_off.src = thisPath + "images/common/ti_gir_off.gif";
    ti_id_on.src = thisPath + "images/common/ti_id_on.gif";
    ti_id_off.src = thisPath + "images/common/ti_id_off.gif";
    ti_cal_on.src = thisPath + "images/common/ti_cal_on.gif";
    ti_cal_off.src = thisPath + "images/common/ti_cal_off.gif";
    ti_forms_on.src = thisPath + "images/common/ti_forms_on.gif";
    ti_forms_off.src = thisPath + "images/common/ti_forms_off.gif";

var toolsStr = "";

    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/com_deviderline_left.gif\" WIDTH=\"156\" HEIGHT=\"1\" BORDER=\"0\"></TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/com_tools_hd.gif\" WIDTH=\"156\" HEIGHT=\"12\" BORDER=\"0\" VSPACE=\"5\" ALT=\"Tools\"></TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\">" + genImageTag('ti_ct', chkSection['ti_ct'], clickAble, '156', '12', 'Cargo Tracking') + "</TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"3\" BORDER=\"0\"></TD></TR>";    
    toolsStr += "<TR><TD COLSPAN=\"2\">" + genImageTag('ti_sce', chkSection['ti_sce'], clickAble, '156', '12', 'Storage Charge Enquiry') + "</TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"3\" BORDER=\"0\"></TD></TR>";    
    toolsStr += "<TR><TD COLSPAN=\"2\">" + genImageTag('ti_gir', chkSection['ti_gir'], clickAble, '156', '12', 'Guides & Industry Resources') + "</TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"3\" BORDER=\"0\"></TD></TR>";    
    toolsStr += "<TR><TD COLSPAN=\"2\">" + genImageTag('ti_id', chkSection['ti_id'], clickAble, '156', '12', 'Industry Directories') + "</TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"3\" BORDER=\"0\"></TD></TR>";    
    toolsStr += "<TR><TD COLSPAN=\"2\">" + genImageTag('ti_cal', chkSection['ti_cal'], clickAble, '156', '12', 'Calculators') + "</TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"3\" BORDER=\"0\"></TD></TR>";    
    toolsStr += "<TR><TD COLSPAN=\"2\">" + genImageTag('ti_forms', chkSection['ti_forms'], clickAble, '156', '12', 'Forms') + "</TD></TR>";
    toolsStr += "<TR><TD COLSPAN=\"2\"><IMG SRC=\"" + thisPath + "images/common/com_deviderline_left.gif\" WIDTH=\"156\" HEIGHT=\"1\" BORDER=\"0\" VSPACE=\"5\"></TD></TR>";
        
document.writeln(toolsStr);
//-->
