function UnCryptMailto( s )
{
    var n = 0;
    var r = "";
    for( var i = 0; i < s.length; i++)
    {
        n = s.charCodeAt( i );
        if( n >= 8364 )
        {
            n = 128;
        }
        r += String.fromCharCode( n - 1 );
    }
    return r;
}

function linkTo_UnCryptMailto( s )
{
    location.href=UnCryptMailto( s );
}

function stop_music(id) {
	
	data = document.getElementById(id).getAttribute('data');
	
	to_stop = new Array('audio01','audio02','audio03','audio04','audio05','audio06','audio07','audio08','footer_audio');
	
	for (var i = 0; i < to_stop.length; ++i) {
		if (window.document.getElementById(to_stop[i]) && to_stop[i] != id) {
		    var filmchen = document.createAttribute("data");
			filmchen.nodeValue = document.getElementById(to_stop[i]).getAttribute('data');
			document.getElementById(to_stop[i]).setAttributeNode(filmchen);
		}
	}
	if (id == 'footer_audio') {
		document.getElementById('params_footer').value = 'playlist=playlist.xml&amp;autostart=yes';
	} else {
		document.getElementById('params_footer').value = 'playlist=playlist.xml&amp;autostart=no';
	}
		
}

  function findeFlash (flash) {
    if (document.all) {
      if (document.all[flash]) {
        return document.all[flash];
      }
      if (window.opera) {
        var movie = eval(window.document + flash);
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if(document.layers) {
      if(document.embeds) {
        var movie = document.embeds[flash];
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if (!document.getElementById) {
      return;
    }
    var movie = document.getElementById(flash);
    if (movie.SetVariable) {
      return movie;
    }
    var movies = movie.getElementsByTagName('embed');
    if (!movies || !movies.length) {
      return;
    }
    movie = movies[0];
    if (movie.SetVariable) {
      return movie;
    }
    return;
  }
  
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);
  }
}
