// JavaScript Document

function resizeFrame() {
	
	var h = ($(window).height() - 600) / 2;
	
	$("#wrapper").css('margin-top', h + 'px');

	
}

function showInlinePopup (element) {
	
	if ($(element).is(':not(:visible)'))
		$(element).fadeIn();
		
	sifrGo();
	
}

function closeInlinePopup (element) {

	if ($(element).is(':visible'))
		$(element).fadeOut();
	
}

function doPopup (elm) {
	
	var element = $('#popup_' + $(elm).children('.sIFR-alternate').children().attr('data'));
	if ($(element).is(':visible'))
		closeInlinePopup ($(element)); 
	else
		showInlinePopup ($(element)); 
			
}

function deleteFoutmelding (id) {
	
	clearTimeout (timer[id]);
	
	$('#' + id).fadeOut (300, function() { $('#' + id).remove(); });
	
}