
$(document).ready(function(){

	//$('#logo').mouseenter(function() { $('#logo').animate({top: '-46px'}, 160);	});
	//$('#logo').mouseleave(function() { $('#logo').animate({top: '-47px'}, 160);	});
	
	/*
	$('#menu-header > li').each( function(index) {
		if($(this).attr('class').indexOf('current-menu-item') === -1 && $(this).attr('class').indexOf('current_page_parent') === -1){
			$(this).mouseenter(function(event) { $(this).animate({marginTop: '1px'}, 120); });
			$(this).mouseleave(function(event) { $(this).animate({marginTop: '3px'}, 120); });
		}
	});
	*/
	
	if($('#disqus_thread').length == 0) limit_sidebar();
		
});

function limit_sidebar(){
	
	//this gets called after the disqus comments have been loaded or
	//on document ready if disqus is not present on the page.
	//the height of the content area (including comments) will be evaluated
	//to determine if any of the sidebar elements should be suppressed.
	
	//the call from disqus is located in comments.php in the disqus plugin in config.callbacks.onReady.push(function()
	
	if( $('#content').height() < 1775 ) $('#twitter-box').hide();
	if( $('#content').height() < 1575 ) $('#lower-sidebar').hide();
	if( $('#content').height() < 1150 ) $('#fb-likebox').hide();
	if( $('#content').height() < 650 ) $('#category-list-right').hide();

}
