var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;

// Typically for IE
if (window.attachEvent)		window.attachEvent("onload",start);
// Usually for NN
else						window.addEventListener("load",start,true);

/*var ar = new Array();
ar[0] = "<I>I was apprehensive about the visit, but the time you spent explaining everything made me feel much better and the veneers look just great</I> - Peter H";
ar[1] = "<I>The extraction was completely painless and extremely quick.. Amazing!</I> - Doug F";
ar[2] = "<I>I just called in to say that the restorations you did are really great - you did a great job Doctor</I> - Vijay B";
ar[3] = "<I>I have felt most comfortable with you doctor, and therefore don't mind traveling this far for my dental work even though I could find a dentist closer to home</I> - Phyllis S";
ar[4] = "<I>I was afraid when I came in but felt absolutely no pain or discomfort</I> - F Ghadialy";
ar[5] = "<I>I had chronic pain in my back tooth for months, I consulted other dentists, but it was your diagnostic skills and advanced X-ray technology that identified the problem and resolved it. I am finally pain-free and happy,</I> Dr. Husseini H";*/


var num = 0;

function start() {
  update();
  setInterval("update()", 10000);
}

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;
  }
}
