IE = (document.all) ? 1 : 0;
NS = (document.layers) ? 1 : 0;
ver4 = (IE || NS) ? 1 : 0;
arPopups = new Array();

    
function setBeginEnd(which,from,to, top, bot) {
        arPopups[which] = new Array();
        arPopups[which][0] = from;
        arPopups[which][1] = to;
        arPopups[which][2] = top;
        arPopups[which][3] = bot;
    }

    if (ver4) {
        setBeginEnd(1,10,70,100, 180);
        setBeginEnd(2,72,150,100, 180);
        setBeginEnd(3,232,343,100, 180);
        setBeginEnd(4,349,500,100, 180);
        setBeginEnd(5,510,619,100, 180);
        setBeginEnd(6,630,800,110, 180);
        setBeginEnd(7,661,712,90, 110);
    }

function mapOver(which,on) {
        if (!ver4) { return };
        if (IE) { whichEl = document.all.elmenuover.style };
            else { whichEl = document.elmenu.document.elmenuover };

        if (!on) { whichEl.visibility = "hidden"; return };

        clLeft = arPopups[which][0];
        clRight = arPopups[which][1];
        clTop = arPopups[which][2];
        clBot = arPopups[which][3];
		
	if (NS) {
            whichEl.clip.left = clLeft;
            whichEl.clip.right = clRight;
	}
	else {
            whichEl.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
	}

        whichEl.visibility = "visible" 
}
