var $ = jQuery.noConflict();
jQuery(document).ready(function(){
	var postconfig = {    
     sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
     interval: 200, // number = milliseconds for onMouseOver polling interval    
     over: pretty, // function = onMouseOver callback (REQUIRED)    
     timeout: 500, // number = milliseconds delay before onMouseOut    
     out: ugly // function = onMouseOut callback (REQUIRED)    
	};
	//$("#content").css({"background": "#666"});

	//$(".post").hoverIntent(postconfig).css("background-color", "#fff");
	//$("#sidebar").hoverIntent(postconfig);

	$("#header div.description p")
		.mouseover(function(){
			$(this).stop().animate({opacity:"0.0"}, {duration:500});	
		})
		.mouseout(function(){
			$(this).stop().animate({opacity:"1.0"},{duration:500});
		});
	
});


function pretty(obj){
	$(this).animate({
			borderColor: "#900021",
			backgroundColor: "#d3e0ff",
			opacity: 0.8,
		}, 'slow');
}

function ugly(obj){
	$(this).animate({
			borderColor: "transparent",
			backgroundColor: "#fff",
			opacity: 1,
		}, 'slow');
}