var IMG_INTERVAL = 0.25;
var cur_slog = 1;

function animateStart(page){
  page ?  showPage() : setInterval('rotateSlogan()', IMG_INTERVAL*1000);
}
function showPage(){
  $('bannerimage').show();
  showLine();
}
function rotateSlogan(){

  if (!$('slogantext' + cur_slog))
    return;
  
  Effect.Appear('slogantext' + cur_slog, {duration:IMG_INTERVAL});
  cur_slog++;
  if (cur_slog==9){
    showLine();
  }
}
function showLine(){
    new Effect.Move('lineimg', {x:800, y:0, mode:'relative', transition: Effect.Transitions.sinoidal});
    Effect.Appear('lineimg', {duration:IMG_INTERVAL*8});
}