/*
 * hXUL - XUL Enhanced Web Interfaces
 * 
 */
 
if (typeof(hXUL) == "undefined") {
	hXUL = {};
}
hXUL.NAME = "hXUL";
hXUL.VERSION = "0.1.alpha";
hXUL.__repr__ = function () {
	return "[" + this.NAME + " " + this.VERSION + "]";
};
hXUL.toString = function () {
	return this.__repr__();
};

/**
  * Single-hierarchy inheritance (class emulation)
  * @see    http://www.itsalleasy.com/2006/02/05/prototype-chain/
  *         http://www.itsalleasy.com/2006/02/24/classjs-third-time-is-the-charm/
  */
hXUL.Class = {};
hXUL.Class.extend = function(subClass, superconstructor) {
	var inlineSuper = function(){};
	inlineSuper.prototype = superconstructor.prototype;
	subClass.prototype = new inlineSuper();
	subClass.prototype.constructor = subClass;
	subClass.prototype.superconstructor = superconstructor;
	subClass.prototype.supertype = superconstructor.prototype;
};

hXUL.hasSupportForXUL = function() {
	if(hXUL.disableXULRendering == true)
		return false;
	if(navigator.userAgent && navigator.userAgent.indexOf("Gecko/") != -1) 
			return true;
		else
			return false;	
}


hXUL.AssetManager = {};
