// ----------------------------------------
//  Kindly fade up the text.
// ----------------------------------------

var Fader = {

	init: function(options){
		this.options = $extend({
			fadeDuration: 400
		}, options || {});
		
		this.inner = $('content');
	
		this.fx = {
			inner: this.inner.effect('opacity', {duration: this.options.fadeDuration}).hide()
		};
		this.fx.inner.start(1);
	}
};

// non-dom styles to avoid flickering.
if (document.getElementById && document.getElementsByTagName) {
  document.write('<style type="text/css">');
  document.write('#content {visibility:hidden;}');
  document.write('</style>');
}

window.addEvent('domready', Fader.init.bind(Fader));