var folioPrefix = ["webi", "desi", "muli", "brai"];

if (document.images)
{
    var folioNorm = new Array();
    var folioOver = new Array();

    for (i = 0; i < folioPrefix.length; i++)
    {
        folioNorm[i] = new Image();
        folioNorm[i].src = "../images/" + folioPrefix[i] + "norm.jpg";
        folioOver[i] = new Image();
        folioOver[i].src = "../images/" + folioPrefix[i] + "over.jpg";
    }
}

// The following method changes the image of the button the mouse is over

function swapBtn(btnNum, state)
{
    switch (state)
    {
        case 'norm':
            document.images[folioPrefix[btnNum]].src = folioNorm[btnNum].src;
            break;
        case 'over':
            document.images[folioPrefix[btnNum]].src = folioOver[btnNum].src;
            break;
    }
}

