LLgetPositionListings = function () {
// the extra (function($) { is a jQuery compatibility wrapper 
    (function($) {
        $("#feed-result").empty();
        var error_msg = '<p>We\'re experiencing some problems displaying our job listings. We do have openings, so please check back with us in a bit.</p>';

        $.ajax({
            url: '/sites/all/themes/lindenlab/position_listings.php',
            type: 'GET',
            dataType: 'xml',
            timeout: 5000,
            error: function(){
                                $('#ajax-loader').css({ display:"none" });
                                $('#feed-result').append(error_msg);
            },
            success: function(xml){
                                $(xml).find('item').each(function() {

                                        var $item = $(this);
                                        var title = $item.find('title').text();
                                        var link = $item.find('link').text();
                                        var html = "<a href=\"" + link + "\" target=\"_blank\">" + title + "<\/a><br />";
                                        $('#ajax-loader').css({ display:"none" });
                                        $('#feed-result').append($(html));
                                });
            }
        });
    })(jQuery);
}
;

