$().ready(function(){
    
  $("#homePageResidentialHeader").bind("mouseenter",function(){
    $(".homePageSectionHeadImage img", this).attr("src", "/images/homePage/ResMainPg_btnOver.jpg");
    $('.homePageDropDown', this).slideDown(200);
  }).bind("mouseleave",function(){
    $(".homePageSectionHeadImage img", this).attr("src", "/images/homePage/ResMainPg_btn.jpg");
    $('#homePageResidentialHeader .homePageDropDown').slideUp(0);
  });
  
  $("#homePageBusinessHeader").bind("mouseenter",function(){
    $(".homePageSectionHeadImage img", this).attr("src", "/images/homePage/BusinessMainPg_btnOver.jpg");
    $('.homePageDropDown', this).slideDown(200);
  }).bind("mouseleave",function(){
    $(".homePageSectionHeadImage img", this).attr("src", "/images/homePage/BusinessMainPg_btn.jpg");
    $('#homePageBusinessHeader .homePageDropDown').slideUp(0);
  });
  
  $("#homePageDTECoHeader").bind("mouseenter",function(){
    $(".homePageSectionHeadImage img", this).attr("src", "/images/homePage/DTEcoMainPg_btnOver.jpg");
    $('.homePageDropDown', this).slideDown(200);
  }).bind("mouseleave",function(){
    $(".homePageSectionHeadImage img", this).attr("src", "/images/homePage/DTEcoMainPg_btn.jpg");
    $('#homePageDTECoHeader .homePageDropDown').slideUp(0);
  });
  
  $(".homePageSectionHead li").click(function(e){
    window.location=$('a', this).attr("href");
    e.stopPropagation();
  });

  $(window).bind('load', function() {
      preloadImages();
  });

});

