podrias cambiar la esta funcion
Código PHP:
function ExpandAll ()
{
if (tm1.style.display == "none" ) {
tm1.style.display = "";
m1.src = Img2.src;
tm2.style.display = "";
m2.src = Img2.src;
tm3.style.display = "";
m3.src = Img2.src;
tm4.style.display = "";
m4.src = Img2.src;
tm5.style.display = "";
m5.src = Img2.src;
}
else
{
tm1.style.display = "none";
m1.src = Img2.src;
tm2.style.display = "none";
m2.src = Img2.src;
tm3.style.display = "none";
m3.src = Img2.src;
tm4.style.display = "none";
m4.src = Img2.src;
tm5.style.display = "none";
m5.src = Img2.src;
}
}