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);
  }
}

$(document).ready(function() {   

  $('#replay').click(function() {
      var video = getFlashMovieObject("video");
      video.Play();
      t=setTimeout(function() {video.Play();},100);
      return false;
  })

  $('a#btn_lubadus').click(function() {

    $("div#lubadus").slideToggle("normal");
    
    return false;

  })
  
  $('#fieldpromise').click(function() {
    $("div#lubadus").slideToggle("normal");
  })

  $('div#lubadus a').click(function() {

    $("div#lubadus").slideToggle("normal");
    
    $("#promise").attr("value", $(this).attr("href"));
    
    $("#fieldpromise").attr("value", $(this).html());

    return false;

  })

});


