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();a.closeExtInfoWindow()};customControls.prototype.zoomIn=function(a){a.zoomIn()};customControls.prototype.zoomOut=function(a){a.zoomOut()};customControls.prototype.initialize=function(a,b){var c=document.createElement("div");c.id="mapControls";c.className=this.mapControlsClass;this.initButton(a,c,"panUpDiv","btnPanUp","gmapsButton",this.panUp);this.initButton(a,c,"panDownDiv","btnPanDown","gmapsButton",this.panDown);this.initButton(a,c,"panLeftDiv","btnPanLeft","gmapsButton",this.panLeft);this.initButton(a,c,"panRightDiv","btnPanRight","gmapsButton",this.panRight);this.initButton(a,c,"panCentreDiv","btnCentre","gmapsButton",this.panCentre);this.initButton(a,c,"zoomInDiv","btnZoomIn","gmapsButton",this.zoomIn);this.initButton(a,c,"zoomOutDiv","btnZoomOut","gmapsButton",this.zoomOut);a.getContainer().appendChild(c);return c};customControls.prototype.initButton=function(c,e,a,g,d,f){var b=document.createElement("div");this.setButtonStyle_(b,g,d);GEvent.addDomListener(b,"click",function(){f(c)});e.appendChild(b)};customControls.prototype.setButtonStyle_=function(b,c,a){if(c){b.id=c}if(a){b.className=a}return};