/*
############################################################################
#
# Part of the BC Naturopathic Association web site code
# Copyright (C) 2006 Damon Harper
# usrbin design + programming - http://usrbin.ca/
#
# This program is governed by the agreed upon license between Damon Harper
# d.b.a. usrbin design + programming, and AMG Media Inc.  This program may
# be modified for internal use but may not be sold or otherwise distributed
# without express written permission from the copyright holder.
#
############################################################################
*/

function please_wait() {
  if($('#please-wait').length) {
    window.setTimeout(function() {
      if(typeof document.body.style.maxHeight==="undefined") { //IE6
        $('body','html').css({height: '100%', width: '100%'});
        $('html').css('overflow', 'hidden');
        $('body').append('<iframe id="blackout-iefix"></iframe>');
      }
      $('body').append('<div id="blackout-mask"></div>');
      $('#please-wait').css({display: 'block'});
    }, 1500);
  }
  return true;
}

$(document).ready(function() {
  toggle_blocks();
  CKEDITOR.replace('ckeditor', {
    customConfig: '/code/admin/js/ckeditor_config.js'
  });
});
