// ##############################
// GMap Functions
//###############################
var map1;
var mapOn = 0;
var html1A = "9223 Macleod Trail South";
var html1B = "
Macleod Trail SouthLunch: | 11:30 am, Monday to Friday |
Dinner: | 5:00 pm, Monday to Sunday |
| |
General Manager: Whitney Anderson ";
var mark1 = new GMarker(new GPoint(-114.071686,50.972732));
var html2A = "1935 Uxbridge Dr. NW";
var html2B = "Stadium - NorthwestLunch: | 11:30 am, Monday to Friday |
Dinner: | 5:00 pm, Monday to Sunday |
1935 Uxbridge Drive NW, Calgary Ph: 403.220.0222, Fax: 403.282.5062 General Manager: Scott Woodruff*please note there is plenty of free parking surrounding the restaurant, however please remember to get your complimentary 3 hr free parking ticket from one of the dispensers in the lot prior to your dining experience. ";
var mark2 = new GMarker(new GPoint(-114.129338,51.069787));
var html3A = "181, 250 6 Ave SW";
var html3B = "Bow Valley Square DowntownLunch: | 11:00 am, Monday to Friday |
Dinner: | 5:00 pm, Monday to Saturday |
Lounge | 11:00 am, Mon to Fri 5:00 pm, Saturday |
#181,250 6 Avenue SW. Complementary evening parking in Bow Valley Square - enter off of 5th Ave SW. Ph: 403.265.3837 Fax: 403.265.3930 General Manager: Brad Williamson ";
var mark3 = new GMarker(new GPoint(-114.065415,51.047404));
var html10A = "";
var html10B = "Aspen EstatesLunch: | 11:30 am, Monday to Friday |
Dinner: | 5:00 pm, Monday to Sunday |
| |
#114, 326 Aspen Glen Landing SW Complementary underground parking available Ph: 403.686.6731 Fax: 403.686.6732 General Manager: Chris Hart ";
var mark10 = new GMarker(new GPoint(-114.200035,51.039395));
function loadMap() { // document.getElementById('iReport').innerHTML = document.getElementById('iReport').innerHTML+"Loaded Map
" ;
mapOn = 1;
document.getElementById('mapBox').style.zIndex = 10;
if (GBrowserIsCompatible()) {
var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));
map1 = new GMap(document.getElementById("mapBox"));
map1.addControl(new GSmallMapControl(), topRight);
map1.centerAndZoom(new GPoint(-114.079665,51.040733), 7); // Calgary City Centre
map1.addOverlay(mark1);
GEvent.addListener(mark1, 'click', function() { bubble1(); });
map1.addOverlay(mark2);
GEvent.addListener(mark2, 'click', function() { bubble2(); });
map1.addOverlay(mark3);
GEvent.addListener(mark3, 'click', function() { bubble3(); });
map1.addOverlay(mark10);
GEvent.addListener(mark10, 'click', function() { bubble10(); });
} else { alert('Your browser is out of date, please update to continue'); }
}
function bubble1(PID){
map1.centerAndZoom(new GPoint(-114.071686,50.972732), 3);
document.getElementById('mapBoxB').style.zIndex = 10;
document.getElementById('mapBoxB').style.background = "#FFFFFF";
document.getElementById('mapBoxB').innerHTML = html1B+"
";
// mark1.openInfoWindowHtml(html1A);
}
function bubble2(PID){
map1.centerAndZoom(new GPoint(-114.129338,51.069787), 3);
document.getElementById('mapBoxB').style.zIndex = 10;
document.getElementById('mapBoxB').style.background = "#FFFFFF";
document.getElementById('mapBoxB').innerHTML = html2B+"
";
// mark2.openInfoWindowHtml(html2A);
}
function bubble3(PID){
map1.centerAndZoom(new GPoint(-114.065415,51.047404), 3);
document.getElementById('mapBoxB').style.zIndex = 10;
document.getElementById('mapBoxB').style.background = "#FFFFFF";
document.getElementById('mapBoxB').innerHTML = html3B+"
";
// mark3.openInfoWindowHtml(html3A);
}
function bubble10(PID){
map1.centerAndZoom(new GPoint(-114.200035,51.039395), 3);
document.getElementById('mapBoxB').style.zIndex = 10;
document.getElementById('mapBoxB').style.background = "#FFFFFF";
document.getElementById('mapBoxB').innerHTML = html10B+"
";
// mark10.openInfoWindowHtml(html10A);
}
function hideBubble() {
document.getElementById('mapBoxB').style.zIndex = 4;
document.getElementById('mapBoxB').style.background = "#A72A24";
document.getElementById('mapBoxB').innerHTML = "";
map1.centerAndZoom(new GPoint(-114.079665,51.040733), 7); // Calgary City Centre
}