//###############################################################################
//##                                                                           ##
//##  (c) Think Big Publications, LLC ("Think Big"), August 2009.              ## 
//##                                                                           ##
//##  Duplication, selling, or transferring of this script is a violation of   ##
//##  the copyright and purchase agreement. Alteration of this script in any   ##
//##  way voids any responsibility Think Big has toward the functioning of     ##
//##  the script. Altering the script in an attempt to unlock other functions  ##
//##  of the program that have not been purchased is forbidden by Think Big    ##
//##  and is a violation of the purchase agreement. By modifying/running this  ##
//##  script, you agree to Think Big's terms and conditions located at         ##
//##  www.thinkbighq.com/software.html.                                        ##
//##                                                                           ##
//##  For support requests, bugs, suggestions or custom development, please    ##
//##  submit a ticket at www.thinkbigpublications.com/support.                 ##
//##                                                                           ##
//###############################################################################
//
// This function appends a function to the body onload event without
// overwriting any existing function. Execution of the added function will
// happen after the full document has been constructed and the DOM is active.

function appendonload(func)
{
  var oldonload = window.onload;
  if (typeof window.onload != 'function') window.onload = func;
  else
  {
    window.onload = function()
    {
      if (oldonload) oldonload();
      func();
    }
  }
}

