﻿

/* contentLoaded function */
function contentinDivLoaded(responseText, textStatus, XMLHttpRequest)
{
    $(this).fadeIn(500);
}

/* loadContent function */
function loadContentinDiv(url, div)
{
    $(div).hide().load(url, "data", contentinDivLoaded);
/*
    $('#Content').fadeOut(500,
    // Callback function
    function() {
    $(this).load("philosophy.htm", "fake_data", function (responseText, textStatus, XMLHttpRequest) {
    $('#Content').fadeIn(500);
    });
    }
    );
*/
}

/*Load image function */
function loadImage(url)
{
    var tmpIMG = new Image();

    $(tmpIMG).load
    (
        function()
        {
            $(this).hide();
            $('.Loading').empty().append(this);
            $(this).fadeIn('slow');
        }
    ).attr('src', url);
}

function loadImageinDiv(url, div)
{
    var tmpIMG = new Image();

    $(tmpIMG).load
    (
        function()
        {
            $(this).hide();
            $(div).empty().append(this);
            $(this).fadeIn('slow');
        }
    ).attr('src', url);
}
