﻿/// <reference path="jquery.js" />

$(document).ready(function() {

    /*
    $.getJSON("Api/GetTwitterUpdates.aspx", null, function(result) {

        var showIndex = 0;

        var displayNextTweet = function() {
            if (result.length == 0)
                return;

            var text = result[showIndex];

            $("#TwitterBox .Tweet")
                .fadeOut(500, function() {
                    $(this)
                        .text(text)
                        .fadeIn(1000);
                });

            showIndex++;

            if (showIndex == result.length)
                showIndex = 0;

            window.setTimeout(function() { displayNextTweet(); }, 10000);
        }

        displayNextTweet();
    });
    */

});