  
function stopthemove() {  
document.getElementById("video").style.display = 'none';
document.getElementById("vidImage").style.display = 'block'; 
   }
function playFullScreen(){
/* Check to be sure the player is playing. */
if (document.mediaPlayer.playState == 3) 
	document.mediaPlayer.fullScreen = 'true';
	}
	
function checkBrowser() {
    
	var detect = navigator.userAgent.toLowerCase();

	if (!checkIt('compatible'))
	{
		document.getElementById("Btnfull").style.display = 'none';
	}
	function checkIt(string)
	{
		place = detect.indexOf(string) + 1;
		thestring = string;
		return place;
	}
}
 

var movieName = "flashMovie";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  // First make sure the movie's defined.
  if (typeof(theMovie) != "undefined") {
    // If it is, check how much of it is loaded.
    return theMovie.PercentLoaded() == 100;
  } else {
    // If the movie isn't defined, it's not loaded.
    return false;
  }
}

function playMovie() {
	document.getElementById("vidImage").style.display = 'none';
	document.getElementById("video").style.display = 'block';
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).Play();
    
  }
}

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()
{
	document.getElementById("video").style.display = 'none';
	document.getElementById("vidImage").style.display = 'block'; 
	var flashMovie=getFlashMovieObject(movieName);
	flashMovie.StopPlay();
}
