/**************************************************************************************
*Contents: Entry point function.
*All rights reserved.
**************************************************************************************/



lr = null;

function main(map) {
	var areaCenter = new GLatLng(49.693835,-112.833744);
   
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
	map.setCenter(areaCenter, 15, G_NORMAL_MAP);

	var cmoz = new ReviewBoard("ChefMoz", "cmoz", "http://chefmoz.org", "/Canada/AB/Lethbridge/");
	var restoClass = createRestaurantClass("http://restocan.com", "/scripts", areaCenter,"lethbridge_resto",[cmoz],"eng")

	lr = new Locator("http://restocan.com", "/scripts", "lr","Lethbridge",restoClass,"restaurant",'restaurant',82,"lethbridge_resto",map,areaCenter,[cmoz], ["results"], 20); 
	lr.select();
}


//Navigation bar functions.
function showAll() {
   lr.show();
}

function hideAll() {
   lr.hide();
}

function showAreaWeb() {
   lr.showWithWeb();
}

function hideAreaWeb() {
   lr.hideWithWeb();
}
