// JavaScript Document

function change_height(hoogte) {
	map.removeControl(zoombuttons);
	if(hoogte=='klein') {
			
		document.getElementById('map').style.height='20px';
	} else if(hoogte=='middel') {
		map.addControl(zoombuttons);
		document.getElementById('map').style.height='260px';
	} else if(hoogte=='groot') {
		map.addControl(zoombuttons);
		document.getElementById('map').style.height='500px';
	}
	update_content();
	
}

/*
var milli=10;
var pixels = 25;
var interval;
function slidemap(side) {
	document.getElementById('slide_out').style.display='none';
	document.getElementById('slide_in').style.display='none';
	if(side=='in'){
		interval = window.setInterval(move_in,milli);	
	}
	if(side=='out'){
		interval = window.setInterval(move_out,milli);	
	}
}

function move_in() {
	map.removeControl(zoombuttons);
	
	var height = parseInt(document.getElementById('map').style.height.replace('px',''));
	
	
	if(height>40) {
		document.getElementById('map').style.height=(height-pixels)+"px";
		//interval = window.setTimeout(move_in,milli);
	} else {
		document.getElementById('slide_out').style.display='block';
		window.clearInterval(interval);
	}
	
}

function move_out() {
	map.addControl(zoombuttons);
	var height = parseInt(document.getElementById('map').style.height.replace('px',''));
	
	
	if(height<500) {
		document.getElementById('map').style.height=(height+pixels)+"px";
		//interval = window.setTimeout(move_out,milli);
	}else {
		document.getElementById('slide_in').style.display='block';
		window.clearInterval(interval);
	}
}
*/
