if(!window.Beast)window.Beast={};var Session={};
Global={Source:"",OnLoad:function(){AccountVars.allowVisitorRegistration&&typeof LoginStatus!="undefined"&&LoginStatus.init(this.OnVisitorCallback.bind(this))},OnVisitorCallback:function(){YAHOO.util.Event.onAvailable("login_form",LoginDialog.init.bind(LoginDialog));YAHOO.util.Event.onAvailable("newuser_form",NewUserDialog.init.bind(NewUserDialog));LoginStatus.showStatus($("LoginDialog"))},FormatPrice:function(a){a=a+"";for(var b="",c=0;c<a.length;c++){if((a.length-c)%3==0&&c>0)b+=",";b+=a.charAt(c)}return b},
ValidateEmailAddress:function(a){return a.indexOf(".")>0&&a.indexOf("@")>0&&a!=""},GetScrollY:function(){return(window.scrollY?window.scrollY:document.documentElement.scrollTop)+Beast.FrameCommunicator.GetParentScroll()},FixXmlDoc:function(a){var b=navigator.userAgent.toLowerCase();return/mozilla/.test(b)&&!/(compatible|webkit)/.test(b)?(new DOMParser).parseFromString(a.responseText,"text/xml"):a.responseXML},FormatBaths:function(a,b){a=parseFloat(String(a));if(isFinite(a)){var c=Math.round((a-Math.floor(a))*
100),d=Math.round(Math.floor(a)-c);return d+(c==0?"":" full "+c+" part")+(typeof b=="undefined"||b?d+c>1?" baths":" bath":"")}else return"0"+(typeof b=="undefined"||b?" baths":"")},showAgentChat:function(){var a="";if(Session.CurrentVisitor&&Session.CurrentVisitor.Email)a="&Name="+Session.CurrentVisitor.FirstName+" "+Session.CurrentVisitor.LastName+"&Email="+Session.CurrentVisitor.Email;window.open("http://chat.dsagentchat.com/?PublicId="+AccountVars.agentChatTargetPublicId+a,"","width=444,height=444")},
createCookie:function(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+c*24*60*60*1E3);c="; expires="+d.toGMTString()}else c="";document.cookie=a+"="+b+c+"; path=/"},readCookie:function(a){a=a+"=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return d.substring(a.length,d.length)}return null},eraseCookie:function(a){Global.createCookie(a,"",-1)},thirdPartyFrame:function(a){if($("ThirdPartyFrame"))a();else{$("ThirdPartyFrameContainer").update("<iframe id='ThirdPartyFrame' name='ThirdPartyFrame' src='/ThirdPartyFrame.aspx?MasterAccountID="+
AccountVars.aid+"&SearchSetupID="+AccountVars.sid+"' style='width:0px;height:0px;'></iframe>");Event.observe($("ThirdPartyFrame").contentWindow,"load",a)}}};document.observe("dom:loaded",Global.OnLoad.bind(Global));Array.prototype.remove=function(a,b){var c=this.slice((b||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,c)};
Map_Search={Settings:{MasterAccountID:0,SearchSetupID:0,LinkID:0,Width:500,Height:350,CenterResults:true,SearchBarHeight:20,StatusBarHeight:20,Sort:"",SortDir:""},BaseUrl:"",Stage:null,BuildLinkUrl:function(a,b){var c=this.BaseUrl;c+=typeof b!="undefined"&&String(b)!="0"?(this.BaseUrl.indexOf("?")>=0||this.BaseUrl.toLowerCase().indexOf(".aspx/")>=0?"&":this.BaseUrl.indexOf("#")>=0?"&":"#")+"PropertyID="+b+"&PerformSearch":(this.BaseUrl.indexOf("?")>=0||this.BaseUrl.toLowerCase().indexOf(".aspx/")>=
0?"&":this.BaseUrl.indexOf("#")>=0?"&":"#")+"PerformSearch";return c},Init:function(){this.InitStage()},CurrentBounds:null,Criteria:{Sort:"Price",SortDirection:"ASC"},InitStage:function(){this.InnerHeight=this.Settings.Height-2;this.InnerWidth=document.all?this.Settings.Width-10:this.Settings.Width-2;var a=document.getElementById("ds_Map_Search_Stage");a.style.width=this.InnerWidth+"px";a.style.height=this.InnerHeight+"px";a=document.getElementById("ds_Map_Search_Map");a.style.width=window.XMLHttpRequest&&
document.all?this.InnerWidth+"px":document.all?this.InnerWidth+8+"px":this.InnerWidth+"px";a.style.height=this.InnerHeight-this.Settings.SearchBarHeight-this.Settings.StatusBarHeight-2+"px";if(this.Settings.Sort!="")this.Criteria.Sort=this.Settings.Sort;if(this.Settings.SortDir!="")this.Criteria.SortDirection=this.Settings.SortDir;var b=document.getElementById("ds_Map_Search_Criteria");b.style.height=this.Settings.SearchBarHeight+"px";b.style.width=window.XMLHttpRequest&&document.all?this.Settings.Width-
10+"px":this.Settings.Width-2+"px";b=$("ds_Map_Search_Status");b.style.height=this.Settings.StatusBarHeight+"px";b.style.width=window.XMLHttpRequest&&document.all?this.Settings.Width-10+"px":this.Settings.Width-2+"px";this.MapObject=new this.Settings.MapType;this.MapObject.Init(a,this.PropertySearch.bind(this));Event.observe(document,"keypress",this.Criteria_KeyPress.bindAsEventListener(this))},PropertyMapMoveSearch:function(){this.CurrentBounds=this.MapObject.getBounds();this.PropertySearch()},cleanInt:function(a){for(var b=
"",c=0;c<a.length;c++){var d=a.charCodeAt(c);if(d>=48&&d<=57||d==45)b+=a.substring(c,c+1)}return b},PropertySearch:function(){$("ds_Map_Search_Status_Text").innerHTML="Loading...";var a=document.getElementById("ds_Map_Search_PriceLow"),b=document.getElementById("ds_Map_Search_PriceHigh"),c=document.getElementById("ds_Map_Search_Beds"),d=document.getElementById("ds_Map_Search_Baths"),e=document.getElementById("ds_Map_Search_SQFT");this.Criteria.minPrice=0;this.Criteria.maxPrice=-1;this.Criteria.minBeds=
0;this.Criteria.minBaths=0;this.Criteria.minSQFT=0;this.Criteria.minLat=-1;this.Criteria.maxLat=-1;this.Criteria.minLon=-1;this.Criteria.maxLon=-1;a.value=this.cleanInt(a.value);b.value=this.cleanInt(b.value)==-1?"":this.cleanInt(b.value);c.value=this.cleanInt(c.value);d.value=this.cleanInt(d.value);e.value=this.cleanInt(e.value);try{if(a.value!="")this.Criteria.minPrice=parseInt(a.value)}catch(f){this.Criteria.minPrice=0}try{if(b.value!="")this.Criteria.maxPrice=parseInt(b.value)}catch(g){this.Criteria.maxPrice=
-1}try{if(c.value!="")this.Criteria.minBeds=parseInt(c.value)}catch(h){this.Criteria.minBeds=0}try{if(d.value!="")this.Criteria.minBaths=parseInt(d.value)}catch(i){this.Criteria.minBaths=0}try{if(e.value!="")this.Criteria.minSQFT=parseInt(e.value)}catch(j){this.Criteria.minSQFT=0}if(this.CurrentBounds!=null){this.Criteria.minLat=this.CurrentBounds.sw.lat;this.Criteria.maxLat=this.CurrentBounds.ne.lat;this.Criteria.minLon=this.CurrentBounds.sw.lon;this.Criteria.maxLon=this.CurrentBounds.ne.lon}a=$("ds_Map_Search_Price_Title");
b=$("ds_Map_Search_Beds_Title");c=$("ds_Map_Search_Baths_Title");d=$("ds_Map_Search_SQFT_Title");a.innerHTML=this.Criteria.maxPrice==-1?"Price: "+this.Criteria.minPrice+"+":"Price: "+this.Criteria.minPrice+" - "+this.Criteria.maxPrice;b.innerHTML="Beds: "+this.Criteria.minBeds+"+";c.innerHTML="Baths: "+this.Criteria.minBaths+"+";d.innerHTML="SQFT: "+this.Criteria.minSQFT+"+";a=$("ds_Map_Search_Status_Sort_InnerTitle");switch(this.Criteria.Sort){case "Price":case "Beds":case "Baths":a.innerHTML=this.Criteria.Sort+
", "+(this.Criteria.SortDirection.toUpperCase()=="ASC"?"lowest first":"highest first");break;case "ImprovedSqFt":a.innerHTML="Improved size, "+(this.Criteria.SortDirection.toUpperCase()=="ASC"?"smallest first":"largest first");break;case "LotSqFt":a.innerHTML="Lot size, "+(this.Criteria.SortDirection.toUpperCase()=="ASC"?"smallest first":"largest first");break;case "DateAdded":a.innerHTML="Time on market, "+(this.Criteria.SortDirection.toUpperCase()=="DESC"?"newest first":"oldest first");break;default:a.innerHTML=
"";break}arguments="minPrice="+this.Criteria.minPrice+"&maxPrice="+this.Criteria.maxPrice+"&minImprovedSqFt="+this.Criteria.minSQFT+"&maxImprovedSqFt=-1&minLotSqFt=-1&maxLotSqFt=-1&minDaysOnMarket=-1&maxDaysOnMarket=-1&cities=&zipCodes=&mlsNumbers=&minBeds="+this.Criteria.minBeds+"&maxBeds=-1&minBaths="+this.Criteria.minBaths+"&maxBaths=-1&propertyTypes=&propertyFeatures=&listingAgentNameID=&listingAgentOfficeID=&minLatitude="+this.Criteria.minLat+"&minLongitude="+this.Criteria.minLon+"&maxLatitude="+
this.Criteria.maxLat+"&maxLongitude="+this.Criteria.maxLon+"&orderColumn="+this.Criteria.Sort+"&orderDirection="+this.Criteria.SortDirection+"&resultPage=1&minYearBuilt=-1&maxYearBuilt=-1&communities=&tracts=&MasterAccountID="+this.Settings.MasterAccountID+"&SearchSetupID="+this.Settings.SearchSetupID+"&LinkID="+this.Settings.LinkID+"&sessid="+Global.sessid;this.MapObject.clearOverlays();YAHOO.util.Connect.asyncRequest("POST","/webservice/QueryPropertiesForModules.asmx/PerformMapSearch_Module",{success:this.PropertySuccess,
failure:this.PropertyFailure,scope:this},arguments)},PropertySuccess:function(a){this.propertyData=this.XmlToObjects(a.responseXML);this.properties=this.propertyData.results;this.MapProperties()},GoToSearchResults:function(){var a=this.BuildLinkUrl(this.Settings.LinkID);if(this.FramedPage)top.location.href=a;else window.open(a,"_blank","")},MapProperties:function(){var a=0,b=0;a=$("ds_Map_Search_Status_Text");if(this.properties.length>0){a.innerHTML="Showing top "+this.properties.length+" (<a href='javascript:void(0)' onclick='Map_Search.GoToSearchResults()'>view all</a>) ordered </a>";
for(var c=0;c<this.properties.length;c++){a=parseFloat(this.properties[c].Latitude);b=parseFloat(this.properties[c].Longitude);this.MapObject.extendBounds(a,b);this.properties[c].marker=this.MapObject.addOverlay(a,b,this.ClickPropertyPreview.bind(this,this.properties[c]),this.ShowPropertyPreview.bind(this,this.properties[c]),this.HidePropertyPreview_Timeout.bind(this,this.properties[c]),this.properties[c].PropertyID)}if(this.Settings.CenterResults){this.MapObject.CenterAndZoomToBounds(this.PropertyMapMoveSearch.bind(this));
this.Settings.CenterResults=false}this.MapObject.FixMarkers(this.properties)}else a.innerHTML="No properties found. Refine search."},GenerateSearchURL:function(){var a="";if(this.Criteria.minPrice>0)a+="MinPrice="+this.Criteria.minPrice+"&";if(this.Criteria.maxPrice>0)a+="MaxPrice="+this.Criteria.maxPrice+"&";if(this.Criteria.minSQFT>0)a+="MinImprovedSqFt="+this.Criteria.minSQFT+"&";if(this.Criteria.minBeds>0)a+="MinBeds="+this.Criteria.minBeds+"&";if(this.Criteria.minBaths>0)a+="MinBaths="+this.Criteria.minBaths+
"&";if(this.Criteria.minLat!=-1)a+="MinLatitude="+this.Criteria.minLat+"&";if(this.Criteria.maxLat!=-1)a+="MaxLatitude="+this.Criteria.maxLat+"&";if(this.Criteria.minLon!=-1)a+="MinLongitude="+this.Criteria.minLon+"&";if(this.Criteria.maxLon!=-1)a+="MaxLongitude="+this.Criteria.maxLon+"&";a+="PerformSearch";return a},ClickPropertyPreview:function(a){a=this.BuildLinkUrl(this.Settings.LinkID,a.PropertyID);if(this.FramedPage)top.location.href=a;else window.open(a,"_blank","")},ShowPropertyPreview:function(a){for(var b=
0;b<this.properties.length;b++)this.HidePropertyPreview_Timeout(this.properties[b]);this.MapObject.SetMarkerOver(a.marker);this.MapObject.checkResize();b=this.MapObject.fromLatLngToDivPixel(a.marker);if(a.dom)a.dom.style.display="block";else{a.dom=$E({tag:"div",className:"Property",children:[{tag:"div",className:"Property_Inner",children:[{tag:"div",className:"Property_Photo",children:[{tag:"img",src:parseInt(a.PhotoCount+"")==0?"http://cdn1.diverse-cdn.com/idx-v2/assets-images/beast/nophotoavailable.gif/33c1dc":
"http://mls-photos.diversesolutions.com/"+a.FeedID+"/"+a.MlsNumber.toLowerCase()+"/0-thumb.jpg",className:"MlsImage"},a.IconPath?{tag:"img",src:"/images/MlsIcons/"+a.IconPath,className:"MlsIcon"}:{}]},{tag:"div",className:"Property_Price",children:["$"+Formatters.formatNumber(a.Price)]},{tag:"div",className:"Property_BedBath",children:[a.Beds+(a.Beds==1?" Bedroom":" Bedrooms")]},{tag:"div",className:"Property_BedBath",children:[Global.FormatBaths(a.Baths)]},{tag:"div",className:"Property_SQFT",children:a.ImprovedSqFt!=
"0"&&a.ImprovedSqFt!=undefined?[a.ImprovedSqFt+" Sqft"]:[]},!this.ShowMLSNumOnModules?{}:{tag:"div",className:"Property_MLSNumber",children:["MLS# "+a.MlsNumber]},typeof a.ListingAgentOffice!="undefined"&&a.ListingAgentOffice!=""?{tag:"div",className:"Property_Office",children:["Listed With: "+a.ListingAgentOffice]}:{}]}]});this.MapObject.AppendMarker(a.dom)}a.dom.style.left=b.x>this.Settings.Width/2?b.x+this.MapObject.PreviewOffestX(-1)-Element.getWidth(a.dom)+"px":b.x+this.MapObject.PreviewOffestX(1)+
"px";a.dom.style.top=b.y-Element.getHeight(a.dom)/4*3<4?4+this.MapObject.PreviewOffestY(1)+"px":b.y+Element.getHeight(a.dom)/4>this.MapObject.GetHeight()-4?this.MapObject.GetHeight()+this.MapObject.PreviewOffestY(1)-Element.getHeight(a.dom)+"px":b.y+this.MapObject.PreviewOffestY(1)-Element.getHeight(a.dom)/4*3+"px"},HidePropertyPreview:function(a){if(a.dom)a.timeout=setTimeout(this.HidePropertyPreview_Timeout.bind(this,a),500)},HidePropertyPreview_Cancel:function(a){clearTimeout(a.timeout)},HidePropertyPreview_Timeout:function(a){if(a.dom){this.MapObject.SetMarkerOut(a.marker);
a.dom.style.display="none"}},PropertyFailure:function(){},XmlToObjects:function(a){this._isQueryActive=false;var b={},c=[];a=a.lastChild;b.results=[];for(var d=0;d<a.childNodes.length;d++)if(typeof a.childNodes[d].tagName!="undefined")switch(a.childNodes[d].tagName.toLowerCase()){case "totalcount":b.totalcount=a.childNodes[d].firstChild.nodeValue;break;case "properties":for(var e=0;e<a.childNodes[d].childNodes.length;e++)typeof a.childNodes[d].childNodes[e].tagName!="undefined"&&c.push(a.childNodes[d].childNodes[e]);
break;case "savedsearchid":break}for(d=0;d<c.length;d++)if(c[d].nodeType!=3){b.results.push({});for(e=0;e<c[d].childNodes.length;e++)if(!(c[d].childNodes[e].nodeType==3||!c[d].childNodes[e].firstChild))b.results[d][c[d].childNodes[e].tagName]=c[d].childNodes[e].firstChild.nodeValue}return b},Clear_Criteria:function(a){if(typeof a=="undefined")a="";var b={},c={};b=$("ds_Map_Search_Criteria_Price");c=$("ds_Map_Search_Price_Menu");b.timeout&&clearTimeout(b.timeout);if(a!="price"){b.style.display="none";
c.removeClassName("Criteria_Over")}b=$("ds_Map_Search_Criteria_Beds");c=$("ds_Map_Search_Beds_Menu");b.timeout&&clearTimeout(b.timeout);if(a!="beds"){b.style.display="none";c.removeClassName("Criteria_Over")}b=$("ds_Map_Search_Criteria_Baths");c=$("ds_Map_Search_Baths_Menu");b.timeout&&clearTimeout(b.timeout);if(a!="baths"){b.style.display="none";c.removeClassName("Criteria_Over")}b=$("ds_Map_Search_Criteria_SQFT");c=$("ds_Map_Search_SQFT_Menu");b.timeout&&clearTimeout(b.timeout);if(a!="sqft"){b.style.display=
"none";c.removeClassName("Criteria_Over")}},Criteria_Over:function(a,b){var c={},d={};switch(a){case "price":c=$("ds_Map_Search_Criteria_Price");d=$("ds_Map_Search_PriceLow");break;case "beds":c=$("ds_Map_Search_Criteria_Beds");d=$("ds_Map_Search_Beds");break;case "baths":c=$("ds_Map_Search_Criteria_Baths");d=$("ds_Map_Search_Baths");break;case "sqft":c=$("ds_Map_Search_Criteria_SQFT");d=$("ds_Map_Search_SQFT");break}this.Clear_Criteria(a);if(c&&c.style.display!="block"){var e=Position.cumulativeOffset(b),
f=0,g=e[1]+Element.getHeight(b);f=document.all?e[0]:e[0]-1;if(f+c.getWidth()>this.Settings.Width)f=this.Settings.Width-c.getWidth()-10;b.addClassName("Criteria_Over");c.style.left=f+"px";c.style.top=g+"px";c.style.display="block";d.focus();d.select()}},Criteria_KeyPress:function(a){a.keyCode==Event.KEY_RETURN&&Map_Search.PropertySearch()},Criteria_Out:function(a,b){var c={};switch(a){case "price":c=$("ds_Map_Search_Criteria_Price");break;case "beds":c=$("ds_Map_Search_Criteria_Beds");break;case "baths":c=
$("ds_Map_Search_Criteria_Baths");break;case "sqft":c=$("ds_Map_Search_Criteria_SQFT");break}if(c)c.timeout=setTimeout(this.Criteria_Out_Timeout.bind(this,c,b),250)},Criteria_Out_Timeout:function(){this.Clear_Criteria()},SetPrice:function(a,b){var c=document.getElementById("ds_Map_Search_PriceLow"),d=document.getElementById("ds_Map_Search_PriceHigh");c.value=a;d.value=b>0?b:"";this.Clear_Criteria();this.PropertySearch()},SetBeds:function(a){document.getElementById("ds_Map_Search_Beds").value=a;this.Clear_Criteria();
this.PropertySearch()},SetBaths:function(a){document.getElementById("ds_Map_Search_Baths").value=a;this.Clear_Criteria();this.PropertySearch()},SetSQFT:function(a){document.getElementById("ds_Map_Search_SQFT").value=a;this.Clear_Criteria();this.PropertySearch()},Sort_Over:function(a,b){var c=null;switch(a){case "sort":c=$("ds_Map_Search_Status_Sort_Value");break;case "disc":c=$("ds_Map_Search_Status_Disc_Value")}this.Clear_Status(a);if(c&&c.style.display!="block"){c.style.display="block";var d=Position.cumulativeOffset(b),
e=0,f=0;if(document.all){e=d[0]+1;f=d[1]-Element.getHeight(c)+2}else{e=d[0];f=d[1]-Element.getHeight(c)}Element.addClassName(b,"Criteria_Over");c.style.left=e+"px";c.style.top=(f<0?0:f)+"px";if(f<0){c.style.height=c.offsetHeight+f-8+"px";c.style.overflow="auto"}}},Sort_Out:function(a,b){var c=null;switch(a){case "sort":c=$("ds_Map_Search_Status_Sort_Value");break;case "disc":c=$("ds_Map_Search_Status_Disc_Value")}if(c)c.timeout=setTimeout(this.Sort_Out_Timeout.bind(this,a,b),250)},Clear_Status:function(a){if(typeof a==
"undefined")a="";var b={},c={};b=$("ds_Map_Search_Status_Sort_Value");c=$("ds_Map_Search_Status_Sort_Title");b.timeout&&clearTimeout(b.timeout);if(a!="sort"){b.style.display="none";c.removeClassName("Criteria_Over")}b=$("ds_Map_Search_Status_Disc_Value");c=$("ds_Map_Search_Status_Disc_Title");b.timeout&&clearTimeout(b.timeout);if(a!="disc"){b.style.display="none";c.removeClassName("Criteria_Over")}},Sort_Out_Timeout:function(){this.Clear_Status()},SetSort:function(a,b){this.Criteria.Sort=a;this.Criteria.SortDirection=
b;this.Sort_Out_Timeout();this.PropertySearch()}};var Formatters={formatNumber:function(a){var b="";a=String(a);for(var c=a.length-3;c>=0;c-=3)b=","+a.substring(c,c+3)+b;if(a.length%3>0)b=a.substring(0,a.length%3)+b;if(b.charAt(0)==",")b=b.substring(1);return b}};
function $E(a){var b;if("string"==typeof a)b=document.createTextNode(a);else{b=document.createElement(a.tag);delete a.tag;if("undefined"!=typeof a.children){if("string"==typeof a.children||"undefined"==typeof a.children.length)b.appendChild($E(a.children));else for(var c=0,d=null;"undefined"!=typeof(d=a.children[c]);c++)b.appendChild($E(d));delete a.children}for(attr in a)b[attr]=a[attr]}return b}
Google_Map=function(){this.Init=function(a,b){this.map=new GMap2(a);this.map.enableDoubleClickZoom();this.map.enableContinuousZoom();this.map.setCenter(new GLatLng(0,0),0);this.icon=new GIcon;this.icon.image="http://cdn1.diverse-cdn.com/idx-v2/assets-images/newicons/house_map_marker.png/fa357c";this.icon.shadow="http://cdn3.diverse-cdn.com/idx-v2/assets-images/newicons/house_map_marker_shadow.png/d4aee1";this.icon.iconSize=new GSize(28,44);this.icon.shadowSize=new GSize(51,45);this.icon.iconAnchor=
new GPoint(14,44);this.icon.infoWindowAnchor=new GPoint(14,44);this.bounds=new GLatLngBounds;b()};this.getBounds=function(){var a={},b=this.map.getBounds();a.ne={};a.sw={};a.ne.lat=b.getNorthEast().lat();a.ne.lon=b.getNorthEast().lng();a.sw.lat=b.getSouthWest().lat();a.sw.lon=b.getSouthWest().lng();return a};this.clearOverlays=function(){return this.map.clearOverlays()};this.addOverlay=function(a,b,c,d,e){a=new GLatLng(a,b);a=new GMarker(a,this.icon);GEvent.addListener(a,"click",c);GEvent.addListener(a,
"mouseover",d);GEvent.addListener(a,"mouseout",e);this.map.addOverlay(a);return a};this.FixMarkers=function(){};this.extendBounds=function(a,b){return this.bounds.extend(new GLatLng(a,b))};this.CenterAndZoomToBounds=function(a){this.map.checkResize();this.map.setZoom(this.map.getBoundsZoomLevel(this.bounds)-1);this.map.setCenter(this.bounds.getCenter());GEvent.addListener(this.map,"moveend",a)};this.checkResize=function(){return this.map.checkResize()};this.getMarkerPoint=function(a){return a.getPoint()};
this.PreviewOffestY=function(a){return a==-1?this.GetTopLeftY():this.GetTopLeftY()-4};this.PreviewOffestX=function(a){return a==-1?this.GetTopLeftX()-20:this.GetTopLeftX()+20};this.fromLatLngToDivPixel=function(a){a=this.map.fromLatLngToDivPixel(this.getMarkerPoint(a));var b=this.GetTopLeftX(),c=this.GetTopLeftY();a.x-=b;a.y-=c;return a};this.GetTopLeftX=function(){return this.map.fromLatLngToDivPixel(this.map.getBounds().getSouthWest()).x};this.GetTopLeftY=function(){return this.map.fromLatLngToDivPixel(this.map.getBounds().getSouthWest()).y-
this.map.getSize().height};this.AppendMarker=function(a){return this.map.getPane(G_MAP_FLOAT_PANE).appendChild(a)};this.GetHeight=function(){return this.map.getSize().height};this.SetMarkerOver=function(a){a.setImage("http://cdn2.diverse-cdn.com/idx-v2/assets-images/newicons/house_map_marker_red_medium.png/5d4e9a")};this.SetMarkerOut=function(a){a.setImage("http://cdn1.diverse-cdn.com/idx-v2/assets-images/newicons/house_map_marker.png/fa357c")}};

