function endIntro(){
	document.getElementById('www-stadsoevers-nl').className = 'bgImg_2';
	document.getElementById('logo').style.display = 'none';
	document.getElementById('container').style.display = 'block';
	setTimeout("hideFlash()",200);
}

function hideFlash(){
	document.getElementById('flashGrid').style.display = 'none';
}

function bIfr() {
	tags = document.getElementsByTagName("h2");
	for (a=0;a<tags.length;a++) {		
		newdiv = document.createElement("div");
		newdiv.setAttribute("class","flashH2");
		newdiv.setAttribute("className","flashH2");
		tags[a].parentNode.insertBefore(newdiv,tags[a])
		newdiv.innerHTML = makeSWF('/flash/header_white_24px.swf?txt='+escape(tags[a].innerHTML.toUpperCase()),"100%",36);
		tags[a].style.display = "none";	
	}
}

function makeSWF(url,b,h) {
	return '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0" width="'+b+'" height="'+h+'">' +
			'<param name="movie" value="'+url+'&cacheBuster='+Math.random()+'" />' +
			'<param name="quality" value="high" />' +
			'<param name="wmode" value="transparent" />' +
			'<embed wmode="transparent" src="'+url+'&cacheBuster='+Math.random()+'" swLiveConnect="true" width="'+b+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>' +
			'</object>';
}

function checkForm()
{
	if (document.getElementById('naam').value == '') {
		document.getElementById('errorDiv').innerHTML = 'Je moet een naam opgeven.';
		document.getElementById('errorDiv').style.display = 'block';
		return false;
	} else if (document.getElementById('email').value == '' || !isValidEmail(document.getElementById('email').value)) {
		document.getElementById('errorDiv').innerHTML = 'Je moet een geldig e-mail adres opgeven.';
		document.getElementById('errorDiv').style.display = 'block';
		return false;
	}
	return true;
}
