function HeatMapPoint(C,D,B,A){this.fLatitude=C;this.fLongitude=D;this.lSquareMiles=B;this.lListings=A}function HeatMap_Ready(A){g_aHeatMapReady[A]=true}function PollHeatMap(F){if(g_aHeatMapReady[F]==true){var H=RfgGetMapById("zonemap_"+F);var G=H.GetZoomLevel();for(var C=0;C<g_aHeatMapPoints[F].length;C++){var B=g_aHeatMapPoints[F][C];var E=RfgPixelFromLatLong("zonemap_"+F,B.fLatitude,B.fLongitude);var D=Math.min(Math.max(B.lListings,50),175);var A=(Math.sqrt(B.lSquareMiles)/2);if(g_aHeatMapPoints[F].length<5){Math.max(A,50)
}ProxyHeatMap_Point(F,E.x,E.y,A,D,150,16777161,16766999)}if(G>14){H.SetZoomLevel(14)}}else{var I=function(){PollHeatMap(F)};setTimeout(I,300)}}function EmbedHeatMap(A,D,C,B){AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0","width",A,"height",D,"src","HeatMap","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","align","middle","play","true","loop","true","scale","noscale","wmode","window","devicefont","false","id","HeatMap"+B,"wmode","transparent","bgcolor","#FFFFFF","name","HeatMap"+B,"menu","true","allowFullScreen","false","allowScriptAccess","sameDomain","movie","/flash/charting/HeatMap?id="+B,"FlashVars","'id="+B+"'","salign","")
}function heatmapReady(A){if(window.HeatMap_Ready){setTimeout(function(){HeatMap_Ready(A)},50)}else{alert("implementation of HeatMapReady missing...")}}function ProxyHeatMap_Point(G,C,H,B,D,I,E,A){var F=window["HeatMap"+G];if(!F&&window.document){F=window.document["HeatMap"+G]}if(F){F.HeatMapPoint(parseInt(C),parseInt(H),B,D,I,E,A)}return false}function ProxyHeatMap_SetImage(B,C){var A=window["HeatMap"+B];if(!A&&window.document){A=window.document["HeatMap"+B]}if(A){A.HeatMapSetImage(C)}return false}function ProxyHeatMap_ShowImage(C,B){var A=window["HeatMap"+C];
if(!A&&window.document){A=window.document["HeatMap"+C]}if(A){A.HeatMapShowImage(B)}return false}function ProxyHeatMap_Clear(B){var A=window["HeatMap"+B];if(!A&&window.document){A=window.document["HeatMap"+B]}if(A){A.HeatMapClear()}return false};
