$(document).ready(function(){
			
	$("#mcText").html('Experience cultures and landscapes that have long captivated intrepid explorers, pleasure seekers, and spiritual sojourners.  Learn more about <a href="southeast-asia.html">Southeast Asia</a>.');
			
	$(".nav_button").hover( function() {
		var which = $(this).attr("id").substring(6);
				
		var newtext;
		if(which == 1) newtext = 'Experience cultures and landscapes that have long captivated intrepid explorers, pleasure seekers, and spiritual sojourners.  Learn more about <a href="southeast-asia.html">Southeast Asia</a>.';
		else if (which == 2) newtext = 'Enjoy eating Thai cuisine in the world\'s best Thai restaurants. Explore gastronomic delights in Laos and Cambodia too! Read about <a href="thai-food.html">Southeast Asian Cuisine</a>.';
		else if (which == 3) newtext = 'Global Taste offers Southeast Asia\'s best culinary, cooking, and custom tours at unbeatable prices. Read about our <a href="culinary-tours.html">Food Vacations</a>.';
		else if (which == 4) newtext = 'We value sustainability and practice responsible tourism. Read <a href="about-us.html">About Us</a> and our efforts toward positive development.';

		$("#headImg").fadeOut('fast', function() {
			if(which == 1) $(this).css( { background: 'url(images/land.jpg) top right no-repeat' });
			else if (which == 2) $(this).css( { background: 'url(images/food.jpg) top right no-repeat' });
			else if (which == 3) $(this).css( { background: 'url(images/culture.jpg) top right no-repeat' });
			else if (which == 4) $(this).css( { background: 'url(images/taste.jpg) top right no-repeat' });
			$("#headImg").fadeIn('fast');
		});
				
		$("#mcText").fadeOut('fast', function() {
			$(this).html(newtext).fadeIn('fast');
		});

				
	});
			
	$("#main_nav a").hover ( function() {
		$(this).css({ backgroundColor: "#444444" }).animate({ backgroundColor: "#dddddd" }, 70);
		$(this).animate({ color: "#000000" }, 70);
	},
		function() {
		$(this).animate({ backgroundColor: "#444444" }, 70, function() {
			$(this).css({ backgroundColor: "transparent" });
		});
		$(this).animate({ color: "#ffffff" }, 70);
	});
			
});
