// JavaScript Document

var $j = jQuery;
var baseColor = '#ffffff';
var hoverColor = '#2361a1';

$j(function(){
	// Smooth Scroller
	$j('a[href*=#top]').click(function() {
		$j(this).scrollTo(500, 'easeOutExpo');
		return false;
	});
	
	// Hover
	$j('#content a:not(.entry-title a)').hover(
		function() {
			$j(this).stop().animate({
				color: '#83b1e1'
			}, 'fast' );
		},
		function() {
			$j(this).stop().animate({
				color: hoverColor
		}, 'fast' );
	});
	
	$j('.entry-title a').hover(function() {
		$j(this).stop().animate({
			color: baseColor
		}, 'fast' );
		$j(this).parent().stop().animate({
			backgroundColor: hoverColor
		}, 'fast' );
	},
	function() {
		$j(this).stop().animate({
			color: hoverColor
		}, 'fast' );
		$j(this).parent().stop().animate({
			backgroundColor: baseColor
		}, 'fast' );
	});
	
	$j('button').hover(
		function() {
			$j(this).animate({
				backgroundColor: '#DDD'
			}, 'fast' );
		},
		function(){
			$j(this).animate({
				backgroundColor: '#F3F3F3'
			}, 'fast');
		}
	);
});