function verwijderen(url,id) {
	if(confirm('Weet u zeker dat u deze wilt verwijderen?')) {
			new Ajax.Request(url, {
				  method: 'get',
				  onSuccess: function(transport) {
					Effect.Fade(id);
				  }
				});		
	}
}

function mouseover(element) {
	new Effect.Morph(element,{
	style:'background:#f9effb; color:#000; cursor:pointer;',
	duration:0.5
	});
}

function mouseout(element) {
	new Effect.Morph(element,{
	style:'background:#FFF; color:#000; cursor:pointer;',
	duration:0.5
	});
}

	function close_window() {
		
		Effect.Fade('window',{ duration:0.5});	
		
	}
	
	function show_window(location) {
	
	if(location=='bottom') {
		var body_height = $('body').getHeight();
		var window_height =  $('window').getHeight();
			top_location = body_height = window_height;
			top_location = top_location - 25;
		document.getElementById('window').style.top = top_location + 'px';
	} 
	
	
	if(location=='top') {
		document.getElementById('window').style.top = '50px';
	
	}
		
		var body_width = $('body').getWidth();
		var window_width =  $('window').getWidth();
		var left_location = body_width - window_width;
			left_location = left_location - 2;
			left_location = left_location / 2;
			left_location = left_location.toFixed();
		document.getElementById('window').style.left = left_location + 'px';
		
		document.getElementById('window_content').innerHTML = 'Bezig met laden ...';

		Effect.Appear('window',{ duration:0.5});	
		 new Draggable('window',{revert:true});
		
	}


	function window_title(title) {
		
		$('window_title').innerHTML = title;
	
	}
	
