﻿var current = 0
var ns6 = document.getElementById && !document.all
var quote = new Array();
var author = new Array();
var span_Quotes = null;
var span_QuoteName = null;
window.onload = changeItem;

function changeItem() {

    if (span_Quotes == null) { span_Quotes = document.getElementById("span_Quotes"); }
    if (span_QuoteName == null) {span_QuoteName = document.getElementById("span_QuoteName"); }
    span_Quotes.innerHTML = quote[current];
    span_QuoteName.innerHTML = author[current];

    if (current == quote.length - 1) {
        current = 0;
    }
    else {
        current++
    }
    setTimeout("changeItem()", 20000);
}
