lay();
}

function onPosition(position,duration) {
  document.forms['mediaTime'].mediaPosition.value = position;
  document.forms['mediaTime'].mediaDuration.value = duration;
}
function onState(message) {
  document.getElementById("videoStatus").innerHTML += "switching state to "+ message + "<br />";
}
function onSwitch(message) {
  document.getElementById("videoStatus").innerHTML += "switching level to "+ message + "<br />";
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName])
  {