$(function() {
	$("#map").goMap({
		markers: [{ 
			latitude: 56.948813,
			longitude: 24.704004,
			id: 'dragMarker',
			html: {
				content: 'Just infoWindow!',
				popup: true
			}
		}],
		icon: '../img/apartment.png',
		addMarker: true,
		disableDoubleClickZoom: true
	});

	$("#b1").click(function(){ 
		$.goMap.setMarker('dragMarker',{icon:'../img/factory.png', title:'new year!', address:'Minsk, Belarus'});
	});

	$("#b2").click(function(){ 
		$.goMap.setMarker('dragMarker',{latitude:'51.948813', longitude:'28.704004'});
	});

	$("#b3").click(function(){ 
		$.goMap.setInfo('dragMarker', 'New Content!');
	});
});