﻿/// <reference path="jquery-1.3.2-vsdoc2.js" />



$(document).ready(function() {
    //$("#container").hide();
    $("#ajax-loading").hide();
    $("#devStickyNote").show().simpletip({
        persistent: true,
        focus: true,
        activeClass: 'devStickyActive',
        onBeforeShow: function() {
            this.load('changelog.htm?_=' + (new Date()).getTime());

        },
        onShow: function() {
            $("#devStickyNote .tooltip").css({ opacity: 1.0 });
        }
    }).css({ opacity: 0.8 });

    //var api = $("#devStickyNote").eq(0).simpletip();
    //api.load('changelog.htm');

    $().ajaxStart(function() {

    });
    $().ajaxStop(function() {

    });
    $().ajaxSuccess(function() {
    });

    $().ajaxError(function(xhr, status, err) {

        $.address.value('PageNotFound.aspx');
        //console.log("ajax error");
    });
    function ajaxStart() {
        $("#content").fadeOut("slow");
        showLoading();
        //console.log("ajax start");
    }
    function ajaxStop() {
        hideLoading();
        $("#content").stop(true, true).fadeIn("slow");
        $("#container").show();
    }
    function showLoading() {
        //$("#ajax-loading").show();
    }
    function hideLoading() {
        //$("#ajax-loading").fadeOut("slow");
    }
    function ajaxFinish(responseText, textStatus, XMLHttpRequest) {
        //console.log("ajax finish");

        //alert("Successfully loaded...");
    }
    
});
