// JavaScript Document
$(document).ready(function() {
     $(document).ajaxError(function(event, XMLHttpRequest, ajaxOptions, thrownError) {
            // this is just here to debug with, I guess we don't care if we update the dinnercount
            // It will get updated on the next page request.
            // alert(thrownError);
    });

     $(".buttons").mouseenter(function() {
         $(this).css("background-position", "bottom");
     }).mouseleave(function() {
         $(this).css("background-position", "top");
     });

    $("ul#ticker").show().liScroll({ travelocity: 0.09 });

     $.post("/Home.aspx/GetDinnerCount", null, function(data) {
         $("#dinnerCount").html(data.Count);
         $("#familyCount").html(data.Users);
         $("#ticker").width(2000);
     }, "json");

    $(document).everyTime(10000, function(timer_args) {
        $.post("/Home.aspx/GetDinnerCount", null, function(data) {
            $("#dinnerCount").html(data.Count);
            $("#familyCount").html(data.Users);
            $("#ticker").width(2000);
        }, "json");
    });

});


$(document).ready(function(){

	
	
});





