

function createMarker(point, icon, title, text, img, link) 
{
	if(img != null)
		var marker = new GMarker(point, icon);
	else
	{
		var marker = new GMarker(point);
	}
	GEvent.addListener(marker, "click", function() {
		if(img != null)
			marker.openInfoWindowHtml("<div class=\"Baloon\" style=\"width:250px;height:140px\"><div class=\"tit\">"+title+"</div>"+img+text+"<div class=\"webmail\">"+link+"</div></div>",{maxWidth : 360});
		else
			marker.openInfoWindowHtml("<div class=\"Baloon\"><div class=\"tit\">"+title+"</div>"+text+"<div class=\"webmail\">"+link+"</div></div>",{maxWidth : 300});
	});
	
	//alert("img:" + img + " text:" + text + " link:" + link);
	return marker;
}
