/*
Theme Name: Building Futures East
Theme URI: http://guerilla.co.uk
Description: Main JS File
Author: Guerilla
Version: 1.0
*/

var map;
var markersArray = [];

// init Google API elements
function bfe_googlemaps_init(strTarget) {
	
	//http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=Low+Yard,+White+St,+Walker,+NE6+3PJ&sll=54.974572,-1.538472&sspn=0.008177,0.026972&g=NE6+3PJ&ie=UTF8&ll=54.97472,-1.538472&spn=0.00787,0.026972&t=h&z=16&iwloc=A
	
	// create position obj where the map will initially center
	var latlng = new google.maps.LatLng(54.97472,-1.538472);
	
	// set options
	var objOptions = {
		mapTypeControl: false,
		zoom: 15,
		center: latlng,
		mapTypeId: google.maps.MapTypeId.ROADMAP,
		navigationControlOptions: {style: google.maps.NavigationControlStyle.DEFAULT}
	};
	
	// init the map object
	map = new google.maps.Map(document.getElementById(strTarget), objOptions);
	
	// create the marker
	marker = new google.maps.Marker({
		position: latlng,
		map: map,
		draggable: false
	});
	
}
