/* fade module javascript code
 * based on	dynlite dhtml dom api
 * @author: Peter Assenov- AIP Solutions Ltd.' 2001-2007
 * @version: 2.2.0.1/2007-04-13
 * @requires: dynlite.1.0.js
 * @requires: app.1.0.js
 * @requires: path.1.0.js
 */

/* fade module */
//load.push("make('img')");
function fade(id)
{	this.id='fade_'+id;
	this.el=obj(id,this);
/* fade init */
	if(!ns6) this.el.style.filter="alpha(opacity=0)"; /* IE sucks */
	this.alpha=(ns6)? this.el.style:this.el.filters.alpha;
	this.duration=1;
	this.frate=20;
	this.arr=this.calc(0,50);
/* fade init end */
window[this.id]=this;
log.push('- fade object['+this.id+'] initialized.');
}
fade.prototype=new path;
/* events initialization */
fade.prototype.onstep=function()
{	this.op=this.arr[this.i];
	if(ns6)	this.alpha.setProperty("opacity",this.op/100,'');
	else	this.alpha.opacity=this.op;
}
/* fade module end */