
function addSong(_divid, _songname, _name, _bandname)
{
	var flashvars = {name:_name, band:_bandname, songName:_songname};
	var params = {menu:"false", wmode:"transparent", allowScriptAccess:"always"};
	var attributes = {id:_songname , name:_songname};

    swfobject.embedSWF("playbutton.swf", ""+ _divid +"", "30", "22", "8.0.0", "expressInstall.swf", flashvars, params, attributes);
}
		
		var currentSong = "";
		
		function stopCurrentSong(newSong)
		{
	
		var t = getFlashMovieObject(currentSong);
		if(t)
		{
		
		if(newSong != currentSong)
		{
		t.stopPlaying();
		}
		
		} else
		{
		
		}
		currentSong = newSong;
}
		
	
function getFlashMovieObject(movieName)
{
	if (window.document[movieName])
	{
	
	return window.document.getElementById(movieName);
	}
	
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : window.document.getElementById(movieName);
}
function onPollResize(divid, newW, newH)
{
   getFlashMovieObject(divid).style.height = newH+"px";
}