function GetXmlHttpObject(){var objXMLHttp=null;if(window.XMLHttpRequest)objXMLHttp=new XMLHttpRequest;else if(window.ActiveXObject)objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");return objXMLHttp}function stateChanged(fonction,xmlHttp){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")fonction(xmlHttp.responseText)}
function htmlData(url,type,fonction,param,name){var xmlHttp=GetXmlHttpObject();if(xmlHttp==null){alert("Browser does not support HTTP Request");return}url=url+"&l="+langue+"&sid="+name+Math.random();if(type=="GET"){xmlHttp.open("GET",url,true);xmlHttp.send(param)}else{xmlHttp.open("POST",url,true);if(param!=""){xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",param.length);xmlHttp.setRequestHeader("Connection","close")}xmlHttp.send(param)}xmlHttp.onreadystatechange=
function(){stateChanged(fonction,xmlHttp)}}
function refresh_home_list_geo(val){var selected_index;var select;var tab;var tab2;var f;var tab_select_group;var total_select_group;var tab_select_option;var total_select_option;var option;var optgroup;var doc=eval("("+val+")");for(var cpt_obj=0;cpt_obj<doc.obj.length;cpt_obj++){var tab=doc.obj[cpt_obj];select=0;selected_index=1;f=document.getElementById(tab["element"]);if(tab["element"]=="selnbpers_geo")document.getElementById("selnbroom_geo").style.display="none";if(tab["element"]=="selnbroom_geo")document.getElementById("selnbpers_geo").style.display=
"none";f.style.display="block";while(f.hasChildNodes())f.removeChild(f.firstChild);option=document.createElement("option");option.value="";option.appendChild(document.createTextNode(tab["title"]));f.appendChild(option);tab_select_group=tab["select"];total_select_group=tab_select_group.length;for(var i=0;i<total_select_group;i++){if(tab_select_group[i]["line"]=="")continue;if(tab["element"]!="seltypeloc_geo"&&tab["element"]!="selnbpers_geo"&&tab["element"]!="selnbroom_geo"){optgroup=document.createElement("optgroup");
optgroup.label="------------------------------";f.appendChild(optgroup)}tab_select_option=String(tab_select_group[i]["line"]).split("*/*");total_select_option=tab_select_option.length;for(var j=0;j<total_select_option;j++){if(tab_select_option[j]=="")continue;if(tab_select_option[j].indexOf("__")>0){tab2=String(tab_select_option[j]).split("__");var option=document.createElement("option");option.value=tab2[0];option.appendChild(document.createTextNode(tab2[1]));if(tab["element"]!="seltypeloc_geo"&&
tab["element"]!="selnbpers_geo"&&tab["element"]!="selnbroom_geo")optgroup.appendChild(option);else f.appendChild(option);if(tab2[0]==tab["selected"])select=selected_index}selected_index++}}f.selectedIndex=select;if(tab["disabled"]==0)f.disabled=true;else f.disabled=false;if(tab["region"])document.frm_holidays.selregion.value=tab["region"];if(tab["departement"])document.frm_holidays.seldepartement.value=tab["departement"]}disabled_geo_form(false)}
function refresh_home_geo(){disabled_geo_form(true);var str="selcontinent="+document.getElementById("selcontinent_geo").value;str+="&selpays="+document.getElementById("selpays_geo").value;str+="&regdept="+document.getElementById("regdept_geo").value;str+="&selville="+document.getElementById("selville_geo").value;str+="&proom="+document.getElementById("proom").value;htmlData("script/async_geo.html","POST",refresh_home_list_geo,str,"geo")}
function disabled_geo_form(type){if(type){document.getElementById("home_geo_shadow").style.width=document.getElementById("home_geo_tab").clientWidth;document.getElementById("home_geo_shadow").style.height=document.getElementById("home_geo_tab").clientHeight;document.getElementById("home_geo_shadow").style.cursor="wait"}else{document.getElementById("home_geo_shadow").style.width=0;document.getElementById("home_geo_shadow").style.height=0;document.getElementById("home_geo_shadow").style.cursor="auto"}}
;
function refresh_domain_choice (langue, id_domain, currency, date_format, mesure, sprite, x, refresh) {
	if (currency==undefined) currency = '';
	if (date_format==undefined) date_format = '';
	if (mesure==undefined) mesure = '';
	if (sprite==undefined) sprite = '';
	if (x==undefined) x = '';
	if (refresh==undefined) refresh = '';
	var str = "langue="+langue+"&id_domain="+id_domain+"&currency="+currency+"&date_format="+date_format+"&mesure="+mesure+"&sprite="+sprite+"&refresh="+refresh;
	if (x!="") str += "&x="+x;
	htmlData('script/async_domain_choice.html', "POST", refresh_domain_menu, str, "geo");
}
function refresh_domain_menu (val) {	
	var doc = eval('(' + val + ')'); 
	var str_currency_selector = "";
	var str_currency = "";
	var str_date_format_selector = "";
	var str_date_format = "";
	var str_mesure_selector = "";
	var str_mesure = "";
	var langue = doc.langue[0]["value"];
	var id_domain = doc.id_domain[0]["value"];
	var currency = doc.currency[0]["value"];
	var date_format = doc.date_format[0]["value"];
	var mesure = doc.mesure[0]["value"];
	var x = doc.x[0]["value"];
	var sprite = doc.sprite[0]["value"];
	var refresh = doc.refresh[0]["value"];
	document.getElementById("domain_x_hidden").value = x;
	document.getElementById("domain_currency_selector").innerHTML = doc.domain_currency_selector[0]["label"];
	document.getElementById("domain_date_format_selector").innerHTML = doc.domain_date_format_selector[0]["label"];
	document.getElementById("domain_mesure_selector").innerHTML = doc.domain_mesure_selector[0]["label"];
	for (var cpt_obj=0; cpt_obj<doc.domain_currency_list.length; cpt_obj++) {
		var tab = doc.domain_currency_list[cpt_obj];
		str_currency += "<DIV id='domain_currency_"+tab["value"]+"' style='cursor:default; border:none;";
		str_currency += " width:190px; height:21px; background-color:white; font-size:13px; color:#3871b2; line-height:1.4;";
		str_currency += "'";
		str_currency += " onmouseover='this.style.backgroundColor=\"#d7f3ff\"' onmouseout='this.style.backgroundColor=\"white\"'";
		str_currency += " onclick='document.getElementById(\"domain_currency_all\").style.display=\"none\"; document.getElementById(\"domain_currency_status\").value=\"0\";";
		str_currency += " document.getElementById(\"domain_currency_selector\").innerHTML=this.innerHTML; document.getElementById(\"domain_currency_hidden\").value=\""+tab["value"]+"\";";
		str_currency += " refresh_domain_choice ("+langue+", "+id_domain+", \""+tab["value"]+"\", \""+date_format+"\", \""+mesure+"\", \""+sprite+"\", \""+x+"\");'";
		str_currency += ">";
		str_currency += tab["label"];
		str_currency += "</DIV>";	
	}	
	document.getElementById("domain_currency_all").innerHTML = str_currency;
	for (var cpt_obj=0; cpt_obj<doc.domain_date_format_list.length; cpt_obj++) {
		var tab = doc.domain_date_format_list[cpt_obj];
		str_date_format += "<DIV id='domain_mesure_"+tab["value"]+"' style='cursor:default; border:none; ";
		str_date_format += " width:115px; height:21px; background-color:white; font-size:13px; color:#3871b2; line-height:1.4;";
		str_date_format += "'";
		str_date_format += " onmouseover='this.style.backgroundColor=\"#d7f3ff\"' onmouseout='this.style.backgroundColor=\"white\"'";
		str_date_format += " onclick='document.getElementById(\"domain_date_format_all\").style.display=\"none\"; document.getElementById(\"domain_date_format_status\").value=\"0\";";
		str_date_format += " document.getElementById(\"domain_date_format_selector\").innerHTML=this.innerHTML; document.getElementById(\"domain_date_format_hidden\").value=\""+tab["value"]+"\";";
		str_date_format += " refresh_domain_choice ("+langue+", "+id_domain+", \""+currency+"\", \""+tab["value"]+"\", \""+mesure+"\", \""+sprite+"\", \""+x+"\");'";
		str_date_format += ">";
		str_date_format += tab["label"];
		str_date_format += "</DIV>";	
	}	
	document.getElementById("domain_date_format_all").innerHTML = str_date_format;
	for (var cpt_obj=0; cpt_obj<doc.domain_mesure_list.length; cpt_obj++) {
		var tab = doc.domain_mesure_list[cpt_obj];
		str_mesure += "<DIV id='domain_mesure_"+tab["value"]+"' style='cursor:default; border:none; ";
		str_mesure += " width:110px; height:21px; background-color:white; font-size:13px; color:#3871b2; line-height:1.4";
		str_mesure += "'";
		str_mesure += " onmouseover='this.style.backgroundColor=\"#d7f3ff\"' onmouseout='this.style.backgroundColor=\"white\"'";
		str_mesure += " onclick='document.getElementById(\"domain_mesure_all\").style.display=\"none\"; document.getElementById(\"domain_mesure_status\").value=\"0\";";
		str_mesure += " document.getElementById(\"domain_mesure_selector\").innerHTML=this.innerHTML; document.getElementById(\"domain_mesure_hidden\").value=\""+tab["value"]+"\";";
		str_mesure += " refresh_domain_choice ("+langue+", "+id_domain+", \""+currency+"\", \""+date_format+"\", \""+tab["value"]+"\", \""+sprite+"\", \""+x+"\");'";
		str_mesure += ">";
		str_mesure += tab["label"];
		str_mesure += "</DIV>";	
	}
	document.getElementById("domain_mesure_all").innerHTML = str_mesure;
	if (refresh!="") domain_choice();
}
function domain_choice () {
	document.getElementById('domain_currency_all').style.display='none'; 
	document.getElementById('domain_currency_status').value='0';
	document.getElementById('domain_date_format_all').style.display='none'; 
	document.getElementById('domain_date_format_status').value='0';
	document.getElementById('domain_mesure_all').style.display='none'; 
	document.getElementById('domain_mesure_status').value='0';
	if (document.getElementById('domain_x_hidden').value!='') {
		window.location=document.getElementById('domain_hidden_x').value+'&x='+document.getElementById('domain_x_hidden').value;
	} else {
		window.location=document.getElementById('domain_hidden').value;
	}
}
function refresh_ad_place_tab (val){
	var doc = eval('(' + val + ')'); 
	for (var cpt_obj=0; cpt_obj<doc.obj.length; cpt_obj++) {
		var tab = doc.obj[cpt_obj];
		var c = doc.obj[0]['c'];
		var current = doc.obj[0]['current'];
		var town = doc.obj[0]['town'];
		var place = doc.obj[0]['place'];
		var view = doc.obj[0]['view'];
		if(cpt_obj==0){
			var str ="<TABLE align='center' cellpadding='0' cellspacing='1' width='90%' bgcolor='#d6d6d6' style='font-size:11px'>";
				str +="<TR align='center' bgcolor='#fefefe'>";
				str +="<TH></TH>";
				str +="<TH>"+tab['name']+"</TH>";
				str +="<TH>"+tab['qm']+"</TH>";
				str +="<TH>"+tab['dist']+"</TH>";
				str +="<TH>"+tab['dir']+"</TH>";
				str +="<TH>"+tab['alt']+"</TH>";
				str +="<TH>"+tab['goog']+"</TH>";
				str +="<TH>"+tab['ad']+"</TH>";
				str +="<TH>"+tab['links']+"</TH>";
			str +="</TR>";
			var str8 = "<DIV id='sprite_ad_env' class=\""+tab['ico']+"\" onmouseover=\"document.getElementById('div"+cpt_obj+"').style.display='block'\" onmouseout=\"document.getElementById('div"+cpt_obj+"').style.display='none'\" style=\"position:absolute; left:"+tab['left']+"%; bottom:"+tab['bottom']+"% \">&nbsp;</DIV>";
				str8 +="<DIV id='div"+cpt_obj+"' style=\"margin-left:15; position:absolute; display:none; left:"+tab['left']+"%; bottom:"+tab['bottom']+"%; width:200; border:1px solid black; color:"+tab['color']+"; background-color:"+tab['bgcolor']+"\">"+tab['dist1']+"</DIV>";
			var tab2 = doc.obj[cpt_obj];
		} else {
			str +="<TR align='center' bgcolor="+tab['bgcolor']+" height='18' onmouseover='this.style.backgroundColor=\"#ddecf0\"; document.getElementById(\"div"+cpt_obj+"\").style.display=\"block\"' onmouseout='this.style.backgroundColor=\""+tab['bgcolor']+"\"; document.getElementById(\"div"+cpt_obj+"\").style.display=\"none\"'>";
				str +="<TD><SPAN id='sprite_ad_env' class="+tab['ico']+">&nbsp;</SPAN></TD>";
				str +="<TD style=\"color:"+tab['color']+"\">";
				if(cpt_obj!=1 && tab['href']!=''){
					str +="<A href=\""+tab['href']+"\" target='_parent' style='color:gray'>";
				}
					str += tab['name'];
				if(cpt_obj!=1 && tab['href']!=''){
					str +="</A>";
				}
				str +="</TD>";
				str +="<TD>"+tab['qm']+"</TD>";
				str +="<TD>"+tab['dist']+"</TD>";
				str +="<TD>"+tab['dir']+"</TD>";
				str +="<TD>"+tab['alt']+"</TD>";
				str +="<TD><TABLE class='table_sprite'><TR>";
				str +="<TD><SPAN id='sprite_ad_env' class="+tab['earth']+"></SPAN></TD>";
				str +="<TD style='cursor:pointer' ><SPAN id='sprite_ad_env' class="+tab['map']+" onclick=\""+tab['links']+"\"></SPAN></TD>";
				str +="</TR></TABLE></TD>";
				str +="<TD>"+tab['ad']+"</TD>";
				str +="<TD><A onclick=\""+tab['links']+"; return false;\" style='color:#6cb6fe; font-weight:bold; text-decoration:none; cursor:pointer' >"+view+"</A></TD>";
			str +="</TR>";
			str8 += "<DIV id='sprite_ad_env' class=\""+tab['ico']+"\" onmouseover=\"document.getElementById('div"+cpt_obj+"').style.display='block'\" onmouseout=\"document.getElementById('div"+cpt_obj+"').style.display='none'\" style=\"position:absolute; left:"+tab['left']+"%; bottom:"+tab['bottom']+"% \">&nbsp;</DIV>";
			str8 +="<DIV id='div"+cpt_obj+"' style=\"margin-left:15; position:absolute; display:none; left:"+tab['left']+"%; bottom:"+tab['bottom']+"%; width:200; border:1px solid black; color:"+tab['color1']+"; background-color:"+tab['bgcolor1']+"\">"+tab['dist1']+"</DIV>";
		}
	}
	str +="</TABLE>";
	if(c==1) {
		var str2 ="<SPAN id='sprite_ad_env' class='prox_left_purple'>&nbsp;</SPAN>";
		var str3 = "<TABLE cellpadding='0' cellspacing='0' height='27px' width='100%'><TR>";
		 	str3 += "<TD style='border-right:1px solid #614456;' nowrap>";
				str3 +="<DIV id='sprite_bg_h' class='prox_top_center_purple' style='width:100%; font-weight:bold; display:table-cell'>";
					str3 +="<DIV style='padding-left:5px; padding-right:5px; padding-top:10px; font-size:11px; line-height:1; height:17px;'>";
						str3 +="<A onclick='refresh_ad_place(0, 1)' style='color:white; text-decoration:none'>"+town+"</A>";
					str3 +="</DIV>";
				str3 +="</DIV>";			
			str3 +="</TD>";
		str3 +="</TR></TABLE>";
		var str4 = "<TD style='border-left:1px solid #d8d8d8;' nowrap>";
				str4 +="<DIV id='sprite_bg_h' class='prox_top_center_white' style='width:100%; font-weight:bold; display:table-cell'>";
					str4 +="<DIV style='padding-left:5px; padding-right:5px; padding-top:10px; font-size:11px; line-height:1; height:17px;'>";
						str4 +="<A onclick='refresh_ad_place(0, 2)' style='color:black; text-decoration:none'>"+place+"</A>";
					str4 +="</DIV>";
				str4 +="</DIV>";			
			str4 +="</TD>";
		var str5 = "<SPAN id='sprite_bg_h' class='prox_top_center_white' style='width:100%;'>&nbsp;</SPAN>";
		var str6 = "<SPAN id='sprite_ad_env' class='prox_right_white'>&nbsp;</SPAN>";
		var str_prox1 = "<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%; border-left:1px solid #5c3c53'></SPAN>";
		var str_prox2 ="<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%;'></SPAN>";
		var str_prox3 ="<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%;'></SPAN>";
		var str_prox4 ="<SPAN id='sprite_bg_h' class='prox_bottom_center_border' style='width:100%;'>&nbsp;</SPAN>";
		var str_prox5 ="<SPAN id='sprite_bg_h' class='prox_bottom_center_border' style='width:100%;'>&nbsp;</SPAN>";
		var str_prox6 ="<SPAN id='sprite_bg_h' class='prox_bottom_center_border' style='width:100%;'></SPAN>";
		var str_prox7 ="<SPAN id='sprite_ad_env' class='prox_right'>&nbsp;</SPAN>";
	} else {		
		var str2 ="<SPAN id='sprite_ad_env' class='prox_left_white'>&nbsp;</SPAN>";
		var str3 = "<TABLE cellpadding='0' cellspacing='0' height='27px' width='100%'><TR>";
		 	str3 += "<TD style='border-right:1px solid #d8d8d8;' nowrap>";
				str3 +="<DIV id='sprite_bg_h' class='prox_top_center_white' style='width:100%; font-weight:bold; display:table-cell'>";
					str3 +="<DIV style='padding-left:5px; padding-right:5px; padding-top:10px; font-size:11px; line-height:1; height:17px;'>";
						str3 +="<A onclick='refresh_ad_place(0, 1)' style='color:black; text-decoration:none'>"+town+"</A>";
					str3 +="</DIV>";
				str3 +="</DIV>";			
			str3 +="</TD>";
		str3 +="</TR></TABLE>";
			
		var str4 = "<TD style='border-left:1px solid #614456;' nowrap>";
				str4 +="<DIV id='sprite_bg_h' class='prox_top_center_purple' style='width:100%; font-weight:bold; display:table-cell'>";
					str4 +="<DIV style='padding-left:5px; padding-right:5px; padding-top:10px; font-size:11px; line-height:1; height:17px;'>";
						str4 +="<A onclick='refresh_ad_place(0, 2)' style='color:white; text-decoration:none'>"+place+"</A>";
					str4 +="</DIV>";
				str4 +="</DIV>";			
			str4 +="</TD>";
		var str5 = "<SPAN id='sprite_bg_h' class='prox_top_center_purple' style='width:100%;'>&nbsp;</SPAN>";
		var str6 = "<SPAN id='sprite_ad_env' class='prox_right_purple'>&nbsp;</SPAN>";
		var str_prox1 = "<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%; border-left:1px solid #5c3c53'></SPAN>";
		var str_prox2 ="<SPAN id='sprite_bg_h' class='prox_bottom_center_border' style='width:100%;'></SPAN>";
		var str_prox3 ="<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%;'></SPAN>";
		var str_prox4 ="<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%;'>&nbsp;</SPAN>";
		var str_prox5 ="<SPAN id='sprite_bg_h' class='prox_bottom_center' style='width:100%;'>&nbsp;</SPAN>";
		var str_prox6 ="<SPAN id='sprite_bg_h' class='prox_bottom_center_border' style='width:100%;'></SPAN>";
		var str_prox7 ="<SPAN id='sprite_ad_env' class='prox_right'>&nbsp;</SPAN>";
			
	}	
		str8 +="<IMG src='"+doc.obj[0]['imgpath']+"/ad/geomap.gif'>";
	var str9 ="<A onclick=\"refresh_ad_place("+tab2['tenless']+", "+c+");\" link=\""+tab2['previous_txt']+"\">";
	str9 +="<TABLE class='table_sprite'><TR><TD>";
	str9 +="<SPAN id='sprite_ad_env' class='page_lessten' border=0 style='cursor:pointer' title=\""+tab2['previous_txt']+"\" alt=\""+tab2['previous_txt']+"\">&nbsp;</SPAN>";
	str9 +="</TD></TR></TABLE></A> &nbsp;";
	
	str9 +="<A onclick=\"refresh_ad_place("+tab2['previous']+", "+c+");\" link=\""+tab2['previous_page']+"\">";
	str9 +="<TABLE class='table_sprite'><TR><TD>";
	str9 +="<SPAN id='sprite_ad_blue' class='previous_page' border=0 style='cursor:pointer'	title=\""+tab2['previous_page']+"\" alt=\""+tab2['previous_page']+"\">&nbsp;</SPAN>";
	str9 +="</TD></TR></TABLE></A> &nbsp; ";	
	if (tab2['beginsuite']) {
		for (i=1; i<=2; i++) {
			if (i>1) str9 += " | ";
			str9 +="<A onclick='refresh_ad_place("+i+", "+c+");' style='text-decoration:none; cursor:pointer; color:blue";
			if (i==current)str9 +="; color:black; font-size:14; font-weight:bold";
			str9 += "'>"+i+"</A>&nbsp;";			
		}
		str9 +="<A onclick=\"refresh_ad_place("+tab2['pointless']+", "+c+");\" style='text-decoration:none; cursor:pointer; color:blue'>...</A>&nbsp;";
	}
	for (i=tab2['debut']; i<=tab2['fin']; i++) {
		if (i>tab2['debut']) str9 += " | ";
		str9 +="<A onclick='refresh_ad_place("+i+", "+c+");' style='text-decoration:none; cursor:pointer; color:blue";
		if (i==current) str9 +="; color:black; font-size:14; font-weight:bold";
		str9 +="'>"+i+"</A>";
	}
	str9 +=" &nbsp;";
	if (tab2['endsuite']) {
		str9 +="<A onclick=\"refresh_ad_place("+tab2['pointmore']+", "+c+");\" style='text-decoration:none; cursor:pointer; color:blue'>...</A>&nbsp;";
		for (i=tab2['total_page']-1; i<=tab2['total_page']; i++) {
			if (i>tab2['total_page']-1) str9 += " | ";
			str9 +="<A onclick='refresh_ad_place("+i+", "+c+");' style='text-decoration:none; cursor:pointer; color:blue";
			if (i==current) str9 +="; color:black; font-size:14; font-weight:bold";
			str9 +="'>"+i+"</A>&nbsp;";
		}
	}
	str9 +="<A onclick=\"refresh_ad_place("+tab2['next']+", "+c+");\" link=\""+tab2['next_page']+"\">";
	str9 +="<TABLE class='table_sprite'><TR><TD>";
	str9 +="<SPAN id='sprite_ad_blue' class='next_page' border=0 style='cursor:pointer'	title=\""+tab2['next_page']+"\" alt=\""+tab2['next_page']+"\">&nbsp;</SPAN>";
	str9 +="</TD></TR></TABLE></A> &nbsp;";
	str9 +="<A onclick=\"refresh_ad_place("+tab2['tenmore']+", "+c+");\" link=\""+tab2['next_txt']+"\">";
	str9 +="<TABLE class='table_sprite'><TR><TD>";
	str9 +="<SPAN id='sprite_ad_env' class='page_moreten' border=0 style='cursor:pointer' title=\""+tab2['next_txt']+"\" alt=\""+tab2['next_txt']+"\">&nbsp;</SPAN>";
	str9 +="</TD></TR></TABLE></A> &nbsp;";
	str10 ="<TABLE style='font-size:10px'><TR>";
	str10 +="<TD width=126 style='border-bottom:1px solid black'>";
	str10 +="<DIV style='float:right'>"+tab2['tabpos1']+"</DIV>";
	str10 +=tab2['tabpos2']+"</TD>";
	str10 +="<TD width=56 align='center' style='border-bottom:1px solid black; border-left:1px dashed gray; border-right:1px dashed gray'>0</TD>";
	str10 +="<TD width=126 align='right' style='border-bottom:1px solid black'>";
	str10 +="<DIV style='float:left'>"+tab2['tabpos1']+"</DIV>";
	str10 +=tab2['tabpos2']+"</TD>";
	str10 +="</TD></TR></TABLE>";
	document.getElementById("select_min").onchange = function() { refresh_ad_place(current,c) };	
	document.getElementById("select_max").onchange = function() { refresh_ad_place(current,c) };	
	document.getElementById("ad_place_async").innerHTML = str;
	document.getElementById("ad_place_prox_left").innerHTML = str2;	
	document.getElementById("ad_place_prox_center").innerHTML = str3;
	document.getElementById("ad_place_prox_center2").innerHTML = str4;
	document.getElementById("prox_top_center").innerHTML = str5;
	document.getElementById("prox_right").innerHTML = str6;
	document.getElementById("prox_bottom1").innerHTML = str_prox1;
	document.getElementById("prox_bottom2").innerHTML = str_prox2;
	document.getElementById("prox_bottom3").innerHTML = str_prox3;
	document.getElementById("prox_bottom4").innerHTML = str_prox4;
	document.getElementById("prox_bottom5").innerHTML = str_prox5;
	document.getElementById("prox_bottom6").innerHTML = str_prox6;
	document.getElementById("prox_bottom7").innerHTML = str_prox7;
	document.getElementById("geomap").innerHTML = str8;
	document.getElementById("page_loc").innerHTML = str9;
	document.getElementById("geomap2").innerHTML = str10;
}
function refresh_ad_place (page, c) {
	var str = "ville="+document.getElementById("div_ville").value;
	str += "&alt="+document.getElementById("div_alt").value;
	str += "&lat="+document.getElementById("div_lat").value;
	str += "&long="+document.getElementById("div_long").value;
	str += "&search="+document.getElementById("div_search").value;
	str += "&mesure="+document.getElementById("div_mesure").value;
	str += "&page="+page;
	str += "&c="+c;
	str += "&select_min="+document.getElementById("select_min").value;
	str += "&select_max="+document.getElementById("select_max").value;
	str += "&ref="+document.getElementById("ref").value;
	htmlData('script/async_ad_place.html', "POST", refresh_ad_place_tab, str ,"ad_place");
}
function refresh_ad_photo (nopage, nphoto, langue, n_annonce, link) {
	if(nphoto<0) nphoto=0;
	var str = "nopage="+nopage;
	str += "&nphoto="+nphoto;
	str += "&langue="+langue;
	str += "&n_annonce="+n_annonce;
	str += "&link="+link;
	htmlData('script/async_ad_photo.html', "POST", refresh_ad_photo_tab, str ,"ad_photo");
}
function refresh_ad_photo_tab (val) {
	var doc = eval('('+val+')'); 
	var nopage = doc.param[0]['nopage'];
	var deb = doc.param[0]['deb'];
	var fin = doc.param[0]['fin'];
	var nphoto = doc.param[0]['nphoto'];
	var maxpage = doc.param[0]['maxpage'];
	var j = doc.param[0]['j'];
	var onclick0 = doc.param[0]['onclick0'];
	var onclick1 = doc.param[0]['onclick1'];
	var onclick2 = doc.param[0]['onclick2'];
	var onclick3 = doc.param[0]['onclick3'];
	var classcolor = doc.param[0]['classcolor'];
	var nextpage = doc.param[0]['nextpage'];
	var previouspage = doc.param[0]['previouspage'];
	var link = doc.param[0]['link'];
	var str="<TABLE cellpadding='0' cellspacing='2' width='100%'><TR>";
	for (var i=0; i<j; i++) {
		var tab = doc.obj[i];
		if(i==0) {
			src3 = tab["src3"];
			src4 = tab["src4"];
			w = tab["widthphoto"];
			h = tab["heightphoto"];
			title = tab["descphoto"];
		}
		if (i==nphoto-deb) var color = "#ff6600";
		else var color = "white";
		if (i%2==deb%2) str +="";
		str +="<TD align='center'>";
		str +="<DIV onclick='pause()'>";
		str +="<IMG id='"+tab["id_img"]+"' src='"+tab["src1"]+"'";
		str +="onclick=\"dynamic(this,'"+tab["src3"]+"','"+tab["src4"]+"',"+tab["widthphoto"]+","+tab["heightphoto"]+", "+deb+", "+fin+");\"";
		str +="style='cursor:pointer; border:3px solid "+color+"; height:70' title=\""+tab["descphoto"]+"\" alt=\""+tab["nomphoto"]+"\"></DIV></TD>";
		if (i%2==deb%2+1) str +="</TR>";
	}
	str +="</TR></TABLE>";
	str0 ="<SPAN id='sprite_ad_photo_"+classcolor+"' class='button_first' style='vertical-align:middle; cursor:pointer' onclick=\""+onclick0+"\">&nbsp;</SPAN>";
	str1 ="<SPAN id='sprite_ad_photo_"+classcolor+"' class='button_previous' style='vertical-align:middle; cursor:pointer' onclick=\""+onclick1+"\" title=\""+previouspage+"\" alt=\""+previouspage+"\">&nbsp;</SPAN>";
	str2 ="<SPAN id='sprite_ad_photo_"+classcolor+"' class='button_next' style='vertical-align:middle; cursor:pointer' onclick=\""+onclick2+"\" title=\""+nextpage+"\" alt=\""+nextpage+"\">&nbsp;</SPAN>";
	str3 ="<SPAN id='sprite_ad_photo_"+classcolor+"' class='button_last' style='vertical-align:middle; cursor:pointer' onclick=\""+onclick3+"\">&nbsp;</SPAN>";
	str4 = nopage+"/"+maxpage;
	document.getElementById("tab_photo").innerHTML = str;
	document.getElementById("buttonprevious").innerHTML = str1;
	document.getElementById("buttonfirst").innerHTML = str0;
	document.getElementById("buttonnext").innerHTML = str2;
	document.getElementById("buttonlast").innerHTML = str3;
	document.getElementById("npage").innerHTML = str4;
	if(link==1)	{
		document.getElementById('imgmain').src = tab['src3'];
		document.getElementById('label').innerHTML = tab["descphoto"];
		document.getElementById('imgmain').onclick = function(){popup(tab['src4'],tab["widthphoto"],tab["heightphoto"],tab["descphoto"])};
		document.getElementById('imgmain').title = tab["descphoto"];
	}
	else	{
		document.getElementById('imgmain').src = src3;
		document.getElementById('label').innerHTML = title;
		document.getElementById('imgmain').onclick = function(){popup(src4,w,h,title)};
		document.getElementById('imgmain').title = title;
	}
}
function refresh_ad_calend (val_annee, start_mois, formatdate, selecteur, moischoisi, anneechoisi, langue, n_annonce, nb_mois, type_client) {
	var str = "val_annee="+val_annee;
	str += "&start_mois="+start_mois;
	if(selecteur==1) str += "&date1="+document.getElementById('choix_mois').value;
	else if(selecteur==2) str += "&date1="+document.getElementById('choix_mois2').value;
	str += "&formatdate="+formatdate;
	str += "&moischoisi="+moischoisi;
	str += "&anneechoisi="+anneechoisi;
	str += "&langue="+langue;
	str += "&n_annonce="+n_annonce;
	str += "&nb_mois="+nb_mois;
	if(type_client==1065) str += "&n_prod="+document.getElementById('n_room1').value;
	htmlData('script/async_ad_calend.html', "POST", refresh_ad_calend_tab, str ,"ad_calend");
}
function refresh_ad_calend_tab (val) {
	var doc = eval('('+val+')'); 
	var val_annee = doc.para[0]['val_annee'];
	var val_annee2 = doc.para[0]['annee1'];
	var langue = doc.para[0]['langue'];
	var n_annonce = doc.para[0]['n_annonce'];
	var type_client = doc.para[0]['type_client'];
	var start_mois = doc.para[0]['start_mois'];
	var str ="<span>"+doc.para[0]['from']+" </span>";
	var str2 ="<span>"+doc.para[0]['from']+" </span>";
		str +="<SELECT name='choix_mois' id='choix_mois' onchange=\"refresh_ad_calend("+val_annee+", "+start_mois+", '"+doc.para[0]['formatdate']+"', 1, 0, 0, "+langue+", "+n_annonce+", "+doc.para[0]['nb_mois']+", "+type_client+")\" style='font-size:10'>";
		str2 +="<SELECT name='choix_mois2' id='choix_mois2' onchange=\"refresh_ad_calend("+val_annee+", "+start_mois+", '"+doc.para[0]['formatdate']+"' ,2, 0, 0, "+langue+", "+n_annonce+", "+doc.para[0]['nb_mois']+", "+type_client+")\" style='font-size:10'>";
	var str3 ='';
	var i=0;
	var tabyear = new Array();
	for (var v_mois=start_mois; v_mois<(start_mois+24); v_mois++) {
		var tab = doc.select[i];
		var val_mois = v_mois%12;
		if (val_mois==0) val_mois=12;
		if (val_mois == 1 && v_mois>12) val_annee+=1;
		tabyear[i] = val_annee;
		str3 +="<option ";
		if (val_annee == doc.para[0]['annee1'] && val_mois == doc.para[0]['mois1']){ 
			str3 +=" SELECTED ";
		}
		str3 +=" value='"+val_annee+"/"+tab['strpad']+"/01'> ";
		if (doc.para[0]['formatdate']=="en") {
			str3 += val_annee+" "+tab['maj']+"</option>";
		}
		else {
			str3 += tab['maj']+" "+val_annee+"</option>";
		}
		i++;
	}
	str3 +="</select>";
	str +=str3;
	str2 +=str3;
	var anneechoisi = doc.para[0]['annee1'];
	var dif = anneechoisi-val_annee2;
	var moischoisi = (doc.para[0]['mois1'])+(12*dif)-start_mois;
	i=0;
	var tabline ="";
	for (v_mois=parseInt(doc.para[0]['mois1']); v_mois<(parseInt(doc.para[0]['mois1'])+parseInt(doc.para[0]['nb_mois'])); v_mois++){
		var val_mois = v_mois%12;
		if (val_mois==0) val_mois=12;
		if (val_mois == 1 && v_mois>12) val_annee2+=1;
		var mois_next = (start_mois+moischoisi+1)%12;
		if (mois_next==0) mois_next=12;
		if (start_mois+moischoisi+1>12) var annee_next = anneechoisi+1;
		var mois_prev = (start_mois+moischoisi-1)%12;
		if (mois_prev==0) mois_prev=12;
		if (start_mois+moischoisi-1==0) var annee_prev = anneechoisi-1;
		var str3 ="<TABLE class='blocmonth' cellpadding='0' cellspacing='0' width='100%'><TR height='20'>";
			str3 +="<TD id='sprite_calendar' style='padding:0px; padding-left:5px; width:8px; line-height:0.1;' bgcolor='A2DAF4'>";
			str3 +="<span class='puce_precedent' onclick=\"refresh_ad_calend("+doc.para[0]['val_annee']+", "+start_mois+", '"+doc.para[0]['formatdate']+"', 1, '"+mois_prev+"', '"+annee_prev+"', "+langue+", "+n_annonce+", "+doc.para[0]['nb_mois']+", "+type_client+" );\" style='cursor:pointer'>&nbsp;</span>";
			str3 +="</TD>";
			str3 +="<TD id='month"+i+"' align='center' style='font-size:14' bgcolor='A2DAF4'>"+doc.obj[i]['maj2']+" "+val_annee2+"";
			str3 +="</TD>";
			str3 +="<TD id='sprite_calendar' style='padding:0px; padding-right:5px; width:8px; line-height:0.1;' bgcolor='A2DAF4'>";
			str3 +="<span class='puce_suivant'  onclick=\"refresh_ad_calend("+doc.para[0]['val_annee']+", "+start_mois+", '"+doc.para[0]['formatdate']+"', 1, '"+mois_next+"', '"+annee_next+"', "+langue+", "+n_annonce+", "+doc.para[0]['nb_mois']+", "+type_client+" );\" style='cursor:pointer'>&nbsp;</span>";
			str3 +="</TD></TR></TABLE>";
			if(doc.para[0]['calendrier_long']==true){
				if(i==0){
					document.getElementById('daytab'+i).innerHTML = "<TABLE id='faretab2' class='blocmonth' align='left' border='0' cellpadding='0' cellspacing='2'>"+doc.sem[i]['tabline']+"</TABLE>";
					document.getElementById('title_tab_calend_'+i).innerHTML = "";
					document.getElementById('div_cal_'+i).style.marginLeft = 50;
				} else {
					document.getElementById('daytab'+i).innerHTML = "";
					document.getElementById('title_tab_calend_'+i).innerHTML = "";
					document.getElementById('tl_cal_'+i).style.visibility = "hidden";
					document.getElementById('tr_cal_'+i).style.visibility = "hidden";
					document.getElementById('bl_cal_'+i).style.visibility = "hidden";
					document.getElementById('br_cal_'+i).style.visibility = "hidden";
					document.getElementById('left_cal_'+i).style.borderLeft = "none";
					document.getElementById('right_cal_'+i).style.borderRight = "none";
					document.getElementById('top_cal_'+i).style.borderTop = "none";
					document.getElementById('bottom_cal_'+i).style.borderBottom = "none";
				}
			} else {
					document.getElementById('daytab'+i).innerHTML = "<TABLE id='faretab2' class='blocmonth' align='left' border='0' cellpadding='0' cellspacing='2'>"+doc.sem[i]['tabline']+"</TABLE>";
					document.getElementById('title_tab_calend_'+i).innerHTML = str3;
					document.getElementById('tl_cal_'+i).style.visibility = "visible";
					document.getElementById('tr_cal_'+i).style.visibility = "visible";
					document.getElementById('bl_cal_'+i).style.visibility = "visible";
					document.getElementById('br_cal_'+i).style.visibility = "visible";
					document.getElementById('left_cal_'+i).style.borderLeft = "1px solid #cbc9cc";
					document.getElementById('right_cal_'+i).style.borderRight = "1px solid #cbc9cc";
					document.getElementById('top_cal_'+i).style.borderTop = "1px solid #cbc9cc";
					document.getElementById('bottom_cal_'+i).style.borderBottom = "1px solid #cbc9cc";
					document.getElementById('div_cal_'+i).style.marginLeft = 0;
			}
		i++;
	}			
	document.getElementById('periodtab').innerHTML = "<TABLE align='center' cellpadding='0' cellspacing='0' width='100%'>"+doc.para[0]['tabperiod']+"</TABLE>";
	document.getElementById('mois1').innerHTML = str;
	document.getElementById('mois2').innerHTML = str2;
	if(document.getElementById('pdf_link'))	document.getElementById('pdf_link').href = doc.para[0]['pdf_href'];
}
function refresh_ad_room (i_produit, n_annonce, classcolor) {
	if(i_produit=="select") {
		if(isNaN(document.getElementById('n_room1').value)) i_produit = document.getElementById('n_room1').value;
		else if(document.getElementById('n_room1').value>0) i_produit = document.getElementById('n_room1').value-1;
	}
	var str ="i_produit="+i_produit;
	str +="&n_annonce="+n_annonce;
	str +="&classcolor="+classcolor;
	htmlData('script/async_ad_room.html', "POST", refresh_ad_room_tab, str ,"ad_room");
}
function refresh_ad_room_tab (val) {
	var doc = eval("("+val+")"); 
	document.getElementById('title_room').innerHTML = doc.para[0]['str'];
	document.getElementById('room_content').innerHTML = doc.para[0]['str2'];
	document.getElementById('room_name').innerHTML = doc.para[0]['str3'];
	document.getElementById('rates').innerHTML = doc.para[0]['str4'];
	if(document.getElementById('n_room1').value!="d") document.getElementById('n_room1').value = doc.para[0]['str5'];
}/*

Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.788 - Built: Monday January 14 2008 - 18:57
Copyright 2008 (c) Milonic Solutions Limited. All Rights Reserved.
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times

*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 

License Details:
 Number: 207296
    URL: iha.com
   Type: Professional
  Dated: Tuesday January 22 2008

*/

lNum=207296;lURL="iha.com";lVer="5.788";_$t_="Please visit www.milonic.com for details on how to remove this evaluation message";_mD=2;_d=document;_dB=_d.body;_n=navigator;_L=location;_nv=$tL(_n.appVersion);_nu=$tL(_n.userAgent);_ps=parseInt(_n.productSub);_cls=_toL=X_=Y_=_n=null;_W=window;_wp=_W.createPopup;ie=(_d.all)?1:0;ie4=(!_d.getElementById&&ie)?1:0;ie5=(!ie4&&ie&&!_wp)?1:0;ie55=(!ie4&&ie&&_wp)?1:0;ie7=(_nu.indexOf("msie 7")!=-1)?1:0;ns6=(_nu.indexOf("gecko")!=-1)?1:0;konq=(_nu.indexOf("konqueror")!=-1)?1:0;sfri=(_nu.indexOf("safari")!=-1)?1:0;if(sfri&&_d.evaluate)sfri=0;if(konq||sfri){_ps=0;ns6=0}ns4=(_d.layers)?1:0;ns61=(_ps>=20010726)?1:0;ns7=(_ps>=20020823)?1:0;ns72=(_ps>=20040804)?1:0;ff15=(_ps>=20060000)?1:0;op=(_W.opera)?1:0;if(op||konq){ie=0;ie7=0;}op5=(_nu.indexOf("opera 5")!=-1)?1:0;op6=(_nu.indexOf("opera 6")!=-1||_nu.indexOf("opera/6")!=-1)?1:0;op7=(_nu.indexOf("opera 7")!=-1||_nu.indexOf("opera/7")!=-1)?1:0;_OpV=(op&&_W.opera.version)?_W.opera.version():0;if(_OpV)op7=1;mac=(_nv.indexOf("mac")!=-1)?1:0;if(ns6||ns4||op||sfri)mac=0;ns60=0;if(ns6&&!ns61)ns60=1;if(op7)op=0;IEDtD=0;if(!op&&((_d.all||ns7)&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype&&_d.doctype.name.indexOf(".dtd")!=-1))IEDtD=1;_jv="javascript:;";inEditMode=_rstC=inDragMode=_d.dne=lcl=$R1=$mD=_mcnt=_sL=_sT=_ofMT=_oldbW=_bW=_oldbH=_bl=_el=_st=_en=_cKA=$BW=0;_mtX="";_startM=_c=1;_trueItemRef=focusedMenu=t_=_itemRef=_mn=-1;_zi=_aN=_bH=999;if(op)ie55=0;B$="absolute";$O="menu";$5="hidden";$_O="scroll";function $c(v){if(_d.getElementById)return _d.getElementById(v);if(_d.all)return _d.all[v]}function _StO(f,m){return setTimeout(f,m)}_m=[];_mi=[];_sm=[];_tsm=[];_cip=[];$S3="2E636F6D2F";$S4="646D2E706870";$S5=4048;_MT=_StO("",0);_oMT=_StO("",0);_cMT=_StO("",0);_mst=_StO("",0);_Mtip=_StO("",0);$u="undefined ";_Lhr=_L.href;$6="visible";if(op5){$5=$tU($5);$6=$tU($6)}function M_hideLayer(){}function _oTree(){}function mmMouseMove(){}function _TtM(){}function _IdM(){}function _ocURL(){}function mmClick(){}function autoOT(){}function _iF0C(){}function showtip(){}function isEditMode(){}function hidetip(){}function mmVisFunction(){}function doMenuResize(){}function _tMR(){}function _maxm(){}function $9(ap){if(ie55){try{if(ap.filters){return 1}}catch(e){}}else return false}function _p8(a,d){var t=[];for(_a=0;_a<a.length;_a++){if(a[_a]!=d){t[t.length]=a[_a]}}return t}function copyOf(w){for(_cO in w){this[_cO]=w[_cO]}}function $tL(v){if(v)return v.toLowerCase()}function $tU(v){if(v)return v.toUpperCase()}function $pU(v){if(v)return parseInt(v)}_lDd=0;function _gLd(){if(_d.readyState&&_d.readyState!="complete"){setTimeout("_gLd()",50);return}_lDd=1;_oldbH=0}if(!_d.readyState)_d.addEventListener('DOMContentLoaded',_gLd,false);else setTimeout("_gLd()",50);function drawMenus(){_startM=1;_oldbH=0;_oldbW=0;_baL=0;if(_W.buildAfterLoad)_baL=1;for(_y=_mcnt;_y<_m.length;_y++)o$(_y,1,_baL);if(_W._pageIsXML){var G=$c(_menuContainer);if(!G){G=_d.createElement("div");G.id=_menuContainer;_dB.appendChild(G)}G.innerHTML=_mtX}}_$S={menu:0,text:1,url:2,showmenu:3,status:4,onbgcolor:5,oncolor:6,offbgcolor:7,offcolor:8,offborder:9,separatorcolor:10,padding:11,fontsize:12,fontstyle:13,fontweight:14,fontfamily:15,high3dcolor:16,low3dcolor:17,pagecolor:18,pagebgcolor:19,headercolor:20,headerbgcolor:21,subimagepadding:22,subimageposition:23,subimage:24,onborder:25,ondecoration:26,separatorsize:27,itemheight:28,image:29,imageposition:30,imagealign:31,overimage:32,decoration:33,type:34,target:35,align:36,imageheight:37,imagewidth:38,openonclick:39,closeonclick:40,keepalive:41,onfunction:42,offfunction:43,onbold:44,onitalic:45,bgimage:46,overbgimage:47,onsubimage:48,separatorheight:49,separatorwidth:50,separatorpadding:51,separatoralign:52,onclass:53,offclass:54,itemwidth:55,pageimage:56,targetfeatures:57,visitedcolor:58,pointer:59,imagepadding:60,valign:61,clickfunction:62,bordercolor:63,borderstyle:64,borderwidth:65,overfilter:66,outfilter:67,margin:68,pagebgimage:69,swap3d:70,separatorimage:71,pageclass:72,menubgimage:73,headerborder:74,pageborder:75,title:76,pagematch:77,rawcss:78,fileimage:79,clickcolor:80,clickbgcolor:81,clickimage:82,clicksubimage:83,imageurl:84,pagesubimage:85,dragable:86,clickclass:87,clickbgimage:88,imageborderwidth:89,overseparatorimage:90,clickseparatorimage:91,pageseparatorimage:92,menubgcolor:93,opendelay:94,tooltip:95,disabled:96,dividespan:97,tipdelay:98,tipfollow:99,tipmenu:100,menustyle:101,pageoncolor:102,id:103,overpageimage:104,nowrap:105,overflow:106,hotkey:107,leftimage:108,rightimage:109,overleftimage:110,overrightimage:111,pageleftimage:112,pagerightimage:113,nobreadcrumb:114,custom:115,subimagecss:116,onsubimagecss:117};function mm_style(){for($i in _$S)this[$i]=_n;this.built=0}_$M={items:0,name:1,top:2,left:3,itemwidth:4,screenposition:5,style:6,alwaysvisible:7,align:8,orientation:9,keepalive:10,openstyle:11,margin:12,overflow:13,position:14,overfilter:15,outfilter:16,menuwidth:17,itemheight:18,followscroll:19,menualign:20,mm_callItem:21,mm_obj_ref:22,mm_built:23,menuheight:24,ignorecollision:25,divides:26,zindex:27,opendelay:28,resizable:29,minwidth:30,maxwidth:31,mm_fixheight:32,C:33,rawcss:34};function menuname(name){for($i in _$M)this[$i]=_n;this.name=$tL(name);_c=1;_mn++}function f_(i){_mi[_bl]=[];_mi[_bl][0]=_mn;i=i.split(";");_sc="";for(var a=0;a<i.length;a++){var p=i[a].indexOf("`");if(p!=-1){_sc=";";_tI=i[a];if(p==i[a].lastIndexOf("`")){for(var b=a;b<i.length;b++){if(i[b+1]){_tI+=";"+i[b+1];a++;if(i[b+1].indexOf("`")!=-1)b=i.length}}}i[a]=_tI.replace(/`/g,"")}p=i[a].indexOf("=");if(p==-1){if(i[a])_si=_si+";"+i[a]+_sc}else{_si=i[a].slice(p+1);_w=i[a].slice(0,p);if(_w=="showmenu")_si=$tL(_si)}if(i[a]&&_$S[_w])_mi[_bl][_$S[_w]]=_si}var S=_x[6];if(_mi[_bl][101])S=eval(_mi[_bl][101]);for($i in S)if(S[$i]){var v=_mi[_bl][_$S[$i]];if(!v&&v!="")_mi[_bl][_$S[$i]]=S[$i]}_m[_mn][0][_c-2]=_bl;_c++;_bl++}_c=0;function ami(t){_t=this;if(_c==1){_c++;_m[_mn]=[];_x=_m[_mn];for($i in _t)_x[_$M[$i]]=_t[$i];_x[21]=-1;_x[0]=[];if(!_x[12])_x[12]=0;var s=_m[_mn][6];var m=_m[_mn];if(m[15]==_n)m[15]=s.overfilter;if(m[16]==_n)m[16]=s.outfilter;if(m[13]==_n)m[13]=s.overflow;s[65]=(s.borderwidth)?$pU(s.borderwidth):0;s[64]=s.borderstyle;s[63]=s.bordercolor;if(_W.ignoreCollisions)m[25]=1;if(!s.built){_WzI=_zi;if(_W.menuZIndex){_WzI=_W.menuZIndex;_zi=_WzI}lcl++;var v=s.visitedcolor;if(v&&!_W._pageIsXML){_oC=s.offcolor;if(!_oC)_oC="#000000";if(!v)v="#ff0000";_d.write("<style>.g_"+lcl+":link{color:"+_oC+"}.g_"+lcl+":visited{color:"+v+"}</style>");s.g_="g_"+lcl}s.built=1}}f_(t)}menuname.prototype.aI=ami;
// fonctions async
function BasketGetXmlHttpObject()
{
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	
	}
	return objXMLHttp
}

function BasketstateChanged(fonction, xmlHttp)
{
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") fonction(xmlHttp.responseText);
}

function BaskethtmlData(url, type, fonction, param, name)
{	
	var xmlHttp=BasketGetXmlHttpObject()
	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	
	url=url+"&sid="+name+Math.random();
	
	if (type=="GET") { 
		xmlHttp.open("GET",url,true) ;
		xmlHttp.send(param);
	} else {
		xmlHttp.open("POST",url,true);
		if (param!="") {
			xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xmlHttp.setRequestHeader("Content-length", param.length);
			xmlHttp.setRequestHeader("Connection", "close");
		}
		xmlHttp.send(param);
	}
	
	xmlHttp.onreadystatechange= function() { 
		BasketstateChanged(fonction, xmlHttp);
	}
}

function refresh_basket (n_annonce, type, form) {
	
	var menu_cookie = document.cookie;
	if (menu_cookie=="") return;
	var str = "n_annonce="+n_annonce+"&type="+type+"&form="+form;
	BaskethtmlData('script/async_basket.html', "POST", refresh_count_basket, str, "basket");
	
}

function refresh_count_basket (val) {
		
	if (val=="") return;
	
	var doc = eval('(' + val + ')'); 
	
	var tab = doc.obj[0];
	
	var style = "";
	if (tab["count"]!="0") {
		document.getElementById("basket_count").style.color="green"; 
		document.getElementById("basket_count").style.fontSize="12px"; 
		document.getElementById("basket_count").style.fontWeight="bold";
	} else {
		document.getElementById("basket_count").style.color=""; 
		document.getElementById("basket_count").style.fontSize=""; 
		document.getElementById("basket_count").style.fontWeight="";
	}
	
	document.getElementById("basket_count2").innerHTML=tab["count"];
	if (document.getElementById("hidden_basket")) document.getElementById("hidden_basket").value="1";
	if (tab["form"]!="undefined") eval('document.'+tab["form"]+'.submit();');
}function ihagradient (obj1, obj2, start, end, type, quality, width2) {
	var gbase = document.getElementById(obj1);
	var width = gbase.clientWidth;
	var height = gbase.clientHeight;	
	gbase.style.background = start;	
	var gbase2 = document.getElementById(obj2);	
	var degrad_height = height/quality;
	var degrad_width = width/quality;
	if (width2>0) {width=width2; degrad_width = width2/quality;}	
	if(type=='vertical') {
		for(i = 0; i < height/degrad_height; i++) {
			var g = document.createElement('div');
			g.style.fontSize = '0px';
			g.style.overflow = 'hidden';
			g.style.height = degrad_height+'px';
			g.style.width = width + 'px';
			g.style.background = end;
			g.style.opacity = i/(height/degrad_height);
			g.style.filter = 'alpha(opacity=' + i/(height/(100*degrad_height)) + ')';
			gbase2.appendChild(g);
		}
	} else {
		for(i = (width/degrad_width); i > 1; i--) {
			var g = document.createElement('div');
			g.style.cssText = 'float:left;';
			g.style.height = height + 'px';
			g.style.width = degrad_width+'px';
			g.style.fontSize = '0px';
			g.style.overflow = 'hidden';
			g.style.background = end;
			g.style.opacity = i/(width/degrad_width);
			g.style.filter = 'alpha(opacity=' + i/(width/(100*degrad_width)) + ')';
			gbase2.appendChild(g);
		}
	}
	document.getElementById(obj1).appendChild(gbase2);
}

function show_div_list_domain (num, num2, num3) {
	eval("change_opacity ('div_title_domain_'+num, opacite"+num+");");
	eval("if (opacite"+num+"<max_list) {change_opacity ('div_list_domain_'+num, opacite"+num+");}");
	eval("if (opacite"+num+"<max_list) {change_opacity ('div_secure_domain_'+num, opacite"+num+");}");
	document.getElementById('div_title_domain_'+num).style.display='block';
	document.getElementById('div_list_domain_'+num).style.display='block';
	document.getElementById('div_list_domain_txt_'+num).style.display='block';
	document.getElementById('div_secure_domain_'+num).style.display='block';
	document.getElementById('div_text'+num).style.display='none';
	eval("if (!showtime"+num+") showtime"+num+" = setInterval(function(){fondu('div_title_domain_'+num, 'div_list_domain_'+num, 'div_secure_domain_'+num, num);},20);");
	change_opacity ('div_title_domain_'+num2, 0);
	change_opacity ('div_title_domain_'+num3, 0);
	change_opacity ('div_list_domain_'+num2, 0);
	change_opacity ('div_list_domain_'+num3, 0);
	change_opacity ('div_secure_domain_'+num2, 0);
	change_opacity ('div_secure_domain_'+num3, 0);
	document.getElementById('div_title_domain_'+num2).style.display='none';
	document.getElementById('div_title_domain_'+num3).style.display='none';
	document.getElementById('div_list_domain_'+num2).style.display='none';
	document.getElementById('div_list_domain_'+num3).style.display='none';
	document.getElementById('div_list_domain_txt_'+num2).style.display='none';
	document.getElementById('div_list_domain_txt_'+num3).style.display='none';
	document.getElementById('div_secure_domain_'+num2).style.display='none';
	document.getElementById('div_secure_domain_'+num3).style.display='none';
	eval("opacite"+num2+"=0");
	eval("opacite"+num3+"=0");
	eval("clearInterval(showtime"+num2+");");
	eval("clearInterval(showtime"+num3+");");
	eval("showtime"+num2+"=0");
	eval("showtime"+num3+"=0");
	document.getElementById('div_text'+num2).style.display='block';
	document.getElementById('div_text'+num3).style.display='block';
}

function fondu(idtitle, idlist, idsecure, num){		
	eval("opacite"+num+"+=10");
	eval("if (opacite"+num+">=max_title) clearInterval(showtime"+num+");");
	change_opacity (idtitle, eval("opacite"+num));
	eval("if (opacite"+num+"<=max_list) {change_opacity (idlist, opacite"+num+"); change_opacity (idsecure, opacite"+num+");}");
}

function change_opacity (id, val) {
	IsIE?document.getElementById(id).style.filter='alpha(opacity=' + val + ');':document.getElementById(id).style.opacity=val/100;
}

