function signalPlayStarted(params) {
	var param = params.split(',');
	var id = param[0];
	var brd = param[1];
	if (id > 0 ) {
		var strUrl = document.location.href.toString();
		if (strUrl.indexOf('#') > 0 ) {
			strUrl = strUrl.substr(0,strUrl.indexOf('#'));
		}
		//document.location.href = strUrl + '#' + id;
		var countImage = new Image();
		countImage.src=zlmUrl+'?brand_id='+brd+'&id='+id+'&type=work&time='+(new Date()).getTime();
	}
}

function vote4song(id,brand,vote) {

	var i=document.createElement('IMG');
	i.style.position='absolute';
	i.style.top='1px';
	i.style.left='1px';
	i.style.display='none';
	i.alt='';
	i.src='/ocen/work,'+parseInt(id)+','+parseInt(vote)+'?t='+(new Date()).getTime();
	document.body.appendChild(i);

}

function addcomment(id) {
	document.location.href = '/odtwarzaj,'+id+'?cmt=1';
}

function play(){
	document.getElementById('flashplayer').extPlay();
}

function playSong(id){
	document.getElementById('flashplayer').extPlayId(id);
	play();
}
