/*
 * Copyright (c) 2009, Techtribe B.V.
 * Url: http://www.techtribe.nl
 * Author: Remon de Boer
 *
 * SCHUBERG.events.CommonEvents
 */
function CommonEvents() {
	this.init();
}

CommonEvents.prototype =
{
	//Events
	startApplicationEvent: null,
	viewUpdateEvent: null,

	init: function(){
		this.startApplicationEvent = new YAHOO.util.CustomEvent("startApplicationEvent");
		this.viewUpdateEvent = new YAHOO.util.CustomEvent("viewUpdateEvent");
	},

	//CommonEvents instance
	instance: null
}

CommonEvents.getInstance = function(){
    if(this.instance == null) {
        this.instance = new CommonEvents();
    }
	try{
		return this.instance;
	} finally {
        obj = null;
    }
}
SCHUBERG.events.CommonEvents = CommonEvents;