var quotes_element = null;
var quotes_current = 0;

function changeQuote() {
    var quote_html = quotes_data[quotes_current]
    quotes_element.innerHTML = quote_html;  
    quotes_current ++;
    if (quotes_current >= quotes_data.length) { quotes_current = 0 }
    quoteint = setTimeout('changeQuote()',10000);
}

function initQuotes() {
    quotes_element = document.getElementById('quotes-content');
    changeQuote();
}