var form_system;

function function_exists(function_name) {
	if(typeof function_name == 'string') {
		return (typeof this.window[function_name] == 'function');
	} else {
		return (function_name instanceof Function);
	}
}

$(document).ready(function() {
	if(function_exists('CreaForm')) {
		form_system = new CreaForm();
		form_system.setDefaultValues();
		form_system.addComponents(form_system);
		form_system.installEvents();
	}
});
