jQuery(document).ready(function(){
    
	var hostname= window.location.hostname;
			
	jQuery(".client-login").hover(function() {
		jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/index_client_login_btn_hover.png");
			}, function() {
				jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/index_client_login_btn.png");
	});
	jQuery(".client-login-in").hover(function() {
		jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/client_login_btn_hover.png");
			}, function() {
				jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/client_login_btn.png");
	});
	jQuery(".map").hover(function() {
		jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/map_hover.png");
			}, function() {
				jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/map.png");
	});
	jQuery(".facebook").hover(function() {
		jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/facebook_icon_hover.png");
			}, function() {
		jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/facebook_icon.png");
	});
	jQuery(".photogallery").hover(function() {
		jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/photogallery_icon_hover.png");
			}, function() {
				jQuery(this).attr("src","http://"+hostname+"/wp-content/themes/CAH/images/buttons/photogallery_icon.png");
	});
	jQuery('#top-nav a.tab1').hover(function() {
		jQuery(this).addClass('tab1-hover');
	      }, function() {
	    jQuery(this).removeClass('tab1-hover');
	 });
	jQuery('#top-nav a.tab2').hover(function() {
		jQuery(this).addClass('tab2-hover');
	      }, function() {
	    	  jQuery(this).removeClass('tab2-hover');
	 });
	jQuery('#top-nav a.tab3').hover(function() {
		jQuery(this).addClass('tab3-hover');
	      }, function() {
	    jQuery(this).removeClass('tab3-hover');
	 });
	jQuery('#top-nav a.tab4').hover(function() {
		jQuery(this).addClass('tab4-hover');
	      }, function() {
	    jQuery(this).removeClass('tab4-hover');
	 });
	jQuery('#top-nav a.tab5').hover(function() {
		jQuery(this).addClass('tab5-hover');
	      }, function() {
	    jQuery(this).removeClass('tab5-hover');
	 });
	jQuery('#top-nav a.tab6').hover(function() {
		jQuery(this).addClass('tab6-hover');
	      }, function() {
	    	  jQuery(this).removeClass('tab6-hover');
	 });

	
});

