// Slideshow function
function slideit()
{
	//if browser does not support the image object, exit.
	if (!document.images)
	{
		return;
	}

	if (scroll == "yes")
	{
		document.images.slideshow.src=eval("image"+step+".src");

		if (step < num_slides)
		{
			step++;
		}
		else
		{
			step=1;
		}
	}
	//call function 'slideit()' every at the set time interval milliseconds
	setTimeout("slideit()", slide_time);
}
function fixHeight (els) {
// height of viewport
  var y;
  y = Math.max(document.body.scrollHeight,
               document.body.offsetHeight,
               document.documentElement.scrollHeight);

  for (var i=0;i<els.length;i++) {
  	eH = els[i].offsetHeight;
	y = Math.max(eH,y);
  }

  for (i=0;i<els.length;i++) {
  	els[i].style.height = y + 'px';
  }
}
function init() {
	fixHeight (document.getElementById('container'));
}
window.onload = init;
