$(window).load(function () {

	var contentHidden = false;
	
	$(' #loading ').css("display", "none");	

	$(' #standard-page, #home-page ').animate({"right": "+=650px"}, 1000, "easeInOutExpo");
	$(' #left-content, #left-content-page ').animate({"left": "+=600px"}, 1300, "easeInOutExpo");

	$(' #show-hide, #supersized ').click(function () {

		(contentHidden == true) ? contentHidden = false : contentHidden = true;
	
		if (contentHidden == true) {

		$(' #standard-page, #home-page ').animate({"right": "-=650px"}, 1000, "easeInOutExpo");
		$(' #left-content, #left-content-page ').animate({"left": "-=600px"}, 1000, "easeInOutExpo");
		$(' #footer ').fadeTo("slow", 0);
		
		} else {

		$(' #standard-page, #home-page ').animate({"right": "+=650px"}, 1000, "easeInOutExpo");
		$(' #left-content, #left-content-page ').animate({"left": "+=600px"}, 1000, "easeInOutExpo");
		$(' #footer ').fadeTo("slow", 1);
		
		}

	});
	
	
	
	shortcodeAnims();
	
	menuAnims();
	
				$(' .portfolio_post, .portfolio_post_two, .portfolio_post_three, .portfolio_post_one ').hover(function () {

			$(this).find("a.portfolio_post_title, a.portfolio_post_title_three, a.portfolio_post_title_two, a.portfolio_post_title_one").stop().fadeTo("medium",1);
			$(this).find("div.portfolio_post_image img").stop().fadeTo("slow", 0.9);

			}, function () {

			$(this).find("a.portfolio_post_title, a.portfolio_post_title_three, a.portfolio_post_title_two, a.portfolio_post_title_one").stop().fadeTo("medium",0);
			$(this).find("div.portfolio_post_image img").stop().fadeTo("slow", 1);

			}).find("a.portfolio_post_title, a.portfolio_post_title_three, a.portfolio_post_title_two, a.portfolio_post_title_one").fadeTo(0,0);

	
});



// SHORTCODE ANIMS

function shortcodeAnims () {

$(' a.single_lightbox, a.button, #portfolio_page_image a ').hover(function () {

$(this).stop().fadeTo(400, 0.7);

}, 

function () {

$(this).stop().fadeTo(400, 1);

});

}

// MENU ANIMS

function menuAnims () {

$(' .menu-main-container ul li ').hover(function () {

	if($(this).find('ul')) {

		$(this).find('ul').css("display", "block");

	}

},

function () {

	if($(this).find('ul')) {

		$(this).find('ul').css("display", "none");

	}

});


}
