This should help you along:
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
function initialize() {
var myOptions = {
center: new google.maps.LatLng(54.270606, 22.471527),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP,
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var marker = new google.maps.Marker({
position: map.getCenter(),
icon: 'http://google-maps-icons.googlecode.com/files/factory.png',
map: map,
title: 'Click to zoom'});
google.maps.event.addListener(map, 'center_changed', function() {
window.setTimeout(function() {map.panTo(marker.getPosition());}, 3000);});
google.maps.event.addListener(marker, 'click', function() {map.setZoom(10);
map.setCenter(marker.getPosition());});
}
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>