		s=255; t=255; u=255; text=1; frame_speed=60; frame_speed_2=60;

	function waitTime(){
		setTimeout("changeColor1('fade1','color')",500);}
	function changeColor1(objectID,styleName) {{		
		var dom=document.getElementById(objectID,1).style; dom.visibility="visible"||"show";		
		dom[styleName]="rgb("+s+","+t+","+u+")"; 
		s-=7; t-=8; u-=10;}			
		if(u>5)setTimeout("changeColor1('fade'+text,'color')",frame_speed);
		if(u<6)u=0;	if(u==0)text++; k=255; m=255; n=255; 
		if(text<5){if(u==0)setTimeout("changeColor2('fade'+text,'color')",frame_speed);}
		if(text==5){g=255; h=255; i=255; setTimeout("changeColor3('fade'+text,'color')",frame_speed);}					
		}	
	function changeColor2(objectID,styleName){{		
		var dom=document.getElementById(objectID,1).style;	dom.visibility="visible"||"show";	
		dom[styleName]="rgb("+k+","+m+","+n+")"; 
		k-=7; m-=8; n-=10;}			
		if(n>5)setTimeout("changeColor2('fade'+text,'color')",frame_speed);
		if(n<6)n=0; if(n==0)text++; s=255; t=255; u=255; 
		if(text<5){if(n==0)setTimeout("changeColor1('fade'+text,'color')",frame_speed);}
		if(text==5){g=255; h=255; i=255; setTimeout("changeColor3('fade'+text,'color')",frame_speed);}
		}
		
	function changeColor3(objectID,styleName) {{ 		
		var dom=document.getElementById(objectID,1).style;	dom.visibility="visible"||"show";	
		dom[styleName]="rgb("+g+","+h+","+i+")"; 
		g-=7; h-=8; i-=10; }			
		if(i>5)setTimeout("changeColor3('fade'+text,'color')",frame_speed_2);
		if(i<6)i=0; if(i==0) text++; v=255; w=255; x=255;
		if(text<9){if(i==0)setTimeout("changeColor4('fade'+text,'color')",frame_speed_2);}					
		}	
	function changeColor4(objectID,styleName){{		
		var dom=document.getElementById(objectID,1).style;	dom.visibility="visible"||"show";	
		dom[styleName]="rgb("+v+","+w+","+x+")"; 
		v-=7; w-=8; x-=10; } 
		if(x>5) setTimeout("changeColor4('fade'+text,'color')",frame_speed_2);
		if(x<6)x=0; if(x==0) text++; g=255; h=255; i=255;
		if(text<9) {if(x==0)setTimeout ("changeColor3('fade'+text,'color')",frame_speed_2);} 
		}	
		

			

		

	
	

