var movieName = "main2" ;
function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
 // alert(typeof(parent.frames['top'].document[movieName]))
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
	return window[movieName]
  //  return parent.frames['top'].window.document[movieName]
  }	else {
    return document[movieName]
  }
 /* if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return document[movieName]
  }	else {
    return document[movieName]
  }*/
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}

function playmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).Play();
  }
}

function stopmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).StopPlay();
  }
}


function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(theFrame);
  }
}
function getLangue() {
  if (movieIsLoaded(thisMovie(movieName))) {
   var lg = thisMovie(movieName).GetVariable("_level0:currentLg") ;
   //alert("langue :"+lg) ;
   return lg ;
  }
}
