			function change_photo(increment) {
				
				photo = photo + increment;

				if(photo > nb_photos)
					photo = 1;
					
				if(photo <= 0)
					photo = nb_photos;
						
				if(nb_photos > 0)
					document.getElementById("img").src = "photos/"+montab[photo];
			}
		
		
			function zoom(largeur,hauteur,options) {
				var top = (screen.height-hauteur)/2;
				var left = (screen.width-largeur)/2;
				window.open("zoom.php?id="+id_annonce+"&num_photo="+photo,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
			}
		
	
		
			function impression() {
				window.open("impression.php?id="+id_annonce);
			}
			function imagebien(num, i){
		document.getElementById("img").src = "photos/" + num + "_" + i+ ".jpg";
}

			function geoloc(adresse, ville, categorie, largeur,hauteur,options) {
				var top = (screen.height-hauteur)/2;
				var left = (screen.width-largeur)/2;
				window.open("geoloc.php?adresse="+adresse+"&ville="+ville+"&categorie="+categorie,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
			}
			//<![CDATA[
			function active(num){

				var num1 = ParsetInt(num);
				num1++;
				alert(num1);
				document.getElementById(num).style.backgroundColor = '#4F311E';
				document.getElementById(num1).style.backgroundColor = '#4F311E';
			}
			function desactive(num){
				document.getElementById(num).style.backgroundColor = '#BEB9BB';
			}
			function switchImage(idImage, id, nb, num) {
				for(var i=1; i<=nb; i++){
					
					if(i != num){
						document.getElementById('img_'+id+'_'+i).className = "display_none";
					}
					else{
						document.getElementById('img_'+id+'_'+i).className = "illustration";
					}
				}
			}
			//]]>
