/* fade module javascript code
 * based on	dynlite dhtml dom api
 * @author: Peter Assenov- AIP Solutions Ltd.' 2001-2007
 * @version: 2.2.0.2/2009-10-07
 * @requires: dynlite.1.0.js
 * @requires: app.1.0.js
 * @requires: path.1.0.js
 */

/* fade module */
//dl.load.push("dl.make('IMG')");
function fade(id)
{	this.id='fade_'+id;
	this.el=dl.el(id,this);
/* fade init */
	if(dl.is.ie6) {this.el.style.filter="alpha(opacity=100)"}; /* IE sucks */
	this.alpha=(!dl.is.ie)? this.el.style:this.el.filters.alpha;
	this.duration=1;
	this.frate=20;
	this.arr=this.calc(0,99);
/* fade init end */
window[this.id]=this;
dl.log.push('- fade object['+this.id+'] initialized.');
}
fade.prototype=new path;
/* events initialization */
fade.prototype.onstep=function()
{	this.op=this.arr[this.i];
	if(!dl.is.ie)	this.alpha.setProperty("opacity",this.op/100,'');
	else	this.alpha.opacity=this.op;
}
/* fade module end */