cForStr=" for ";cForStr=" pour ";cSiteTypesFile="mauritius_files/sitetypes_fr.xml";cRegionsFile="mauritius_files/regions_fr.xml";cSitesFile="mauritius_files/sites_fr.xml";cHotelClassStr="Catégorie: ";cTravelerRatingStr="Notes utilisateurs TripAdvisor: ";cSeeCloseUpViewStr="Vue détaillée du site";cReadTravelerReviewsStr="Cliquez ici pour lire les critiques de voyageurs pour ";cAdsenseFile="mauritius_files/Ile_Maurice_Voyages_Hotels_Tourisme.html";cTab1Title="Info";cTab2Title="Vidéo";cSeeVideo="Regardez Vidéo";ab=10;u=50;af=0;l=0;ai=17;bi=1;i=0;g=1;x=2;s=3;ad=4;al=5;aq=6;aa=7;z=8;q=9;k=10;h=11;ar=12;ak='<div style="white-space: nowrap; padding: 0px 1px 0px 1px; color:blue; background-color:#f2efe9;  FONT: 9px arial; border:1px solid blue">';var be=[],bf=[],bc=[],ao=[],as=[],ap=[],at=[],c=0,ae=0,currentRegionSelected=l,currentSiteTypeSelected=af,az=0,d=900,a=900,av="",ax="",aw="";function am(p,ag,ac,t){var n=new PdMarker(p,{icon:ag});GEvent.addListener(n,"click",function(){zoom=eval("document.zoomcheckboxform.zoom");if(zoom.checked){c.setCenter(p,ai,G_SATELLITE_MAP);};n.setImage("common_files/selected.png");if(t!=""){var m=[new GInfoWindowTab(cTab1Title,ac),new GInfoWindowTab(cTab2Title,t)];n.openInfoWindowTabsHtml(m);}else n.openInfoWindowHtml(ac);});GEvent.addListener(n,"infowindowclose",function(){n.restoreImage();});return n;};function see_closeup_view(b){var p=new GLatLng(az[Math.floor(b/100)][b%100][ad],az[Math.floor(b/100)][b%100][al]);c.closeInfoWindow();c.setCenter(p,ai,G_SATELLITE_MAP);};function show_video_tab(){var infoWin=c.getInfoWindow();infoWin.selectTab(1);};function myclick(b){zoom=eval("document.zoomcheckboxform.zoom");if(zoom.checked){var p=new GLatLng(az[Math.floor(b/100)][b%100][ad],az[Math.floor(b/100)][b%100][al]);c.setCenter(p,ai,G_SATELLITE_MAP);};az[Math.floor(b/100)][b%100][i].setImage("common_files/selected.png");if(az[Math.floor(b/100)][b%100][x]!=""){var m=[new GInfoWindowTab(cTab1Title,az[Math.floor(b/100)][b%100][g]),new GInfoWindowTab(cTab2Title,az[Math.floor(b/100)][b%100][x])];az[Math.floor(b/100)][b%100][i].openInfoWindowTabsHtml(m);}else az[Math.floor(b/100)][b%100][i].openInfoWindowHtml(az[Math.floor(b/100)][b%100][g]);};function handleSelectedSiteType(ah){currentSiteTypeSelected=ah.selectedIndex;handleSelectedSiteType2(currentSiteTypeSelected);};function handleSelectedSiteType2(ba){aw='<div class="sidebar" style="overflow:auto; height:'+a+'px">'+"<B><I>"+be[ba]+cForStr+ao[currentRegionSelected]+"</I></B><br><br>";c.clearOverlays();if(ba==af){for(b=1;b<ab;b++){for(j=0;j<u;j++){if(az[b][j][ad]){if(currentRegionSelected==l||az[b][j][aq]==currentRegionSelected){var p=new GLatLng(az[b][j][ad],az[b][j][al]);az[b][j][i]=am(p,bf[b],az[b][j][g],az[b][j][x]);c.addOverlay(az[b][j][i]);showlabels=eval("document.showlabelscheckboxform.showlabels");if(showlabels.checked){var o=new ELabel(p,ak+az[b][j][s]+'</div>',null,new GSize(az[b][j][aa],az[b][j][z]),75);c.addOverlay(o);};aw+='<a href="javascript:myclick('+(b*100+j)+')">'+'<img src = '+bc[b]+" height = 16 width=16>"+" "+az[b][j][s]+'</a>';if(az[b][j][x]!="")aw+='<img src = "common_files/utube16.gif"><br>';else aw+='<br>';};}else break;};};}else{for(b=0;b<u;b++){if(az[ba][b][ad]){if(currentRegionSelected==l||az[ba][b][aq]==currentRegionSelected){var p=new GLatLng(az[ba][b][ad],az[ba][b][al]);az[ba][b][i]=am(p,bf[ba],az[ba][b][g],az[ba][b][x]);c.addOverlay(az[ba][b][i]);showlabels=eval("document.showlabelscheckboxform.showlabels");if(showlabels.checked){var o=new ELabel(p,ak+az[ba][b][s]+'</div>',null,new GSize(az[ba][b][aa],az[ba][b][z]),75);c.addOverlay(o);};aw+='<a href="javascript:myclick('+(ba*100+b)+')">'+'<img src = '+bc[ba]+" height = 16 width=16>"+" "+az[ba][b][s]+'</a>';if(az[ba][b][x]!="")aw+='<img src = "common_files/utube16.gif"><br>';else aw+='<br>';};}else break;};};document.getElementById("sidebar").innerHTML=aw+"</div>";};function handleSelectedRegion(ah){currentRegionSelected=ah.selectedIndex;if(currentRegionSelected==l){var p=new GLatLng(as[l],ap[l]);c.setCenter(p,10,G_SATELLITE_MAP)}else{var p=new GLatLng(as[currentRegionSelected],ap[currentRegionSelected]);c.setCenter(p,at[currentRegionSelected],G_SATELLITE_MAP);};handleSelectedSiteType2(currentSiteTypeSelected);};function onload(){if(GBrowserIsCompatible()){if(screen.width-300<d)d=screen.width-300;if(screen.height-300<a)a=screen.height-300;var aj={size:new GSize(d,a)};c=new GMap2(document.getElementById("map"),aj);c.addControl(new GLargeMapControl());ae=new GIcon();ae.iconSize=new GSize(16,16);ae.shadowSize=new GSize(28,16);ae.iconAnchor=new GPoint(8,16);ae.infoWindowAnchor=new GPoint(8,0);GDownloadUrl(cSiteTypesFile,function(data,responseCode){var bh=GXml.parse(data),e=bh.documentElement.getElementsByTagName("marker");for(var b=0;b<e.length;b++){var ay=parseInt(e[b].getAttribute("sitetypeid")),bg=e[b].getAttribute("sitename");be[ay]=bg;bf[ay]=new GIcon(ae,e[b].getAttribute("iconbitmap"),null,e[b].getAttribute("iconbitmapshade"));bc[ay]=e[b].getAttribute("iconbitmap");if(ay==af){av='<select onChange="handleSelectedSiteType(this)">'+'<option selected>'+be[ay]+'</option>';aw='<div class="sidebar" style="overflow:auto; height:'+a+'px">'+"<b><i>"+be[af]+"</i></b><br><br>";}else av+='<option> '+be[ay]+'</option>';};av+='</select>';document.getElementById("selection").innerHTML=av;});GDownloadUrl(cRegionsFile,function(data,responseCode){var bh=GXml.parse(data),e=bh.documentElement.getElementsByTagName("marker");for(var b=0;b<e.length;b++){var an=parseInt(e[b].getAttribute("regionid")),au=e[b].getAttribute("regionname");at[an]=parseInt(e[b].getAttribute("zoom"));as[an]=parseFloat(e[b].getAttribute("lat"));ap[an]=parseFloat(e[b].getAttribute("lng"));ao[an]=au;if(an==l){ax='<select onChange="handleSelectedRegion(this)">'+'<option selected>'+ao[an]+'</option>';var p=new GLatLng(as[an],ap[an]);c.setCenter(p,10,G_SATELLITE_MAP);}else{ax+='<option> '+ao[an]+'</option>';};};ax+='</select>';document.getElementById("region_selection").innerHTML=ax;});az=new Array(ab);for(b=0;b<ab;b++)az[b]=new Array(u);for(b=0;b<ab;b++)for(j=0;j<u;j++)az[b][j]=new Array(ar);GDownloadUrl(cSitesFile,function(data,responseCode){var bh=GXml.parse(data),e=bh.documentElement.getElementsByTagName("marker"),bb=0,r=-1;for(var b=0;b<e.length;b++){ay=parseInt(e[b].getAttribute("sitetypeid"));if(ay!=r){r=ay;bb=0;}else bb++;var w=parseFloat(e[b].getAttribute("lat")),v=parseFloat(e[b].getAttribute("lng")),j=parseInt(e[b].getAttribute("labelxoffset")),f=parseInt(e[b].getAttribute("labelyoffset")),p=new GLatLng(w,v);az[ay][bb][g]=e[b].getAttribute("html1");az[ay][bb][x]=e[b].getAttribute("html2");if(az[ay][bb][x]!="")az[ay][bb][x]="<div>"+az[ay][bb][x]+"</div>";az[ay][bb][s]=e[b].getAttribute("label");az[ay][bb][aq]=e[b].getAttribute("region");az[ay][bb][ad]=w;az[ay][bb][al]=v;az[ay][bb][aa]=j;az[ay][bb][z]=f;az[ay][bb][q]=e[b].getAttribute("tripadvisorwebpage");az[ay][bb][k]=e[b].getAttribute("tripadvisorhotelclass");az[ay][bb][h]=e[b].getAttribute("tripadvisortravelerrating");az[ay][bb][g]+='<br><br><a class="infowin_review" href="javascript:see_closeup_view('+(ay*100+bb)+')">'+cSeeCloseUpViewStr+' '+'<img src = "common_files/binoculars.jpg" border="0"></a>'+'<br></p></div>';az[ay][bb][g]+='<p class="infowin_review">';if(az[ay][bb][k])az[ay][bb][g]+='<b>'+cHotelClassStr+'<img src = '+az[ay][bb][k]+">"+'&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp';if(az[ay][bb][h])az[ay][bb][g]+='<b>'+cTravelerRatingStr+'<img src = '+az[ay][bb][h]+">";if(az[ay][bb][x]!="")az[ay][bb][g]+='&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp'+' '+'<a class="infowin_review" href="javascript:show_video_tab()">'+cSeeVideo+'<img src = "common_files/utube16w.gif" border="0">'+'</a>';az[ay][bb][g]+='</p>';if(az[ay][bb][q])az[ay][bb][g]+='<center><a class="infowin_review" href="'+az[ay][bb][q]+'">'+cReadTravelerReviewsStr+az[ay][bb][s]+"</a>";az[ay][bb][g]+='<br>';az[ay][bb][g]+='<IFRAME SRC='+cAdsenseFile+' WIDTH=500 HEIGHT=75 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=1></IFRAME></center>';az[ay][bb][i]=am(p,bf[ay],az[ay][bb][g],az[ay][bb][x]);c.addOverlay(az[ay][bb][i]);aw+='<a href="javascript:myclick('+(ay*100+bb)+')">'+'<img src = '+bc[ay]+" height = 16 width=16>"+" "+az[ay][bb][s]+'</a>';if(az[ay][bb][x]!="")aw+='<img src = "common_files/utube16.gif"><br>';else aw+='<br>';showlabels=eval("document.showlabelscheckboxform.showlabels");if(showlabels.checked){var o=new ELabel(p,ak+az[ay][bb][s]+'</div>',null,new GSize(j,f),75,true);c.addOverlay(o);};};document.getElementById("sidebar").innerHTML=aw+'</div>';});};};
