/**
 * @package		Gantry Template Framework - RocketTheme
 * @version		1.5.0 June 1, 2011
 * @author		RocketTheme http://www.rockettheme.com
 * @copyright 	Copyright (C) 2007 - 2011 RocketTheme, LLC
 * @license		http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
 */

((function(){

var animation = function(){
	var body = document.id('rt-body-bg'), footer = document.id('rt-footer-bg');

	if (Browser.Engine.gecko19 || (Browser.Engine.trident && !Browser.Engine.trident7)){
		if (body){
			body.set('tween', {duration: 500, transition: 'quad:out'});
			body.setStyles({'visibility': 'hidden', 'opacity': 0});
			body.removeClass('rt-hidden').fade('in');
		}
		if (footer){
			footer.set('tween', {duration: 500, transition: 'quad:out'});
			footer.setStyles({'visibility': 'hidden', 'opacity': 0});
			footer.removeClass('rt-hidden').fade('in');
		}
		
		return;
	}
	
	if (body) body.removeClass('rt-hidden').addClass('rt-visible');
	if (footer) footer.removeClass('rt-hidden').addClass('rt-visible');
};

window.addEvent('load', animation);

})());
