// 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 StopFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	flashMovie.StopPlay();
}

function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}
Hmove=-900;
function moveObjRight(obj)
{   
 elem = document.getElementById("JS");
 elem.style.left=Hmove+"px";
    Hmove+=20;
    if(Hmove<100) {
       window.setTimeout("moveObjRight();", 0);
  } else {
  PlayFlashMovie();
  Hmove-=20;
  }
}
function moveObjLeft(obj) {
    elem = document.getElementById("JS");
 elem.style.left=Hmove+"px";
    Hmove-=20;
    if(Hmove>-900) {
       window.setTimeout("moveObjLeft();", 0);
  }
}
