function changePic (num,loc,pic,tot)
{
var i=1;
for (i=1;i<=tot;i++)
{
var div="photo" + i;
var img=i + ".gif";
document.getElementById(div).style.backgroundImage="url(../images/" + img + ")";
}
div="photo" + num;
img=num + "-.gif";
document.getElementById(div).style.backgroundImage="url(../images/" + img + ")";
document.getElementById("textswap").style.backgroundImage="url(../images/" + loc + "/" + pic + ")";
}

function menup (men,gif)
{
document.getElementById(men).style.overflow="hidden";
document.getElementById(men).style.backgroundImage="url(../images/" + gif + ".gif)";
}

function mendown (men,gif)
{
document.getElementById(men).style.overflow="visible";
document.getElementById(men).style.backgroundImage="url(../images/" + gif + "-.gif)";
}

function homemenup (men,gif)
{
document.getElementById(men).style.overflow="hidden";
document.getElementById(men).style.backgroundImage="url(images/" + gif + ".gif)";
}

function homemendown (men,gif)
{
document.getElementById(men).style.overflow="visible";
document.getElementById(men).style.backgroundImage="url(images/" + gif + "-.gif)";
}

function hoveropen (loc)
{
document.getElementById(loc).style.display="block";}

function hoverclose (loc)
{
document.getElementById(loc).style.display="none";
}

