currentHotel = 0;
window.onload = function () {var hotels = [        { cX: 49.103459,          cY: 55.793865,          zoom: 15,          image: "/images/map-flag.gif",          desc: '<div class="yandex-descript"><h3>«Mirage» hotel<\/h3><p>Phone: +7(843) 278-05-05<\/p><p>Fax: +7(843) 278-92-70<\/p><p>E-mail: info@mirage-hotel.ru<\/p><\/div>'}];                
        var map = new YMaps.Map(document.getElementById("YMapsID"));        
        var coords = new YMaps.GeoPoint(hotels[currentHotel].cX, hotels[currentHotel].cY);			        
        map.setCenter(coords, hotels[currentHotel].zoom);                
        for (var i=0; i<hotels.length; i++)        
        {            
          var s = new YMaps.Style();            
          s.iconStyle = new YMaps.IconStyle();            
          s.iconStyle.offset = new YMaps.Point(3, -15);  
          s.iconStyle.href = hotels[i].image;            
          s.iconStyle.size = new YMaps.Point(18, 18);            
          YMaps.Styles.add("example#customPoint" + i, s);                        
          var curCoords = new YMaps.GeoPoint(hotels[i].cX, hotels[i].cY);            
          var placemark = new YMaps.Placemark(curCoords,  {style: "example#customPoint" + i});            
          placemark.description = hotels[i].desc;				            
          map.addOverlay(placemark);        
        }                
        map.enableScrollZoom();                
        map.addControl(new YMaps.SmallZoom(), new YMaps.ControlPosition(YMaps.ControlPosition.TOP_LEFT, new YMaps.Size(10, 10)));        
        var ymm = new YMaps.MiniMap(4);        
        map.addControl(ymm);        
        ymm.setVisible(false);    
        map.addControl(new YMaps.TypeControl()); 

        var s = new YMaps.Style();
        s.iconStyle = new YMaps.IconStyle();
        s.iconStyle.offset = new YMaps.Point(-13,-40);
        s.iconStyle.href = "http://api-maps.yandex.ru/i/0.3/placemarks/pmorl.png";
        s.iconStyle.size = new YMaps.Point(36,41);
        YMaps.Styles.add("wizard#orlPoint", s);
}
