function projectActief(projectID, laagID){
	element = document.getElementById('Layer150b');
	element.innerHTML = kortetekst(projectID);
	naamrood(projectID, laagID);
}

function projectPassief(projectID, laagID){
	element = document.getElementById('Layer150b');
	element.innerHTML = "";
	naamzwart(projectID, laagID);
}

function naamrood(projectID, laagID){
	tekst = document.getElementById(projectID);
	tekst.style.color='#FF0000';
	plaatje = document.getElementById(laagID);
	topnieuw = geefTop(laagID)+2;
	var top = ""+topnieuw+"px";
	plaatje.style.top = top;
}

function naamzwart(projectID, laagID){
	tekst = document.getElementById(projectID);
	tekst.style.color='#000000';
	plaatje = document.getElementById(laagID);
	var top = ""+geefTop(laagID)+"px";
	plaatje.style.top = top;
}

function plaatje(id){
	if(id == "vlissingen2"){
		return "<img src='projecten/vlissingen/thumbnail-2.png' alt='"+id+"' width='100' height='100' \>";
	} else if(id == "china2"){
		return "<img src='projecten/china/thumbnail-2.png' alt='"+id+"' width='100' height='100' \>";
	} else {
		return "<img src='projecten/"+id+"/thumbnail.png' alt='"+id+"' width='100' height='100' \>";
	}
}

function emailadresswitch(aan){
	adres = document.getElementById("emailadres");
	if(aan == 1){
		adres.src='afb/info_dhover.png';
	} else {
		adres.src='afb/info_d.png';
	}
}

function geefTop(id){ //Deze methode is ter voorkoming van het "dubbel" opschuiven van de blokjes als er bijv. een mouseout niet geregistreerd wordt.
	if(id == "Layer16" || id == "Layer19" || id == "Layer22" || id=="Layer25" || id=="Layer100" || id=="Layer103" || id == "Layer16b" || id == "Layer19b" || id == "Layer22b" || id=="Layer25b"){
		return 117;
	}
	if(id == "Layer17" || id == "Layer20" || id == "Layer23" || id=="Layer26" || id=="Layer101" || id=="Layer104" || id == "Layer17b" || id == "Layer20b" || id == "Layer23b" || id=="Layer26b"){
		return 227;
	}
	if(id == "Layer18" || id == "Layer21" || id == "Layer24" || id=="Layer27" || id=="Layer102" || id=="Layer105" || id == "Layer18b" || id == "Layer21b" || id == "Layer24b" || id=="Layer27b"){
		return 337;
	}
}

function kortetekst(id){
	//architectuur
	if(id == "ligthhouse"){
		return "design for a dwelling in the Dutch orchyard";
	} else if(id == "hessenbergtheatre"){
		return "a landscape design for the Art Centre Delft";
	} else if(id == "waterwoning"){
		return "'Flood' Bienale Rotterdam (2005)";
	} else if(id == "museumtuin"){
		return "a landscape design for the Art Centre Delft";
	} else if(id == "ijplein"){
		return "design for a studio near the Amsterdam waterfront";
	} else if(id == "autarkisch"){
		return "design for a self-sufficient pavilion";
	} else if(id == "modulairkast"){
		return "a case that is custom made for the objects it stores";
	} else if(id == "floodproofhouse"){
		return "an amfibic house out of lightweight composite material.";
	//stedenbouw
	} else if(id == "china"){
	return"research and urban design task Guangzhou, China";
	} else if(id == "china2"){
		return "research and urban design task Guangzhou, China";
	}else if(id == "hessenberg"){
		return "urban renewel plan for the city centre of Nijmegen";
	} else if(id == "hydrotypes"){
		return "water processing landscapes";
	} else if(id == "vlissingen"){
		return "studies after the possible reuse of the warf in Vlissingen";
	} else if(id == "vlissingen2"){
		return "studies after the possible reuse of the warf in Vlissingen";
	} else if(id == "h2owonen"){
		return "water related housing in Polderwijk, Zeewolde";
	//research
	} else if(id == "afrikaanderbuurt"){
		return "interview with the inhabitants";
	} else if(id == "deltasync"){
		return "sustainable growth in Urbanised Delta areas";
	} else if(id == "rapidprototyping"){
		return "research after rapid prototyping and it's use in architecture";
	} else if(id == "landscapeurbanism"){
		return "where did it come from?";
	} else if(id == "casagodska"){
		return "design for a studio in the Amsterdam city centre";
	} else if(id == "drijvendatelier"){
		return "design for a floating pavilion";
	} else if(id == "waterwoonkaart"){
		return "possibilities for flood proof houses";
	} else if(id == "woonbeelden"){
		return "researching the target groups preferences";
	} else if(id == "tijdelijkbouwen"){
		return "research on how to make buildings for temporal locations.";
	} else if(id == "gemaalmuiden"){
		return "rebuilding an old pumping station into an art galer";
	} else if(id == "savehouse"){
		return "flood proof design shelter for in your garden<br/>";
	} else if(id == "landartdelft"){
		return "the transformation of farmland into a sculpture park<br/>";
	} else if(id == "tijdelijkandersbestemmen"){
		return "temporary programs that activate vacant sites<br/>";
	} else if(id == "schippersgracht"){
		return "renovation of an Amsterdam VOC monument anno 1675<br/>";
	} else if(id == "boomstraat"){
		return "renovation of an Amsterdam apartment<br/>";
	} else if(id == "waterwonennl"){
		return "NAI publication<br/>";
	} else if(id == "havenvisie"){
		return "the Rotterdam harbor: toward a new  generation<br/>";
	} else if(id == "strandrecreatie"){
		return "activating the Dutch coast<br/>";
	} else if(id == "ooijen"){
		return "temporary use of reserved area's<br/>";
	} else if(id == "denhaagaanzee"){
		return "three design alternatives for a flood proof coastal city<br/>";
	} else {
		return "";
	}
}
