function addCommonMapListeners(){var C=function zoomPics(){GEvent.addListener(map,'zoomend',function(aa,ba){checkPanZoomPics(ba);});}
setTimeout(C,0);}
function checkPanZoomPics(ca){if(ca>=map.getCurrentMapType().getMaximumResolution()){document.images['map_zoom_in'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_inactive.png';document.images['map_zoom_out'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_out_off.png';document.getElementById('zoom_in').style.cursor='auto';document.getElementById('zoom_out').style.cursor='pointer';}
else if(ca<=map.getCurrentMapType().getMinimumResolution()){document.images['map_zoom_in'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_off.png';document.images['map_zoom_out'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_out_inactive.png';document.getElementById('zoom_in').style.cursor='pointer';document.getElementById('zoom_out').style.cursor='auto';}
else{if(document.images['map_zoom_in'].src.indexOf("zoom_in_over")==-1){document.images['map_zoom_in'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_off.png';}
if(document.images['map_zoom_out'].src.indexOf("zoom_out_over")==-1){document.images['map_zoom_out'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_out_off.png';}
document.getElementById('zoom_in').style.cursor='pointer';document.getElementById('zoom_out').style.cursor='pointer';}
if(xIE4Up){correctPNG('map_zoom_in');correctPNG('map_zoom_out');}}
function mapZoom(da){if(da==1){map.zoomIn();}
else map.zoomOut();}
function pan(x,y){map.panDirection(x,y);}
function mapType(ea){if(ea=='custom'){map.setMapType(fs_map_type);}
else if(ea=='streets'){map.setMapType(G_NORMAL_MAP);}
else if(ea=='sat'){map.setMapType(G_SATELLITE_MAP);}
else if(ea=='hybrid'){map.setMapType(G_HYBRID_MAP);}
else if(ea=='physical'){map.setMapType(G_PHYSICAL_MAP);}
else map.setMapType(fs_map_type);}
function correctPNG(fa){var ga=document.images[fa];ga.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+ga.src+")";ga.src="http://dem5xqcn61lj8.cloudfront.net/spacer.gif";}
function exchangeImg(ha,ia,ja,ka){document.images[ha].src=ia;if(ja){if(ha=='map_zoom_in'&&map.getZoom()>=map.getCurrentMapType().getMaximumResolution()){document.images['map_zoom_in'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_inactive.png';document.getElementById('zoom_in').style.cursor='auto';}
else if(ha=='map_zoom_out'&&map.getZoom()<=map.getCurrentMapType().getMinimumResolution()){document.images['map_zoom_out'].src='http://dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_out_inactive.png';document.getElementById('zoom_out').style.cursor='auto';}}
if(xIE4Up){correctPNG(ha);}}
function showLegend(la){if(la){document.getElementById('show_map_legend_button').style.display='none';document.getElementById('no_show_map_legend_button').style.display='block';document.getElementById('map_legend').style.display='block';}
else{document.getElementById('no_show_map_legend_button').style.display='none';document.getElementById('show_map_legend_button').style.display='block';document.getElementById('map_legend').style.display='none';}}