/*
 * Copyright ©2001-2004 Teximus Technologies, Inc. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Teximus Technologies, Inc. (Teximus).  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Teximus.
 *
 * Teximus MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
 * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
 * OR NON-INFRINGEMENT. Teximus SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 *
 */

function GlobalToggleClosed(id,img,obj,twister) {
	obj = getElement('Child'+id);
	img = getElement('img'+id);
	// Étrangeté de IE5: il faut parfois faire
	// l'assignation deux fois !
	if (obj.style.display == "block") {
		obj.style.display = "none";
		img.src = "img/"+twister+"Closed.gif";
		img.src = "img/"+twister+"Closed.gif";
	} else {
		img.src = "img/"+twister+"Open.gif";
		img.src = "img/"+twister+"Open.gif";
		obj.style.display = "block";
	}

	/* cas particulier si on se trouve dans l'outline qui bouge */
	if (getElement('divOverflowOutline')) {
		checkSize();
		checkSize2();
	}
}

function GlobalToggleOpen(id,img,obj,twister) {
	obj = getElement('Child'+id);
	img = getElement('img'+id);
	// Étrangeté de IE5: il faut parfois faire
	// l'assignation deux fois !
	if (obj.style.display == "none") {
		img.src = "img/"+twister+"Open.gif";
		img.src = "img/"+twister+"Open.gif";
		obj.style.display = "block";
	} else {
		obj.style.display = "none";
		img.src = "img/"+twister+"Closed.gif";
		img.src = "img/"+twister+"Closed.gif";
	}

	/* cas particulier si on se trouve dans l'outline qui bouge */
	if (getElement('divOverflowOutline')) {
		checkSize();
		checkSize2();
	}
}

