// ##############################
// GMap Functions
//###############################
var map1;
var mapOn = 0;
var html1A = " ";
var html1B = "
North Location
3340 - 26 Street NE
Calgary, Alberta
T1Y 4T7
Phone: 403-250-2595
Fax: 403-250-2588
Reservations are recommended, but walk-ins are always welcomed.
";
var mark1 = new GMarker(new GPoint(-113.998119,51.082147));
var oldHTML='';
var midHTML='';
var html2A = " ";
var html2B = "South Location
33 SunValley Blvd. SE
Calgary, Alberta
T2X 3V3
Phone: 403-201-9000
Fax: 403-254-9306
All reservations must be made via the phone
Reservations are required
Sundays through Thursdays for parties of 6 or more.
Friday and Saturday evenings no reservations are accepted
";
var mark2 = new GMarker(new GPoint(-114.058698,50.905601));
var oldHTML='';
var midHTML='';
function loadMap() { // document.getElementById('iReport').innerHTML = document.getElementById('iReport').innerHTML+"Loaded Map
" ;
mapOn = 1;
document.getElementById('mapBox').style.zIndex = 20;
//alert('hi');
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.000733), 7); // Calgary City Centre
map1.addOverlay(mark1);
GEvent.addListener(mark1, 'click', function() { bubble1(); });
map1.addOverlay(mark2);
GEvent.addListener(mark2, 'click', function() { bubble2(); });
oldHTML = document.getElementById('truC').innerHTML
midHTML = "Please click on the red pointer on the map to your left for more information on the location of your choosing.
North Location
Monday - Friday 11AM - 11PM
Saturday 4PM - 11PM
Sunday & Holidays 4PM - 10PM
South Location
Monday - Thursday 11AM - 11PM
Friday - Saturday 11AM - 12AM
Sun & Holidays 4PM - 10PM
"
document.getElementById('truC').innerHTML = midHTML;
} else { alert('Your browser is out of date, please update to continue'); }
}
function bubble1(PID){
map1.centerAndZoom(new GPoint(-113.998119,51.082147), 3);
// document.getElementById('mapBoxB').style.zIndex = 21;
// document.getElementById('mapBoxB').style.background = "#FFFFFF";
// document.getElementById('mapBoxB').innerHTML = html1B+"
";
// oldHTML = document.getElementById('truC').innerHTML
document.getElementById('truC').innerHTML = html1B+"
";
// mark1.openInfoWindowHtml(html1A);
}
function bubble2(PID){
map1.centerAndZoom(new GPoint(-114.058698,50.905601), 3);
// document.getElementById('mapBoxB').style.zIndex = 21;
// document.getElementById('mapBoxB').style.background = "#FFFFFF";
// document.getElementById('mapBoxB').innerHTML = html2B+"
";
// oldHTML = document.getElementById('truC').innerHTML
document.getElementById('truC').innerHTML = html2B+"
";
// mark2.openInfoWindowHtml(html2A);
}
function hideBubble() {
// document.getElementById('mapBoxB').style.zIndex = 1;
// document.getElementById('mapBoxB').style.background = "#A72A24";
// document.getElementById('mapBoxB').innerHTML = "";
document.getElementById('truC').innerHTML = midHTML;
map1.centerAndZoom(new GPoint(-114.079665,51.000733), 7); // Calgary City Centre
}
function unloadMap() {
document.getElementById('mapBox').style.zIndex = 1;
document.getElementById('truC').innerHTML = oldHTML;
}