// JavaScript Document
// Use the Fade in constructor to load elements in
// id of element, start of fade, duration the fade in shood take

function FadeIn(id, start, duration) {
	this.duration = duration;
	this.start = start*1000;
	$E.onAvailable(id, this.handleOnAvailable, this); 
}

FadeIn.prototype.handleOnAvailable = function(me) {
	var anim = new $Anim(this.id, { opacity: { to: 1 } }, me.duration, YAHOO.util.Easing.easeIn);
	window.setTimeout( function(){anim.animate(); }, me.start);
}