var markers=[];var map;var highlightCircle=null;var currentMarker=null;var _mFlags={};var centerLatitude=44.20091889355465;var centerLongitude=2.724609375;var startZoom=5;var deselectCurrent=function(){};var lb_piece="pièce";var lb_plus_details="Plus de détails";var lb_confirmation_suppression="Confimez vous la suppression de l\'annonce référence #vi";var lb_confirmation_suppression_alerte="Confimez vous la suppression de l\'Alerte Mail";var lb_connexion_necessaire="Vous devez être connecté pour créer une alerte mail !";var lb_suppression_effectuee="Suppression effectuée";var lb_annonce_existe_plus="Cette annonce n'existe plus.";var lb_visualiser="Visualiser";var lb_supprimer="Supprimer";var lb_modifier="Modifier";var lb_aucun_resultat="Veuillez modifier vos critères de recherche";var lb_tropderesultat="Seules les 200 dernières annonces correspondant à vos critères de recherche sont affichées. Soyez plus selectif dans vos critères.";var bounds=new GLatLngBounds();var lb_ads="";function selectTab1(num){var nomtab="#tab1-"+num;$('#tab1-1').hide();$('#tab1-2').hide();$('#tab1-3').hide();$('#tab1-4').hide();$("#ddct1").find('li:eq(0)').find("a").removeClass("current");$("#ddct1").find('li:eq(1)').find("a").removeClass("current");$("#ddct1").find('li:eq(2)').find("a").removeClass("current");$("#ddct1").find('li:eq(3)').find("a").removeClass("current");$("#ddct1").find("li:eq("+(num-1)+")").find("a").addClass("current");$(nomtab).show();if((num==3)||(num==4)){$("#tab1-"+num+"-in").show();}
handleResize();}
function selectTab2(num){var nomtab="#tab2-"+num;if($('.sidebarsh').find("span").text().indexOf("<")!=-1){$('.sidebarsh').trigger("click");}
$('#tab2-1').hide();$('#tab2-2').hide();$('#tab2-10').hide();$(nomtab).show();$("#ddct2").find('li:eq(0)').find("a").removeClass("current");$("#ddct2").find('li:eq(1)').find("a").removeClass("current");$("#ddct2").find("li:eq("+(num-1)+")").find("a").addClass("current");}
function init_lang(id_lang){if(id_lang==2){lb_piece="room";lb_plus_details="More details";lb_confirmation_suppression="Do you want to delete the add reference #vi";lb_confirmation_suppression_alerte="Do you want to delete this Email Alert";lb_connexion_necessaire="You must be connected to create an Email Alert !";lb_suppression_effectuee="The add is deleted";lb_annonce_existe_plus="This add doesn't exists anymore.";lb_visualiser="See";lb_supprimer="Delete";lb_modifier="Modify";lb_aucun_resultat="Please, modify your search criteria.";lb_tropderesultat="Only last 200 ads are displayed. Be more selectiv with your search.";}}
function init_topmenu(){$("#topmenu").load("http://vente-immobilier.mapaza.fr/index.php/application/afficher_topmenu/"+new Date().getTime());}
function js_popup_proxi(url){win=window.open(url,'proximite');win.focus();}
function js_popup_site_agence(url){win=window.open(url,"agence");win.focus();}
function js_popup_contact(url){win=window.open(url,"infos","menubar=no, status=no, scrollbars=no, menubar=no, width=450, height=500");win.focus();}
function afficherResultat(data){var jsonData=eval('('+data+')');map.clearOverlays();if(jsonData.id_lang==1){tableheader='<table id="theTable" name="theTable" cellSpacing=0 cellPadding=0 class="sortable-onload-5-reverse rowstyle-alternative no-arrow"><thead><tr><th width="45px" class="sortable-sortImage">Type&nbsp;&nbsp;</th><th width="72px" class="nosort">&nbsp;</th><th width="150px" class="nosort">Descriptif</th><th class=sortable>Ville</th><th class="sortable-date-dmy">Date</th><th class="sortable-numeric" width="80px">Prix</th></tr></thead><tbody></tbody></table><div id="ads"></div>';$("#ddct2").find('li:eq(0)').find("span").html("Résultat ("+jsonData.numrows+")");}else{tableheader='<table id="theTable" name="theTable" cellSpacing=0 cellPadding=0 class="sortable-onload-5-reverse rowstyle-alternative no-arrow"><thead><tr><th width="45px" class="sortable-sortImage">Type&nbsp;&nbsp;</th><th width="72px" class="nosort">&nbsp;</th><th width="150px" class="nosort">Description</th><th class=sortable>City</th><th class="sortable-date-dmy">Date</th><th class="sortable-numeric" width="80px">Price</th></tr></thead><tbody></tbody></table><div id="ads"></div>';$("#ddct2").find('li:eq(0)').find("span").html("Result ("+jsonData.numrows+")");}
init_lang(jsonData.id_lang);if(jsonData.numrows!=0){$("#tab2-1").html(tableheader);lb_ads="";bounds=new GLatLngBounds();if(jsonData.numrows>200){nb_point_affiche=200;$("#tab2-1").append('<p style="padding-left: 20px; padding-right: 20px; padding-top: 0px;"><img src="/img/exclamation.png" border="0" /> '+lb_tropderesultat+'</p>');}else{nb_point_affiche=jsonData.numrows;};for(var i=0;i<nb_point_affiche;i++){initializePoint(jsonData.markers[i],i,1);};fdTableSort.init("theTable");$(".rowstyle-alternative th").click(function(){return false;});map.setZoom(map.getBoundsZoomLevel(bounds));map.setCenter(bounds.getCenter());$("#ads").html('<iframe id="ifrads" name="ifrads" width="490" height="80" scrolling="no" frameborder="0" align="center" marginheight="0" marginwidth="2" src="http://vente-immobilier.mapaza.fr/index.php/application/adsense/'+encodeURIComponent(escape(no_accent(lb_ads)))+'/'+new Date().getTime()+'"></iframe>');}else{$("#tab2-1").html('<p style="padding-left: 20px; padding-right: 20px; padding-top: 20px;">'+lb_aucun_resultat+'</p>');}
mapMoveEnd();}
function initTabRegionsFirst(){var url="http://vente-immobilier.mapaza.fr/index.php/application/init_tab_regions/";$.post(url,{cd_region:'',lb_ville:''},function(data){$("#tab1-2").html(data);});}
function initTabRegions(cd_region,lb_ville){selectTab2(1);$("#tab2-1").html('<div id="loading"><br/><br/><br/><br/><br/><br/><img src="/img/loading.gif" /></div>');var url="http://vente-immobilier.mapaza.fr/index.php/application/init_tab_regions/";$.post(url,{cd_region:cd_region,lb_ville:lb_ville},function(data){$("#tab1-2").html(data);handleResize();});var url="http://vente-immobilier.mapaza.fr/index.php/application/rechercher/";$.post(url,{cd_region:cd_region,lb_ville:lb_ville},function(data){afficherResultat(data);});}
function rechercherSelections(){var url="http://vente-immobilier.mapaza.fr/index.php/application/rechercher_selections/"+new Date().getTime();$.getJSON(url,function(jsonData){if(jsonData.id_lang==1){tableheader='<table id="theTable2" name="theTable2" cellSpacing=0 cellPadding=0 class="sortable-onload-5-reverse rowstyle-alternative no-arrow"><thead><tr><th width="45px" class="sortable-sortImage">Type&nbsp;&nbsp;</th><th width="72px" class="nosort">&nbsp;</th><th width="150px" class="nosort">Descriptif</th><th class=sortable>Ville</th><th class="sortable-date-dmy">Date</th><th class="sortable-numeric" width="80px">Prix</th></tr></thead><tbody></tbody></table>';$("#tab2-2").html(tableheader);$("#ddct2").find('li:eq(1)').find("span").html("<img src='/img/star.png' width='10' height='10' border='0' /> Mes S&eacute;lections ("+jsonData.numrows+")");$("#topmemu_messelections").find('span').html("Mes sélections ("+jsonData.numrows+")");}else{tableheader='<table id="theTable2" name="theTable2" cellSpacing=0 cellPadding=0 class="sortable-onload-5-reverse rowstyle-alternative no-arrow"><thead><tr><th width="45px" class="sortable-sortImage">Type&nbsp;&nbsp;</th><th width="72px" class="nosort">&nbsp;</th><th width="150px" class="nosort">Description</th><th class=sortable>City</th><th class="sortable-date-dmy">Date</th><th class="sortable-numeric" width="80px">Price</th></tr></thead><tbody></tbody></table>';$("#tab2-2").html(tableheader);$("#ddct2").find('li:eq(1)').find("span").html("<img src='/img/star.png' width='10' height='10' border='0' /> Selection ("+jsonData.numrows+")");$("#topmemu_messelections").find('span').html("My selection ("+jsonData.numrows+")");}
init_lang(jsonData.id_lang);if(jsonData.numrows!=0){for(var i=0;i<jsonData.markers.length;i++){initializePoint(jsonData.markers[i],i,2);}
fdTableSort.init("theTable2");$(".rowstyle-alternative th").click(function(){return false;})}})}
function rechercherMesAnnonces(){map.clearOverlays();selectTab2(10);$("#tab2-10").html('<div id="loading"><br/><br/><br/><br/><br/><br/><img src="/img/loading.gif" /></div>');var url="http://vente-immobilier.mapaza.fr/index.php/application/rechercher_mesannonces/"+new Date().getTime();$.getJSON(url,function(jsonData){if(jsonData.id_lang==1){tableheader='<table id="theTable3" name="theTable3" cellSpacing=0 cellPadding=0 class="sortable-onload-5-reverse rowstyle-alternative no-arrow"><thead><tr><th width="45px" class="sortable-sortImage">Type&nbsp;&nbsp;</th><th width="72px" class="nosort">&nbsp;</th><th width="150px" class="nosort">Descriptif</th><th class=sortable>Ville</th><th class="sortable-date-dmy">Date</th><th class="sortable-numeric" width="80px">Prix</th></tr></thead><tbody></tbody></table>';$("#tab2-10").html(tableheader);}else{tableheader='<table id="theTable3" name="theTable3" cellSpacing=0 cellPadding=0 class="sortable-onload-5-reverse rowstyle-alternative no-arrow"><thead><tr><th width="45px" class="sortable-sortImage">Type&nbsp;&nbsp;</th><th width="72px" class="nosort">&nbsp;</th><th width="150px" class="nosort">Description</th><th class=sortable>City</th><th class="sortable-date-dmy">Date</th><th class="sortable-numeric" width="80px">Price</th></tr></thead><tbody></tbody></table>';$("#tab2-10").html(tableheader);}
init_lang(jsonData.id_lang);if(jsonData.numrows!=0){for(var i=0;i<jsonData.markers.length;i++){initializePoint(jsonData.markers[i],i,3);}
fdTableSort.init("theTable3");$(".rowstyle-alternative th").click(function(){return false;})}})}
function supprimerAnnonce(id_annonce){if(confirm(lb_confirmation_suppression+id_annonce+" ?")){$("#me_"+id_annonce).remove();var url="http://vente-immobilier.mapaza.fr/index.php/application/supprimer_annonce/"+new Date().getTime();$.post(url,{id_annonce:id_annonce},function(data){$("#theTable3").find("tr").each(function(i){if(i%2==0){$(this).addClass("alternative");}else{$(this).removeClass("alternative");}});map.clearOverlays();fdTableSort.init("theTable3");init_topmenu();alert(lb_suppression_effectuee);})}}
function rechercherSelection(id_annonce_value,maximize){var url="http://vente-immobilier.mapaza.fr/index.php/application/rechercher/"+id_annonce_value+"/"+new Date().getTime();$.getJSON(url,function(data){if(data.numrows==0){alert(lb_annonce_existe_plus);return;}
affichePointSelection(data.markers[0],maximize);})}
function selAn(id_annonce_value){var cook="sel_"+id_annonce_value;var cookval=$.cookie(cook);var lb_selectionner="Selectionner";var lb_deselectionner="D&eacute;selectionner";if(isLangEnglish()){lb_selectionner="Add to selection";lb_deselectionner="Delete selection";}
if(cookval==null){$.cookie(cook,'1',{path:'/'});$("#selection").find("span").html(lb_deselectionner);}else{$.cookie(cook,'',{expires:-1,path:'/'});$("#selection").find("span").html(lb_selectionner);}
var url="http://vente-immobilier.mapaza.fr/index.php/application/maj_selection/"+new Date().getTime();$.get(url,function(data){});rechercherSelections();return false;}
function affichePointSelection(pointData,maximize){map.clearOverlays();var mt_prix=format(pointData.mt_prix,0,' ');var point=new GLatLng(pointData.dc_lat,pointData.dc_lng);var icon=new GIcon();icon.image="/img/vente-immobilier/ico/"+pointData.id_type_bien+".png";icon.shadow="/img/vente-immobilier/ico/shadow.png";icon.iconSize=new GSize(28,28);icon.shadowSize=new GSize(42,28);icon.iconAnchor=new GPoint(14,28);icon.infoWindowAnchor=new GPoint(14,2);icon.infoShadowAnchor=new GPoint(18,25);if(pointData.id_type_bien==1||pointData.id_type_bien==2){var lb_bien=pointData.lb_type_bien+" "+pointData.nb_piece+" "+lb_piece;if(pointData.nb_piece!=1)lb_bien=lb_bien+"s";}else{var lb_bien=pointData.lb_type_bien;}
var markertitle=pointData.lb_ville+" - "+lb_bien+" : "+mt_prix+" Euros";var marker=new GMarker(point,{icon:icon,title:markertitle});var hotIcon=new GIcon();hotIcon.image="/img/vente-immobilier/ico/0.png";hotIcon.iconSize=new GSize(28,28);hotIcon.iconAnchor=new GPoint(14,28);hotIcon.infoWindowAnchor=new GPoint(14,2);hotIcon.infoShadowAnchor=new GPoint(18,25);var hmarker=new GMarker(point,hotIcon);var focusPoint=function(){var html='<div style="width:250px;"><div style="float:right;"><strong>'+mt_prix+'</strong>&euro;'+'<br /><br /><a href="#" onclick="map.getInfoWindow().maximize()"><div class="img-shadow"><img src="/img/vente-immobilier/an/'+pointData.lb_img1+'"/></div></a></div><div><strong>'+lb_bien+'</strong><br /><font color="#344682"><strong>'+pointData.lb_ville+'</strong></font><br /><p style="font-size:11px;"><a href="#" onclick="map.getInfoWindow().maximize();" class="info">'+pointData.txt_annonce+'</a></p>';html=html+'<br /><p style="font-size:11px;"><a href="#" onclick="map.getInfoWindow().maximize();">'+lb_plus_details+'</a>';html=html+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zoom&nbsp;<img src="/img/plus.gif" border="0" style="cursor:pointer;" onclick="map.setZoom(map.getZoom() + 4);" />&nbsp;<img src="/img/moins.gif" border="0" style="cursor:pointer;" onclick="map.setZoom(map.getZoom() - 4);" /></p></div></div>';var maxContentDiv=document.createElement('div');maxContentDiv.innerHTML='<center><br /><img src="/img/loading.gif" /></center>';marker.openInfoWindowHtml(html,{maxContent:maxContentDiv,maxTitle:'<b>'+markertitle+'</b>'});var myEventListener=null;GEvent.addListener(map.getInfoWindow(),"maximizeclick",function(){GDownloadUrl("http://vente-immobilier.mapaza.fr/index.php/application/fiche/"+pointData.id_annonce+"/"+new Date().getTime(),function(data,codeReponse)
{if(codeReponse==200){maxContentDiv.innerHTML=data;TB_init();}
else{maxContentDiv.innerHTML="Echec de votre requête. Code erreur : "+codeReponse;}});if(myEventListener!=null)GEvent.removeListener(myEventListener);});map.panTo(point);if(maximize==1){myEventListener=GEvent.addListener(map,'infowindowopen',function(){map.getInfoWindow().maximize();});}
mapMoveEnd();return false;};GEvent.addListener(marker,'click',focusPoint);map.addOverlay(marker);focusPoint();}
function initializePoint(pointData,num,numtable){var mycurrent_row=document.createElement('tr');var mt_prix;for(var i=0;i<6;i++){mycurrent_cell=document.createElement("td");switch(i)
{case 0:currenttext='<center><img src="/img/vente-immobilier/ico/'+pointData.id_type_bien+'.png"/>';if(numtable==3){if(pointData.bl_valide==1){currenttext+="<hr /><img src='/img/eye.png' border='0' style='cursor:pointer;' title='"+lb_visualiser+"' alt='"+lb_visualiser+"' onclick='rechercherSelection("+pointData.id_annonce+",0);return false;' />";}
currenttext+="<br /><img src='/img/pencil.png' border='0' style='cursor:pointer;' title='"+lb_modifier+"' alt='"+lb_modifier+"' onclick='gotoTab2(\"http://vente-immobilier.mapaza.fr/application/modifier_annonce/"+pointData.id_annonce+"/"+new Date().getTime()+"\");' />";currenttext+="<br /><img src='/img/cross.png' border='0' style='cursor:pointer;' title='"+lb_supprimer+"' alt='"+lb_supprimer+"' onclick='supprimerAnnonce(\""+pointData.id_annonce+"\");' />";}
currenttext+='</center>';break;case 1:currenttext='<img width="70px" height="50px" border="1" src="/img/vente-immobilier/an/'+pointData.lb_img1+'"/>';break;case 2:currenttext=pointData.txt_annonce;break;case 3:currenttext='<font color="#344682"><b>'+pointData.lb_ville+'</b></font>';lb_ads+=' '+pointData.lb_ville;break;case 4:currenttext=pointData.dt_saisie;break;case 5:mt_prix=format(pointData.mt_prix,0,' ');currenttext=mt_prix+" &euro;";mycurrent_cell.setAttribute("style","text-align:right;font-weight:bold");break;}
mycurrent_cell.innerHTML=currenttext;mycurrent_row.appendChild(mycurrent_cell);}
switch(numtable)
{case 1:var point=new GLatLng(pointData.dc_lat,pointData.dc_lng);var icon=new GIcon();icon.image="/img/vente-immobilier/ico/"+pointData.id_type_bien+".png";icon.shadow="/img/vente-immobilier/ico/shadow.png";icon.iconSize=new GSize(28,28);icon.shadowSize=new GSize(42,28);icon.iconAnchor=new GPoint(14,28);icon.infoWindowAnchor=new GPoint(14,2);icon.infoShadowAnchor=new GPoint(18,25);if(pointData.id_type_bien==1||pointData.id_type_bien==2){var lb_bien=pointData.lb_type_bien+" "+pointData.nb_piece+" "+lb_piece;if(pointData.nb_piece!=1)lb_bien=lb_bien+"s";}else{var lb_bien=pointData.lb_type_bien;}
var markertitle=pointData.lb_ville+" - "+lb_bien+" : "+mt_prix+" Euros";var marker=new GMarker(point,{icon:icon,title:markertitle});var focusPoint=function(){var html='<div style="width:250px;"><div style="float:right;"><strong>'+mt_prix+'</strong>&euro;'+'<br /><br /><a href="#" onclick="map.getInfoWindow().maximize()"><div class="img-shadow"><img src="/img/vente-immobilier/an/'+pointData.lb_img1+'"/></div></a></div><div><strong>'+lb_bien+'</strong><br /><font color="#344682"><strong>'+pointData.lb_ville+'</strong></font><br /><p style="font-size:11px;"><a href="#" onclick="map.getInfoWindow().maximize();" class="info">'+pointData.txt_annonce+'</a></p>';html=html+'<br /><p style="font-size:11px;"><a href="#" onclick="map.getInfoWindow().maximize();">'+lb_plus_details+'</a>';html=html+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zoom&nbsp;<img src="/img/plus.gif" border="0" style="cursor:pointer;" onclick="map.setZoom(map.getZoom() + 4);" />&nbsp;<img src="/img/moins.gif" border="0" style="cursor:pointer;" onclick="map.setZoom(map.getZoom() - 4);" /></p></div></div>';var maxContentDiv=document.createElement('div');maxContentDiv.innerHTML='<center><br /><img src="/img/loading.gif" /></center>';marker.openInfoWindowHtml(html,{maxContent:maxContentDiv,maxTitle:'<b>'+markertitle+'</b>'});GEvent.addListener(map.getInfoWindow(),"maximizeclick",function(){GDownloadUrl("http://vente-immobilier.mapaza.fr/index.php/application/fiche/"+pointData.id_annonce+"/"+new Date().getTime(),function(data,codeReponse)
{if(codeReponse==200){maxContentDiv.innerHTML=data;TB_init();}
else{maxContentDiv.innerHTML="Echec de votre requête. Code erreur : "+codeReponse;}});});map.panTo(point);mapMoveEnd();return false;};GEvent.addListener(marker,'click',focusPoint);GEvent.addListener(marker,"mouseover",function()
{currentMarker=marker;highlightCurrentMarker();});GEvent.addListener(marker,"mouseout",function()
{closelightCurrentMarker();});map.addOverlay(marker);bounds.extend(point);$("#theTable").append(mycurrent_row);$(mycurrent_row).mouseover(function(){$(this).addClass("over");currentMarker=marker;highlightCurrentMarker();map.addOverlay(marker);}).mouseout(function(){$(this).removeClass("over");closelightCurrentMarker();});$(mycurrent_row).click(function(){$("#theTable").find("tr").removeClass("apercu");$("#theTable2").find("tr").removeClass("apercu");$(this).addClass("apercu");focusPoint()});mycurrent_row.setAttribute('id',"an_"+pointData.id_annonce);break;case 2:$("#theTable2").append(mycurrent_row);$(mycurrent_row).click(function(){$("#theTable2").find("tr").removeClass("apercu");$("#theTable").find("tr").removeClass("apercu");$(this).addClass("apercu");rechercherSelection(pointData.id_annonce,0);return false;});$(mycurrent_row).mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});mycurrent_row.setAttribute('id',"sel_"+pointData.id_annonce);break;case 3:$("#theTable3").append(mycurrent_row);mycurrent_row.setAttribute('id',"me_"+pointData.id_annonce);break;}}
function handleResize(){var height=$(window).height()-document.getElementById('toolbar').offsetHeight-15;document.getElementById('map').style.height=height+'px';document.getElementById('sidebar').style.height=height+'px';if($('.sidebarsh').find("span").text().indexOf("<")!=-1){var width=$(window).width()-10;}else{var width=$(window).width()-$('#sidebar').width()-20;}
document.getElementById('map').style.width=width+'px';if(map!=null){var center=map.getCenter();map.checkResize();map.setCenter(center);}};function init(){handleResize();map=new GMap(document.getElementById("map"));map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(centerLatitude,centerLongitude),startZoom);map.addControl(new GOverviewMapControl(),new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,new GSize(2,2)));map.enableContinuousZoom();map.enableDoubleClickZoom();map.enableScrollWheelZoom();map.enableGoogleBar();map.addControl(new MoreControl());getMapBounds();GEvent.addListener(map.getInfoWindow(),'maximizeend',function(){setTimeout("TB_init()",100);});GEvent.addListener(map,"zoomend",function(){highlightCurrentMarker();mapMoveEnd();});GEvent.addListener(map,"dragend",function(){mapMoveEnd();});}
function creerAlerte(){if(($.cookie("login")==null)||($.cookie("id_user")==null)){alert("Vous devez être connecté pour créer une alerte mail !");gotoTab2('http://vente-immobilier.mapaza.fr/application/demande_login');return;}
var url="http://vente-immobilier.mapaza.fr/application/alerte_ajouter/"+new Date().getTime();$.post(url,{form_recherche:$("#form_recherche").formSerialize()},function(data){init_topmenu();gotoTab2('http://vente-immobilier.mapaza.fr/application/rechercher_mesalertes');});}
function creerAlerteNo(){alert("Vous devez être connecté pour créer une alerte mail !");gotoTab2('http://vente-immobilier.mapaza.fr/application/demande_login');}
function supprimerAlerte(id_alerte){if(confirm(lb_confirmation_suppression_alerte+" ?")){var url="http://vente-immobilier.mapaza.fr/index.php/application/supprimer_alerte/"+new Date().getTime();$.post(url,{id_alerte:id_alerte},function(data){init_topmenu();gotoTab2('http://vente-immobilier.mapaza.fr/application/rechercher_mesalertes');});}}
window.onresize=handleResize;

