function initialize(){if(GBrowserIsCompatible()){var b=new GMap2(document.getElementById("map"));b.setCenter(new GLatLng(52.0736,-1.0225),14);b.icon=new GIcon(G_DEFAULT_ICON);b.icon.image="/Templates/Public/Styles/Glossy/img/contact-map-icon.png";b.icon.printImage="/Templates/Public/Styles/Glossy/img/contact-map-icon.gif";b.icon.iconSize=new GSize(41,42);var a=new GMarker(new GLatLng(52.075015,-1.023703),{icon:b.icon});b.addOverlay(a);b.addControl(new customControls());return b}}function customControls(a){this.mapControlsClass="map-container"}customControls.prototype=new GControl();customControls.prototype.panUp=function(a){a.panDirection(0,1)};customControls.prototype.panDown=function(a){a.panDirection(0,-1)};customControls.prototype.panLeft=function(a){a.panDirection(1,0)};customControls.prototype.panRight=function(a){a.panDirection(-1,0)};customControls.prototype.panCentre=function(a){a.returnToSavedPosition()};customControls.prototype.zoomIn=function(a){a.zoomIn()};customControls.prototype.zoomOut=function(a){a.zoomOut()};customControls.prototype.initialize=function(b,c){var a=document.createElement("div");a.id="mapControls";a.className=this.mapControlsClass;this.initButton(b,a,"panUpDiv","btnPanUp","gmapsButton",this.panUp);this.initButton(b,a,"panDownDiv","btnPanDown","gmapsButton",this.panDown);this.initButton(b,a,"panLeftDiv","btnPanLeft","gmapsButton",this.panLeft);this.initButton(b,a,"panRightDiv","btnPanRight","gmapsButton",this.panRight);this.initButton(b,a,"panCentreDiv","btnCentre","gmapsButton",this.panCentre);this.initButton(b,a,"zoomInDiv","btnZoomIn","gmapsButton",this.zoomIn);this.initButton(b,a,"zoomOutDiv","btnZoomOut","gmapsButton",this.zoomOut);b.getContainer().appendChild(a);return a};customControls.prototype.initButton=function(f,a,g,b,c,d){var e=document.createElement("div");this.setButtonStyle_(e,b,c);GEvent.addDomListener(e,"click",function(){d(f);silverstone.googleMaps.manager.refresh()});a.appendChild(e)};customControls.prototype.setButtonStyle_=function(b,a,c){if(a){b.id=a}if(c){b.className=c}return};
