function PlayFlash(Movie_Source,Movie_ID,Movie_Style)
{
	
	var Text="";
	if (typeof(Movie_Source))
	{
		var MovieSrc;	
		var MovieID;
		var MovieStyle	
		
		MovieSrc=Movie_Source;
		
		if (!Movie_ID || Movie_ID=="")
		{
			MovieID = "Movie_" + Flash_ID;
			Flash_ID ++;
		}	
		else
		{
			MovieID = Movie_ID;
		}
		
		if (!Movie_Style || Movie_Style=="")
		{			
			MovieStyle = "";
		}	
		else
		{
			MovieStyle = Movie_Style;
		}
		
			
		Text = Text + "<object  style='"+ MovieStyle + "' ID='" + MovieID + "' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' VIEWASTEXT>";			
		Text = Text + "<param id = 'Movie1' name='SRC' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' value = '"+ MovieSrc + "'>";
		Text = Text + "<param name=wmode value=transparent>";	
		Text = Text + "<param name='MouseEventsEnabled' value='1'>";
		Text = Text + "<embed src='" + MovieSrc + "'" ;
		Text = Text + "quality=high   width=100%  height=100%   swLiveConnect=true";
		Text = Text + "  type='application/x-shockwave-flash' ";  
		Text = Text + " pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'";
		Text = Text + "  wmode='transparent'>";
		Text = Text + "  </embed>";	
		Text = Text + "</object>";
		
	}	
	else
	{
		Text = "Function 'PlayFlash' not set ! <b>Please</b> send the correct parameters";
	
		
	}
	
	return Text;	
}

function Play_Flash(Element,Text)
{
	
	document.getElementById(Element).innerHTML = Text;
}


