if ((navigator.appName == "Netscape")&&(navigator.appVersion.substring(0,4)>=4)){
	
	isNav="net";
} 
if (navigator.appName == "Microsoft Internet Explorer"){
	
	isNav="ie";
}

sto_hidelayer = 0;
sto_hidelayer2 = 0;

//change the mode of legend
function change_legend_image(div_id,checkbox_id){
	
	var arr_legend_img = div_id.split(",");
	
	var legend_checkbox = document.getElementById(checkbox_id);
	
	for(var l = 0;l < arr_legend_img.length;l++){
	
		var legend_img = document.getElementById(arr_legend_img[l]);
		if(legend_img.style.display == "block"){
			
			legend_img.style.display = "none";
			legend_checkbox.src = root_path + "/imgv2/checkbox.png";
		}
		else{
			
			legend_img.style.display = "block";
			legend_checkbox.src = root_path + "/imgv2/checkbox_checked.png";
		}
	}
}
function big_hotel_poplayer(zipcode,city,g,f){
	
	hidelayer2_stop_timeout();
	hidelayer("div_hotel_pop_layer");
	
	var img_hotel_big = document.getElementById("img_hotel_big_"+g);
	
	var big_hotel_left = parseInt(img_hotel_big.style.left);
	var big_hotel_top = parseInt(img_hotel_big.style.top);
	
	var div_big_hotel_content = "";
	
	var big_poplayer_div_obj = document.getElementById("div_big_hotel_pop_layer");
	
	var div_left_init = parseInt(document.getElementById('div_result_map_content').style.left);
	var div_top_init = parseInt(document.getElementById('div_result_map_content').style.top);
	
	div_big_hotel_content  = "<table>";
	div_big_hotel_content += "<tr>";
	div_big_hotel_content += "<td><img src=\"/module/carto/imgv2/popup_hautGauche.png\" /></td><td style=\"background: #fff\"></td><td><img src=\"/module/carto/imgv2/popup_hautDroit.png\" /></td>";
	div_big_hotel_content += "<tr>";
	div_big_hotel_content += "<td style=\"background: #fff\"></td><td>";
	div_big_hotel_content += "<div class=\"div_big_hotel_pop_layer_content\">"; 
	
	div_big_hotel_content += "<table width='100%' height='100%' align='center'>";
	div_big_hotel_content += "	<tr>";
	div_big_hotel_content += "		<td valign='top' class='div_hotel_pop_lable'>"+f+" resultats dans le </br>"+city+"</td>";
	div_big_hotel_content += "	</tr>";
	div_big_hotel_content += "	<tr>";
	div_big_hotel_content += "		<td class='div_hotel_pop_layer_detail' align='left'><div style='width:150px'><a onclick='hidelayer(\"div_big_hotel_pop_layer\");generateResultByZipcode(\""+zipcode+"\");' style=\"cursor:pointer;\">Voir la liste de résultats</a></div></td>";
	div_big_hotel_content += "	</tr>";
	div_big_hotel_content += "</table>";
	
	div_big_hotel_content += "</div></td><td style=\"background: url(/module/carto/imgv2/popup_milieuDroit.png) repeat-y top right;\"></td>";
	div_big_hotel_content += "</tr>";
	div_big_hotel_content += "<td><img src=\"/module/carto/imgv2/popup_basGauche.png\" /></td><td style=\"background: url(/module/carto/imgv2/popup_basCentre.png) repeat-x top left;\"></td><td><img src=\"/module/carto/imgv2/popup_basDroit.png\" /></td>";
	div_big_hotel_content += "</tr>";
	div_big_hotel_content += "</table><div style=\"margin: -7px 0 0 90%;float:right;position:absolute;\"><img src=\"/module/carto/imgv2/popup_triangle.png\" /></div>";

	
	big_poplayer_div_obj.innerHTML = div_big_hotel_content;	
	
	big_poplayer_div_obj.style.left = big_hotel_left + div_left_init+ 28 + "px";
	big_poplayer_div_obj.style.top = big_hotel_top + div_top_init + 25 + "px";
	
	
	big_poplayer_div_obj.style.display = "block";
	
	positionning('div_big_hotel_pop_layer',g);
}
function hotel_poplayer(div_id,n){
	
	hidelayer_stop_timeout();
	hidelayer("div_big_hotel_pop_layer");
	var hotel_id = div_content_arr[n][0];
	var hotel_type_id = div_content_arr[n][1];
	var hotel_name = traite_chaine_inv(div_content_arr[n][2]);
	var hotel_class = traite_chaine_inv(div_content_arr[n][3]);
	var hotel_photo = traite_chaine_inv(div_content_arr[n][4]);
	var hotel_address = traite_chaine_inv(div_content_arr[n][5]);
	var hotel_picto = traite_chaine_inv(div_content_arr[n][6]);
	var hotel_tarifs = traite_chaine_inv(div_content_arr[n][7]);
	var hotel_contact = traite_chaine_inv(div_content_arr[n][8]);
	//var picto_type = traite_chaine_inv(div_content_arr[n][9]);
	var label_type = traite_chaine_inv(div_content_arr[n][10]);
	var xml_file = div_content_arr[n][11];

	var img_hotel = document.getElementById("img_hotel_"+n);
	
	var hotel_left = parseInt(img_hotel.style.left);
	var hotel_top = parseInt(img_hotel.style.top);

	var div_content = "";
	
	var poplayer_div_obj = document.getElementById(div_id);
		
	var div_left_init = parseInt(document.getElementById('div_result_map_content').style.left);
	var div_top_init = parseInt(document.getElementById('div_result_map_content').style.top);
	
	div_content  = "<table>";
	div_content += "<tr>";
	div_content += "<td><img src=\"/module/carto/imgv2/popup_hautGauche.png\" /></td><td style=\"background: #fff\"></td><td><img src=\"/module/carto/imgv2/popup_hautDroit.png\" /></td>";
	div_content += "<tr>";
	div_content += "<td style=\"background: #fff\"></td><td>";
	div_content += "<div class=\"div_hotel_pop_layer_content\">"; 		  
	div_content += "<table width='100%' height='100%' align='center'>";
	//div_content += "	<tr>";
	//div_content += "		<td height='20px' class='div_hotel_pop_label'>"+
	               //"<img align=\"absmiddle\" src=\""+picto_type+"\" label=\""+label_type+"\">&nbsp;"+
	//		   "<b>"+label_type+"</b></td>";
	//div_content += "		<td style='text-align:right'><span class='div_hotel_pop_layer_close' onclick='hidelayer(\"div_hotel_pop_layer\");'>Fermer&nbsp<img src='/module/carto/images/close.gif' border=0></span></td>";
	//div_content += "	</tr>";
	//div_content += "	<tr>";
	//div_content += "		<td height='20px' colspan='2' class='div_hotel_pop_hotel_name'><a onclick=\"hidelayer('div_hotel_pop_layer');generateFiche("+hotel_id+","+hotel_type_id+",'"+xml_file+"')\" style=\"cursor:pointer;\">"+hotel_name+"</a>&nbsp;"+hotel_class+"</td>";
	//div_content += "	</tr>";
	div_content += "	<tr>";
	div_content += "		<td style=\"vertical-align:top\"><strong style=\"font-weight:bolder;\"><a onclick=\"hidelayer('div_hotel_pop_layer');generateFiche("+hotel_id+","+hotel_type_id+",'"+xml_file+"')\" style=\"cursor:pointer;\">"+hotel_name+"</a></strong><br />"+hotel_address+"</td>"; //&nbsp;"+hotel_class+"
	div_content += "		<td style=\"width:106px;text-align:right\"><a onclick=\"hidelayer('div_hotel_pop_layer');generateFiche("+hotel_id+","+hotel_type_id+",'"+xml_file+"')\" style=\"cursor:pointer;\">"+hotel_photo+"</a></td>";
	div_content += "	</tr>";
	//div_content += "	<tr>";
	//div_content += "		<td height='40px'>"+
	//		   hotel_picto+
	//		   "</td>";
	//div_content += "		<td>"+hotel_tarifs+"</td>";
	//div_content += "	</tr>";
	div_content += "	<tr>";
	//div_content += "		<td height='20px' class='div_hotel_pop_layer_contact'>"+hotel_contact+"</td>";
	div_content += "		<td valign=\"bottom\" style=\"height:24px;\">"+
	               "			<span class=\"div_hotel_pop_layer_detail\" style=\"padding: 10px 0 0 0;\">"+
			   "				<a onclick=\"hidelayer('div_hotel_pop_layer');generateFiche("+hotel_id+","+hotel_type_id+",'"+xml_file+"')\" style=\"cursor:pointer;\">Voir la fiche</a><br />"+
	 //              "				<a href=\"javascript:carnet_ajout('"+hotel_id+"','"+hotel_type_id+"','"+xml_file+"');\">Ajouter au carnet de route</a>&nbsp;"+
			   "			</span>"+
			   "		</td><td></td>";
	div_content += "	</tr>";
	div_content += "</table>";
	div_content += "</td><td style=\"background: url(/module/carto/imgv2/popup_milieuDroit.png) repeat-y top right;\"></td>";
	div_content += "</tr>";
	div_content += "<td><img src=\"/module/carto/imgv2/popup_basGauche.png\" /></td><td style=\"background: url(/module/carto/imgv2/popup_basCentre.png) repeat-x top left;\"></td><td><img src=\"/module/carto/imgv2/popup_basDroit.png\" /></td>";
	div_content += "</tr>";
	div_content += "</table><div style=\"margin: -7px 0 0 90%;float:right;position:absolute;\"><img src=\"/module/carto/imgv2/popup_triangle.png\" /></div>";
	
	poplayer_div_obj.innerHTML = div_content;	
	
	poplayer_div_obj.style.left = hotel_left + div_left_init + "px";
	poplayer_div_obj.style.top = hotel_top + div_top_init + 25 + "px";
	
	poplayer_div_obj.style.display = "block";
	
	positionning('div_hotel_pop_layer',n);
}

function positionning(what,n) {

    var lay = $('#'+what);
    var info = {}
    
    info.width = lay.width();
    info.height = lay.height();
    info.top = parseInt(lay.css('top'));
    info.left = parseInt(lay.css('left'));
    
    if(what=='div_hotel_pop_layer'){
    	info.top = info.top - info.height-2;
    	info.left = info.left - info.width+12;
    }
    else if(what=='div_big_hotel_pop_layer') {
    	info.top = info.top - info.height-2;
    	info.left = info.left - info.width-25;
	}
    
    $('#'+what).css({'left':info.left,'top':info.top});
    
    
    //console.log($('#div_hotel_pop_layer'));
    //if(info.height+parseInt(info.top)){;}
    }

function hidelayer(div_id){
	
	var hidelayer_div_obj = document.getElementById(div_id);
	hidelayer_div_obj.style.display = "none";
}


function hidelayer_with_timeout() {
	
	var div_id = "div_hotel_pop_layer";
	sto_hidelayer = setTimeout("hidelayer('"+div_id+"')", 450);
}
function hidelayer_stop_timeout() {
	
	clearTimeout(sto_hidelayer);
}


function hidelayer2_with_timeout() {
	
	var div_id = "div_big_hotel_pop_layer";
	sto_hidelayer2 = setTimeout("hidelayer('"+div_id+"')", 450);
}
function hidelayer2_stop_timeout() {
	
	clearTimeout(sto_hidelayer2);
}

//for drag map
var obj_left_init = 0;
var obj_top_init = 0;

var mouse_begin_x = 0;
var mouse_begin_y = 0;

var mouse_end_x = 0;
var mouse_end_y = 0;

var mouse_down = false;
var div_obj = "";
var div_drag = "";

function map_move_init(e){
	
	e = e?e:(window.event?window.event:null);
	
	div_obj = document.getElementById('div_result_map_content');
	div_drag = document.getElementById('div_carto_pictos_hotel');
	
	if(div_drag.setCapture){
		
		div_drag.setCapture();
	} 
	else if(window.captureEvents){
		
		window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
	}
	
	mouse_begin_x = e.clientX;
	mouse_begin_y = e.clientY;
	
	obj_left_init = parseInt(div_obj.style.left);
	obj_top_init = parseInt(div_obj.style.top);
	
	mouse_down = true;
} 

function map_move(e){
	
	e = e?e:(window.event?window.event:null);
	
	if(mouse_down){
		
		mouse_end_x = e.clientX;
		mouse_end_y = e.clientY;
		
		div_obj.style.left = mouse_end_x - mouse_begin_x + obj_left_init + "px";
		div_obj.style.top = mouse_end_y - mouse_begin_y + obj_top_init + "px";
	} 
} 

function map_move_stop(){
	
	mouse_down = false;
	
	if(parseInt(div_obj.style.left) > 0){
		
		div_obj.style.left = "0px";
	}
	if(parseInt(div_obj.style.top) > 0){
		
		div_obj.style.top = "0px";
	}
	if(parseInt(div_obj.style.left) < -(map_width_base - map_window_width)){
		
		div_obj.style.left = -(map_width_base - map_window_width) + "px";
	}
	if(parseInt(div_obj.style.top) < -(map_height_base - map_window_height)){
		
		div_obj.style.top = -(map_height_base - map_window_height) + "px";
	}
	
	if(div_drag.releaseCapture){
		
		div_drag.releaseCapture();
	}
	else if(window.captureEvents){
		
		window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
	}
}

//for zoom in/out map
var zoom_max = 3;

var center_x = map_window_width / 2;
var center_y = map_window_height / 2;

var mouse_x = 0;
var mouse_y = 0;

var map_style_left = 0;
var map_style_top = 0;

var tab_image_size = new Array();

tab_image_size[1] = new Array();
tab_image_size[1][0] = 570;
tab_image_size[1][1] = 499;

tab_image_size[2] = new Array();
tab_image_size[2][0] = 1140;
tab_image_size[2][1] = 998;

tab_image_size[3] = new Array();
tab_image_size[3][0] = 2280;
tab_image_size[3][1] = 1995;

var evn_tmp = "";

function map_zoom(i,act,evn){
	
	evn = evn?evn:(window.event?window.event:null);
	
	if(evn_tmp == "" || evn_tmp == null) evn_tmp = evn;
	
	var div_result_map_content = document.getElementById('div_result_map_content');
	var div_carto_pictos_hotel = document.getElementById('div_carto_pictos_hotel');
	var div_carto_map = document.getElementById('div_carto_map');
	
	var map_zoom_out_img = document.getElementById('map_zoom_out_img');
	var map_zoom_in_img = document.getElementById('map_zoom_in_img');
	var map_zoom_class_img = document.getElementById('map_zoom_class_img');
	
	var div_result_map_zoom = document.getElementById('div_result_map_zoom');
	var div_result_map_legend = document.getElementById('div_result_map_legend');
	
	/*
	var div_carto_cours_d_eau = document.getElementById('div_carto_cours_d_eau');
	var div_carto_agglomerations = document.getElementById('div_carto_agglomerations');
	var div_carto_foret_bri = document.getElementById('div_carto_foret_bri');
	var div_carto_foret_cou = document.getElementById('div_carto_foret_cou');
	var div_carto_foret_dom = document.getElementById('div_carto_foret_dom');
	var div_carto_foret_gav = document.getElementById('div_carto_foret_gav');
	var div_carto_foret_tou = document.getElementById('div_carto_foret_tou');
	var div_carto_foret_vio = document.getElementById('div_carto_foret_vio');
	*/
	var div_carto_routes = document.getElementById('div_carto_routes');
	var div_carto_villes = document.getElementById('div_carto_villes');
	//var div_carto_voies_ferrees = document.getElementById('div_carto_voies_ferrees');
	
	var hidden_zoom_class = document.getElementById('hidden_zoom_class');
	hidden_zoom_class.value = i;
	
	if(i == 1){
		map_zoom_in_img.src = root_path + "/imgv2/legende_boutonsplusactif.gif";
		map_zoom_in_img.onclick = Function("map_zoom(" + (i + 1) + ",\"in\")");
		map_zoom_out_img.src = root_path + "/imgv2/legende_boutonmoins.gif";
		map_zoom_out_img.onclick = Function("");
		
		div_carto_pictos_hotel.ondblclick = Function("map_zoom(" + (i + 1) + ",\"in\");");
	}
	else if(i == zoom_max){
		
		map_zoom_in_img.src = root_path + "/imgv2/legende_boutonsplus.gif";
		map_zoom_in_img.onclick = Function("");
		map_zoom_out_img.src = root_path + "/imgv2/legende_boutonmoinsactif.gif";
		map_zoom_out_img.onclick = Function("map_zoom(" + (i - 1) + ",\"out\")");
		
		div_carto_pictos_hotel.ondblclick = Function("");
	}
	else{
		
		map_zoom_in_img.src = root_path + "/imgv2/legende_boutonsplusactif.gif";
		map_zoom_in_img.onclick = Function("map_zoom(" + (i + 1) + ",\"in\")");
		map_zoom_out_img.src = root_path + "/imgv2/legende_boutonmoinsactif.gif";
		map_zoom_out_img.onclick = Function("map_zoom(" + (i - 1) + ",\"out\")");
		
		div_carto_pictos_hotel.ondblclick = Function("map_zoom(" + (i + 1) + ",\"in\");");
	}
	
	map_zoom_class_img.src = root_path + "/imgv2/legende_boutonzoom" + i + ".gif";
	
	var count_picto = 0;
	var count_picto_big = 0;
	if(document.getElementById('hidden_count_picto')) count_picto = document.getElementById('hidden_count_picto').value;
	if(document.getElementById('hidden_count_picto_big')) count_picto_big = document.getElementById('hidden_count_picto_big').value;
	var img_hotel = "";
	var img_hotel_big = "";
	var div_carto_pictos_hotel_pop = ""
	
	if(act == "in"){
		
		/*
		map_width_base = map_width_base * 2 + 2;
		map_height_base = map_height_base * 2 + 2;
		*/
		map_width_base = tab_image_size[i][0];
		map_height_base = tab_image_size[i][1];
		
		map_style_left = parseInt(div_result_map_content.style.left);
		map_style_top = parseInt(div_result_map_content.style.top);
		
		
		if(evn_tmp.srcElement?evn_tmp.srcElement:evn_tmp.target == div_carto_pictos_hotel){
			
			mouse_x = evn_tmp.clientX - map_window_left;
			mouse_y = evn_tmp.clientY - map_window_top;
			
			map_style_left = -(mouse_x + (mouse_x - center_x)) + map_style_left*2;
			map_style_top = -(mouse_y + (mouse_y - center_y)) + map_style_top*2;
		}
		else{
			
			map_style_left = -center_x + map_style_left*2;
			map_style_top = -center_y + map_style_top*2;
		}
		
		
		if(map_style_left > 0) map_style_left = 0;
		else if(map_style_left < -(map_width_base - map_window_width)) map_style_left = -(map_width_base-map_window_width);
		
		if(map_style_top > 0) map_style_top = 0;
		else if(map_style_top < -(map_height_base - map_window_height)) map_style_top = -(map_height_base-map_window_height);
		
		if (document.getElementById('hidden_count_picto')){
			
			var decalage_y = 0;
			/*
			if (i==3) {
				var decal = 17;
			}
			else if (i==2) {
				var decal = -18;
				var decalage_y = -33;
			}
			*/
			
				if(i==2) {
					var decalage_y = -19;
					var v2 = 63;
				}
				else {
					var decalage_y = 19;
					var v2 = 0;
				}

			
			for(var j = 0;j < count_picto;j++){
				
				img_hotel = document.getElementById('img_hotel_'+j);
				if(img_hotel){
					div_carto_pictos_hotel_pop = document.getElementById('div_hotel_pop_layer');
					img_hotel.style.left = parseFloat(img_hotel.style.left)*2 + "px";
					img_hotel.style.top = ((((parseFloat(img_hotel.style.top)+decalage_y)+9)*2) - 9 + v2) + "px";
				}
			}
		}
		if(document.getElementById('hidden_count_picto_big')){
			
			for(var m = 0;m < count_picto_big;m++){
				
				img_hotel_big = document.getElementById('img_hotel_big_'+m);
				img_hotel_big.style.left = parseFloat(img_hotel_big.style.left)*2 + "px";
				img_hotel_big.style.top = ((((parseFloat(img_hotel_big.style.top)+decalage_y)+9)*2) - 9 + v2) + "px";
			}
		}
	}
	else if(act == "out"){
		
		//map_width_base = (map_width_base - 2)/2;
		//map_height_base = (map_height_base - 2)/2;
		map_width_base = tab_image_size[i][0];
		map_height_base = tab_image_size[i][1];
		
		map_style_left = parseInt(div_result_map_content.style.left);
		map_style_top = parseInt(div_result_map_content.style.top);
		
		if(map_style_left != 0){
			
			map_style_left = (center_x + map_style_left)/2;
			
			if(map_style_left>0) map_style_left = 0;
			else if(map_style_left < -(map_width_base - map_window_width)) map_style_left = -(map_width_base - map_window_width);
		}
		if(map_style_top != 0){
			
			map_style_top = (center_y + map_style_top)/2;
			
			if(map_style_top>0) map_style_top = 0;
			else if(map_style_top < -(map_height_base - map_window_height)) map_style_top = -(map_height_base - map_window_height);
		}
		if(document.getElementById('hidden_count_picto')){
			
		
				//66
			
				if(i==1) {
					var decalage_y = 38;
					var v2 = -32;
				}
				else if(i==2) {
					var decalage_y = -38;
					var v2 = 0;
				}
			
	
			
			for(var k = 0;k < count_picto;k++){
				
				img_hotel = document.getElementById('img_hotel_'+k);
				if(img_hotel){
					div_carto_pictos_hotel_pop = document.getElementById('div_hotel_pop_layer');
					img_hotel.style.left = parseFloat(img_hotel.style.left)/2 + "px";
					img_hotel.style.top = ((((parseFloat(img_hotel.style.top)+decalage_y)+9)/2) - 9 + v2) + "px";
				}
			}
			
			for(var q = 0;q < count_picto_big;q++){
				
				img_hotel_big = document.getElementById('img_hotel_big_'+q);
				img_hotel_big.style.left = parseFloat(img_hotel_big.style.left)/2 + "px";
				img_hotel_big.style.top = ((((parseFloat(img_hotel_big.style.top)+decalage_y)+9)/2) - 9 + v2) + "px";
			}
		}
	}
	
	div_result_map_content.style.left = map_style_left + "px";
	div_result_map_content.style.top = map_style_top + "px";
	
	div_result_map_content.style.width = map_width_base + "px";
	div_result_map_content.style.height = map_height_base + "px";
	
	div_carto_pictos_hotel.style.width = map_width_base + "px";
	div_carto_pictos_hotel.style.height = map_height_base + "px";
	
	div_carto_map.style.width = map_width_base + "px";
	div_carto_map.style.height = map_height_base + "px";
	
	div_carto_map.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + ".png')";
	
	/*
	div_carto_cours_d_eau.style.width = map_width_base + "px";
	div_carto_agglomerations.style.width = map_width_base + "px";
	div_carto_foret_bri.style.width = map_width_base + "px";
	div_carto_foret_cou.style.width = map_width_base + "px";
	div_carto_foret_dom.style.width = map_width_base + "px";
	div_carto_foret_gav.style.width = map_width_base + "px";
	div_carto_foret_tou.style.width = map_width_base + "px";
	div_carto_foret_vio.style.width = map_width_base + "px";
	*/
	div_carto_routes.style.width = map_width_base + "px";
	div_carto_villes.style.width = map_width_base + "px";
	//div_carto_voies_ferrees.style.width = map_width_base + "px";
	
	/*
	div_carto_cours_d_eau.style.height = map_height_base + "px";
	div_carto_agglomerations.style.height = map_height_base + "px";
	div_carto_foret_bri.style.height = map_height_base + "px";
	div_carto_foret_cou.style.height = map_height_base + "px";
	div_carto_foret_dom.style.height = map_height_base + "px";
	div_carto_foret_gav.style.height = map_height_base + "px";
	div_carto_foret_tou.style.height = map_height_base + "px";
	div_carto_foret_vio.style.height = map_height_base + "px";
	*/
	div_carto_routes.style.height = map_height_base + "px";
	div_carto_villes.style.height = map_height_base + "px";
	//div_carto_voies_ferrees.style.height = map_height_base + "px";
	
	/*
	div_carto_cours_d_eau.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_cours_d_eau.png')";
	div_carto_agglomerations.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_agglomerations.png')";
	div_carto_foret_bri.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_foret_bri.png')";
	div_carto_foret_cou.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_foret_cou.png')";
	div_carto_foret_dom.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_foret_dom.png')";
	div_carto_foret_gav.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_foret_gav.png')";
	div_carto_foret_tou.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_foret_tou.png')";
	div_carto_foret_vio.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_foret_vio.png')";
	*/
	if (i==3) div_carto_routes.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_routes.png')";
	else div_carto_routes.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_routes.png')";
	div_carto_villes.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_villes.png')";
	//div_carto_voies_ferrees.style.backgroundImage = "url('" + root_path + "/images/map/zoom" + i + "/Carte_Zoom_" + i + "_voies_ferrees.png')";
	
	document.getElementById('div_hotel_pop_layer').style.display = "none";
	
	if(valeur == 1){
		stat("loire_atlantique","","","","/carto/zoom/level_"+i+"/");
	}
	
	
}
