Решено:
new Element('a').setProperties({id: 'lbAddphoto', href: '#'}).injectInside(this.bottom).onclick = this.overlay.onclick = function() {
jQuery.ajax({
type: "POST",
url: "addtempphoto.php",
data: "np="+myimg+"&pp="+myimgpath,
success: function(){
jQuery("#content").html(html);
}
});
};