//*********************************************************************

//	Application Class

//*********************************************************************

// Set up the Namespace for the Application
YAHOO.namespace("cb");

// Create the Application Class
YAHOO.cb.Application = function() {
	this.writing = null;
	this.logon = null;
	this.menu = null;
	this.youTubeManager = null;
	this.overlayManager = null;
	this.imageViewerManager = null;
	this.facesMusic = null;

	YAHOO.util.Event.addListener(window, "load", this.init, this, true);
};

YAHOO.cb.Application.prototype.writing;
YAHOO.cb.Application.prototype.logon;
YAHOO.cb.Application.prototype.menu;
YAHOO.cb.Application.prototype.youTubeManager;
YAHOO.cb.Application.prototype.overlayManager;
YAHOO.cb.Application.prototype.imageViewerManager;
YAHOO.cb.Application.prototype.facesMusic;





//*********************************************************************

//	Init

//*********************************************************************
YAHOO.cb.Application.prototype.init = function( event ) {
	YAHOO.util.Event.removeListener(window, "load", this.init);
	
	// The document must be loaded before this routine is called
	// ::TODO:: Add Check
	
	// Load UP All the Junk
	this.menu = new YAHOO.cb.Menu(this);
	this.logon = new YAHOO.cb.Logon();
	this.overlayManager = new YAHOO.widget.OverlayManager();
	this.writing = new YAHOO.cb.Writing(this.overlayManager);
	this.youTubeManager = new YAHOO.cb.YouTubeManager(this.overlayManager);
	this.imageViewerManager = new YAHOO.cb.ImageViewerManager(this.overlayManager);
	this.facesMusic = new YAHOO.cb.FacesMusic(this.overlayManager);

}
