var arrT = new Array(0,0,0);
var arrSweat = new Array(0,0,0);
var arrLs = new Array(0,0,0);
var arrHoodsweat = new Array(0,0,0);

function update(strType) {
    //NOTE: strType is both a string used in image file names AND
    //      the ID of the button to highlight.

    //set images surrounding the product thumbnail to the correct type:
    document.displaytop.src    = 'shirts/wh_' + strType + '_top.jpg';
    document.displayleft.src   = 'shirts/wh_' + strType + '_left.jpg';
    document.displayright.src  = 'shirts/wh_' + strType + '_right.jpg';
    document.displaybottom.src = 'shirts/wh_' + strType + '_bot.jpg';

    //set color swatch visibility
    var arrTemp
    if (strType =='t')
    {
        arrTemp = arrT
    }
    else if (strType == 'ls')
    {
        arrTemp = arrLs
    }
    else if (strType == 'sweat')
    {
        arrTemp = arrSweat
    }
    else if (strType == 'hoodsweat')
    {
        arrTemp = arrHoodsweat
    }

}//update

var arrT = new Array(0,0,0);
var arrSweat = new Array(0,0,0);
var arrLs = new Array(0,0,0);
var arrHoodsweat = new Array(0,0,0);

function updateblk(strType) {
    //NOTE: strType is both a string used in image file names AND
    //      the ID of the button to highlight.

    //set images surrounding the product thumbnail to the correct type:
    document.displaytop.src    = 'shirts/blk_' + strType + '_top.jpg';
    document.displayleft.src   = 'shirts/blk_' + strType + '_left.jpg';
    document.displayright.src  = 'shirts/blk_' + strType + '_right.jpg';
    document.displaybottom.src = 'shirts/blk_' + strType + '_bot.jpg';

    //set color swatch visibility
    var arrTemp
    if (strType =='t')
    {
        arrTemp = arrT
    }
    else if (strType == 'ls')
    {
        arrTemp = arrLs
    }
    else if (strType == 'sweat')
    {
        arrTemp = arrSweat
    }
    else if (strType == 'hoodsweat')
    {
        arrTemp = arrHoodsweat
    }

}//update