﻿<!--
/*
 File		: airAtoZ.js

 Purpose    : Generate the A to Z images and links for Airline Directory pages 
 
 Functions  : 

 Modification History :
 Version    Date            By              Description
 -----------------------------------------------------------------------
 1st        2002-05-31     Vivian Au        First Version
 -----------------------------------------------------------------------
*/
    air = new Array('d', 'i', 'l', 'n', 'o', 'q', 'u', 'w', 'y', 'z');

    var atozStr = "";

    var notClickAble = new Object;
    for (a = 0; a < air.length; a++) {
        notClickAble[air[a]] = true;
    }

    var alpObj = new Object;  
    var tmpLink; 
//genAtoZImage is in common.js
    for (a = 97; a < 123; a++) {
        var thisAlp = String.fromCharCode(a);
        tmpLink = "airdir_" + thisAlp + ".htm";
        alpObj[thisAlp] = new Image();
        if (notClickAble[thisAlp]) {
            alpObj[thisAlp].src = thisPath + "images/common/" + thisAlp + "_off.gif";
        } else {
            alpObj[thisAlp].src = thisPath + "images/common/" + thisAlp + ".gif";
        }
        atozStr += genAtoZImage(alpObj[thisAlp].src, tmpLink, notClickAble[thisAlp], '19', '18', thisAlp.toUpperCase());
        atozStr += "<IMG SRC=\"" + "/en/images/common/blank.gif\" WIDTH=\"2\" HEIGHT=\"1\" BORDER=\"0\">";
    }

document.write(atozStr);
//-->
