TT.widget.busyWindow = {
	
	/**
   * @description Handles showing and hiding a "busy loading" window
   * @method init
   * @public
   * @static
   * @return {void} Returns nothing
   */
	init: function () {
		// Initialize the temporary Panel to display while waiting for external content to load 
		oBusy = new YAHOO.widget.Panel("busy_",   
        { width:"240px",
          fixedcenter:true,
          close:false,
          draggable:false,
          zindex:4,
          modal:true,
          visible:false,
          maskBgColor: 'red'
        }  
      );
      
		oBusy.setHeader("Loading, please wait..."); 
		oBusy.setBody('<img src="' + TT.path + 'lib/images/rel_interstitial_loading.gif" />'); 
		oBusy.render(document.body);
	},
	
	/**
   * @description Shows the window
   * @method show
   * @public
   * @static
   * @param {string} msg	Message to show in window, defaults to 'Loading, please wait...'
   * @return {void} Returns nothing
   */
	show: function (msg) {
		if ( !msg ) { var msg = 'Loading, please wait...'; }
		
		oBusy.setHeader(msg);
		oBusy.show();
	},
	
	/**
   * @description Hides the window
   * @method hide
   * @public
   * @static
   * @return {void} Returns nothing
   */
	hide: function () {
		oBusy.hide();
	}
	
}
