$(window).ready(function(){
	$('#menu li').stop(true, true).hover(function(){
		$(this).children('a').css('left', 0).animate({'left': 300}, 100, function(){$(this).css('left', -300);}).animate({'left': 0}, 100);
	}, function(){
		//if(!$(this).hasClass('current'))
		//	$(this).css('background', '#bac8d2');
	});
	$('#menu li').click(function(){
		$(this).stop(true, true);
		$('#menu li.current').removeClass('current');
		$(this).addClass('current');
		$(this).children('a').click()
	});
	$('#logo').mouseenter(function(){
		$('#logo').animate({'padding-left': 20}, 50, function(){$(this).css({'padding-left': 0});})
			.animate({'padding-right': 20}, 50, function(){$(this).css({'padding-right': 0});});
	});
	$('#card').hover(function(){
		$(this).children('.wrap').css({'right': -90, 'top': 0}).animate({'right': -70, 'top': 15}, 250);
	}, function(){
		$(this).children('.wrap').animate({'right': -90, 'top': 0}, 250, function(){$(this).css({'right': -90, 'top': 0})});
	});
	$('#social .social').hover(function(){
		$(this).children('a').children('img').fadeTo(100, 1.0);
	}, function(){
		$(this).children('a').children('img').fadeTo(100, 0.5);
	});
	$(function(){
		$('#content .content').first().css('border-top', 'none').append('<div class="arrow"></div>');
		$('#logo').mouseenter();
		$('#card .wrap').css('right', -320).animate({'right': -90}, 250);
		$('#social .social img').fadeTo(50, 0.5);
		// wp:
		$('#menu .current_page_item').addClass('current');
	});
});
