$.fn.image = function(src, f){
   return this.each(function(){
     var i = new Image();
     i.src = src;
     i.onload = f;
     //this.appendChild(i);
     this.insertBefore(i, this.firstChild);
   });
}

$(document).ready(function()
{
    //$('#home').hide();
    $('#content').load('content/home.html');
    //$('#container-1').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });

    //TOP MENU
    $('a.remotetop').remote('#content', function() {
       $('a.remotetop').show("slow");
       $(this).hide("slow");

       if (window.console && window.console.info) {
         console.info('content loaded');
       }
     });
     
    $.ajaxHistory.initialize();

//END DOCUMENT FUNCTION   
});
