function toggleHorseLayer(whichLayer,offlayer,offlayer2,offlayer3) //on stable horse info page
{
  
  var elem, vis, off, visoff, off2, visoff2, off3, visoff3;

  if(document.getElementById) {// this is the way the standards work
    elem = document.getElementById(whichLayer);
	off = document.getElementById(offlayer);
	off2 = document.getElementById(offlayer2);
	off3 = document.getElementById(offlayer3);
  }
  else if(document.all) {// this is the way old msie versions work
      elem = document.all[whichLayer];
	  off = document.all[offlayer];
  	  off2 = document.all[offlayer2];
	   off3 = document.all[offlayer3];
  }
  else if(document.layers) {// this is the way nn4 works
    elem = document.layers[whichLayer];
	off = document.layers[offlayer];
	off2 = document.layers[offlayer2];
	off3 = document.layers[offlayer3];
  }
  
  vis = elem.style;
  visoff = off.style;
  visoff2 = off2.style;
  visoff3 = off3.style;
 
  vis.display = 'block';
  visoff.display = 'none';
  visoff2.display = 'none';
   visoff3.display = 'none';

}
