/*
 * 1 € = 117 autocollants
2 € = 7 affiches
5 € = 18 affiches
15 € = 1 drapeau
 */
function associeDonAMateriel(langue, somme) {
	if ((somme >= 1) && (somme < 10000000)) {
		var constAutocollant = (langue == "fr") ? "autocollant(s)" : "sticker(s)";
		var constAffiche = (langue == "fr") ? "affiche(s)" : "affiche'(s)";
		var constDrapeau = (langue == "fr") ? "drapeau(x)" : "vlag(en)";
		var constOu = (langue == "fr") ? "ou" : "of";
		var nbreStickers = Math.floor(somme * (20000 / 845));
		var nbreAffiches = Math.floor(somme * (5000 / 815));
		var nbreDrapeaux = Math.floor(somme * (150 / 2500));
		var strMaterielAssocie = (langue == "fr") ? "Avec "+somme+" euros, nous pouvons produire " : "Met "+somme+" euro, kunnen we produceren: ";
		if (nbreStickers > 0) strMaterielAssocie += ""+nbreStickers+" "+constAutocollant+" "+constOu+" ";
		if (nbreAffiches > 0) strMaterielAssocie += ""+nbreAffiches+" "+constAffiche+" "+constOu+" ";
		if (nbreDrapeaux > 0) strMaterielAssocie += ""+nbreDrapeaux+" "+constDrapeau+" "+constOu+" ";
		strMaterielAssocie = strMaterielAssocie.substr(0, strMaterielAssocie.length-3);
	} else {
		var strMaterielAssocie = "";
		somme = 0;
	}	
	$('amount-info').innerHTML = strMaterielAssocie;
	$('recapitulatifMontant').value = somme;
		
}
function step2() {
	$('step1').style.display = "none";	
	$('step2').style.display = "block";	
}

