function screenres()
{
 document.write(window.screen.width, "x", window.screen.height, " px bij ", window.screen.colorDepth, " bits kleur.");
}

function no_deeplink()
{
 if (window==top) window.location.replace("http://www.zeswielen.nl/");
}

function anderadres(adres)
{
adres = adres.replace(/€/g, "@");
adres = adres.replace(/koppel/g, "-");
adres = adres.replace(/punt/g, ".");
document.write('<a href="mailto:'+adres+'">');
} 

function zichtbaar(id)
{
document.getElementById(id).style.visibility = 'visible';
}

function onzichtbaar(id)
{
document.getElementById(id).style.visibility = 'hidden';
}

function schermhoogte(id, minder)
{
var myHeight = 0;

if(typeof( window.innerWidth ) == 'number')
   {
   //Non-IE
   myHeight = window.innerHeight;
   }

else if(document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight))
   {
   //IE 6+ in 'standards compliant mode'
   myHeight = document.documentElement.clientHeight;
   }

else if(document.body && ( document.body.clientWidth || document.body.clientHeight))
   {
   //IE 4 compatible
   myHeight = document.body.clientHeight;
   }
 
else 
   {
    myHeight = document.body.clientHeight;
   }
  myHeight = myHeight-minder;

document.getElementById(id).style.height =  myHeight+"px" ;
} 

function opacWaarde(el, opacity) {
	opacity /= 100;
	el.style.opacity = opacity;
	el.style.MozOpacity = opacity;
	el.style.filter = "alpha(opacity=" + (opacity*100) + ")";}

function fadeBeeld(el, currentOpacity) {
	currentOpacity += 5;
	if (currentOpacity > 100) {
		opacWaarde(el, 100);
		var prevEl = el.previousSibling ? el.previousSibling : el.parentNode.lastChild;
		prevEl.style.visibility = 'hidden';
		el.style.zIndex = 1;
		window.setTimeout(startFaden, pauze);}
	else {
		opacWaarde(el, currentOpacity);
		window.setTimeout(function() { fadeBeeld(el, currentOpacity); }, 100);}}

function startFaden() {
	var el = document.getElementById('beeldcontainer').childNodes[teller];
	el.style.visibility = 'visible';
	el.style.zIndex = 2;
	opacWaarde(el, 0);
	fadeBeeld(el,0);
	teller = (teller < images.length-1) ? teller + 1 : 0;}

function startScript() {
	var el = document.getElementById('beeldcontainer');
	while (el.firstChild) { el.removeChild(el.firstChild); }
	for(var i=0; i<images.length; i++) {
		var t = document.createElement('IMG');
		t.setAttribute('src',images[i]);
		t.setAttribute('border','0');
		t.style.position = 'absolute';
		t.style.left = '2px';
		t.style.visibility = 'hidden';
		el.appendChild(t);}
	el.firstChild.style.visibility = 'visible';
	window.setTimeout(startFaden, pauze);
}

function alle_banen(max)
{
 for (var i = 1; i <= max; i++) 
 { 	
  document.getElementById('baan'+i).checked = document.getElementById('alles').checked;
 }
}

