

	k=0; m=0; n=68; s=255; t=255; u=255;
	text=1; frame_speed=20; wait_time=500; view_time=1250; new_page=1500;  

	function changeColor(objectID,styleName) {{ var dom=document.getElementById(objectID,1).style; 
		dom.visibility='visible'; dom[styleName]="rgb("+k+","+m+","+n+")";  
		k+=10; m+=10; n+=8; if(k>=250)k=255; if(m>=250)m=255; if(n>=252)n=255;}		
		if (text<5)														
			{if(k<250) setTimeout("changeColor('txt'+text,'color')",frame_speed); 
			if(k>=250) setTimeout("changeColor1('txt'+text,'color')",view_time); s=255; t=255; u=255;}	
		if (text==5)									
			{if(k<240) setTimeout("changeColor('txt'+text,'color')",frame_speed);
		else setTimeout("location.href='main_page.html'",new_page);
		}}	
	function changeColor1(objectID,styleName) {{ var dom=document.getElementById(objectID,1).style;
		dom[styleName]="rgb("+s+","+t+","+u+")"; 
		s-=10; t-=10; u-=10; if(s<=5)s=0; if(t<=5)t=0; if(u<=71)u=68;}			
		if(s>4)setTimeout("changeColor1('txt'+text,'color')",frame_speed); 	if(s<=0)text++; 	
		if(s<=0)setTimeout("changeColor('txt'+text,'color')",wait_time); k=0; m=0; n=68;
		}	
	
	


