//CosinusoIlade 04/2005

             ZI=500
             Re=207
             V=30
             B=10
             sensr=16
             sensv=2
             sensb=2
             stp=.01;
             Sir    =" Feliz Natal! Ótimo 2010! "
             Stp=0
             tempo=32 //mlsc            
/*********************************/

             Nb=0
             var N = Sir.length
             var X,Y
             document.onselectstart=function(){return false}
             
             with(d=document)
              {
                with(b=body){
		 insertAdjacentHTML("afterBegin","<span id=SPAN></SPAN>");
               
		  }
             
             }
             PI=Math.PI/180
             ind=0;
             Sp=360/N;
             var O=new Object(),sT
        
             
function resize()
      {
      FS=Math.min(document.body.clientWidth,document.body.clientHeight)*.1
      X=document.body.clientWidth/2-FS/2
      Y=document.body.clientHeight/2-FS/2
      RY=document.body.clientHeight/2-FS*1.5
      RX=document.body.clientWidth/2-FS/1.5
      
           }

/********************************/



function Col(){
        sensr=Math.min(2,sensr)
        sensv=Math.min(2,sensv)
        sensb=Math.min(2,sensb)
        if(Re+sensr<0||Re+sensr>255){sensr=-sensr;}
        if(V+sensr<0||V+sensv>255){sensv=-sensv;}
        if(B+sensb<0||B+sensb>255){sensb=-sensb;}
        Re+=sensr;V+=sensv;B+=sensb;
        return "rgb("+Re+","+V+","+B+")"
       }

o=function(koa){
        

             html="<DIV align=center style='visibility:visible; FILTER: glow(color=white, strength=3); overlow:hidden;font-weight:bold;font-size:"+FS+"px;text-align:center;LEFT:-1000;top:-1000; POSITION: absolute;font-family:verdana;color:"+ (koa==" "?"":Col())+";' >"+koa+"</DIV>";
 
            

SPAN.insertAdjacentHTML("beforeEnd",html);
            
             this.D=SPAN.lastChild

             this.move=function()
                {
               with(this)
                       {
                       with(D.style)
                          {
                           left=orx
                           top=ory
                           fontSize=fs
                           
                          
                           }
                          }
                    
                        }


}


           
String.prototype.Ile =function ()
              {

 resize()
 for ( i = 0 ; i <N ; i++ ) {
             O[ind++]=new o(this.charAt(i%this.length));
        }

      b.onresize=function(){
     
      resize()
     
                  }

sh()

      }    
            
function roulemapoule() {



   
for ( i = 0 ; i <N ; i++ ) {




             ory=Y + RY*Math.sin(Stp+i*Sp*PI)*Math.sin(Stp);
             orx=X + RX*Math.cos(Stp+i*Sp*PI)*Math.sin(Stp);
             fs=FS
 
            
            O[i].move()
        }
Stp+=stp;sT=setTimeout("roulemapoule()",tempo)
}




function sh() {

         with (O[Nb]){


       ory=Y + RY*Math.sin(Stp+Nb*Sp*PI)*Math.sin(Stp);
       orx=X + RX*Math.cos(Stp+Nb*Sp*PI)*Math.sin(Stp);
       fs=FS
       move()
       
                         }
         


      if(Nb==N-1)Nb=0,sT=setTimeout("roulemapoule()",tempo);else Nb++, sT=setTimeout("sh()",tempo); 

      

         
}




