setInterval("window.status=' CyberIdéia - www.cyberideia.com.br '",10);

var colors = new Array("#999999","#ffffff","#999999","#ffffff","#999999","#ffffff","#999999");
var div;
var loop=0
while(loop<8)
{
loop++;
document.write("<div id='div"+loop+"' style='visibility:hidden; position:absolute; top:0; left:0; color:#ffffff; font-weight:900;'>.</div>");
}

function startStarburst(mx,my)
{
  mx+=window.document.body.scrollLeft;
  my+=window.document.body.scrollTop;
  //move div N
  moveDiv('0','+','3','-','div1',mx,my);
  //move div NE
  moveDiv('2','+','2','-','div2',mx,my);
  //move div E
  moveDiv('3','+','0','+','div3',mx,my);
  //move div SE
  moveDiv('2','+','2','+','div4',mx,my);
  //move div S
  moveDiv('0','+','3','+','div5',mx,my);
  //move div SW
  moveDiv('2','-','2','+','div6',mx,my);
  //move div W
  moveDiv('3','-','0','+','div7',mx,my);
  //move div NW
  moveDiv('2','-','2','-','div8',mx,my);
}

function moveDiv(x_increment,x_operation,y_increment,y_operation,div_id,mouse_x,mouse_y)
{
  if(window.document.all)
  {
    div = eval("window.document.all."+div_id+".style");
  }else if(document.layers)
  {
    div = eval("window.document."+div_id);
  }else{
    return;
  }
  if((mouse_y!='')&&(mouse_x!=''))
  {
    div.top=mouse_y;
    div.left=mouse_x;
  }
  div.visibility='visible';
  if((parseInt(div.top)>window.screen.availHeight-100)||(parseInt(div.left)>window.screen.availWidth-100)||(parseInt(div.left)<10)||(parseInt(div.top)<10))
  {
    div.visibility='hidden';
    return;
  }
  var the_color = colors[Math.floor(Math.random()*colors.length)];
  div.color = the_color;
  div.top = eval("parseInt(div.top) "+y_operation+" "+y_increment);
  div.left = eval("parseInt(div.left) "+x_operation+" "+x_increment);
  var timeout_string = "";
  timeout_string+="moveDiv('";
  timeout_string+=x_increment;
  timeout_string+="','";
  timeout_string+=x_operation;
  timeout_string+="','";
  timeout_string+=y_increment;
  timeout_string+="','";
  timeout_string+=y_operation;
  timeout_string+="','";
  timeout_string+=div_id;
  timeout_string+="','','')";
  setTimeout(timeout_string,5);
}

var repeat=0 //enter 0 to not repeat scrolling after 1 run, othersise, enter 1
var title=document.title
var leng=title.length
var start=1
function titlemove() {
  titl=title.substring(start, leng) + title.substring(0, start)
  document.title=titl
  start++
  if (start==leng+1) {
    start=0
    if (repeat==0)
    return
  }
  setTimeout("titlemove()",140)
}
if (document.title)
titlemove()
