// JavaScript Document

var numOfPics = 4;

function setDisplay( whichLayer, hideShow )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = hideShow;
}

function hideAllPics()
{
	var hideThisOne;
	for(x = 1; x <= numOfPics; x++)
	{
		hideThisOne = 'pic' + x;
		setDisplay(hideThisOne, 'none');
	}
}

function showPicture(whichPicture)
{
	hideAllPics();
	setDisplay(whichPicture,'block');
}