// The following code was programmed by Joel Dixon and Belinda Cecere of Ladybug Web Design,  2005

var prefix = ["inde", "abou", "ours", "foli", "test", "whyc", "faqs", "cont", "webi", "desi", "muli", "brai"];

// The following code pre-loads all images for the menu bar, to ensure mouse-over changes look seemless

if (document.images)
{
    var norm = new Array();
    var over = new Array();
    var curr = new Array();

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

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

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


var folioPrefix = ["web", "des", "mul", "bra"];

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/btn_" + folioPrefix[i] + "norm.gif";
        folioOver[i] = new Image();
        folioOver[i].src = "images/btn_" + folioPrefix[i] + "over.gif";
    }
}

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

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