var currentSound = "";
var firstVar = true;

function getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}
 
function stopSound(target) {
	getFlashMovie(target).sendTextToFlash();  
}
 
function sendObjectID(id) {	
	if(firstVar){
		currentSound = id;
		stopSound(currentSound);	
		firstVar = false;	
	}
	else{
		stopSound(currentSound);
		currentSound = id;		
	}
}
