function playFlv(flvFile, id){
	var url='/Plugins/Video/'+flvFile;
	if (typeof(id) == 'undefined'){ id='player';}

	var avatar=document.getElementById(id).parentNode;
	var div=document.createElement('div');
	div.className='player-controls';
	var imgPlay=document.createElement('img');
	imgPlay.setAttribute('src', '/Templates/flowplayer/player-play.gif');
	imgPlay.className='player-play';
	imgPlay.setAttribute('onclick', '$f().play();');
	var imgStop=document.createElement('img');
	imgStop.setAttribute('src', '/Templates/flowplayer/player-stop.gif');
	imgStop.className='player-stop';
	imgStop.setAttribute('onclick', '$f().pause();');
	div.appendChild(imgPlay);
	div.appendChild(imgStop);
	avatar.appendChild(div);

	flowplayer(id, {
		src:"/Templates/flowplayer/flowplayer.commercial-3.1.5.swf",
		wmode:"transparent"
			
	},{
		key:"#$78570d460102522514a",
		clip:{
			autoPlay: true, 
			url: url
		}, 
		canvas:{ 
			backgroundGradient: 'none'
		},
		play:{ 
			width:"50px",
			height:"50px"
		},
		plugins:{ 
			controls: null
		}
	});
}

