var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;

onload = start;

var ar = new Array();
ar[0] = "<STRONG>Our Services:</STRONG> <A HREF='services.php'> Skilled Nursing Care</A>";
ar[1] = "<STRONG>Our Services:</STRONG> <A HREF='services.php'> Private Duty</A>";
ar[2] = "<STRONG>Our Services:</STRONG> <A HREF='services.php'> Companion Services</A>";
ar[3] = "<STRONG>Our Services:</STRONG> <A HREF='services.php'> Home Care Services</A>";
ar[4] = "<STRONG>Home Care Programs:</STRONG> <A HREF='services.php'> Private Pay</A>";
ar[5] = "<STRONG>Home Care Programs:</STRONG> <A HREF='services.php'> Major Insurance Plans</A>";
ar[6] = "<STRONG>Home Care Programs:</STRONG> <A HREF='services.php'> Passport</A>";
ar[7] = "<STRONG>Home Care Programs:</STRONG> <A HREF='services.php'> Waiver</A>";
ar[8] = "<STRONG>Home Care Programs:</STRONG> <A HREF='services.php'> Medicare</A>";
ar[9] = "<STRONG>Home Care Programs:</STRONG> <A HREF='services.php'> Medicaid</A>";
ar[10] = "<STRONG>Healthcare Staffing:</STRONG> <A HREF='staffing.php'> Healthcare Staffing</A>";
ar[11] = "<STRONG>Contact Us:</STRONG> <A HREF='contact.php'> 614.839.4580</A>";
ar[12] = "<STRONG>24X7 Service:</STRONG> <A HREF='services.php'> Ready to serve your needs</A>";
var num = 0;

function start() {
  setInterval("update()", 2000);
}

function update() {
  display("banner", ar[num]);
  num++;
  if (num == ar.length) num = 0;
}

function display(id, str) {
  if (NS4) {
    with (document[id].document) {
      open();
      write(str);
      close();
    }
  } else {
    document.all[id].innerHTML = str;
  }
}

