/**
 * @author acabezas
 * Sitio-i Core Library
 */
if (typeof(SC) == "undefined") { SC = {}; }

SC.constant = {};
SC.globals = {};
SC.locals = {};
SC.utils = {};
SC.container = {};

SC.constant = {
	kinship: {
		PARENT: "parent",
		SIBLING: "sibling",
		SIBLING_LEFT: "sibling_left",
		SIBLING_RIGHT: "sibling_right",
		CHILD: "child"
	}	
};

SC.globals.config = { 
	ajax: { 
		parameters: ''
	}
};

SC.globals.templates = {
	loading: '<div style="background-color:yellow;color:black;padding:6px;"><b>Cargando...<b><div>'
};

SC.utils.Request = Class.create({
	defaults: function(){
		this._request = null;
		this._loaded = false;
	},
	initialize: function(xhr_function){
		this._request = xhr_function;
	},
	start: function(){
		if (this._request){
			this._request();
		}
	},
	loaded: function(){
		this._loaded = true;
	}
});