function jquery_admin() {

    //register Delete within summary
    //the one in search and post archive
	$(".summarybody").find("a:contains('Delete')").livequery('click',function(e) {
		e.preventDefault();
		
		if(confirm_remove()) {
			
			var body = $(this).parent(".summarybody");
			var link = $(this).attr('href');
			
			body.html(
				'<span id="loader">' +
					'<img src="'+ url_base() +'media/images/ajax-loader.gif" />' +
				'</span>'
			);
			
			$.post(link, function() {
				body.remove();
			});
		}
	});
    
    //add removal confirm to files
    $(".filebox").find("a:contains('Delete')").livequery('click',function(e) {
		if(!confirm_remove()) {
			e.preventDefault();
		}
	});
    
}
