//
// This JS file sets up the Gmap and one specific location. Its
// used by the locations app for the detailed location pages.
//
if (GBrowserIsCompatible()) {
var gmarker;
var html;
//
// custom icon to use on the map
//
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
//
// create the map and center it on the napa valley
//
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.setCenter(new GLatLng(38.4,-122.45), 13);
// A function to create the marker and set up the event window
function createMarker(point,name,info) {
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml('
');
});
// save the info we need to use later for the sidebar
gmarker = marker;
html = info;
return marker;
}
var point = new GLatLng(38.300076,-122.286174);
var marker = createMarker(point,123, ' \u003Cdiv class\u003D\u0022location\u0022\u003E\u000A \u000A \u003Ch3\u003ECole\u0026#39\u003Bs Chop House \u003C/h3\u003E\u000A \u000A \u003Cdiv class\u003D\u0022links\u0022\u003E\u000A \u003Cul\u003E\u003Cli\u003E\u003Ca href\u003D\u0022http://maps.google.com/maps?saddr\u003D\u0026daddr\u003D1122%20Main%20St.%20Napa%2C%20CA%2094559\u0022 onclick\u003D\u0022this.blur()\u003B\u0022\u003EGet Directions!\u003C/a\u003E\u003C/li\u003E\u003Cli\u003E\u003Ca href\u003D\u0022http://www.coleschophouse.com/\u0022 onclick\u003D\u0022this.blur()\u003B\u0022 target\u003D\u0022_blank\u0022 rel\u003D\u0022nofollow\u0022\u003EWebsite\u003C/a\u003E\u003C/li\u003E\u003C/ul\u003E\u000A \u000A \u000A \u003Cdiv class\u003D\u0022rating\u0022\u003E\u003Cdiv class\u003D\u0022stars\u002Doff\u0022 style\u003D\u0022width:80px\u0022\u003E\u003Cdiv class\u003D\u0022stars\u002Don\u0022 style\u003D\u0022width:0px\u0022\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u000A \u003C/div\u003E\u000A \u000A \u003Cdiv class\u003D\u0022info\u0022\u003E\u000A\u000A \u003Cdiv class\u003D\u0022info_details\u0022\u003E\u003Cdiv class\u003D\u0022col_right\u0022\u003E\u000A (707) 224\u002D6328\u003Cbr /\u003E1122 Main St. Napa, CA 94559\u000A \u003C/div\u003E\u000A \u000A \u000A Cuisine: \u003Cb\u003ESteakhouse\u003C/b\u003E\u003Cbr /\u003E\u000A Entree Cost: \u003Cb\u003E$20\u003C/b\u003E\u003Cbr /\u003E\u000A \u000A \u000A Hours: \u003Cb\u003EFri\u002DSat 5:00pm\u002D10:00pm, Sun\u002DThu 5:00pm\u002D 9:00pm\u003C/b\u003E\u003C/div\u003E \u000A \u003C!\u002D\u002D clear the float left and right from columns \u002D\u002D\u003E\u000A \u003Cdiv class\u003D\u0022clear\u0022\u003E\u003C/div\u003E\u000A \u003C/div\u003E\u000A \u003C/div\u003E');
map.addOverlay(marker);
gmarker.openInfoWindowHtml('');
}