function contentFadeIn() {
	$('#content').animate(
				{
					opacity: 1
				}, 1000		
				);
	footer();
}

function contentFadeOut() {
	$('#content').animate({
				opacity: 0
				}, 1000, function() {
		});
}

function footerFadeIn() {
				$('#footer').animate({
					opacity: 1
					}, 500, function() {				
				});
}



function menuColorToggle() {
	//toggle menu items color on hover
	$('#menu ul li a').hover(
		function(){$(this).stop().animate({
					color: "#2290d8"
				}, 500 );},
		function(){$(this).stop().animate({
					color: "#eee"
				}, 200 );}
	);
}

function footer(){
		//Positions footer according to window size and content height
		headvar = $('#header').height();
		footvar = $('#footer').height() + 110;
		variable = $('#content-wrapper').height() + headvar + footvar;
		
		if($(window).height() < variable){
		
		$('#footer').css({'position':'relative'});
		$('#wrapperbgstretch').css({'overflow-y':'auto'});
		
		}else{
			
			$('#footer').css({'bottom': '0', 'position':'absolute'});
			$('#wrapperbgstretch').css({'overflow-y':'hidden'});
		}
}

/*function menuColorToggle() {
	//toggle menu items color on hover
	$('#menu ul li a').hover(
		function(){$('.JQFEGradient', this).stop().animate({
					color: "#2290d8"
				}, 500 );},
		function(){$('.JQFEGradient', this).stop().animate({
					color: "#eee"
				}, 200 );}
	);
}*/
