// 0: kaders met witte achtergrond
// 1: kaders met lichte achtergrond
// 2: banners
var tableBorderOut = new Array("#81BEBF","#BFDFDF","#008080","#FFFFFF");
var tableBorderOvr = new Array("#008080","#008080","#000000","#BFDFDF");
var tdBgOut = new Array("#FFFFFF","#BFDFDF");
var tdBgOvr = new Array("#DFEFEF","#DFEFEF");
var aLink = new Array("#4D8B9F","#4D8B9F");
var aHover = new Array("#417485","#417485");

// TABLES
function tableOvr(src,parColor){
	src.style.borderColor = tableBorderOvr[parColor];
}
function tableOut(src,parColor){
	src.style.borderColor = tableBorderOut[parColor];
	window.status = '';
}
function tableClick(url){
	location.href = url;
}

// TD's
function mOvr(src,parColor){
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		src.bgColor = tdBgOvr[parColor];
		src.children.tags('A')[0].style.color = aHover[parColor];
		src.children.tags('A')[0].style.textDecoration = 'underline';
		window.status = src.children.tags('A')[0].href;
	}
}

function mOut(src,parColor) {
	if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.bgColor = tdBgOut[parColor];
		src.children.tags('A')[0].style.color = aLink[parColor];
		src.children.tags('A')[0].style.textDecoration = 'none';
		window.status = '';
	}
}

function mClk(src) {
	if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
	}
}

function dutchDate(){
	now = new Date();
	days = new Array('Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag');
	months = new Array('Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December');

	// Calculate the number of the current day in the week.
	date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	today =  days[now.getDay()] + ", " + date + " " + months[now.getMonth()] + " " + (fourdigits(now.getYear())) ;
	return (today);
}

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
}