//menu lavalamp
$(function() {
	$("#uline").lavaLamp({
		fx: "backout", 
		speed: 700,
		click: function(event, menuItem) {
			return true;
		}
	});
});
//end of menu lavalamp

//smoothdivscroll
$(function() {
	$("div#picslide").smoothDivScroll({
		autoScroll: "always" , 
		autoScrollDirection: "endlessloopright", 
		autoScrollStep: 1, 
		autoScrollInterval: 25,	
		startAtElementId: "startAtMe"
	});
});
//end of smoothdivscroll

//Google Maps
$(function() {
	$("#overall").gMap({ 
		latitude: 52.38,
		longitude: -1.58,
		maptype: G_NORMAL_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ //coventry
			latitude: 52.387544,
			longitude: -1.565938,
			html: "<h2>Coventry</h2><a href='startrack_coventry.php'>See Details</a>"
			},{ //leamingtonspa
			latitude: 52.286400,
			longitude: -1.554737,
			html: "<h2>Leamington Spa</h2><a href='startrack_leamingtonspa.php'>See Details</a>"
			},{ //nuneaton
			latitude: 52.515685 ,
			longitude: -1.464046,
			html: "<h2>Nuneaton</h2><a href='startrack_nuneaton.php'>See Details</a>"
			},{ //rugby
			latitude: 52.365839,
			longitude: -1.252871,
			html: "<h2>Rugby</h2><a href='startrack_rugby.php'>See Details</a>"
			},{ //solihull
			latitude: 52.411621,
			longitude: -1.789505,
			html: "<h2>Solihull</h2><a href='startrack_solihull.php'>See Details</a>"
			},{ //stratford-upon-avon
			latitude: 52.192232,
			longitude: -1.723276,
			html: "<h2>Stratford-upon-Avon</h2><a href='startrack_stratforduponavon.php'>See Details</a>"
			}] ,
		zoom: 9
	});
	$("#map-coventry").gMap({ 
		maptype: G_HYBRID_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ 
			latitude: 52.387544,
			longitude: -1.565938
			}] ,
		zoom: 15
	});
	$("#map-leamingtonspa").gMap({ 
		maptype: G_HYBRID_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ 
			latitude: 52.286400,
			longitude: -1.554737
			}] ,
		zoom: 15
	});
	$("#map-nuneaton").gMap({ 
		maptype: G_HYBRID_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ 
			latitude: 52.515685 ,
			longitude: -1.464046
			}] ,
		zoom: 15
	});
	$("#map-rugby").gMap({ 
		maptype: G_HYBRID_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ 
			latitude: 52.365839,
			longitude: -1.252871
			}] ,
		zoom: 15
	});
	$("#map-solihull").gMap({ 
		maptype: G_HYBRID_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ 
			latitude: 52.411621,
			longitude: -1.789505
			}] ,
		zoom: 15
	});
	$("#map-suponavon").gMap({ 
		maptype: G_HYBRID_MAP,
		controls: [
			"GLargeMapControl3D", "GMenuMapTypeControl"
			],
		markers: [{ 
			latitude: 52.192232,
			longitude: -1.723276
			}] ,
		zoom: 15
	});
}); 
//end of Google Maps



