$(document).ready(function(){
	// Remove flicker from top navigation drop down
	$("#top-drop-down a").removeAttr("title");
	
	// Various non-valid stylings
	$(this).find('div.aktt_tweets ul li:first-child').css({ 'font-size' : '14pt', 'line-height' : '18px' });
	$(this).find('#sidebar-content ul li:last-child').css({ 'border' : 'none', 'padding' : '0', 'margin' : '0' });
	$(this).find('ol.commentlist li.comment:last').css({ 'border' : 'none' });
	$(this).find('div.post:last').css({ 'border' : 'none', 'padding' : '0' });
	$(this).find('div.page:last').css({ 'border' : 'none', 'padding' : '0' });
	
	$("#top-drop-down li ul").css({ 'display' : 'none' }); // Opera Fix for top drop down
	
	// Top drop down animation
	$("#top-drop-down li").hover(function() {
			$(this).find('ul:first').css({ 'visibility': 'visible', 'display' : 'none' }).slideDown(400);
	},function() {
			$(this).find('ul:first').css({ 'visibility' : 'hidden' });
	});
	
	// Everything below this line is for background fanciness
	var pageheight = $("div#wrapper").height() - $("#footer").height();
	$("#background-container").css({ 'height' : pageheight + "px" });
	
	var offset = $("div#wrapper").height() - ( $("#footer").height() + $('#bottom-background').height() + $('#top-background').height() );
	if ( offset < 0 ) { offset = 0 }
	$('#bottom-background').css({ 'margin-top' : offset + "px" });
});