/*** gantry-totop.js ***/

/*
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */
window.addEvent("domready",function(){var b=document.id("gantry-totop");if(b){var a=new Fx.Scroll(window);b.setStyle("outline","none").addEvent("click",function(c){c.stop();
a.toTop();});}});
;

/*** gantry-buildspans.js ***/

/*
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */
var GantryBuildSpans=function(b,c,a){(b.length).times(function(e){var f="."+b[e];var d=function(j){j.setStyle("visibility","visible");var i=j.get("text");
var g=i.split(" ");first=g[0];rest=g.slice(1).join(" ");html=j.innerHTML;if(rest.length>0){var k=j.clone().set("text"," "+rest),h=new Element("span").set("text",first);
h.inject(k,"top");k.replaces(j);}};$$(f).each(function(g){c.each(function(h){g.getElements(h).each(function(j){var i=j.getFirst();if(i&&i.get("tag")=="a"){d(i);
}else{d(j);}});});});});};
;

/*** rt-fixedheader.js ***/

/**
 * @package		Gantry Template Framework - RocketTheme
 * @version		1.6.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
 */

window.addEvent('domready', function() {
	var moo1 = (MooTools.version == '1.12' || MooTools.version == '1.11');
	var header = (moo1) ? $('rt-top-surround') : document.id('rt-top-surround');
	var ie6 = (moo1) ? window.ie6 : Browser.Engine.trident4;
	var ie7 = (moo1) ? window.ie7 : Browser.Engine.trident5;
	
	if (header && !ie6) {
		var height = header.getCoordinates().height;
		if (ie7) height -= header.getFirst().getStyle('padding-bottom').toInt();
		
		var lastdiv = new Element('div').setStyle('height', height);

		if (moo1) lastdiv.setHTML('&nbsp;');
		else lastdiv.set('html', '&nbsp;');

		lastdiv.inject(header, 'before');
	}
});
;

/*** load-transition.js ***/

/**
 * @package		Gantry Template Framework - RocketTheme
 * @version		1.6.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.trident6)){
		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);

})());
;
