context: 	render : function(appendToNode, moduleElement) {		this.beforeRenderEvent.fire();		if (! moduleElement) {			moduleElement = this.element;		}		var me = this;		var appendTo = function(element) {			if (typeof element == "string") {				element = document.getElementById(element);			}						if (element) {				element.appendChild(me.element);				me.appendEvent.fire();			}		};		if (appendToNode) {			appendTo(appendToNode);		} else { // No node was passed in. If the element is not pre-marked up, this fails			if (! YAHOO.util.Dom.inDocument(this.element)) {				YAHOO.log("Render failed. Must specify appendTo node if Module isn't already in the DOM.", "error");				return false;			}		}		// Need to get everything into the DOM if it isn't already				if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) {			// There is a header, but it's not in the DOM yet... need to add it			var firstChild = moduleElement.firstChild;			if (firstChild) { // Insert before first child if exists				moduleElement.insertBefore(this.header, firstChild);			} else { // Append to empty body because there are no children				moduleElement.appendChild(this.header);			}		}		if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) {			// There is a body, but it's not in the DOM yet... need to add it			if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM				moduleElement.insertBefore(this.body, this.footer);			} else { // Append to element because there is no footer				moduleElement.appendChild(this.body);			}		}		if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) {			// There is a footer, but it's not in the DOM yet... need to add it			moduleElement.appendChild(this.footer);		}		this.renderEvent.fire();		return true;	},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/container_core-debug.js/clean/www/resources/yui/container/container_core-debug.js