$(document).ready(function(){
						   
$.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);

};

$.fn.heightToggle = function(speed,easing,callback){
	return this.animate({height: 'toggle'}, speed, easing, callback);
	};
	
$.fn.heightFadeToggle = function(speed,easing,callback){
	return this.animate({height: 'toggle', opacity: 'toggle'}, speed, easing, callback);
	};


$('#sectionToggle, #sectionClose, #gnav a.sectionItem').click(function(){
									 $('#sectionMenu').heightFadeToggle('normal');
									 $('#sectionToggle, #sectionMenu').toggleClass('open');
									 })

//$('#sectionToggle.open').click(function(){$('#sectionToggle.open, #sectionMenu.open').removeClass('open');})

$('.entry img').parent('a').css({border: 'none', background: 'none', padding: '0'});

$('#gnav ul li').hoverIntent(
								 
			function() {
					$(this).addClass('hovered');
					$('ul', this).heightFadeToggle(200);	
			},
			function() {
					$(this).removeClass('hovered');
					$('ul', this).heightFadeToggle(500);
			});

$('#sidebar').hoverIntent(
				function(){$('#sidebar h3, #sidebar h4').stop().animate({color: '#E8E1C7'}, 'fast')},	//	  
				function(){$('#sidebar h3, #sidebar h4').stop().animate({color: '#C3C696'}, 'slow')}					  
						  );

});