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



lr = null;

function main(map) {
	var areaCenter = new GLatLng(43.26097,-79.888459);
   
	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/ON/Hamilton/");
	var restoClass = createRestaurantClass("http://restocan.com", "/scripts", areaCenter,"hamilton_resto",[cmoz],"eng")

	lr = new Locator("http://restocan.com", "/scripts", "lr","Hamilton",restoClass,"restaurant",'restaurant',70,"hamilton_resto",map,areaCenter,[cmoz], ["results"], 20) 
  
	lr.search('search',"kw=indian");
}

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

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

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

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