function loadMap(itemIndex) {
    if (GBrowserIsCompatible()) {
        var maphotel = new GMap2(document.getElementById('maphotel_'+itemIndex),{size:new GSize(200,200)}); 
        maphotel.addControl(new GScaleControl());
		var miniicon = new GIcon();
		miniicon.image = "/img_elements/BWSimpleIcon.png";
		miniicon.iconSize = new GSize(32, 10);
		miniicon.iconAnchor = new GPoint(16, 10);

        markerOptions = { icon:miniicon };

        var point = new GLatLng(
            parseFloat(document.getElementById('lat_'+itemIndex).innerHTML.replace(',','.')),
            parseFloat(document.getElementById('long_'+itemIndex).innerHTML.replace(',','.'))
        );
        maphotel.setCenter(point,15);
        maphotel.addOverlay(new GMarker(point, markerOptions));
    }
}
function OpenInfo(itemIndex) {
    if(document.getElementById('map').style.visibility=='visible') {
		var map = new GMap2(document.getElementById('map'));
        var icon = new GIcon();
		icon.image = "/img_elements/BWSimpleIcon.png";
		icon.iconSize = new GSize(32, 10);
		icon.iconAnchor = new GPoint(16, 10);

        markerOptions = { icon:icon };

        var point = new GLatLng(
            parseFloat(document.getElementById('lat_'+itemIndex).innerHTML.replace(',','.')),
            parseFloat(document.getElementById('long_'+itemIndex).innerHTML.replace(',','.'))
        );
        map.setCenter(point,12);
        map.addOverlay(new GMarker(point, markerOptions));
    }
}
function unloadMap(itemIndex) {
    GUnload();
}