I'm trying to add a GMap to my contact page, I don't have the need for Location / GMap modules. I'm following the tutorial here but following it I have to add everything to the head in my html.tpl file:
<script>
function initialize() {
var map_canvas = document.getElementById('map_canvas');
var map_options = {
center: new google.maps.LatLng(44.5403, -78.5463),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(map_canvas, map_options)
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
Where else can I place this script? I've tried to add it in a separate JS file and call it through my info file but it doesn't work that way.