function getFlashObj(movie)
{
  if (window.document[movie]) 
  {
      return window.document[movie];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movie])
      return document.embeds[movie]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movie);
  }
}

function getDimensions() {
	var movieObj = getFlashObj("detectme");
	var width = movieObj.TGetProperty("/", 8);
	var height= movieObj.TGetProperty("/", 9);
	alert("The current dimensions for the Flash Object (detectme) are "+width+" in width and "+height+" in height.");
}
