var bi = new GIcon();
bi.image = 'http://cdn.j2ski.com/mims/apt.png';
bi.shadow = 'http://cdn.j2ski.com/mims/apts.png';
bi.iconSize = new GSize(32, 32);
bi.shadowSize = new GSize(59, 32);
bi.iconAnchor = new GPoint(16, 32);
bi.infoWindowAnchor = new GPoint(16, 0);
p1= new GIcon(bi);
p1.image = 'http://cdn.j2ski.com/mims/apt.png';
p3= new GIcon(bi);
p3.image = 'http://cdn.j2ski.com/mims/mtn.png';
p4= new GIcon(bi);
p4.image = 'http://cdn.j2ski.com/mims/ChaletG.png';
p5= new GIcon(bi);
p5.image = 'http://cdn.j2ski.com/mims/HotelG.png';
p6= new GIcon(bi);
p6.image = 'http://cdn.j2ski.com/mims/ResortG.png';
var m;
var l;
setTimeout('drawMap()',500);
function drawMap() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addMapType(G_PHYSICAL_MAP);
map.setCenter(new GLatLng(46.2,6.1), 12, G_PHYSICAL_MAP);
var bounds = new GLatLngBounds();
var publisher_id = 'pub-4348482481271019';var adsManagerOptions = {maxAdsOnMap : 2,style: 'adunit',channel: '0578116664'};adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);adsManager.enable();
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
m=new Array(3);
l=new Array(3);
m[0]=new GMarker(new GLatLng(38.92154,8.76147),{icon:p5});
m[1]=new GMarker(new GLatLng(38.9681,8.77516),{icon:p5});
m[2]=new GMarker(new GLatLng(38.89584,8.86107),{icon:p5});

l[0]="<div class='iw'><b>Hotel Baia Delle Ginestre</b><br /><img alt='Baia Delle Ginestre' class='iwt' height='37' src='http://cdn2.j2ski.com/ski_hotels/ah/mt/Domus_De_Maria_Baia_Delle_Ginestre_1376100.jpg' width='56' /><br /><a href='/ski_hotels/Italy/Sardegna/Cagliari/Domus_De_Maria/Baia_Delle_Ginestre.html'>Hotel Baia Delle Ginestre</a><br />Rooms from <b>&euro;100</b></div>";
l[1]="<div class='iw'><b>Hotel Residenza Locci</b><br /><img alt='Residenza Locci' class='iwt' height='42' src='http://cdn2.j2ski.com/ski_hotels/ah/mt/Domus_De_Maria_Residenza_Locci_3718436.jpg' width='56' /><br /><a href='/ski_hotels/Italy/Sardegna/Cagliari/Domus_De_Maria/Residenza_Locci.html'>Hotel Residenza Locci</a></div>";
l[2]="<div class='iw'><b>Hotel Spartivento</b> <img alt='3-Star' height='10' src='http://cdn.j2ski.com/i/star3.gif' width='34' /><br /><img alt='Hotel Spartivento' class='iwt' height='45' src='http://cdn2.j2ski.com/ski_hotels/ah/mt/Domus_De_Maria_Hotel_Spartivento_2547439.jpg' width='56' /><br /><a href='/ski_hotels/Italy/Sardegna/Cagliari/Domus_De_Maria/Hotel_Spartivento.html'>Hotel Spartivento</a><br />Rooms from <b>&euro;100</b></div>";

for (var i = 0; i < 3;i++) {
GEvent.addListener(m[i],"click",oic(i));
GEvent.addListener(m[i],"mouseover",oic(i));
map.addOverlay(m[i]);
bounds.extend(m[i].getPoint());
}
map.setZoom(map.getBoundsZoomLevel(bounds));
map.setCenter(bounds.getCenter());
}
}
function oi(x){m[x].openInfoWindowHtml(l[x]);}
function optionoi() { oi(document.placeMenu.places.selectedIndex);}
function oic(x) { return function() { oi(x);};}



