var LASTID = '';
function showContent() {
  $(LASTID).hide();
  $('#wrapper').fadeIn(500);
}

function createFlashMarkup(width,height,uri,replaceid){
  var id = '#'+replaceid;
  LASTID = id;
  var embed = document.createElement('embed');
  embed.setAttribute('width',width);
  embed.setAttribute('height',height);
  embed.setAttribute('src', uri);
  $(id).html(embed);
  window.setTimeout('showContent()', 3000);
}
