// JavaScript Document

// Gallery script.
// With image cross fade effect for those browsers that support it.
// Script copyright (C) 2004 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.
function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
  var picture = document.getElementById(pictureName);
  if (picture.filters)
  {
    picture.style.filter="blendTrans(duration=1)";
    picture.filters.blendTrans.Apply();
  }
  picture.src = imageFile;
  if (picture.filters)
  {
    picture.filters.blendTrans.Play();
  }
  document.getElementById(titleCaption).innerHTML=captionText;
}


/*********************************************************************************/
var oldID = 'pic1';

function makeCurrent(newpic) {
	document.getElementById(oldID).className = '';
	oldID = document.getElementById(newpic).id;	
	document.getElementById(newpic).className='current';
}

/*********************************************************************************/

