/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* coca::wait.js                                                            */
/* 'The DHTML Color Calculator' javascript source                           */
/* Permission to use, copy, and distribute for non-commercial purposes,     */
/* is hereby granted without fee, providing that the above copyright        */ 
/* notice appear in all copies and that both the copyright notice and       */
/* this permission notice appear in supporting documentation.               */
/*                                                                          */
/* This software is provided "as is" without any expressed or implied       */
/* warranty. The author shall not be liable for any damages suffered by     */
/* users of this software. USE AT YOUR OWN RISK.                            */
/*                                                                          */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

// --------------------------------------------------------------------
// WaitObject
function WaitObject(id) {
	this.object = document.all ? document.all[id] :
		document.getElementById ? document.getElementById(id) :
		eval('document.'+id);
	this.doc = document.layers ? this.object.document : document;
	this.css = this.object.style ? this.object.style :
		eval('document.layers.'+id);
	this.show = WaitObject_show;
	return this;
}

function WaitObject_show(v) {
	this.css.visibility = v ? 'visible' : 'hidden';
}


