var backColor = new Array();

backColor[0] = '#fcd5cc';
backColor[1] = '#8dffd2';
backColor[2] = '#beb1b3';
backColor[3] = '#ffffff';

$(document).ready(function() {
	changeBG();
	document.getElementById('verhaal').style.visibility = 'hidden';
});

function changeBG(){

var randomnumber=Math.floor(Math.random()*4)

	document.bgColor = backColor[randomnumber];
	
	$(".beeld").css("border-color",backColor[randomnumber]);
}

function showText(x){
document.getElementById('omschrijving' + x).style.visibility = 'visible';
}

function hideText(x){
document.getElementById('omschrijving' + x).style.visibility = 'hidden';
}

function hideBlack(x){
	document.getElementById('beeld' + x).style.opacity = 100;
//document.getElementById('beeld' + x).parentNode.style.border = '0px';
	document.getElementById('beeld' + x).style.filter = "alpha(opacity = 100)";
	//document.getElementById('beeld' + x).style.visibility = 'visible';
	document.getElementById('beeld' + x).parentNode.style.backgroundColor = "inherit";
}

function hideImage(x,y){
if(y != '1') {
	document.getElementById('beeld' + x + '.' + y).parentNode.style.display = "none";
}
}

function showEsli(){
document.getElementById('contactbeeld').style.opacity = 100;
document.getElementById('contactbeeld').style.filter = "alpha(opacity = 100)";
}

function hideEsli(){
document.getElementById('contactbeeld').style.opacity = 0;
document.getElementById('contactbeeld').style.filter = "alpha(opacity = 0)";
//document.getElementById('contacttekst').style.backgroundColor = document.bgColor;
}

function showVerhaal(){
document.getElementById('verhaal').style.visibility = 'visible';
}

