// JavaScript Document


function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

/////////////////////////////////////////////////////////////////////////

function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

function StopFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	flashMovie.StopPlay();
}

function RewindFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	flashMovie.Rewind();
}


// for Shanett
function PlayFlashMovie2()
{
	var flashMovie=getFlashMovieObject("myFlashMovie2");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

function StopFlashMovie2()
{
	var flashMovie=getFlashMovieObject("myFlashMovie2");
	flashMovie.StopPlay();
}

function RewindFlashMovie2()
{
	var flashMovie=getFlashMovieObject("myFlashMovie2");
	flashMovie.Rewind();
}


// for Amish
function PlayFlashMovie3()
{
	var flashMovie=getFlashMovieObject("myFlashMovie3");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

function StopFlashMovie3()
{
	var flashMovie=getFlashMovieObject("myFlashMovie3");
	flashMovie.StopPlay();
}

function RewindFlashMovie3()
{
	var flashMovie=getFlashMovieObject("myFlashMovie3");
	flashMovie.Rewind();
}


// for Fred
function PlayFlashMovie4()
{
	var flashMovie=getFlashMovieObject("myFlashMovie4");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

function StopFlashMovie4()
{
	var flashMovie=getFlashMovieObject("myFlashMovie4");
	flashMovie.StopPlay();
}

function RewindFlashMovie4()
{
	var flashMovie=getFlashMovieObject("myFlashMovie4");
	flashMovie.Rewind();
}