getAttribute on IE9
<p>This works on all browser except IE9, getAttribute return null on IE9, any ideas</p>

<pre><code>function getFlashMovieObject(movieName){
    if(document.embeds[movieName])
      return document.embeds[movieName];
    if(window.document[movieName])
      return window.document[movieName];
    if(window[movieName])
      return window[movieName];
    if(document[movieName])
      return document[movieName];
}

function ChangePlaylist(newval,mymovievarmp3){
    var mp3Player = getFlashMovieObject(mymovievarmp3);
    var newstring = mp3Player.getAttribute('data');
    var broken = new Array();
    broken = newstring.split('?');
    mp3Player.setAttribute('data',broken[0]+'?'+broken[1]+'?'+newval)
}
</code></pre>

<p>Using JQuery but still does not work</p>

<pre><code>    var mp3Player = getFlashMovieObject(mymovievarmp3);
    var newstring = $("#mp3Player ").data("data");
</code></pre>
