jQuery(window).load(function(){
    if (jQuery("#microAudio-widget-player").length>0) {
		jQuery("a[href$='mp3']").addToJW('microAudio-widget-player');
    }
});
(function($){
	$.fn.addToJW=function(p){
        $.each(this,function(){
            var h=$(this).attr("href");
            var k=h.split(/\//);
            var t=$(this).html();
        	thisMovie(p).addItem({file: h, title: t, link: k[0]+"//"+k[2]+"/" });
        });
        return this;
    }
})(jQuery);
function thisMovie(swf){
  if((navigator.appName.indexOf("Microsoft")!=-1)||(navigator.appName.indexOf("Windows")!=-1)){
  	return {addItem:function(){jQuery("#microAudio-widget-container").html("Sorry, the sidbar widget is not currently supported in Internet Explorer")}};
  } else {
    return document[swf];
  }
};