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='//dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_inactive.png';document.images['map_zoom_out'].src='//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='//dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_off.png';document.images['map_zoom_out'].src='//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='//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='//dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_out_off.png';}
document.getElementById('zoom_in').style.cursor='pointer';document.getElementById('zoom_out').style.cursor='pointer';}}
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 exchangeImg(fa,ga,ha,ia){document.images[fa].src=ga;if(ha){if(fa=='map_zoom_in'&&map.getZoom()>=map.getCurrentMapType().getMaximumResolution()){document.images['map_zoom_in'].src='//dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_in_inactive.png';document.getElementById('zoom_in').style.cursor='auto';}
else if(fa=='map_zoom_out'&&map.getZoom()<=map.getCurrentMapType().getMinimumResolution()){document.images['map_zoom_out'].src='//dem5xqcn61lj8.cloudfront.net/GoogleMapTools/zoom_out_inactive.png';document.getElementById('zoom_out').style.cursor='auto';}}}
function showLegend(ja){if(ja){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';}}
