var id_cont = 0;

function isIE() {
  var strBrowser = navigator.userAgent.toLowerCase();
  return (strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0);
}

function startFix() {
    if (isIE()) {
        document.write('<div style="display: none;" id="flash_div_'+id_cont+'">');
   }
}

function endFix() {
    if (isIE()) {
        document.write('</div>');
        document.getElementById('flash_div_'+id_cont).outerHTML = document.getElementById('flash_div_'+id_cont).innerHTML;
		id_cont++;
    }
}

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);
  }
}
