$(function() {
	// CSS fixes and enhancements to keep hacks to a minimum
	$("#nav ul li:first").css("padding-left","0");
	$("#nav ul li:last").css({"padding-right" : "0", "border-right" : "0"});
	$(".datepicker").datepicker();
	$(".cityinput").clearDefault();
	
	$("#about-national-movers-page #about").addClass("active");
	$("#free-national-moving-quotes-page #quotes").addClass("active");
	$("#choose-reputable-aaem-movers-page #why").addClass("active");
	$("#aaem-customer-testimonials-page #testimonials").addClass("active");
	$("#national-moving-questions-page #faqs").addClass("active");
	$("#contact-national-movers-page #contact").addClass("active");
	
	if (jQuery.browser.msie && parseInt(jQuery.browser.version) == 6 ) { 
		$(".date label").css("width","125");
		$(".distance label").css("width","125");
		$("#page-callouts li:first").css("margin","0");
	} else { 
		//do nothing
	};
	
	var tallestli = 0;
		$("#page-callouts li").each(
			function(index) {
				var tallest = $(this).height();
				if (tallest > tallestli) { 
					tallestli = tallest 
				}
			});
			
		$("#page-callouts li").css("height",tallestli);
		
	$('.nmc:first').show();
	
	$('.reputable-movers').click(function(){ 
		$(this).next('div.nmc').slideToggle('normal').siblings('div:visible').slideUp('normal');
	});
});
