

$(document).ready(function(){
	//myI = 0;
	
	//Change color and stuff for the four boxes containing the links
	$('.ah_box').mouseenter(function(){		
		$(this).find('.ah_main_link').removeClass('ah_main_link').addClass('ah_main_link_active');
		$(this).find('.ah_main_link_active_pre').show();
		$(this).find('.ah_main_link_active_post').show();
		$(this).removeClass('ah_box').addClass('ah_box_active');
		$('.ah_auto_active').removeClass('ah_auto_active');
	}).mouseleave(function(){
		
		$(this).find('.ah_main_link_active').removeClass('ah_main_link_active').addClass('ah_main_link');
		$(this).find('.ah_main_link_active_pre').hide();
		$(this).find('.ah_main_link_active_post').hide();
		$(this).removeClass('ah_box_active').addClass('ah_box');
		
	});
	
	
	//Show different image on mouseover
	$stdImage = $('.ah_std_image');
	$('.ah_image_hidden').removeClass('ah_image_hidden').hide();
	

	
	$('.ah_box').mouseenter(function(){
		
		if($(this).hasClass('ah_box_first')){
			$('.ah_image').hide();
			$('.ah_image_first').show();
			$stdImage.hide();
		}
		else if($(this).hasClass('ah_box_second')){
			$('.ah_image').hide();
			$('.ah_image_second').show();
			$stdImage.hide();
		}
		else if($(this).hasClass('ah_box_third')){
			$('.ah_image').hide();
			$('.ah_image_third').show();
			$stdImage.hide();
		}
		else if($(this).hasClass('ah_box_fourth')){
			$('.ah_image').hide();
			$('.ah_image_fourth').show();
			$stdImage.hide();
		}	
	});	
	$('.ah_box').mouseleave(function(){
		$('.ah_image').hide();
		$stdImage.show();
	});
	
});





