function FlashPlayer()
{
	this.id;
	this.width;
	this.height;
	this.path;
	this.skinType;
	this.song;
	this.index;
	
	this.buildPlayer = function( parentEl )
	{
		flash_NewFlashComponet(parentEl, this);		
	};

	this.play = function()
	{
		masterConf.actualizarUrl();	
		
		if( !document.getElementById(this.id).createPlayer )
		{
			  tryAgain(this)
		}
		else
		{
			  document.getElementById(this.id).createPlayer(this.song, this.skinType, this.index);
		};
	};
};

function tryAgain(flashObj)
{
      var timeOutFx = function()
      {
            if( !document.getElementById(flashObj.id).createPlayer )
            {
                  alert("escoge una canción para escuchar");
            }
            else
            {
                  document.getElementById(flashObj.id).createPlayer(flashObj.song, flashObj.skinType, flashObj.index);
            };
      };
      window.setTimeout( timeOutFx, 1500 );
};

