$(document).ready(function(){
	$("#cosmetic").hoverIntent(function(){expand(0);}, function(){});		
	$("#implants").hoverIntent(function(){expand(1);}, function(){});		
	$("#orthodontics").hoverIntent(function(){expand(2);}, function(){});		
	$("#specialist").hoverIntent(function(){expand(3);}, function(){});		
	$("#nav_images").mouseleave(function(){
		$("#cosmetic_menu").stop().animate({ top: "-311" }, 1000);
		$("#cosmetic_small").animate({ left: 200}, 500);	
		$("#cosmetic_small").animate({ opacity: "show" }, 500);
		$("#cosmetic_large").animate({ opacity: "hide", width: "139" }, 1000);					
		$("#implants_menu").stop().animate({ top: "-311" }, 1000);
		$("#implants_small").animate({ left: 342}, 500);	
		$("#implants_small").animate({ opacity: "show" }, 500);
		$("#implants_large").animate({ opacity: "hide", width: "139" }, 1000);					
		$("#orthodontics_menu").stop().animate({ top: "-311" }, 1000);
		$("#orthodontics_small").animate({ left: 484}, 500);	
		$("#orthodontics_small").animate({ opacity: "show" }, 500);
		$("#orthodontics_large").animate({ opacity: "hide", width: "139" }, 1000);					
		$("#specialist_menu").stop().animate({ top: "-311" }, 1000);
		$("#specialist_small").animate({ left: 626}, 500);	
		$("#specialist_small").animate({ opacity: "show" }, 500);
		$("#specialist_large").animate({ opacity: "hide", width: "139" }, 1000);					
					
	});					
	
	MM_preloadImages('/images/cosmetic.jpg', '/images/implants.jpg', '/images/orthodontics.jpg', '/images/specialist.jpg');
	load_nav();
});
