function loadsite(){
}


function sendContact(){
	if ($F('naam').empty() || $F('land').empty() || $F('telefoon').empty() || $F('email').empty())	{	
		alert('Vul alle noodzakelijke velden in.');
		return false;
	}

	$('contactform').request({
  		method: 'POST',
  		parameters: { },
  		onComplete: function(transport){ $('contactform').update(transport.responseText); }
	});
/*
	new Ajax.Request(url, {
  		method: 'post',
  		parameters: { fromname: name, fromadres: email,  msg:message},
  		onSuccess: function(transport) {
    		if (transport.responseText=="OK")	$('contactform').update("Uw email is verzonden.");
    		else								$('contactform').update(transport.responseText);
  			}
		});*/
}

function createrounded(){
	DD_roundies.addRule('.vertical', '8px', true);
	DD_roundies.addRule('#sitepage', '0px 20px 0px 0px', true);
}



function gal_next(){
	var step	=	200;
	var dist	=	$('imglist').getWidth()-$('imglistmask').getWidth()+$('imglist').offsetLeft;	
	if (dist < step)	step	=	dist;
	if (step < 0)		step	=	0;

	if (step<200)	$('arrownext').style.display	=	'none';
	else			$('arrownext').style.display	=	'inline';
	$('arrowprev').style.display	=	'inline';

	new Effect.Move('imglist', { x: -step, mode: 'relative',duration: 1.0 });

//	$('logodiv').morph('left:30px;', {queue: { position: 'end', scope: 'introscope', limit: 5 }, duration: 2.0 });
}

function gal_prev(){
	var step	=	200;
	var dist	=	-$('imglist').offsetLeft;	
	if (dist < step)	step	=	dist;
	if (step < 0)		step	=	0;

	if (step<200)	$('arrowprev').style.display	=	'none';
	else			$('arrowprev').style.display	=	'inline';
	$('arrownext').style.display	=	'inline';
	
	new Effect.Move('imglist', { x: step, mode: 'relative',duration: 1.0 });
//	$('logodiv').morph('left:30px;', {queue: { position: 'end', scope: 'introscope', limit: 5 }, duration: 2.0 });
}
