//javascript:void(prompt('',gApplication.getMap().getCenter()));

/** site-specific stuff **/
var image_width = 184;
var client_name = 'davidjames';
var default_view = new GLatLng(52.9846169864116, -1.1089324951171875);
var default_zoom = 13;
// The allowed region which the whole map must be within
var allowedBounds = new GLatLngBounds(new GLatLng(52.79861002821915, -1.58477783203125), new GLatLng(53.13111803493987, -0.622100830078125));
//var allowedBounds = new GLatLngBounds(new GLatLng(20.79861002821915, -10.8477783203125), new GLatLng(80.13111803493987, 10.22100830078125));
var min_zoom = 10;

var icon_branch = new GIcon(); 
icon_branch.image = 'http://www.mappr.co.uk/clients/' + client_name + '/branch_icon.png';
icon_branch.iconSize = new GSize(30, 30);
icon_branch.iconAnchor = new GPoint(15, 15);
icon_branch.infoWindowAnchor = new GPoint(15, 1);

var branches = [];

branches[0] = {
	point: 	new GPoint(-1.120133399963379, 52.98541790428417),
	name:	'Mapperley',
	address1: '45b Plains Road',
	address2: 'Mapperley',
	town: 'Nottingham',
	postcode: 'NG3 5JU',
	phone: '0115 962 4213',
	link: '/contact/contact.asp',
	image: '/_gfx/contact_mapperley_thumb.jpg'
}

branches[1] = {
	point: 	new GPoint(-1.1270427703857422, 53.003731617891525),
	name:	'Arnold',
	address1: '102 Front Street',
	address2: 'Arnold',
	town: 'Nottingham',
	postcode: 'NG5 7EJ',
	phone: '0115 955 5550',
	link: '/contact/contact.asp',
	image: '/_gfx/contact_arnold_thumb.jpg'
}

branches[2] = {
	point: 	 new GPoint(-1.1085891723632812, 52.96590745527649),
	name:	'Carlton',
	address1: '317 Carlton Hill',
	address2: 'Carlton',
	town: 'Nottingham',
	postcode: 'NG4 1GL',
	phone: '0115 987 8957',
	link: '/contact/contact.asp',
	image: '/_gfx/contact_carlton_thumb.jpg'
}

branches[3] = {
	point: 	new GPoint(-1.2130451202392578, 52.92825712900464),
	name:	'Beeston',
	address1: '68 High Road',
	address2: 'Beeston',
	town: 'Nottingham',
	postcode: 'NG9 2LF',
	phone: '0115 922 5555',
	link: '/contact/contact.asp',
	image: '/_gfx/contact_beeston_thumb.jpg'
}

var areas = [];
areas[0] = [];
areas[0][0] = new GLatLng(52.979139343590326, -1.130218505859375);		// Mapperley
areas[0][1] = 14;
areas[1] = [];
areas[1][0] = new GLatLng(53.00652061338904, -1.1271286010742188);		// Arnold
areas[0][1] = 14;
areas[2] = [];
areas[2][0] = new GLatLng(52.9670576531951, -1.087796688079834); 		// Carlton
areas[2][1] = 14;
areas[3] = [];
areas[3][0] = new GLatLng(52.92598050963025, -1.2129592895507812);		// Beeston
areas[3][1] = 14;
areas[4] = [];
areas[4][0] = new GLatLng(53.015402879526796, -1.0414695739746094);		// Woodborough
areas[4][1] = 13;