﻿<!--
/*
 File		: specialatoz.js

 Purpose    : Generate the A to Z menu for special handling codes pages in guides and resources
 
 Functions  : 

 Modification History :
 
 Version    Date            By              Description
 -----------------------------------------------------------------------
 1st        2002-05-13     Vivian Au        First Version
 -----------------------------------------------------------------------
*/

//the object for storing the links for Special handling codes pages in guides and resources
    var urls = new Object;
    urls['atoc'] = "specialhandling_atoc.htm";
    urls['dtoe'] = "specialhandling_dtoe.htm";
    urls['ftoh'] = "specialhandling_ftoh.htm";
    urls['itom'] = "specialhandling_itom.htm";
    urls['ntop'] = "specialhandling_ntop.htm";
    urls['qtos'] = "specialhandling_qtos.htm";
    urls['ttow'] = "specialhandling_ttow.htm";
    urls['xtoz'] = "specialhandling_xtoz.htm";
        

//the variable "specialSection" is defined in each page
    var chkSection = new Object;
    chkSection[specialSection] = true;

//define the images for rollover function   
    var atoc_on = new Image();
    var atoc_off = new Image();
    var dtoe_on = new Image();
    var dtoe_off = new Image();
    var ftoh_on = new Image();
    var ftoh_off = new Image();
    var itom_on = new Image();
    var itom_off = new Image();
    var ntop_on = new Image();
    var ntop_off = new Image();
    var qtos_on = new Image();
    var qtos_off = new Image();
    var ttow_on = new Image();
    var ttow_off = new Image();
    var xtoz_on = new Image();
    var xtoz_off = new Image();
    
    atoc_on.src = thisPath + "images/guides/g_a-c_on.gif";
    atoc_off.src = thisPath + "images/guides/g_a-c_off.gif";
    dtoe_on.src = thisPath + "images/guides/g_d-e_on.gif";
    dtoe_off.src = thisPath + "images/guides/g_d-e_off.gif";
    ftoh_on.src = thisPath + "images/guides/g_f-h_on.gif";
    ftoh_off.src = thisPath + "images/guides/g_f-h_off.gif";
    itom_on.src = thisPath + "images/guides/g_i-m_on.gif";
    itom_off.src = thisPath + "images/guides/g_i-m_off.gif";
    ntop_on.src = thisPath + "images/guides/g_n-p_on.gif";
    ntop_off.src = thisPath + "images/guides/g_n-p_off.gif";
    qtos_on.src = thisPath + "images/guides/g_q-s_on.gif";
    qtos_off.src = thisPath + "images/guides/g_q-s_off.gif";
    ttow_on.src = thisPath + "images/guides/g_t-w_on.gif";
    ttow_off.src = thisPath + "images/guides/g_t-w_off.gif";
    xtoz_on.src = thisPath + "images/guides/g_x-z_on.gif";
    xtoz_off.src = thisPath + "images/guides/g_x-z_off.gif";

//genImageTag is in common.js
    var specialStr = "";

    specialStr += genImageTag('atoc', chkSection['atoc'], clickAble, '68', '29', 'A - C');
    specialStr += genImageTag('dtoe', chkSection['dtoe'], clickAble, '68', '29', 'D - E');
    specialStr += genImageTag('ftoh', chkSection['ftoh'], clickAble, '68', '29', 'F - H');
    specialStr += genImageTag('itom', chkSection['itom'], clickAble, '68', '29', 'I - M');
    specialStr += genImageTag('ntop', chkSection['ntop'], clickAble, '68', '29', 'N - P');
    specialStr += genImageTag('qtos', chkSection['qtos'], clickAble, '68', '29', 'Q - S');
    specialStr += genImageTag('ttow', chkSection['ttow'], clickAble, '68', '29', 'T - W');
  
document.write(specialStr);

//-->
