//status bar message scroller

function scrollmessage(count) 
{
  var m1  = "AGSEAN meets every first Friday of the month at Celtic Club, 48 Ord Street, West Perth ";
  var m2  = "..... and third WEDNESDAY of the month at Leederville TAFE Seminar Room, corner of Oxford and Richmond Streets, Leederville ";
  var m3  = "..... Excellent opportunities for networking and meeting recruiters ";
  var m4  = "..... Be first to find out about jobs and discount courses!!! ";
  var msg=m1+m2+m3+m4;
  var out = " ";
  var c = 1;

  if (count > 100) 
  {
    count--;
    cmd="scrollmessage("+seed+")";
    timerTwo=window.setTimeout(cmd,100);
  }
  else if (count <= 100 && count > 0) 
  {
    for (c=0 ; c < count ; c++) 
    {
      out+=" ";
    }
    
    out+=msg;
    count--;
    window.status=out;
    cmd="scrollmessage("+count+")";
    timerTwo=window.setTimeout(cmd,100);
  }
  else if (count <= 0) 
  {
    if (-count < msg.length) 
    {
      out+=msg.substring(-count,msg.length);
      count--;
      window.status=out;
      cmd="scrollmessage("+count+")";
      timerTwo=window.setTimeout(cmd,100);
    }
    else 
    {
      window.status=" ";
      timerTwo=window.setTimeout("scrollmessage(100)",75);
    }
  }
}
