// JavaScript Document


var movieName = "menu";

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]
  }
}

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 playmovie( co ) {
 // thisMovie(movieName).LoadMovie(0,"pouziti_main.swf");
 //thisMovie(movieName).SetVariable("/:myaction", 3 );
 SendDataToFlashMovie( co );
 thisMovie(movieName).Play(); 
}

function SendDataToFlashMovie( hodnota )
{
     var flashMovie=getFlashMovieObject(movieName);
     flashMovie.SetVariable("/:message", hodnota );
}
