// JavaScript Document

function clicker(routeid){
	var thediv=document.getElementById('green_background');
	var planner=document.getElementById('fietsroute_map_big');
	var hoogte=document.getElementById('fietsroute_altitudes');
	if(thediv.style.display == "none"){
		thediv.style.display = "";
		thediv.innerHTML = "";
		showPlanner(planner,thediv,hoogte,routeid);
	}else{
      closePlanner(planner,thediv,hoogte);
	}
	return false;
}


function showPlanner(planner,thediv,hoogte,routeid) {


hoogte.style.display="none";
thediv.innerHTML = "<a href = 'javascript:void(0);' onclick='clicker();'>Klik hier om deze weergave te sluiten!</a>";
planner.style.display="block";
planner.style.width='100%';
planner.style.height='90%';
planner.style.top='30px';
planner.style.left='0px';
planner.style.marginTop='0px';
planner.style.marginLeft='0px';
initialize(routeid,'fietsroute_map_biga');






	
}

function closePlanner(planner,thediv,hoogte) {

planner.style.display = "none";
planner.style.top='0';
planner.style.left='0';
planner.style.marginTop='0px';
planner.style.marginLeft='0px';
thediv.style.display = "none";
thediv.innerHTML = '';
hoogte.style.display="block";


	
}
