$(document).ready(function() {
	var $footerThumb = $('div.footer_recent_projects_thumb');
	var $footerThumbBorder = $('div.footer_recent_projects_thumb_border');
	
	$footerThumb.hover(
		function() {
			$(this).parent().stop().animate({
				backgroundColor: '#777777'
			}, 200);
			$(this).stop().animate({
				backgroundColor: '#ffffff'
			}, 200);
		},
		function() {
			$(this).parent().stop().animate({
				backgroundColor: '#ffffff'
			}, 400);
			$(this).stop().animate({
				backgroundColor: '#000000'
			}, 400);
		}
	);
	
	
	// animation for contact us link
	var pageScrollOptions = {
		duration: 1000,
		easing: 'easeInOutQuint'
	};
	
	$('#header_nav_links').localScroll(pageScrollOptions);
	
	
	//animation for header nav
	var $navlink = $('#header_nav_links .header_nav_link');
	
	$navlink.hover(
		function() {
			$(this).stop().animate({
				marginTop: '-2px',
				paddingBottom: '4px'
			}, 100);
		},
		function() {
			$(this).stop().animate({
				marginTop: '0px',
				paddingBottom: '0px'
			}, 100);
		}
	);
	
	
	//accordions
	jQuery('#sidebar_accordion').accordion({
		active: 0,
		autoHeight: false,
		animated: "easeOutQuart",
		collapsible: true,
		icons: { 'header': 'icon_accordion_plus', 'headerSelected': 'icon_accordion_minus' }
	});
	
	
	jQuery('#theteam_sidebar_accordion').accordion({
		active: 0,
		autoHeight: false,
		animated: "easeOutQuart",
		icons: { 'header': 'icon_accordion_plus', 'headerSelected': 'icon_accordion_minus' }
	});
});