$(document).ready(function() {
	// main nav rollovers
	$('#navigation ul li a').hover(
	function() {
		// if this is not the active item
		if (!$(this).parent().hasClass('current')) {
			$(this).animate({
				paddingRight: '27px'
			}, 'fast').animate({
				paddingRight: '22px'
			}, 'fast');
		}
	},
	function() {
	});
	
	// main nav animate submenus in
	$('#navigation ul li.current-has-subnav ul').each(function(){
		var $this = $(this);
		$this.find('li').css('display', 'block');
		var targetHeight = $this.height() + 2;
		$this.css({
			overflow: 'hidden',
			height: 0
		});
		$this.animate({
			height: targetHeight
		}, 'slow');
	});
	
	
	
});
