
IE4 = (document.all) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
NS6 = (navigator.userAgent.indexOf("Gecko"))>0 ? 1 : 0;
Mac = (navigator.userAgent.indexOf("Mac"))>0 ? 1 : 0;
ver4 = ((IE4 || NS4) && !Mac) ? 1 : 0;
if (ver4) { arPopups = new Array() }

//alert("ie4:"+IE4+" ns4:"+NS4+" ns6:"+NS6+" mac:"+Mac+" ver4:"+ver4);

function setBeginEnd(which,left,top,right,bot) {
arPopups[which] = new Array();
arPopups[which][0] = left;
arPopups[which][1] = top;
arPopups[which][2] = right;
arPopups[which][3] = bot;
}
if (ver4) {
        setBeginEnd(1,2,2,72,72);
        setBeginEnd(2,75,0,149,21);
        setBeginEnd(3,90,22,138,45);
        setBeginEnd(4,87,46,140,83);
        setBeginEnd(5,2,123,139,154);
        setBeginEnd(6,2,157,139,188);
        setBeginEnd(7,2,191,139,222);
        setBeginEnd(8,2,225,139,256);
        setBeginEnd(9,2,259,139,290);
        setBeginEnd(10,2,293,139,324);
        setBeginEnd(11,2,327,139,358);
        setBeginEnd(12,2,361,139,392);
        setBeginEnd(13,2,396,139,427);
        setBeginEnd(14,2,430,139,461);
        setBeginEnd(15,2,464,139,495);
        setBeginEnd(16,2,498,139,529);
        setBeginEnd(17,2,532,139,563);
        setBeginEnd(18,2,566,139,597);
        setBeginEnd(19,2,600,139,631);
        setBeginEnd(20,2,634,139,665);
        setBeginEnd(21,2,668,139,699);
        setBeginEnd(22,2,702,139,733);
        setBeginEnd(23,2,736,139,767);
}
function mapOver(which,on) {
    if (!ver4) { return }
        if (IE4) { whichEl = document.all.rollMenuOver.style }
            else { whichEl = document.rollMenuOver };
        if (!on) { whichEl.visibility = "hidden"; return }
        clLeft  = arPopups[which][0];
        clTop   = arPopups[which][1];
        clRight = arPopups[which][2];
        clBot   = arPopups[which][3];
        if (NS4) {
            whichEl.clip.top = clTop;
            whichEl.clip.bottom = clBot;
            whichEl.clip.left = clLeft;
            whichEl.clip.right = clRight;
        }
        else {
            whichEl.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
        }
        whichEl.visibility = "visible"
    }

