var strippos = 0;

function hove(objbtn)
{
    var imgfile = "";
    imgfile = objbtn.src;
    objbtn.src = imgfile.replace("0", "1");
}
function hout(objbtn)
{
    var imgfile = "";
    imgfile = objbtn.src;
    objbtn.src = imgfile.replace("1", "0");
}
function striup()
{
    if (strippos + 6 < arrGal.length)
    {
        strippos += 1;
        reposstrip();        
    }
}
function stridown()
{
    if (strippos > 0)
    {
        strippos -= 1;
        reposstrip();
    }
}
function reposstrip()
{
    document.getElementById("strplace1").src = arrGal[strippos];
    document.getElementById("strplace2").src = arrGal[strippos + 1];
    document.getElementById("strplace3").src = arrGal[strippos + 2];
    document.getElementById("strplace4").src = arrGal[strippos + 3];
    document.getElementById("strplace5").src = arrGal[strippos + 4];
    document.getElementById("strplace6").src = arrGal[strippos + 5];
}
function pichove(objind)
{
    document.getElementById("strplace1").style.border = '3px solid white;';
    document.getElementById("strplace2").style.border = '3px solid white;';
    document.getElementById("strplace3").style.border = '3px solid white;';
    document.getElementById("strplace4").style.border = '3px solid white;';
    document.getElementById("strplace5").style.border = '3px solid white;';
    document.getElementById("strplace6").style.border = '3px solid white;';
    document.getElementById("strplace" + objind).style.border = '3px solid red;';
}
function pichout(objind)
{
    document.getElementById("strplace" + objind).style.border = '3px solid white;';
}
function picselect(objind)
{
    var tmpind = objind;
    tmpind = tmpind - 1;
    tmpind = tmpind + strippos;
    var picfile = "";
    picfile = arrGal[tmpind];
    picfile = picfile.replace("thumbs/", "");
    document.getElementById("picondisplay").src = picfile;
}
