Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h4');
$(document).ready(function() {
	if ($('#header_afbeelding').length != 0)
	{
		$('#header_afbeelding').cycle({
			fx: 'fade',
			random: 1,
			timeout: 15000,
			speed: 1000
		});
	}
});


var dbTypeOk	= 0;
var dbTypeYesNo	= 4;

function bd_alert(title, text, type, func)
{
	var html =
	"<div class='alert_container'>\
		<div class='alert_bg'></div>\
		<div class='alert_body'>\
			<div class='alert_title'></div>\
			<div class='alert_text'></div>\
			<div class='alert_buttons'></div>\
		</div>\
	</div>";
	
	var xScroll, yScroll;
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = window.innerWidth + window.scrollMaxX;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var h = yScroll;
	
	var box = $("body").append(html);
	
	$(".alert_container").css("height", h);
}

$(document).ready(function() {
	//bd_alert("Niet ingelogd", "U dient ingelogd te zijn om foto's toe te voegen aan uw profiel.<br/>Wilt u nu inloggen?", dbTypeOk);
});
