function delEntry(type,id) {
	if (confirm('Wollen Sie diesen Eintrag wirklich löschen?') ) {
		var entry = $(type+'_'+id);
		entry.set('load', {
			onRequest: function() {
				entry.fade();
			}
		});
		entry.load('ajax_requests/ajax_del_entry.php?ax_type='+type+'&ax_id='+id);
	}
	return false;
}

function switchTable(team) {
	$('switch_table').load('ajax_requests/ajax_table.php?team_ax='+team);
/*
	var div = $('switch_table');
	div.set('load',{
		onRequest: function() {
			div.fade('hide').fade(.8);
		},
		onComplete: function() {
		        div.fade();
		}
	});
	div.load('ajax_requests/ajax_table.php?team_ax='+team);
*/
}

var myMooFlow = {
	start: function() {
		var mf = new MooFlow($('MooFlow'), {
			startIndex: 2,
			useCaption: true,
			useWindowResize: true,
			useMouseWheel: true,
			useKeyInput: true,
			bgColor: 'transparent',
			heightRatio: 0.5,
			factor: 133,
			useViewer: true,
			onClickView: function(obj){
				Milkbox.showThisImage(obj.href, obj.title + ' - ' + obj.alt);
			}
		});
	}
};
