function GmapsSweetSmallMapControl(nearby){this.nearby=nearby}GmapsSweetSmallMapControl.prototype=new GControl();GmapsSweetSmallMapControl.prototype.initialize=function(map){var container=document.createElement("div");container.id="GmapsSweetSmallMapControl";var zoomIn=document.createElement("div");zoomIn.style.position="absolute";zoomIn.style.top="-2px";GEvent.addDomListener(zoomIn,"click",function(){poiMarkers.closeAllInfoboxes();map.zoomIn()});var zoomInImg=document.createElement("img");zoomInImg.src="http://family.go.com/images/travel/map/zoomControl/smallMap/zoomIn_withwhite"+(this.nearby?"_nb":"")+".png";zoomInImg.className="transparency";zoomInImg.style.cursor="pointer";zoomIn.appendChild(zoomInImg);container.appendChild(zoomIn);var zoomOut=document.createElement("div");zoomOut.style.position="absolute";zoomOut.style.top="40px";GEvent.addDomListener(zoomOut,"click",function(){poiMarkers.closeAllInfoboxes();map.zoomOut()});var zoomOutImg=document.createElement("img");zoomOutImg.src="http://family.go.com/images/travel/map/zoomControl/smallMap/zoomOut_withwhite.png";zoomOutImg.className="transparency";zoomOutImg.style.cursor="pointer";zoomOut.appendChild(zoomOutImg);container.appendChild(zoomOut);map.getContainer().appendChild(container);return container};GmapsSweetSmallMapControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(39,-1))};function GmapsSweetLargeMapControl(){}GmapsSweetLargeMapControl.prototype=new GControl();GmapsSweetLargeMapControl.prototype.pan=function(dir){var center=this.map.getCenter();var bounds=this.map.getBounds();var northEast=bounds.getNorthEast();var southWest=bounds.getSouthWest();switch(dir){case"north":this.map.panTo(new GLatLng(northEast.lat(),center.x));break;case"east":this.map.panTo(new GLatLng(center.y,northEast.lng()));break;case"south":this.map.panTo(new GLatLng(southWest.lat(),center.x));break;case"west":this.map.panTo(new GLatLng(center.y,southWest.lng()));break}};GmapsSweetLargeMapControl.prototype.initialize=function(map){var listenerObject=this;this.map=map;this.originalCenter=this.map.getCenter();this.originalZoomLevel=this.map.getZoom();var row1Top="0px";var row2Top="25px";var row3Top="50px";var col1Left="0px";var col2Left="25px";var col3Left="50px";var zoomInTop="80px";var zoomBarTop="105px";var zoomBarLeft="31px";var zoomOutTop="210px";var container=document.createElement("div");container.id="GmapsSweetLargeMapControl";var zoomIn=document.createElement("div");zoomIn.style.position="absolute";zoomIn.style.top=zoomInTop;zoomIn.style.left=col2Left;GEvent.addDomListener(zoomIn,"click",function(){poiMarkers.closeAllInfoboxes();map.zoomIn()});var zoomInImg=document.createElement("img");zoomInImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/zoomInBig.png";zoomInImg.className="transparency";zoomInImg.style.cursor="pointer";zoomIn.appendChild(zoomInImg);container.appendChild(zoomIn);var notchImg=new Array();var notchDiv=new Array();var zoomBarTopNumber=zoomBarTop.replace(/px/,"")-0+5;var zoomBarLeftNumber=zoomBarLeft.replace(/px/,"")-2;for(var i=0;i<18;i++){notchDiv[i]=document.createElement("div");GEvent.addDomListener(notchDiv[i],"click",function(){poiMarkers.closeAllInfoboxes();this.parentNode.childNodes[18-listenerObject.map.getZoom()].firstChild.src="http://family.go.com/images/blank.gif";listenerObject.map.setZoom(17-this.zoom);this.firstChild.src="http://family.go.com/images/travel/map/zoomControl/largeMap/zoombarbtn.png";this.firstChild.className="transparency"});notchDiv[i].zoom=i;notchDiv[i].style.position="absolute";notchDiv[i].style.top=zoomBarTopNumber+(i*5)+"px";notchDiv[i].style.left=zoomBarLeftNumber+"px";notchDiv[i].style.zIndex=2;notchDiv[i].style.height="5px";notchDiv[i].style.width="15px";notchImg[i]=document.createElement("img");notchImg[i].src="http://family.go.com/images/blank.gif";notchImg[i].style.cursor="pointer";notchDiv[i].appendChild(notchImg[i]);container.appendChild(notchDiv[i]);if(i==(17-this.map.getZoom())){notchDiv[i].firstChild.src="http://family.go.com/images/travel/map/zoomControl/largeMap/zoombarbtn.png"}}var zoomOut=document.createElement("div");zoomOut.style.position="absolute";zoomOut.style.top=zoomOutTop;zoomOut.style.left=col2Left;GEvent.addDomListener(zoomOut,"click",function(){poiMarkers.closeAllInfoboxes();map.zoomOut()});var zoomOutImg=document.createElement("img");zoomOutImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/zoomOutBig.png";zoomOutImg.className="transparency";zoomOutImg.style.cursor="pointer";zoomOut.appendChild(zoomOutImg);container.appendChild(zoomOut);var zoomBar=document.createElement("div");zoomBar.style.position="absolute";zoomBar.style.top=zoomBarTop;zoomBar.style.left=zoomBarLeft;var zoomBarImg=document.createElement("img");zoomBarImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/zoombar.png";zoomBarImg.className="transparency";zoomBarImg.style.cursor="pointer";zoomBar.appendChild(zoomBarImg);container.appendChild(zoomBar);var mapMoveMap=document.createElement("div");var buttonUpDiv=document.createElement("div");buttonUpDiv.style.position="absolute";buttonUpDiv.style.left=col2Left;GEvent.addDomListener(buttonUpDiv,"click",function(){poiMarkers.closeAllInfoboxes();listenerObject.pan("north")});var buttonUpImg=document.createElement("img");buttonUpImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/north.png";buttonUpImg.style.cursor="pointer";buttonUpDiv.appendChild(buttonUpImg);mapMoveMap.appendChild(buttonUpDiv);var buttonRightDiv=document.createElement("div");buttonRightDiv.style.position="absolute";buttonRightDiv.style.left=col3Left;buttonRightDiv.style.top=row2Top;GEvent.addDomListener(buttonRightDiv,"click",function(){poiMarkers.closeAllInfoboxes();listenerObject.pan("east")});var buttonRightImg=document.createElement("img");buttonRightImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/east.png";buttonRightImg.style.cursor="pointer";buttonRightDiv.appendChild(buttonRightImg);mapMoveMap.appendChild(buttonRightDiv);var buttonCenterDiv=document.createElement("div");buttonCenterDiv.style.position="absolute";buttonCenterDiv.style.left=col2Left;buttonCenterDiv.style.top=row2Top;GEvent.addDomListener(buttonCenterDiv,"click",function(){poiMarkers.closeAllInfoboxes();listenerObject.map.setCenter(listenerObject.originalCenter,listenerObject.originalZoomLevel)});var buttonCenterImg=document.createElement("img");buttonCenterImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/center.png";buttonCenterImg.style.cursor="pointer";buttonCenterDiv.appendChild(buttonCenterImg);mapMoveMap.appendChild(buttonCenterDiv);var buttonLeftDiv=document.createElement("div");buttonLeftDiv.style.position="absolute";buttonLeftDiv.style.left=col1Left;buttonLeftDiv.style.top=row2Top;GEvent.addDomListener(buttonLeftDiv,"click",function(){poiMarkers.closeAllInfoboxes();listenerObject.pan("west")});var buttonLeftImg=document.createElement("img");buttonLeftImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/west.png";buttonLeftImg.style.cursor="pointer";buttonLeftDiv.appendChild(buttonLeftImg);mapMoveMap.appendChild(buttonLeftDiv);var buttonDownDiv=document.createElement("div");buttonDownDiv.style.position="absolute";buttonDownDiv.style.left=col2Left;buttonDownDiv.style.top=row3Top;GEvent.addDomListener(buttonDownDiv,"click",function(){poiMarkers.closeAllInfoboxes();listenerObject.pan("south")});var buttonDownImg=document.createElement("img");buttonDownImg.src="http://family.go.com/images/travel/map/zoomControl/largeMap/south.png";buttonDownImg.style.cursor="pointer";buttonDownDiv.appendChild(buttonDownImg);mapMoveMap.appendChild(buttonDownDiv);container.appendChild(mapMoveMap);map.getContainer().appendChild(container);return container};GmapsSweetLargeMapControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(90,20))}