<!--

changeBg = function() {
	var v = $('cp1_Hex').value;
	$('content').style.backgroundColor = '#' + v;
	$('container').style.backgroundColor = '#' + v;
}

showFAQItem = function(id) {
	$(id).show();
	var vragen = document.getElementsByClassName('vraag');
	for(var i = 0; i < vragen.length; i++) {
		if(vragen[i].id != id) {
			vragen[i].hide();
		}
	}
	$(id).blur();
	blokjes();
	fs();
}

fs = function() {
	document.getElementById('shadowLeftContent').style.height = document.getElementById('content').clientHeight;
	document.getElementById('shadowRightContent').style.height = document.getElementById('content').clientHeight;
}

addLoadEvent = function(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

mouseOver = function(id) {
	menuList = document.getElementById(id);
	menuList.style.height = "auto";
	menuList.style.overflow = "visible";
}

mouseOut = function(id) {
	menuList = document.getElementById(id);
	menuList.style.height = "0px";
	menuList.style.overflow = "hidden";
}

listLevel2RootMouseOver = function(id1, id2) {
	mouseOver(id1);
	mouseOver(id2);
}

deleteConfirm = function() { //werkt niet
	if(confirm('Weet u zeker dat u dit item wilt verwijderen?\n Herstel van verwijderde items is niet mogelijk!')) {
		return true;
	} else {
		return false;
	}
}

blokjes = function() {
	var footer = document.getElementById('footer');
	var footer2 = document.getElementById('footer2');
	var container = document.getElementById('container');
	var content = document.getElementById('content');
	var logo1 = $('logo_bg1');
	var logo2 = $('logo_bg2');
	
	if(container.offsetHeight < (content.offsetHeight + content.offsetTop)) {
		//footer2.parentNode.removeChild(footer2);
		$(footer).show();
		$(footer2).hide();
		$(logo2).hide();
	} else {
		//footer.parentNode.removeChild(footer);
		$(footer).hide();
		$(footer2).show();
		//alert($('container').clientHeight);
		logo2.style.bottom = -1 * ($('container').clientHeight - $('content').clientHeight - 243) + 'px';
		$(logo2).show();
	}
}

addLoadEvent(blokjes);

window.onresize = blokjes;

// -->
