$(function() {
	$("#map").goMap({
		markers: [{ 
			latitude: 56.948813,
			longitude: 24.704004,
			id: 'info1',
			html: {
				content: 'Auto popup!',
				popup: true
			}
		}],
		hideByClick: false
	});

	$.goMap.createListener({type:'info', marker:'info1'}, 'content_changed', function() {
		alert('content changed!');
	});

	$("#b1").click(function(){ 
		$.goMap.setInfo('info1', 'simple change content!');
	});
});