function createMarker(point, html) {
	html = '<div class="pubpopup clearfix">' + html + '</div>';
	var marker = new GMarker(point, icon);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(html);
	});
	return marker;
}
				
function createBlankMarker(point, html) {
	var marker = new GMarker(point, icon);
	return marker;
}


function createInfo(url, pubtitle, publocation, pubpostcode, pubtelephone, pubimage) {
	pubtitle = pubtitle.replace("'","\'");
	publocation = publocation.replace("'","\'");
	pubtelephone = pubtelephone.replace("'","\'");
	
	if (browserName == "Microsoft Internet Explorer")
	{
		infohtml = '<div style="float: left; padding-right: 160px;"><h2 style="margin: 0 0 0 0; font-size: 120%; white-space: nowrap; width: auto;">' + pubtitle + '</h2><p style="margin: 0 0 0 0; font-size: 70%; white-space: nowrap; width: auto;">' + publocation + '<br/>' + pubpostcode + '<br/>' + pubtelephone + '<br/><br/><a href="' + url + '" title="Read more about ' + pubtitle + '">More info &raquo;</a></p></div><img src="' + pubimage + '" width="140" height="106" style="margin: 7px -3px 0 15px; position: absolute; top: 3px; right: 0px;"/><p>&nbsp;</p>';
	}
	else
	{
		infohtml = '<div style="float: left; padding-right: 160px;"><h2 style="margin: 0 0 0 0; font-size: 120%; white-space: nowrap; width: auto;">' + pubtitle + '</h2><p style="margin: 0 0 0 0; font-size: 70%; white-space: nowrap; width: auto;">' + publocation + '<br/>' + pubpostcode + '<br/>' + pubtelephone + '<br/><br/><a href="' + url + '" title="Read more about ' + pubtitle + '">More info &raquo;</a></p></div><img src="' + pubimage + '" width="140" height="106" style="margin: 7px -3px 0 15px; position: absolute; top: 3px; right: 0px;"/><p style="line-height: 10px; padding: 0px; margin: 0px;">&nbsp;</p>';
	}
	
	//infohtml = '<img class="popup" src="' + pubimage + '" width="140px" height="105px" style="margin: 0 -3px 15px 0; float: right;"/><h2 style="margin: 0 155px 0 0; font-size: 120%; white-space: nowrap; width: auto;">' + pubtitle + '</h2><p style="margin: 0 155px 0 0; font-size: 70%; white-space: nowrap; width: auto;">' + pubaddress + '<br/>' + pubtelephone + '<br/><br/><a href="' + url + '" title="Read more about ' + pubtitle + '">More info &raquo;</a></p>';
	return infohtml;
}

