/* Author: Thomas Leenders - Launchpadcreative www.launchpadcreative.com.au
*/

if ($('body').hasClass('home')) {
	$.backstretch("img/home_backgroundimg.jpg", {speed: 150}, {centeredY: false});
}


$(document).ready(function() {
	$(window).resize();
});


 $(window).resize(function(){
	 
	 $('#thankyou').css({
		 position:'relative',
		 top: ((($(window).height() - $('#thankyou').outerHeight())/2)-$('footer').outerHeight())
	});

	$('#home_section').css({
		position:'relative',
		top: ((($(document).height() - $('#home_section').outerHeight())/2)-$('footer').outerHeight())+20
	});

	$('.home footer').css({
		'top': $(document).height() - $('.home footer').outerHeight(),
		'position' : 'absolute',
		'left'		: 0,
		'width'		: $(window).width()
	});
	
	$('#container_background').css({
		'width'		: $(window).width()
	});
	
	/*$('.home credits_bar').css({
		'width'		: $(window).width(),
		'top'		: $(document).height() - $('.home credits_bar').outerHeight(),
	});*/

});














