function playmp3(url,mp3) {

	document.mp3player.SetVariable('my_bitrate', 192 );
	document.mp3player.SetVariable('my_defaultSBT', 1 );
	document.mp3player.SetVariable('my_minDialUpSBT', 1);
	document.mp3player.SetVariable('my_security', 1.2);
	document.mp3player.SetVariable('MinimumTestsBandwith', 2);
	document.mp3player.SetVariable('url', url);
	
	var Mp3id = mp3.parentNode.id;
	clearstop();

	for (var i = 0; i< document.getElementById(Mp3id).childNodes.length; i++) {
		if (document.getElementById(Mp3id).childNodes[i].className=='mp3flasho'){	
			document.getElementById(Mp3id).childNodes[i].style.fontWeight='bold';
		}
		if (document.getElementById(Mp3id).childNodes[i].className=='mp3stop'){	
			document.getElementById(Mp3id).childNodes[i].style.visibility='visible';
		}
	}
}

function stopmp3() {
	clearstop();
	document.mp3player.SetVariable('my_bitrate', 128 );
	document.mp3player.SetVariable('url', 'res/blank.mp3');
}
function clearstop() {
	for (var i = 0; i< document.getElementsByTagName('div').length; i++) {
		if (document.getElementsByTagName('div')[i].className=='mp3flash'){	
			document.getElementsByTagName('div')[i].style.fontWeight='normal';
		}
		if (document.getElementsByTagName('div')[i].className=='mp3stop'){	
			document.getElementsByTagName('div')[i].style.visibility='hidden';
		}
	}
}

