var flash;
	window.onload = function() {
		if(navigator.appName.indexOf("Microsoft") != -1) {
			flash = window.playsound;
		}else {
			flash = window.document.playsound;
		}
}
function playTrack(track_url) {
	window.document.playsound.playerPlay(track_url);		
}
function stopTrack() {
	window.document.playsound.playerStop();	
}

function recieveCompleteFromFlash(){
	 $(document).ready(function(){
			$('div.assigned').removeClass('assigned');
			});
	 }

$(document).ready(function(){
   
    $('span.play a').hover(
		function() {  
 			$(this).addClass('hover'); 
 		},  
 		function() {  
 			$(this).removeClass('hover');  
 			}  
		); 	
	$('span.play a').click(
		function() {  
			$(this).removeClass('hover'); 
			$('div.assigned').removeClass('assigned');
			$(this).parent().parent().addClass('assigned');
 			}
		); 
	 $('span.stop a').hover(
	 	function() {  
 			$(this).addClass('hover'); 
 			},  
 		function() {  
 			$(this).removeClass('hover');  
 			}  
		); 
	 $('span.stop a').click(
	 	function() {  
	 		
			$(this).parent().parent().removeClass('assigned');
			//$(this).parent().parent().siblings('div').removeClass('assigned');
 			}
		); 
   
});