$(document).ready(function(){
                          
							 
//							 $("a[href$='mp3']").each(function(){
//															   href = $(this).attr('href');
//														       id = $(this).attr('id');
//															   $(this).removeAttr('href');
//															   $(this).append('<span>&nbsp;<a href="'+href+'" id="'+id+'Play"><img src="images/play.png" style="vertical-align:middle" border="0" /></a>&nbsp;<a href="javascript:stopPlaying(\''+id+'PlayEmbed\');" disabled="disabled"><img src="images/stop.png" style="vertical-align:middle" border="0" /></a></span>')
//															   });

							 
							 $("a[href$='mp3']").bind('click',function(){	
                                                        // stop all
                                                   //     stopAll();
                                                        
                                                            // remove
                                                                $('#song1Embed').remove();
                                                            
                                                            // keep all to regular color
                                                            colorBack();
                                                            
                                                            // change bg color
                                                            $(this).css('background-color','#FFBE00');
                                                                
														  href = $(this).attr('href');
														  id = $(this).attr('id');
														  $("body").append('<embed id="'+id+'Embed" src="'+href+'" autostart="true" hidden="true"></embed>');
														  return false;
														  });
													
						
													
						   });
function stopPlaying(playID) 
{								 
    $('#'+playID).remove();								 
}

function stopAll()
{
    alert('stopAll');
    $("embed[href$='Embed']").each(function(){
        $(this).remove();
    });
}

function colorBack()
{
    $("a[href$='mp3']").each(function(){
        $(this).css('background-color','#f00');
         });
}
