function cambia_div(ind,dir)
{
cat=document.getElementById("cat_contr_"+ind);
img=document.getElementById("img_contr_"+ind);
if(cat.style.display=='none')
{
cat.style.display='block';
img.src=dir+"/up.gif";
}
else if(cat.style.display=='block')
{
cat.style.display='none';
img.src=dir+"/down.gif";
}
}

