function newImage(arg)
{
  if (document.images)
  {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImage()
{
  if (document.images && (preloadFlag == true))
  {
    if ( document[ 'Photo' ].filters != null )
      document[ 'Photo' ].filters[0].Apply();
    document[ 'Photo' ].src = changeImage.arguments[0];
    if ( document[ 'Photo' ].filters != null )
      document[ 'Photo' ].filters[0].Play();
  }
}

FamilyPictures = new Array (3);

FamilyPictures[0] = "Family.jpg";
FamilyPictures[1] = "Family1.jpg";
FamilyPictures[2] = "Family2.jpg";

function restoreImage()
{
  if ( MouseOverLink )
    return;

  if (document.images && (preloadFlag == true))
  {
    if ( document[ 'Photo' ].filters != null )
      document[ 'Photo' ].filters[0].Apply();

    family_picture_index = Math.floor ( (FamilyPictures.length - 0.01) * Math.random () );
    document[ 'Photo' ].src = FamilyPictures[ family_picture_index ];

    if ( document[ 'Photo' ].filters != null )
      document[ 'Photo' ].filters[0].Play();
  }
}

function mouseIn()
{
  MouseOverLink = true;
  changeImage( mouseIn.arguments[0] );
}

function mouseOut()
{
  MouseOverLink = false;
  window.setTimeout( "restoreImage( )", 500 );
}

