/**
 * @author Alexander Manzyuk <admsev@gmail.com>
 * Copyright (c) 2012 Alexander Manzyuk - released under MIT License
 * https://github.com/admsev/jquery-play-sound
 * Usage: $.playSound('http://example.org/sound.mp3');
**/

(function ($) {

    $.extend({
        playSound: function () {
            return $("<embed src='" + arguments[0] + "' type='application/x-mplayer2' hidden='true' autostart='true' loop='false' class='playSound'>").appendTo('body');
        }
    });

})(jQuery);