
function openLay(id) {
	document.getElementById('lay_'+id).style.display = 'none';
	document.getElementById('overlay_'+id).style.display = 'inline';
}

function closeLay() {
	for(index=1; index<=4; index++) {
		if(document.getElementById('overlay_'+index)) {
			document.getElementById('overlay_'+index).style.display = 'none';
			document.getElementById('lay_'+index).style.display = 'inline';
		}
	}
}

function balance() {
	if(document.getElementById('left').offsetHeight<(document.getElementById('main').offsetHeight)) {
		document.getElementById('left').style.height = (document.getElementById('main').offsetHeight)+'px';
	}
}

	
function rotateBanners()
{
	var counter = 16;
	var eff = 'appear';
	var dur = 1;
	var inter = 2;

	//show first (last numerically) picture as page loads
	Effect.toggle('rotate' + counter, eff, { duration: 0 });

	var count = counter - 1;
	var tohide = counter;

	setInterval(function() {
		//fades out last picture - fades in next
		Effect.toggle('rotate' + tohide, eff, { duration: dur });
		Effect.toggle('rotate' + count, eff, { duration: dur });

		tohide = count;
		count = (count == 1)? counter : count - 1;
	},inter * 1000);
}
	
var preLoad = new Array(); 

preLoad[0] = new Image();

preLoad[0].src = '/images/background_menuitem.jpg'; 



function swapImage(object) {

	object.style.backgroundImage = "url("+preLoad[0].src+")";
	object.style.backgroundColor = "#F0F7C1";

}



function bookmark(url, title) {

	if (document.all) {

		window.external.AddFavorite(url, title);

	} else if (window.sidebar) {

		window.sidebar.addPanel(title, url, "")

	}

}
	

function setDefaultHomePage(el) {
	if(document.all) { el.style.behavior='url(#default#homepage)'; el.setHomePage(location.href); } else { alert('In uw browser kan deze website niet automatisch als starpagina worden ingesteld.'); }
}

function g(gotolink) {
	location.href=gotolink;
}

