
// get our flash movie object
var flashMovie;
function init()
{
	if (document.getElementById) 
	{
		flashMovie = document.getElementById("mediaPlayer");
	}
}
// wait for the page to fully load before initializing
window.onload = init;

// for updating the text
function updatePlayer(obj)
{
	var val = $(obj).attr('href');

	$('ul.playlist a.aktiv').removeClass('aktiv');
	$(obj).addClass('aktiv');

	if (flashMovie) 
	{
		flashMovie.changeFile(val);
	}
}

/*
<script type="text/javascript">
   // <![CDATA[
   
	  // get our flash movie object
	  var flashMovie;
	  function init() {
		 if (document.getElementById) {
			flashMovie = document.getElementById("myDynamicContent");
		 }
	  }
	  
	  // wait for the page to fully load before initializing
	  window.onload = init;
	  
	  // for updating the text
	  function updateText(obj) 
	  {
		 var val = $(obj).attr('href');
	 
		 $('ul.playlist a.aktiv').removeClass('aktiv');
		 $(obj).addClass('aktiv');
		 
		 if (flashMovie) 
		 {
			flashMovie.changeTrack(val);
		 }
	  }
	  
   // ]]>
</script>
*/
