/*
 *
 * Copyright (c) 2008 George Bonnes (george@olm1.com)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Version 1.0.1
 *
 * $LastChangedDate$
 * $Rev$
 *
 */

$(document).ready(function() {
    // initialize our loading div to listen for $.ajax broadcasts
    $("#loading").bind("ajaxSend", function(){
        $("#loading").centerElement()
                     .vCenterElement()
                     .jqmShow();
     }).bind("ajaxComplete", function(){
         if (ajax_error == 0) {
            $("#loading").jqmHide();
         }
     });            
     
     $("#loading").jqm({overlay: 30, trigger: false});
     
     $('.hide_on_load').css('display', 'none');
     $('.show_on_load').css('display', 'block');
     
    return false;
    
});  // end $(document).ready()





