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

/** site-specific stuff **/
var image_width = 184;
var client_name = 'johngerman';
var default_view = new GLatLng(52.75291861005521, -1.4440155029296875);
var default_zoom = 11;
// The allowed region which the whole map must be within
var allowedBounds = new GLatLngBounds(new GLatLng(52.286642502091, -3.19976806640625), new GLatLng(53.42262754609993, 0.37078857421875));
var min_zoom = 8;

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[1] = {
	point: 	new GPoint(-1.469797, 52.747756),
	name:	'Ashby de la Zouch',
	address1: '63a Market Street',
	//address2: '',
	town: 'Ashby de la Zouch',
	postcode: 'LE65 1AH',
	phone: '01530 412824',
	link: '/contact/ashby-de-la-zouch',
	image: '/images/branches/thumbs/ashby-de-la-zouch.jpg'
}

branches[2] = {
	point: 	new GPoint(-1.631609, 52.800932),
	name:	'Burton-upon-Trent',
	address1: '1 Lichfield Street',
	town: 'Burton-upon-Trent',
	postcode: 'DE14 3QZ',
	phone: '01283 512244',
	link: '/contact/burton-upon-trent',
	image: '/images/branches/thumbs/burton-upon-trent.jpg'
}


branches[3] = {
	point: 	new GPoint(-1.828043, 52.68288),
	name:	'Lichfield',
	address1: '29 Bore Street',
	//address2: '',
	town: 'Lichfield',
	postcode: 'WS13 6LZ',
	phone: '01543 419121',
	link: '/contact/lichfield',
	image: '/images/branches/thumbs/lichfield.jpg'
}

branches[4] = {
	point: 	new GPoint(-1.208279, 52.771318),
	name:	'Loughborough',
	address1: '9 Market Street',
//	address2: '',
	town: 'Loughborough',
	postcode: 'LE11 3EP',
	phone: '01509 239121',
	link: '/contact/loughborough',
	image: '/images/branches/thumbs/loughborough.jpg'
}

branches[5] = {
	point: 	new GPoint(-1.125165, 52.929434),
	name:	'West Bridgford (sales)',
	address1: 'Corner House',
	address2: '37 Gordon Road',
	town: 'West Bridgford',
	postcode: 'NG2 5LQ',
	phone: '0115 981 0003',
	link: '/contact/west-bridgford',
	image: '/images/branches/thumbs/west-bridgford.jpg'
}

branches[0] = {
	point: 	new GPoint(-1.133015, 52.914699),
	name:	'West Bridgford (lettings)',
	address1: '71 Boundary Road',
	//address2: '',
	town: 'West Bridgford',
	postcode: 'NG2 7DB',
	phone: '0115 923 6090',
	link: '/contact/west-bridgford',
	image: '/images/branches/thumbs/west-bridgford2.jpg'
}

branches[6] = {
	point: 	new GPoint(-1.125165, 52.929434),
	name:	'Stafford',
	address1: '4 Eastgate Street',
	//address2: '',
	town: 'Stafford',
	postcode: 'ST16 2NQ',
	phone: '01785 236600',
	link: '/contact/stafford',
	image: '/images/branches/thumbs/stafford.jpg'
}

branches[7] = {
	point: 	new GPoint(-1.863433, 52.898082),
	name:	'Uttoxeter',
	address1: '9a Market Place',
	//address2: '',
	town: 'Uttoxeter',
	postcode: 'ST14 8HY',
	phone: '01889 567444',
	link: '/contact/uttoxeter',
	image: '/images/branches/thumbs/uttoxeter.jpg'
}


branches[8] = {
	point: 	new GPoint(-1.1920380592346191, 52.82773920748665),
	name:	'East Leake',
	address1: '75 Main Street',
	//address2: '',
	town: 'East Leake',
	postcode: 'LE12 6PS',
	phone: '01509 856006',
	link: '/contact/east-leake',
	image: '/images/branches/thumbs/east-leake.jpg'
}

branches[9] = {
	point: 	new GPoint(-1.726913, 53.016074),
	name:	'Ashbourne',
	address1: 'Compton House',
	address2: 'Dig Street',
	town: 'Ashbourne',
	postcode: 'DE6 1GD',
	phone: '01335 340730',
	link: '/contact/ashbourne',
	image: '/images/branches/thumbs/ashbourne.jpg'
}



/*
case '1': intLng = -1.469797; intLat = 52.747756; intZoomLevel = 14; break; //Ashby
case '2': intLng = -1.631845; intLat = 52.799848; intZoomLevel = 13; break; //Burton
case '3': intLng = -1.828146; intLat = 52.682765; intZoomLevel = 14; break; //Lich
case '4': intLng = -1.208282; intLat = 52.771368; intZoomLevel = 14; break; //LBoro
case '5': intLng = -1.123980; intLat = 52.928823; intZoomLevel = 14; break; //WB
case '6': intLng = -2.115296; intLat = 52.807293; intZoomLevel = 14; break; //Staff
case '7': intLng = -1.863628; intLat = 52.897983; intZoomLevel = 14; break; //Utto
case '8': intLng = -1.192046; intLat = 52.827696; intZoomLevel = 14; break; //East Leake
case '9': intLng = -1.726913; intLat = 53.016074; intZoomLevel = 11; break; //ashbourne
*/
//1 = zoomed ou, 15 = zoomed in
var areas = [];
areas[0] = [];
areas[0][0] = new GLatLng(52.74664, -1.473528);		// W Bridge lettings (not used)
areas[0][1] = 1;
areas[1] = [];
areas[1][0] = new GLatLng(52.74664, -1.473528);		// Asbhy DLZ
areas[0][1] = 12;
areas[2] = [];
areas[2][0] = new GLatLng(52.80483696041453, -1.6318130493164062); 		// Burton
areas[2][1] = 12;
areas[3] = [];
areas[3][0] = new GLatLng(52.682765, -1.828146);		// Lichfield
areas[3][1] = 12;
areas[4] = [];
areas[4][0] = new GLatLng(52.771368, -1.208282);		// Loughborough
areas[4][1] = 12;
areas[5] = [];
areas[5][0] = new GLatLng(52.928823, -1.123980);		// WB
areas[5][1] = 13;
areas[6] = [];
areas[6][0] = new GLatLng(52.807293, -2.115296);		// Stafford
areas[6][1] = 12;
areas[7] = [];
areas[7][0] = new GLatLng(52.897983, -1.863628);		// Uttoxeter
areas[7][1] = 12;
areas[8] = [];
areas[8][0] = new GLatLng(52.83274341438615, -1.1736488342285156);		// EL
areas[8][1] = 13;
areas[9] = [];
areas[9][0] = new GLatLng(53.016074, -1.726913);		// Ashbourne
areas[9][1] = 12;