yourLogo = " Rattekopkes website ";  //Not less than 2 letters!
logoFont = "times new roman";
logoColor = "#66FFFF";
yourLogo = yourLogo.split('');
L = yourLogo.length; 
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 90; logoHeight = -40;
ypos = 0; xpos = 0; step = 0.03; currStep = 0;
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
   document.write('<div id="ie" style="position:absolute;top:0px;left:0px;'
   +'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;'
   +'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
}
document.write('</div></div>');

function Mouse() {
   ypos = event.y;
   xpos = event.x - 5;
}
document.onmousemove=Mouse;
function animateLogo() {
   outer.style.pixelTop = document.body.scrollTop; 
   for (i = 0; i < L; i++) {
      ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180);
      ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
      Sz[i] = ie[i].style.pixelTop - ypos;
      if (Sz[i] < 5) Sz[i] = 5;
      ie[i].style.fontSize = Sz[i] / 1.7;
   }
   currStep -= step;
   
   setTimeout('animateLogo()', 20);
}
//window.onload = animateLogo;

//-----------------------------------------------------------------------
mesk=new Array();mesk[10]="A";mesk[11]="B";mesk[12]="C";mesk[13]="D";mesk[14]="E";mesk[15]="F";A=10;B=11;C=12;D=13;E=14;F=15;let="ABCDEF";function mes(num){if(let.indexOf(num) != -1){return eval(num)};else{if(num < 10){return eval(num)};else{return mesk[num]}}};

function color(begin,einde,stappen,stap){
   hh1=(mes(begin.charAt(0))*16)+mes(begin.charAt(1));
   hh2=(mes(begin.charAt(2))*16)+mes(begin.charAt(3));
   hh3=(mes(begin.charAt(4))*16)+mes(begin.charAt(5));
   pp1=(mes(einde.charAt(0))*16)+mes(einde.charAt(1));
   pp2=(mes(einde.charAt(2))*16)+mes(einde.charAt(3));
   pp3=(mes(einde.charAt(4))*16)+mes(einde.charAt(5));

   if(hh1 < pp1) {
      ff1=hh1+Math.floor((pp1-hh1)/stappen*stap);
      ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'");
   }else{
      ff1=hh1-Math.floor((hh1-pp1)/stappen*stap);
      ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'");
   }
   if(hh2 < pp2) {
      ff2=hh2+Math.floor((pp2-hh2)/stappen*stap);
      ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'");
   }else{
      ff2=hh2-Math.floor((hh2-pp2)/stappen*stap);
      ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'");
   }
   if(hh3 < pp3) {
      ff3=hh3+Math.floor((pp3-hh3)/stappen*stap);
      ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'");
   }else{
      ff3=hh3-Math.floor((hh3-pp3)/stappen*stap);
      ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'");
   }
   return ff1+ff2+ff3
}
bum=0;bum2=0;txtkl=new Array();txtkl[0]="";
function kleuren(){
   for(i=0;i != Math.floor(message.length/2);i++){
      txtkl[i]=color(lightcolor1,lightcolor2,Math.floor(message.length/2),i)
   }
   for(i=Math.floor(message.length/2);i != message.length;i++) {
      txtkl[i]=color(lightcolor2,lightcolor1,Math.floor(message.length/2),(i-Math.floor(message.length/2)))
   }
   lightf1()
}
function lightf1(){
   txtkl[message.length+1]="";
   bum2=message.length-bum;
   for(i=0;i != message.length;i++){
      if(i+bum < message.length){
         txtkl[message.length+1]=txtkl[message.length+1]+"<font color='#"+txtkl[(i+bum)]+"'>"+message.charAt(i)+"</font>"};else{txtkl[message.length+1]=txtkl[message.length+1]+"<font color='#"+txtkl[i-bum2]+"'>"+message.charAt(i)+"</font>"
      }
   }
   if (bum != message.length){
      bum++;
   }else{
      bum=0
   }
   light.innerHTML=txtkl[message.length+1];
   setTimeout("lightf1()",50)
}

//----------------------------------------------
var GlowStr = 5, GlowSgn = +1
function animateExtra(){
   var interv=200
   GlowStr += GlowSgn 
   if (GlowStr==10) {GlowSgn = -1}
   if (GlowStr==1) {GlowSgn = +1;interv=5000} else {interv=200}
   divextra.style.filter = "Glow(Color='#"+txtkl[bum]+"',Strength='"+GlowStr.toString()+"')" 
      
   setTimeout('animateExtra()', interv);

}

