// GOOGLE ANALYTICS
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17675874-2']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();


// GOOGLE MAP 
function googleMapInit() {
if (GBrowserIsCompatible()) {
var map, div_name;
// t bay
div_name = 'google_map';
if (document.getElementById(div_name)) {
map = new GMap2(document.getElementById(div_name));
map.setCenter(new GLatLng(48.4037496, -89.2460807), 15);
var markerPosition = new GLatLng(48.4037496, -89.2460807);
var thisIcon = new GIcon();
thisIcon.image = "/library/images/google_map_icon_flipped.png";
thisIcon.iconSize = new GSize(94,55);
thisIcon.iconAnchor = new GPoint(94,55);
thisIcon.shadow = false;
var markerOptions = { icon:thisIcon, clickable:false };
map.addOverlay(new GMarker(markerPosition,markerOptions));
map.addControl(new GSmallZoomControl3D());
}
// nip
div_name = 'google_map_nipigon';
if (document.getElementById(div_name)) {
map = new GMap2(document.getElementById(div_name));
map.setCenter(new GLatLng(49.0158791, -88.2607398), 15);
var markerPosition = new GLatLng(49.0158791, -88.2607398);
var thisIcon = new GIcon();
thisIcon.image = "/library/images/google_map_icon.png";
thisIcon.iconSize = new GSize(94,55);
thisIcon.iconAnchor = new GPoint(1,55);
thisIcon.shadow = false;
var markerOptions = { icon:thisIcon, clickable:false };
map.addOverlay(new GMarker(markerPosition,markerOptions));
map.addControl(new GSmallZoomControl3D());
}
// fwfn
div_name = 'google_map_fwfn';
if (document.getElementById(div_name)) {
map = new GMap2(document.getElementById(div_name));
map.setCenter(new GLatLng(48.352, -89.268912), 14);
var markerPosition = new GLatLng(48.348824, -89.268912);
var thisIcon = new GIcon();
thisIcon.image = "/library/images/google_map_icon.png";
thisIcon.iconSize = new GSize(94,55);
thisIcon.iconAnchor = new GPoint(1,55);
thisIcon.shadow = false;
var markerOptions = { icon:thisIcon, clickable:false };
map.addOverlay(new GMarker(markerPosition,markerOptions));
map.addControl(new GSmallZoomControl3D());
}
}
}




$(document).ready(function() {
// google map
googleMapInit();

});
