Google Maps Plugin - Theme Integration

Hi

I am trying to integrate Google Maps plugin into my theme.

A google map is the background of my theme.

The coordinates of the map, centre point, markers are specified by script in a .js file.

Can I store the whole script in a php variable?

If so, can Google Maps Plugin output the same type of script based on a plugin function?

So I can run a network=true tag='tagname' function to load the map?

function initialize() {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(-34.055376,151.151591), 16);
map.setMapType(G_HYBRID_MAP);

var point = new GLatLng(-34.055376,151.151591);
map.addOverlay(new GMarker(point));
}

/*Google Maps API V3
function initialize() {
var centerLng = new google.maps.LatLng(-34.055376,151.151591);
var myOptions = {
zoom: 8,
center: centerLng,
mapTypeId: google.maps.MapTypeId.HYBRID
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);

var markerLng = new google.maps.LatLng(-34.055376,151.151591);
var marker = new google.maps.Marker({
position: markerLng,
map: map,
}
*/

see the theme at http://tradr.co