function GmapsMarker(poi,markerManager,index,printable){}GmapsMarker.prototype=new GOverlay();GmapsMarker.prototype.remove=function(){this.bottomMarker.parentNode.removeChild(this.bottomMarker)};GmapsMarker.prototype.copy=function(){return new GmapsMarker(this.bottomMarker,this.loc)};GmapsMarker.prototype.prepareToMaximize=function(){clearTimeout(this.dontRedrawTimeout);this.dontRedraw=true;YAHOO.util.Event.removeListener(this.topMarker,"mouseout");YAHOO.util.Event.removeListener(this.topMarker,"mouseover");YAHOO.util.Event.removeListener(this.topMarker,"click");YAHOO.util.Event.addListener(this.topMarker,"click",this.hideInfobox,this,true);YAHOO.util.Event.removeListener(this.outsideElement,"mouseout");YAHOO.util.Event.removeListener(this.outsideElement,"mouseover");YAHOO.util.Event.removeListener(this.outsideElement,"click");YAHOO.util.Event.addListener(this.outsideElement,"click",this.hideInfobox,this,true);YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"mouseout");YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"mouseover");YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"click")};GmapsMarker.prototype.createInfobox=function(){this.map_.addOverlay(new GmapsInfobox(this.infoboxElementId,this,this.openInside))};GmapsMarker.prototype.showSmallInfobox=function(){this.clearTimeouts();this.stopAnimations();clearTimeout(this.dontRedrawTimeout);this.dontRedraw=true;if(this.markerManager.boxOpened==false){if(this.markerType=="vacation"){this.infobox.showSmall()}this.grow();this.makeOutsideElementActive()}};GmapsMarker.prototype.showLargeInfobox=function(){this.prepareToMaximize();this.clearTimeouts();this.stopAnimations();this.map_.disableDragging();var timeoutObject=this;this.markerManager.closeOtherInfoboxes(this.index);this.markerManager.boxOpened=true;var newX=(this.markerLocation.x+Math.round(this.infobox.largeWidth/2)+10);var newY=(this.markerLocation.y-Math.round(this.infobox.largeHeight/2)-15);var bestView=new GPoint(newX,newY);if(this.markerType=="vacation"){if(this.markerManager.savedPosition==false){this.map_.savePosition();this.markerManager.savedPosition=true}this.map_.panTo(this.map_.fromDivPixelToLatLng(bestView))}this.makeOutsideElementActive();this.lastPosX=null;this.lastPosY=null;var mapMoving=true;this.mediaInterval=setInterval(function(){var mapCenter=timeoutObject.map_.getCenter();var posX=mapCenter.x;var posY=mapCenter.y;if(timeoutObject.lastPosX==null){timeoutObject.lastPosX=posX;timeoutObject.lastPosY=posY;return }else{if((timeoutObject.lastPosX==posX)&&(timeoutObject.lastPosY==posY)){if(mapMoving){mapMoving=false}else{clearInterval(timeoutObject.mediaInterval);timeoutObject.grow();timeoutObject.infobox.showLarge();return }}else{mapMoving=true}timeoutObject.lastPosX=posX;timeoutObject.lastPosY=posY}},100)};GmapsMarker.prototype.hideInfobox=function(){this.clearTimeouts();this.stopAnimations();var timeoutObject=this;this.markerManager.boxOpened=false;this.infobox.minimize();this.shrink();this.makeOutsideElementInactive();if(this.markerManager.savedPosition==true){timeoutObject.timeouts.push(setTimeout(function(){timeoutObject.map_.returnToSavedPosition()},300));this.markerManager.savedPosition=false}this.dontRedrawTimeout=setTimeout(function(){timeoutObject.dontRedraw=false},this.transitionTimeout);this.timeouts.push(this.dontRedrawTimeout);this.timeouts.push(setTimeout(function(){timeoutObject.resetMouseEvents()},this.transitionTimeout*2))};GmapsMarker.prototype.deactivate=function(){this.clearTimeouts();this.stopAnimations();this.dontRedraw=false;this.infobox.deactivate();this.shrinkInstantly();this.makeOutsideElementInactive();this.dontRedraw=false;this.resetMouseEvents()};GmapsMarker.prototype.stopAnimations=function(){for(var i=0;i<this.animations.length;i++){this.animations[i].onComplete.unsubscribe();this.animations[i].stop(false)}};GmapsMarker.prototype.hideSmallInfobox=function(){this.clearTimeouts();this.stopAnimations();var timeoutObject=this;if(this.markerType=="vacation"){this.infobox.minimize()}this.shrink();this.makeOutsideElementInactive();this.dontRedrawTimeout=setTimeout(function(){timeoutObject.dontRedraw=false},this.transitionTimeout);this.timeouts.push(this.dontRedrawTimeout)};GmapsMarker.prototype.resetMouseEvents=function(){if(!this.printable){var timeoutObject=this;YAHOO.util.Event.removeListener(this.topMarker,"mouseover");YAHOO.util.Event.addListener(this.topMarker,"mouseover",function(){clearTimeout(this.topMarkerMouseout);clearTimeout(this.bottomMarkerMouseout);clearTimeout(this.infoboxDivMouseout);this.topMarkerMouseover=setTimeout(function(){timeoutObject.showSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.topMarkerMouseover)},this,true);YAHOO.util.Event.removeListener(this.topMarker,"mouseout");YAHOO.util.Event.addListener(this.topMarker,"mouseout",function(){clearTimeout(this.topMarkerMouseover);clearTimeout(this.bottomMarkerMouseover);clearTimeout(this.infoboxDivMouseover);this.topMarkerMouseout=setTimeout(function(){timeoutObject.hideSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.topMarkerMouseout)},this,true);YAHOO.util.Event.removeListener(this.topMarker,"click");YAHOO.util.Event.addListener(this.topMarker,"click",function(){this.timeouts.push(setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay))},this,true);YAHOO.util.Event.removeListener(this.bottomMarker,"mouseover");YAHOO.util.Event.addListener(this.bottomMarker,"mouseover",function(){clearTimeout(this.bottomMarkerMouseout);clearTimeout(this.topMarkerMouseout);clearTimeout(this.infoboxDivMouseout);this.bottomMarkerMouseover=setTimeout(function(){timeoutObject.showSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.bottomMarkerMouseover)},this,true);YAHOO.util.Event.removeListener(this.bottomMarker,"mouseout");YAHOO.util.Event.addListener(this.bottomMarker,"mouseout",function(){clearTimeout(this.bottomMarkerMouseover);clearTimeout(this.topMarkerMouseover);clearTimeout(this.infoboxDivMouseover);this.bottomMarkerMouseout=setTimeout(function(){timeoutObject.hideSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.bottomMarkerMouseout)},this,true);YAHOO.util.Event.removeListener(this.bottomMarker,"click");YAHOO.util.Event.addListener(this.bottomMarker,"click",function(){this.timeouts.push(setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay))},this,true);YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"mouseover");YAHOO.util.Event.addListener(this.infobox.infoboxElement,"mouseover",function(){clearTimeout(this.topMarkerMouseout);clearTimeout(this.infoboxDivMouseout);this.infoboxDivMouseover=setTimeout(function(){timeoutObject.showSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.infoboxDivMouseover)},this,true);YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"mouseout");YAHOO.util.Event.addListener(this.infobox.infoboxElement,"mouseout",function(){clearTimeout(this.topMarkerMouseover);clearTimeout(this.infoboxDivMouseover);this.infoboxDivMouseout=setTimeout(function(){timeoutObject.hideSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.infoboxDivMouseout)},this,true);YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"click");YAHOO.util.Event.addListener(this.infobox.infoboxElement,"click",function(){this.timeouts.push(setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay))},this,true);YAHOO.util.Event.removeListener(this.outsideElement,"mouseover");YAHOO.util.Event.addListener(this.outsideElement,"mouseover",function(){clearTimeout(this.outsideElementMouseout);this.outsideElementMouseover=setTimeout(function(){if(!timeoutObject.smallInfoboxShowing){timeoutObject.showSmallInfobox()}},this.mouseoverDelay);this.timeouts.push(this.outsideElementMouseover)},this,true);YAHOO.util.Event.removeListener(this.outsideElement,"mouseout");YAHOO.util.Event.addListener(this.outsideElement,"mouseout",function(){clearTimeout(this.outsideElementMouseover);this.outsideElementMouseout=setTimeout(function(){timeoutObject.hideSmallInfobox()},this.mouseoverDelay);this.timeouts.push(this.outsideElementMouseout)},this,true);YAHOO.util.Event.removeListener(this.outsideElement,"click");YAHOO.util.Event.addListener(this.outsideElement,"click",function(){this.timeouts.push(setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay))},this,true)}};GmapsMarker.prototype.grow=function(marker){this.clearTimeouts();this.stopAnimations();clearTimeout(this.shrinkTimeout);if(this.smallMarkerBg!=undefined){this.smallMarkerBg.style.display="none"}if(this.markerType=="vacation"&&!this.printable){hideKey()}this.minimized=false;YAHOO.util.Dom.setStyle(this.topMarker.childNodes,"margin-left","0px");YAHOO.util.Dom.setStyle(this.bottomMarker,"display","none");if(this.markerType=="vacation"){var growMarker=new YAHOO.util.Anim(this.topMarker,{width:{to:this.maximizedWidth},left:{to:this.maximizedLeft},height:{to:this.maximizedHeight},top:{to:this.maximizedTop}},this.transitionDuration)}else{YAHOO.util.Dom.setStyle(this.topMarker,"z-index","10");var growMarker=new YAHOO.util.Anim(this.topMarker,{width:{to:this.maximizedWidth},left:{to:this.maximizedTopMarkerLeft},height:{to:this.maximizedHeight},top:{to:this.maximizedTopMarkerTop}},this.transitionDuration)}if(!this.printable){var growShadow=new YAHOO.util.Anim(this.shadowElement,{width:{to:this.maximizedShadowWidth},height:{to:this.maximizedShadowHeight},top:{to:this.maximizedShadowTop}},this.transitionDuration);if(this.infobox.hasMedia){growMarker.onComplete.subscribe(this.showSmallInfoboxShadow,this,true)}}var hideInactive=new YAHOO.util.Anim(this.inactiveMarker,{opacity:{to:0}},this.transitionDuration);this.animations.push(hideInactive);hideInactive.animate();if(!this.printable){}this.animations.push(growMarker);growMarker.animate()};GmapsMarker.prototype.shrink=function(){this.minimized=true;if(this.markerType=="vacation"){var shrinkMarker=new YAHOO.util.Anim(this.topMarker,{width:{to:this.minimizedWidth},left:{to:this.minimizedLeft},height:{to:this.minimizedHeight},top:{to:this.minimizedTop}},this.transitionDuration)}else{YAHOO.util.Dom.setStyle(this.topMarker,"z-index","10");var shrinkMarker=new YAHOO.util.Anim(this.topMarker,{width:{to:this.minimizedWidth},left:{to:this.minimizedTopMarkerLeft},height:{to:this.minimizedHeight},top:{to:this.minimizedTopMarkerTop}},this.transitionDuration)}if(!this.printable){var shrinkShadow=new YAHOO.util.Anim(this.shadowElement,{width:{to:this.minimizedShadowWidth},height:{to:this.minimizedShadowHeight},top:{to:this.minimizedShadowTop}},this.transitionDuration)}var showInactive=new YAHOO.util.Anim(this.inactiveMarker,{opacity:{to:1}},this.transitionDuration);if(!this.printable&&this.infobox.hasMedia){this.showMarkerShadow()}this.animations.push(showInactive);showInactive.animate();this.animations.push(shrinkMarker);shrinkMarker.animate();var timeoutObject=this;this.shrinkTimeout=setTimeout(function(){YAHOO.util.Dom.setStyle(timeoutObject.topMarker.childNodes,"margin-left","100px");YAHOO.util.Dom.setStyle(timeoutObject.bottomMarker,"display","block");YAHOO.util.Dom.setStyle(timeoutObject.bottomMarker,"top",timeoutObject.minimizedTop+"px");YAHOO.util.Dom.setStyle(timeoutObject.bottomMarker,"left",timeoutObject.minimizedLeft+"px");if(timeoutObject.smallMarkerBg!=undefined){timeoutObject.smallMarkerBg.style.display="block"}},200);this.timeouts.push(this.shrinkTimeout)};GmapsMarker.prototype.shrinkInstantly=function(){this.minimized=true;if(this.markerType=="vacation"){this.topMarker.style.width=this.minimizedWidth+"px";this.topMarker.style.left=this.minimizedLeft+"px";this.topMarker.style.height=this.minimizedHeight+"px";this.topMarker.style.top=this.minimizedTop+"px"}else{YAHOO.util.Dom.setStyle(this.topMarker,"z-index","10");this.topMarker.style.width=this.minimizedWidth+"px";this.topMarker.style.left=this.minimizedTopMarkerLeft+"px";this.topMarker.style.height=this.minimizedHeight+"px";this.topMarker.style.top=this.minimizedTopMarkerTop+"px"}if(!this.printable){this.shadowElement.style.width=this.minimizedShadowWidth+"px";this.shadowElement.style.height=this.minimizedShadowHeight+"px";this.shadowElement.style.top=this.minimizedShadowTop+"px"}this.inactiveMarker.style.opacity=1+"px";if(!this.printable&&this.infobox.hasMedia){this.showMarkerShadow()}YAHOO.util.Dom.setStyle(this.topMarker.childNodes,"margin-left","100px");YAHOO.util.Dom.setStyle(this.bottomMarker,"display","block");YAHOO.util.Dom.setStyle(this.bottomMarker,"top",this.minimizedTop+"px");YAHOO.util.Dom.setStyle(this.bottomMarker,"left",this.minimizedLeft+"px");if(this.smallMarkerBg!=undefined){this.smallMarkerBg.style.display="block"}};GmapsMarker.prototype.showSmallInfoboxShadow=function(){this.markerShadowImage.style.display="none";this.smallInfoboxShadow.style.display="block";this.shadowElement.style.top=this.smallInfoboxShadowTop+"px";this.shadowElement.style.height=this.smallInfoboxShadowHeight+"px";this.shadowElement.style.width=this.smallInfoboxShadowWidth+"px";this.smallInfoboxShowing=true};GmapsMarker.prototype.showLargeInfoboxShadow=function(){this.smallInfoboxShowing=false;this.markerShadowImage.style.display="block";this.smallInfoboxShadow.style.display="none";this.infobox.showLargeInfoboxShadow()};GmapsMarker.prototype.showMarkerShadow=function(){this.smallInfoboxShadow.style.display="none";this.markerShadowImage.style.display="block";this.shadowElement.style.top=this.minimizedShadowTop+"px";this.shadowElement.style.height=this.minimizedShadowHeight+"px";this.shadowElement.style.width=this.minimizedShadowWidth+"px";this.smallInfoboxShowing=false};GmapsMarker.prototype.redraw=function(force){if((!force&&this.openInside)||this.dontRedraw){return }this.markerLocation=this.map_.fromLatLngToDivPixel(this.loc);this.calculatePositioning();if(this.minimized){this.bottomMarker.style.left=this.minimizedLeft+"px";this.bottomMarker.style.top=this.minimizedTop+"px";if(this.openInside){this.topMarker.style.left=this.minimizedLeft+"px";this.topMarker.style.top=this.minimizedTop+"px"}else{if((this.minimizedTopMarkerLeft<-20)||(this.minimizedTopMarkerLeft>382)||(this.minimizedTopMarkerTop<-35)||(this.minimizedTopMarkerTop>200)){this.topMarker.style.display="none";this.infobox.infoboxElement.style.display="none"}else{this.topMarker.style.display="block";this.infobox.infoboxElement.style.display="block"}this.topMarker.style.left=this.minimizedTopMarkerLeft+"px";this.topMarker.style.top=this.minimizedTopMarkerTop+"px"}this.topMarker.style.width=this.minimizedWidth+"px";this.topMarker.style.height=this.minimizedHeight+"px"}else{this.bottomMarker.style.left=this.maximizedLeft+"px";this.bottomMarker.style.top=this.maximizedTop+"px";if(this.openInside){this.topMarker.style.left=this.maximizedLeft+"px";this.topMarker.style.top=this.maximizedTop+"px"}else{if((this.maximizedTopMarkerLeft<-20)||(this.maximizedTopMarkerLeft>382)||(this.maximizedTopMarkerTop<-35)||(this.maximizedTopMarkerTop>200)){this.topMarker.style.display="none"}else{this.topMarker.style.display="block"}this.topMarker.style.left=this.maximizedTopMarkerLeft+"px";this.topMarker.style.top=this.maximizedTopMarkerTop+"px"}this.topMarker.style.width=this.maximizedWidth+"px";this.topMarker.style.height=this.maximizedHeight+"px"}if(!this.printable){this.shadowElement.style.left=(this.markerLocation.x+4)+"px";this.shadowElement.style.top=this.minimizedShadowTop+"px"}this.shrink()};GmapsMarker.prototype.calculatePositioning=function(){if(!this.openInside){var mapPositioner=this.markerManager.mapPositionElement;var paneYOffset=mapPositioner.style.top.replace(/px/,"")-0;var paneXOffset=mapPositioner.style.left.replace(/px/,"")-0}this.minimizedLeft=(this.markerLocation.x+this.xCorrection);this.minimizedTop=((this.markerLocation.y-this.yCorrection)-this.minimizedHeight);this.minimizedShadowTop=((this.markerLocation.y-this.shadowYCorrection)-this.minimizedShadowHeight);if(!this.openInside){this.minimizedTopMarkerLeft=(paneXOffset+this.markerLocation.x+this.xCorrection);this.minimizedTopMarkerTop=(paneYOffset+(this.markerLocation.y-this.yCorrection)-this.minimizedHeight)}this.maximizedLeft=(this.markerLocation.x+this.xCorrection)-Math.round((this.maximizedWidth-this.minimizedWidth)/2);this.maximizedTop=((this.markerLocation.y-this.yCorrection)-this.minimizedHeight)-(this.maximizedHeight-this.minimizedHeight);this.maximizedShadowTop=((this.markerLocation.y-this.shadowYCorrection)-this.maximizedShadowHeight);this.smallInfoboxShadowTop=this.maximizedShadowTop-(this.smallInfoboxShadowHeight-this.maximizedShadowHeight);if(!this.openInside){this.maximizedTopMarkerLeft=(paneXOffset+this.markerLocation.x+this.xCorrection)-Math.round((this.maximizedWidth-this.minimizedWidth)/2);this.maximizedTopMarkerTop=(paneYOffset+(this.markerLocation.y-this.yCorrection)-this.maximizedHeight)}};GmapsMarker.prototype.createMarkerAndShadow=function(){var color;switch(this.poi.type){case"placesToStay":color="red";break;case"placesToEat":color="green";break;case"thingToDo":default:color="blue"}this.topMarker=document.createElement("div");YAHOO.util.Dom.addClass(this.topMarker,"gmapMarker");this.activeMarker=document.createElement("img");if(this.printable){this.activeMarker.src="http://family.go.com/images/travel/map/markers/printable/marker_"+color+"_on"+this.poi.numeral+".gif"}else{this.activeMarker.src="http://family.go.com/images/travel/map/markers/large/marker_"+color+"_on"+this.poi.numeral+".png";YAHOO.util.Dom.addClass(this.activeMarker,"transparency")}YAHOO.util.Dom.addClass(this.activeMarker,"activeMarker");this.inactiveMarker=document.createElement("img");if(this.printable){this.inactiveMarker.src="http://family.go.com/images/travel/map/markers/printable/marker_"+color+"_on"+this.poi.numeral+".gif"}else{if(this.poi.numeral>0){this.smallMarkerBg=document.createElement("img");this.smallMarkerBg.src="http://family.go.com/images/travel/map/markers/small/marker_off_"+color+".png";YAHOO.util.Dom.addClass(this.smallMarkerBg,"transparency");this.inactiveMarker.src="http://family.go.com/images/travel/map/markers/small/marker_off"+this.poi.numeral+".gif"}else{this.inactiveMarker.src="http://family.go.com/images/travel/map/markers/large/marker_"+color+"_on"+this.poi.numeral+".png";YAHOO.util.Dom.addClass(this.inactiveMarker,"transparency")}}YAHOO.util.Dom.addClass(this.inactiveMarker,"inactiveMarker");this.topMarker.appendChild(this.activeMarker);if(this.smallMarkerBg!=undefined){this.topMarker.appendChild(this.smallMarkerBg)}this.topMarker.appendChild(this.inactiveMarker);if(!this.printable){this.shadowElement=document.createElement("div");YAHOO.util.Dom.addClass(this.shadowElement,"gmapMarkerShadow");this.markerShadowImage=document.createElement("img");this.markerShadowImage.src="http://family.go.com/images/travel/map/marker_shadow_sm.png";YAHOO.util.Dom.addClass(this.markerShadowImage,"transparency");this.smallInfoboxShadow=document.createElement("img");this.smallInfoboxShadow.src="http://family.go.com/images/travel/map/marker_shadow_hover.png";this.smallInfoboxShadow.style.display="none";YAHOO.util.Dom.addClass(this.smallInfoboxShadow,"transparency");this.shadowElement.appendChild(this.markerShadowImage);this.shadowElement.appendChild(this.smallInfoboxShadow)}this.bottomMarker=this.topMarker.cloneNode(true);YAHOO.util.Dom.setStyle(this.topMarker,"overflow","hidden");YAHOO.util.Dom.setStyle(this.topMarker.childNodes,"margin-left","100px");YAHOO.util.Dom.setStyle(this.topMarker,"position","absolute");YAHOO.util.Dom.setStyle(this.bottomMarker,"position","absolute")};GmapsMarker.prototype.setBehaviorVariables=function(){this.transitionDuration=0.1;this.transitionTimeout=this.transitionDuration*1000;this.mouseoverDelay=50};GmapsMarker.prototype.setLayoutVariables=function(){this.xCorrection=-10;this.yCorrection=0;this.shadowYCorrection=-2;this.shadowXCorrection=4;this.minimizedHeight=31;this.minimizedWidth=24;this.maximizedHeight=40;this.maximizedWidth=31;this.minimizedShadowHeight=15;this.minimizedShadowWidth=31;this.maximizedShadowHeight=20;this.maximizedShadowWidth=41;this.smallInfoboxShadowHeight=55;this.smallInfoboxShadowWidth=128;this.minimized=true};GmapsMarker.prototype.clearTimeouts=function(){for(var i=0;i<this.timeouts.length;i++){clearTimeout(this.timeouts[i])}clearInterval(this.mediaInterval);this.timeouts=new Array();this.infobox.clearTimeouts()};function GmapsVacationMarker(poi,markerManager,index,printable){this.openInside=true;this.markerType="vacation";this.dontRedraw=false;this.printable=printable;this.setLayoutVariables();this.setBehaviorVariables();this.poi=poi;this.markerManager=markerManager;this.index=index;this.smallInfoboxShowing=false;this.timeouts=new Array();this.animations=new Array();this.loc=poi.loc;this.outsideElement=poi.outsideElement;this.infoboxElementId=poi.infoboxElementId;this.createMarkerAndShadow()}GmapsVacationMarker.prototype=new GmapsMarker();GmapsVacationMarker.prototype.initialize=function(map){this.bottomMarker.style.position="absolute";map.getPane(G_MAP_MARKER_PANE).appendChild(this.bottomMarker);if(!this.printable){map.getPane(G_MAP_MARKER_SHADOW_PANE).appendChild(this.shadowElement)}map.getPane(G_MAP_FLOAT_PANE).appendChild(this.topMarker);this.map_=map;this.markerLocation=this.map_.fromLatLngToDivPixel(this.loc);this.infobox=null;this.createInfobox();this.resetMouseEvents()};GmapsMarker.prototype.makeOutsideElementActive=function(){YAHOO.util.Dom.addClass(this.outsideElement.getElementsByTagName("div")[0],"active")};GmapsMarker.prototype.makeOutsideElementInactive=function(){YAHOO.util.Dom.removeClass(this.outsideElement.getElementsByTagName("div")[0],"active")};function GmapsNearbyMarker(poi,markerManager,index,printable){this.openInside=false;this.markerType="nearby";this.dontRedraw=false;this.printable=printable;this.setLayoutVariables();this.setBehaviorVariables();this.poi=poi;this.markerManager=markerManager;this.index=index;this.smallInfoboxShowing=false;this.timeouts=new Array();this.animations=new Array();this.loc=poi.loc;this.outsideElement=poi.outsideElement;this.infoboxElementId=poi.infoboxElementId;this.createMarkerAndShadow()}GmapsNearbyMarker.prototype=new GmapsMarker();GmapsNearbyMarker.prototype.initialize=function(map){this.bottomMarker.style.position="absolute";map.getPane(G_MAP_MARKER_PANE).appendChild(this.bottomMarker);if(!this.printable){map.getPane(G_MAP_MARKER_SHADOW_PANE).appendChild(this.shadowElement)}this.topMarkerPane=this.markerManager.targetElement.parentNode;this.topMarkerPane.appendChild(this.topMarker);this.map_=map;this.markerLocation=this.map_.fromLatLngToDivPixel(this.loc);this.infobox=null;this.createInfobox();this.resetMouseEvents()};GmapsNearbyMarker.prototype.resetMouseEvents=function(){if(!this.printable){var timeoutObject=this;YAHOO.util.Event.removeListener(this.topMarker,"mouseover");YAHOO.util.Event.addListener(this.topMarker,"mouseover",function(){clearTimeout(this.topMarkerMouseout);clearTimeout(this.bottomMarkerMouseout);clearTimeout(this.infoboxDivMouseout);this.topMarkerMouseover=setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay);this.timeouts.push(this.topMarkerMouseover)},this,true);YAHOO.util.Event.removeListener(this.topMarker,"mouseout");YAHOO.util.Event.addListener(this.topMarker,"mouseout",function(){clearTimeout(this.topMarkerMouseover);clearTimeout(this.bottomMarkerMouseover);clearTimeout(this.infoboxDivMouseover);this.topMarkerMouseout=setTimeout(function(){timeoutObject.hideInfobox()},this.mouseoverDelay);this.timeouts.push(this.topMarkerMouseout)},this,true);YAHOO.util.Event.removeListener(this.topMarker,"click");YAHOO.util.Event.removeListener(this.bottomMarker,"mouseover");YAHOO.util.Event.addListener(this.bottomMarker,"mouseover",function(){clearTimeout(this.bottomMarkerMouseout);clearTimeout(this.topMarkerMouseout);clearTimeout(this.infoboxDivMouseout);this.bottomMarkerMouseover=setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay);this.timeouts.push(this.bottomMarkerMouseover)},this,true);YAHOO.util.Event.removeListener(this.bottomMarker,"mouseout");YAHOO.util.Event.addListener(this.bottomMarker,"mouseout",function(){clearTimeout(this.bottomMarkerMouseover);clearTimeout(this.topMarkerMouseover);clearTimeout(this.infoboxDivMouseover);this.bottomMarkerMouseout=setTimeout(function(){timeoutObject.hideInfobox()},this.mouseoverDelay);this.timeouts.push(this.bottomMarkerMouseout)},this,true);YAHOO.util.Event.removeListener(this.bottomMarker,"click");YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"mouseover");YAHOO.util.Event.addListener(this.infobox.infoboxElement,"mouseover",function(){clearTimeout(this.topMarkerMouseout);clearTimeout(this.infoboxDivMouseout);this.infoboxDivMouseover=setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay);this.timeouts.push(this.infoboxDivMouseover)},this,true);YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"mouseout");YAHOO.util.Event.addListener(this.infobox.infoboxElement,"mouseout",function(){clearTimeout(this.topMarkerMouseover);clearTimeout(this.infoboxDivMouseover);this.infoboxDivMouseout=setTimeout(function(){timeoutObject.hideInfobox()},this.mouseoverDelay);this.timeouts.push(this.infoboxDivMouseout)},this,true);YAHOO.util.Event.removeListener(this.infobox.infoboxElement,"click");YAHOO.util.Event.removeListener(this.outsideElement,"mouseover");YAHOO.util.Event.addListener(this.outsideElement,"mouseover",function(){clearTimeout(this.outsideElementMouseout);this.outsideElementMouseover=setTimeout(function(){timeoutObject.showLargeInfobox()},this.mouseoverDelay);this.timeouts.push(this.outsideElementMouseover)},this,true);YAHOO.util.Event.removeListener(this.outsideElement,"mouseout");YAHOO.util.Event.addListener(this.outsideElement,"mouseout",function(){clearTimeout(this.outsideElementMouseover);this.outsideElementMouseout=setTimeout(function(){timeoutObject.hideInfobox()},this.mouseoverDelay+950);this.timeouts.push(this.outsideElementMouseout)},this,true);YAHOO.util.Event.removeListener(this.outsideElement,"click")}};GmapsNearbyMarker.prototype.prepareToMaximize=function(){clearTimeout(this.dontRedrawTimeout);this.dontRedraw=true};GmapsNearbyMarker.prototype.makeOutsideElementActive=function(){YAHOO.util.Dom.addClass(this.outsideElement.getElementsByTagName("div")[0].firstChild,"active")};GmapsNearbyMarker.prototype.makeOutsideElementInactive=function(){YAHOO.util.Dom.removeClass(this.outsideElement.getElementsByTagName("div")[0].firstChild,"active")}