﻿/// <reference path="../../js/DateTimeFormat.js" />
/// <reference path="../../js/jquery.cs_twitter.js" />
/// <reference path="../../js/jquery.utils.js" />

function twitterDataFormat(obj) {
    return "<span class='rightsidetext'>" +
                obj.Message +
           "</span>&nbsp;<span class='twittertime'>" +
                "POSTED " + obj.CreationTime.format("mm.dd.yyyy hh:MMtt") +
           "</span>";
}

$(document).ready(function() {
    $("#twitter").twitterCached({ ondatarowbound: twitterDataFormat, count: 2 });
});