$(document).ready(function(){
    $('.listenPopup').popupWindow({ 
    height:160, 
    width:240
    }); 
    
    // This should really use "window.open" and prevent the default behavior
    $("a[href^='http://'], a[href^='https://'], a[href$='.pdf']").attr("target","_blank");
});

