var hi = null;
var lo = null;

if (document.images) {
    // Image Arrays
    hi = new Array(3);
    lo = new Array(3);
}

// Preload images
for (var j = 0; j < 3; j++) {
    if (j == 0) {
        lo[j] = new Image;
        lo[j].src = "Pix/mll.jpg";
        hi[j] = new Image;
        hi[j].src = "Pix/mhl.jpg";
    }
    else if (j == 1) {
        lo[j] = new Image;
        lo[j].src = "Pix/mle.jpg";
        hi[j] = new Image;
        hi[j].src = "Pix/mhe.jpg";
    }
    else if (j == 2) {
        lo[j] = new Image;
        lo[j].src = "Pix/mlc.jpg";
        hi[j] = new Image;
        hi[j].src = "Pix/mhc.jpg";
    }
}

// -----------------
// Menu bar hiliting
// -----------------
function hilite(num)
{
    // Set the correct index into the document image array
    var idx = 0;

    if (num == 1) {
        self.status = "Prevodilacke Usluge Stojanovic";
        idx = 4;
    }
    else if (num == 2) {
        self.status = "Stojanovic Translating Services";
        idx = 6;
    }
    else if (num == 3) {
        self.status = "Prevodilacke Usluge Stojanovic";
        idx = 9;
    }
    document.images[idx].src = hi[num - 1].src;
}

function unhilite(num)
{
    // Set the correct index into the document image array
    var idx = 0;

    if (num == 1) {
        idx = 4;
    }
    else if (num == 2) {
        idx = 6;
    }
    else if (num == 3) {
        idx = 9;
    }

    self.status = "";

    document.images[idx].src = lo[num - 1].src;
}

