var fade=new Object(); fade.Element=function(el){ this.div=xGetElementById(el); this.fadeSteps=new Array(); this.fadeSteps[1]="CC00CC"; this.fadeSteps[2]="D228D1"; this.fadeSteps[3]="D74FD6"; this.fadeSteps[4]="DD77DB"; this.fadeSteps[5]="E39EDF"; this.fadeSteps[6]="E8C6E4"; this.fadeSteps[7]="EEEDE9"; this.doFade(); } fade.Element.prototype={ doFade:function(){ this.div.style.bgColor=this.fadeSteps[i]; i++; this.doTimeout(); }, doTimeout:function(){ self=this; setTimeout("self.doFade()",700); }, };