function GMapButtons(a){this.text="";this.div=null;this.map=null;this.mapContainer=null;this.Scale=new GScaleControl();this.btn1=null;this.btn2=null;this.btn3=null;this.previousHeigh=a;this.isSmall=true}GMapButtons.prototype=new GControl();GMapButtons.prototype.initialize=function(a){this.map=a;this.mapContainer=this.map.getPane(G_MAP_MAP_PANE).parentNode.parentNode.parentNode;this.div=document.createElement("div");this.div.className="gmnoprint";this.div.style.width="230pt";this.btn1=document.createElement("div");this.btn2=document.createElement("div");this.btn3=document.createElement("div");this.btn1.innerHTML='<div style="border: 1px solid black; position: absolute; background-color: white; text-align: center; width: 50px; cursor: pointer; right: 160px;" title="Show street map"><div style="border-style: solid;  border-color: white rgb(176, 176, 176) rgb(176, 176, 176) white; border-width: 1px; font-size: 11px; font-weight: bold;font-family:Verdana;">Map</div></div>';this.btn2.innerHTML='<div style="border: 1px solid black; position: absolute; background-color: white; text-align: center; width: 60px; cursor: pointer; right: 100px;" title="Show satellite map"><div style="border-style: solid; border-color: white rgb(176, 176, 176) rgb(176, 176, 176) white; border-width: 1px; font-size: 11px;font-family:Verdana;">Satellite</div></div>';this.btn3.innerHTML='<div style="border: 1px solid black; position: absolute; background-color: white; text-align: center; width: 100px; cursor: pointer; right: 0px;" title="Increase size of the map"><div style="border-style: solid; border-color: white rgb(176, 176, 176) rgb(176, 176, 176) white; border-width: 1px; font-size: 11px;font-family:Verdana;">Enlarge Map</div></div>';var b=this;this.btn1.onclick=function(){btn1Click(b)};this.btn2.onclick=function(){btn2Click(b)};this.btn3.onclick=function(){btn3Click(b)};this.div.appendChild(this.btn1);this.div.appendChild(this.btn2);this.div.appendChild(this.btn3);this.mapContainer.appendChild(this.div);return this.div};GMapButtons.prototype.printable=function(){return false};GMapButtons.prototype.selectable=function(){return false};GMapButtons.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(7,7))};btn1Click=function(a){a.map.setMapType(a.map.getMapTypes()[0]);a.btn1.firstChild.firstChild.style.fontWeight="bold";a.btn2.firstChild.firstChild.style.fontWeight="normal"};btn2Click=function(a){a.map.setMapType(a.map.getMapTypes()[2]);a.btn2.firstChild.firstChild.style.fontWeight="bold";a.btn1.firstChild.firstChild.style.fontWeight="normal"};btn3Click=function(b){var a=b.mapContainer.offsetHeight;b.mapContainer.style.height=b.previousHeigh;b.mapContainer.parentNode.style.height=b.mapContainer.style.height;b.previousHeigh=a+"px";b.isSmall=!b.isSmall;if(b.isSmall){b.btn3.firstChild.firstChild.firstChild.nodeValue="Enlarge Map";b.map.removeControl(b.Scale)}else{b.btn3.firstChild.firstChild.firstChild.nodeValue="Reduce Map";b.map.addControl(b.Scale)}b.map.setCenter(b.map.getCenter())};