function exp_coll(ind)

{
 s = document.getElementById("sp_" + ind);
 i = document.getElementById("im_" + ind);
 i2 = document.getElementById("im2_" + ind);
 if (s.style.display == 'none')
 {
   s.style.display = 'block';
   i.src = "images/minus.gif";
   i2.src = "images/folder.gif";
 }
 else if (s.style.display == 'block')
 {
   s.style.display = 'none';
   i.src = "images/plus.gif";
   i2.src = "images/folder.gif";
 }
}

function exp(ind)
{
 s = document.getElementById("sp_" + ind);
 i = document.getElementById("im_" + ind);
 i2 = document.getElementById("im2_" + ind);
 if (!(s && i && i2)) return false;
 s.style.display = 'block';
 i.src = "images/minus.gif";
 i2.src = "images/folder.gif";
}

function coll(ind)
{
 s = document.getElementById("sp_" + ind);
 i = document.getElementById("im_" + ind);
 i2 = document.getElementById("im2_" + ind);
 if (!(s && i && i2)) return false;
 s.style.display = 'none';
 i.src = "images/plus.gif";
 i2.src = "images/folder.gif";
}

function coll_all()
{

 coll(0);
 coll(1);
 coll(2);
 coll(3);
 coll(4);
 coll(5);
 coll(6);
 coll(7);
 coll(8);
 coll(9);
 coll(10);
 coll(11);
 coll(12);
 coll(13);
 coll(14);
 coll(15);
}

function exp_all()
{

 exp(0);
 exp(1);
 exp(2);
 exp(3);
 exp(4);
 exp(5);
 exp(6);
 exp(7);
 exp(9);
 exp(8);
 exp(10);
 exp(11);
 exp(12);
 exp(13);
 exp(14);
 exp(15);
}
