//set a 
cl.setLibraryPath('/js/charlotte/src/');
cl.inc('cbe.core.*');
cl.inc('cbe.util.*');

var DEBUG = true;

function windowOnload() {
	StartClock(); 
	checkBrowser(); 
	preloadIt(); 
	initAtBeat(1);
	
	//var splitted = window.location.pathname.split('/');
	valignMe( 'active_menu' , 'subnav' );
	initPage( 'subnav' );
}

function valignMe( _src, _tar )
{
	var src = cbeGetElementById( _src );
	var tar = cbeGetElementById( _tar );	

	if( src != null && tar != null )
	{
		tar.cbe.top( src.cbe.pageY() -3 );
		tar.cbe.show();
	}
}

function checkField()
{
	if( document.mailform.email_adres33.value == '' || document.mailform.email_adres33.value == 'e-mail adres' )
	{
		alert('Vul een adres in!');
		document.mailform.email_adres33.focus();
	}
	else {
		document.mailform.submit();
	}	
}