if (noanimation == undefined ) var noanimation=false;
var maxshow1 = -420;
var maxshow2 = 500;
var maxshow3 = 800;
function show() {
	if (maxshow1 < -1) {
		maxshow1 = maxshow1 + 15;
		document.getElementById('links').style.marginLeft = maxshow1+'px'
	} else {
		var end1 = true
		
	
	}
	if (maxshow2 > 321) {
		maxshow2 = maxshow2 - 15;
		document.getElementById('midden').style.marginTop = maxshow2+'px'
	} else {
		var end2 = true
	}
	if (maxshow3 > 470) {
		maxshow3 = maxshow3 - 15;
		document.getElementById('rechts').style.marginLeft = maxshow3+'px'
	} else {
		var end3 = true
	}
	if (end1 == true && end2 == true && end3 == true) {
	   window.clearInterval(begin1);
	   if (noanimation == false) {setTimeout("sluiten()",3500);}
	}
}
var maxhide1 = -420;
var maxhide2 = 500;
var maxhide3 = 800;
function hide() {
	if (maxshow1 > -420) {
		maxshow1 = maxshow1 - 15;
		document.getElementById('links').style.marginLeft = maxshow1+'px'
	} else {
		var closed1 = true
	}
	if (maxshow2 < 500) {
		maxshow2 = maxshow2 + 15;
		document.getElementById('midden').style.marginTop = maxshow2+'px'
	} else {
		var closed2 = true
	}
	if (maxshow3 < 800) {
		maxshow3 = maxshow3 + 15;
		document.getElementById('rechts').style.marginLeft = maxshow3+'px'
	} else {
		var closed3 = true
	}
	if (closed1 == true && closed2 == true && closed3 == true) {
		window.clearInterval(close1);
		start();
	}
}

function sluiten() {
close1 = window.setInterval('hide()', 25);
}

var preloaded = new Array();
function preload_images() {
    for (var i = 0; i < arguments.length; i++){
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src',arguments[i]);
    };
};

function start() {
preload_images(
'images/set1_rechts.png',
'images/set1_midden.png',
'images/set1_links.png',
'images/set2_rechts.png',
'images/set2_midden.png',
'images/set2_links.png',
'images/set3_rechts.png',
'images/set3_midden.png',
'images/set3_links.png',
'images/set4_rechts.png',
'images/set4_midden.png',
'images/set4_links.png',
'images/set5_rechts.png',
'images/set5_midden.png',
'images/set5_links.png',
'images/set6_rechts.png',
'images/set6_midden.png',
'images/set6_links.png'
);


var setnr = Math.floor( Math.random()*3+1);
document.slide1.src='images/set'+setnr+'_rechts.png';
document.slide2.src='images/set'+setnr+'_midden.png';
document.slide3.src='images/set'+setnr+'_links.png';
begin1 = window.setInterval('show()', 35);
}

function DisplayMail(Server, Login){  
     document.write('<a href=' + '"mai' + 'lto:' + Login + '@' + Server + '">' + Login + '@' + Server + '<\/a>'); 
}  

