var swfVersion = 6;
var swfIdx = 0;

// Standardparameter
var swfPlayerStd = "/include/config/mp3player.swf";
var swfQualityStd = "high";
var swfWmodeStd = "transparent";
var swfScaleStd = "showall";
var swfLifeConnect = "false";

function PrintFlashPlayerDefault (sFileName, sFileTitle)
{
	PrintFlashPlayer (swfPlayerStd, sFileName, sFileTitle, 164, 32, "", swfWmodeStd, swfQualityStd, swfScaleStd, swfLifeConnect);
}

function PrintFlashPlayer (swfPlayer, sFileName, sFileTitle, nWidth, nHight, sAltImg, sWmode, sQuality, sScale, swLifeConnect)
{
	swfIdx++;
	var swfId = "mp3player_" + swfIdx; // id des FlashFilm

	if (DetectFlashVer(swfVersion))
	{
		var ns6 = (!document.all && document.getElementById);
		var ie4 = (document.all);
		var ns4 = (document.layers);
		if(ns6||ns4)
		{
				document.write("<embed src='" + swfPlayer + "' FlashVars='mp3file=" + sFileName + "&mp3title=" + sFileTitle + "' quality='" + sQuality + "' scale='" + sScale + "' swLifeConnect='" + swLifeConnect + "' wmode='" + sWmode + "' width='" + nWidth + "' height='" + nHight + "' type='application/x-shockwave-flash'><\/embed>");		
		}
		else if(ie4)
		{
			if(navigator.platform=="Win32")
			{
				document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='" + nWidth + "' height='" + nHight + "' ID='" + swfId + "'>");
				document.write("<PARAM NAME=movie VALUE='" + swfPlayer + "'>");
				document.write("<PARAM NAME=FlashVars VALUE='mp3file=" + sFileName + "&mp3title=" + sFileTitle + "'>");
				document.write("<PARAM NAME=quality VALUE='" + sQuality + "'>");
				document.write("<PARAM NAME=wmode VALUE='" + sWmode + "'>");
				document.write("<PARAM NAME=scale VALUE='" + sScale + "'>");
				document.write("<\/object>");
			}
			else
			{
				document.write("<embed src='" + swfPlayer + "' FlashVars='mp3file=" + sFileName + "&mp3title=" + sFileTitle + "' quality='" + sQuality + "' scale='" + sScale + "' swLifeConnect='" + swLifeConnect + "' wmode='" + sWmode + "' width='" + nWidth + "' height='" + nHight + "' type='application/x-shockwave-flash'><\/embed>");
			}
		}
	}
}
