function getEvent (elem, p) {

    if (!$(elem)) {
       //alert('Content element ['+elem+'] not found');
       return;
    }

    var param = (typeof(p) == 'undefined') ? {} : p;
    var hash  = $H({option:'com_events', task:'x_feed', tag:elem});
    hash.update(param);

    new Ajax.Request(_absolutePath+'/ajax.lnk.php', {
       method: 'get',
       parameters: hash.toObject(),
       //onLoading: function() { $(elem).update('loading..') },
       onFailure: function() { $(elem).update('error'); },
       onSuccess: function(transport, json) {
          var text    = transport.responseText;
          var scripts = text.extractScripts();

          if (scripts.length > 0) { scripts.map(function(script) { eval(script); }); }
          if (json && (json.status == -1 || json.status == 0)) { $(elem).update(json.message); }
          else if (json && json.status == 1) { $(elem).update(text); }
       }
    });
} // getEvent