
/*
 * Copyright (C) 2010/2011 Im-At-Home BV
 * All Rights Reserved
 * No copying, duplication or replication of code permitted without
 * express permission of Im-At-Home BV
 * 
 */

App.WorkFlow = {
		
	hasInit : false,
	id_user : null,
	id_skill : null,
	defaultText : '',
	arrId : [],
		
	__preinit : function() {
		
		if (this.hasInit) return;		
		this.hasInit = true;		
						
		$('*').bind('do-dialog', function(object, data) { App.WorkFlow.__triggerDialog(data); });
		
	},
		
	__triggerDialog : function(data) {
				
		switch(data.url) {
			
			case 'enrollbeta': {
				App.UI.DialogManager.createDialog(null, '/dialogs/enrollbeta', { 'width':870, 'height':600 });				
				break;
			}
				
		}
		
	}
	
};

$(document).ready(function() {
	
	App.WorkFlow.__preinit();
			
});
