		// This function returns the appropriate reference,
// depending on the browser.

	
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);
  }
}

		

	
	function playN(sound) {

//   alert("vuvu");
   var el = getFlashMovieObject("vuvu");
	 //alert(el);
	 //alert(sound);
   el.playN(sound);
 
  }
  
 
 
function addVuvuFlash(file, width, height, vars, langId, menu, bgColor, trans)
{
//	el = getFlexApp("vuvu");
	if(getFlashVersion() >= 9)
	{
		document.write("<object id='vuvu' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"  + width + "' height='" + height + "' align='middle' style='vertical-align:text-top;margin:0;'>");
		document.write("<param name='allowScriptAccess' value='sameDomain' />");
	  document.write(((trans) ? "<param name='wmode' value='transparent' />":""));
		document.write("<param name='FlashVars' value='" + vars + "'/>");
		document.write("<param name='scale' value='noscale' />");
		document.write("<param name='Menu' value='" + menu + "'/>");
		document.write("<param name='quality' value='best' />");
		document.write("<param name='bgcolor' value='" + bgColor + "' />");
		document.write("<param name='movie' value='flash/" + file + ".swf?" + vars + "'/>");
		document.write("<embed name='vuvu' src='flash/" + file + ".swf?" + vars + "' FlashVars='" + vars + "' quality='best'  bgcolor='" + bgColor + "' width='" + width + "' height='" + height + "' name='" + file + "' menu='" + menu + "' align='middle' allowScriptAccess='sameDomain' " + ((trans) ? "wmode='transparent'" : "") + " type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' scale='noscale' />");
		document.write("</object>");
	}
	else
	{
		document.write("<br /><br />Um diese Eigenschaft benutzen zu können, benötigen Sie den <b>Flash-Player</b> in Version 8.0 oder höher.");
		document.write(" Die aktuellste Version des <b>Flashplayers</b> können Sie kostenlos bei <a href='http://www.adobe.com/de/products/flashplayer/'>Adobe</a> herunterladen.<br /><br />");
		document.write("<center><a href='http://www.adobe.com/de/products/flashplayer/'><img src='/im/ftrb/getfl.jpg' border='0'></a></center>");
	}
}
