/* Fonction pour afficher les modèles champêtres (Illustration(illu), Plan(plan1 et plan2))
===================================================== */
function ShowHide(str) {
	if(str == 'illu'){
		target = document.getElementsByTagName('img');
		target[1].style.display = "";	
		target[2].style.display = "none";
		target[3].style.display = "none";
	}
	else if(str == 'plan1'){
		target = document.getElementsByTagName('img');
		target[1].style.display = "none";
		target[2].style.display = "";
		target[3].style.display = "none";
	}
	else{
		target = document.getElementsByTagName('img');
		target[1].style.display = "none";
		target[2].style.display = "none";
		target[3].style.display = "";
	}
}
function hidePlan(){
	target = document.getElementsByTagName('img');
	if(target[2].src.indexOf('plan') != -1){
		target[2].style.display = "none";
	}
	if(target[3].src.indexOf('plan') != -1){
		target[3].style.display = "none";
	}
	else{}
}

/* Fonction voir les photos des projets dans les sections réalisation
===================================================== */
function change(param) {
  if (document.images) {
	elem = document.getElementById('big');
//	elem.src = 'imgs/' + param;
	elem.src = 'http://www.lortieconstruction.com/meganet/media/images/' + param;
  }
}