var active_color = '#000'; 
var inactive_color = '#777'; 

 function initialize_map() {
    if ($('#topgun_map').length) {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("topgun_map"));
        map.setCenter(new GLatLng(38.264736,-85.514831), 13);

        var latlng = new GLatLng(38.264736,-85.514831);
          map.addOverlay(new GMarker(latlng));
        map.setUIToDefault();
      }
      }
    if ($('#springhurst_map').length) {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("springhurst_map"));
        map.setCenter(new GLatLng(38.305244,-85.570836), 13);

        var latlng = new GLatLng(38.305244,-85.570836);
          map.addOverlay(new GMarker(latlng));
        map.setUIToDefault();
      }
      }
    if ($('#contactMap').length) {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("contactMap"));
        map.setCenter(new GLatLng(38.285244,-85.540836), 12);

        var latlng = new GLatLng(38.305244,-85.570836);
          map.addOverlay(new GMarker(latlng));
        var latlng2 = new GLatLng(38.264736,-85.514831);
          map.addOverlay(new GMarker(latlng2));
        map.setUIToDefault();
      }
      }
    }


$(document).ready(function() {
  $('#topPic').nivoSlider({effect:'sliceDownLeft', animSpeed:1500, pauseTime:7000,pauseOnHover:false,directionNav:false,controlNav:false});

    var config = {
        sensitivity: 10,
        interval: 50,
        over: function(){$("#aboutDD").slideDown(250);},
        timeout:250,
        out: function(){$("#aboutDD").slideUp(250);}
    };
    $(".ahh").hoverIntent(config);  
    var config2 = {
        sensitivity: 10,
        interval: 50,
        over: function(){$("#facilitiesDD").slideDown(250);},
        timeout:250,
        out: function(){$("#facilitiesDD").slideUp(250);}
    };
    $(".fhh").hoverIntent(config2);
    var config3 = {
        sensitivity: 10,
        interval: 50,
        over: function(){$("#programsDD").slideDown(250);},
        timeout:250,
        out: function(){$("#programsDD").slideUp(250);}
    };
    $(".phh").hoverIntent(config3);





  $(":input:not(.submit)").css("color", inactive_color);
  var default_values = new Array();
  $(":input:not(.submit)").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
    $(this).blur(function() {
      if (this.value == '') {
        this.style.color = inactive_color;
        this.value = default_values[this.id];
      }
    });
  });
  
  if (window.location.hash) {
		var uuu=window.location.hash;
		uuu = uuu.replace(/#/, "");
		$(".bio").hide();
		$("#"+uuu).show();
 	}
  

});


function showBio(name)
{
	$(".bio").hide();
	$("#"+name).show();
	return false;
}

