xorse.PARSING="xorse.App";xorse.require("xorse.Module");xorse.require("xorse.hash");xorse.require("xorse.maphat.MapHat");xorse.require("google.maps");window.onerror=xorse.write_error;
xorse.App=function(d,g){var f=this,b=f.pri;b.initialize_environment=function(){xorse.maphat.DEBUG=xorse.DEBUG;xorse.maphat.DEFAULT_LATLNG=xorse.maphat.google.LatLng(g_property_lat_lng[0],g_property_lat_lng[1]);xorse.maphat.DEFAULT_ZOOM=10;xorse.maphat.DEFAULT_MAPTYPE=xorse.maphat.google.RoadMap();xorse.maphat.DEFAULT_ICON="base";xorse.maphat.MAP_VERSION=xorse.maphat.MAP_VERSION===undefined?3:xorse.maphat.MAP_VERSION;xorse.maphat.REFINEMENTS={bedrooms:xorse.hash.read("bedrooms",1),bathrooms:xorse.hash.read("bathrooms",
0),rate:xorse.hash.read("rate",0),staylength:xorse.hash.read("staylength","nightly"),pets:xorse.hash.read("pets",0),smoking:xorse.hash.read("smoking",0),sleeps:xorse.hash.read("sleeps",0),internet:xorse.hash.read("internet",0),handicap:xorse.hash.read("handicap",0),property:xorse.hash.read("property",null),search:xorse.hash.read("search",null)};xorse.maphat.LISTVIEW=false;xorse.maphat.RECENTLY_VIEWED=xorse.authenticated;xorse.maphat.FAVORITES=xorse.authenticated;xorse.maphat.CLUSTERING={enable:false};
xorse.maphat.URLS={cluster_data:function(){return"/cluster/data/"},cluster_children_data:function(){return"/cluster/children/info/"},map_data:function(){return"/map/data/"},property_data:function(a){return"/property/"+a+"/info/"},directions_polyline:function(a){return"/property/"+a+"/polyline/"},recently_viewed:function(){return"/account/recentlyviewed/"},listview:function(){return"/map/listview/"},get_latlng:function(a){var c=a.match(/^#?(\d{7,})$/);if(c){a=c[c.length-1];type="property"}else type=
"location";return"/map/latlng/"+type+"/?arg="+a},near_properties:function(){return"/property/"+g_property+"/near/"},favorite:function(a){return a?"/property/"+a+"/favorite/":"/account/favorites/"},map:function(){window.location="/map/#property="+g_property+"&"+location.hash.substr(1)},next_detail:function(a){xorse.hash.remove("property");window.location="/property/"+a+"/detail/?l="+g_near+location.hash}};xorse.maphat.INFOWINDOW={template:{node:document.getElementById("infowindow-template"),class_name:"infowindow"},
content:{node:document.getElementById("infowindow-content"),class_name:"html"},shadow:{node:function(){var a=document.createElement("img");a.src="/static/img/map-icons/infowindow/info-shadow.png";return a}(),class_name:"infowindow-shadow"},close:document.getElementById("infowindow-close"),loading:{content:'<div style="width: 300px; text-align: center;"><img src="/static/img/site-icons/ajax-bar.gif"></div>',shadow:function(){var a=document.createElement("img");a.src="/static/img/map-icons/tooltipwindow/shadow.png";
return a}(),class_name:"infowindow-shadow"}};xorse.maphat.TOOLTIP_INFOWINDOW={template:{node:document.getElementById("tooltipwindow-template"),class_name:"tooltipwindow small"},content:{node:document.getElementById("tooltipwindow-content"),class_name:"html"},shadow:{node:function(){var a=document.createElement("img");a.src="/static/img/map-icons/tooltipwindow/shadow.png";return a}(),class_name:"infowindow-shadow"},close:document.getElementById("tooltipwindow-close"),loading:{content:'<div style="width: 200px; text-align: center;"><img src="/static/img/site-icons/ajax-bar.gif"></div>',
shadow:function(){var a=document.createElement("img");a.src="/static/img/map-icons/tooltipwindow/shadow.png";return a}(),class_name:"infowindow-shadow"}};xorse.maphat.MARKER_OVERRIDES={marker:{click:function(a){window.location="/property/"+a.id+"/detail/"},dblclick:false,mouseup:false,mousedown:false,mouseover:false,mouseout:false,tooltip:function(a,c){var e='<div class="tooltip">';e+='<h1 style="font-size: 11px" class="ui-corner-all ui-widget-header '+c.icon+'">'+c.json.title+"</h1>";e+=a.directions?
'<p class="distance" style="font-size: 9px">'+a.directions.distance+" to the red marker.</p>":'<p class="distance" style="font-size: 9px">Loading directions...</p>';e+="</div>";return e}},cluster_marker:{click:false,dblclick:false,mouseup:false,mousedown:false,mouseover:false,mouseout:false},directions:{color:"#FF0000",weight:5}};xorse.maphat.CENTER_MARKER_CONFIG={settings:{icon:G_DEFAULT_ICON,dragCrossMove:false,title:"Drag Me!",clickable:false,draggable:true,bouncy:true,bounceGravity:1,autoPan:true,
zIndexProcess:function(){return 1},hide:false,click:false},force_center:xorse.maphat.google.LatLng(g_property_lat_lng[0],g_property_lat_lng[1]),event_overrides:{click:false,dblclick:false,mouseup:false,mousedown:false,mouseover:false,mouseout:false,dragstart:false,dragend:false,drag:false}}};b.initialize_map=function(){var a={dom_node:document.getElementById(d),zoom:xorse.maphat.DEFAULT_ZOOM,center:xorse.maphat.DEFAULT_LATLNG,mapTypeId:xorse.maphat.DEFAULT_MAPTYPE,default_icon:xorse.maphat.DEFAULT_ICON,
refinements:xorse.maphat.REFINEMENTS,infowindow:xorse.maphat.INFOWINDOW,tooltip:xorse.maphat.TOOLTIP_INFOWINDOW,url_schema:xorse.maphat.URLS,clustering:xorse.maphat.CLUSTERING,overrides:xorse.maphat.MARKER_OVERRIDES,center_marker_cfg:xorse.maphat.CENTER_MARKER_CONFIG,enable_favorites:xorse.maphat.FAVORITES,enable_recently_viewed:xorse.maphat.RECENTLY_VIEWED,enable_listview:xorse.maphat.LISTVIEW};f.maphat=new xorse.maphat.MapHat(a,g);window.onunload=function(){f.maphat.deconstructor()}};b.constructor=
function(){document.createElement("img").src="/static/img/site-icons/ajax-bar.gif";b.initialize_environment();b.initialize_map()};b.constructor()};xorse.App.prototype=new xorse.Module("xorse.App");xorse.PARSING="xorse.Project";xorse.require("xorse.App");xorse.Project=function(){var d=this.pri;d.constructor=function(){d.app=new xorse.App("map",function(){})};d.constructor()};xorse.Project.prototype=new xorse.Module("xorse.Project");
