
/**
 * CSS-Werkzeuge
 * 
 * @author Niels Bobogk <n-bobogk@i-d.de>
 */
(function(Util) {
	Util.Css = {
		/**
		 * bool Zwischenspeicher fuer CSS-aktiv
		 */
		CSS_ENABLED: null,
		
		/**
		 * Prueft, ub im Browser CSS aktiviert ist
		 * 
		 * @return {bool} - true, wenn CSS aktiv, sonst false
		 */
		isEnabled: function() {
			if (null == this.CSS_ENABLED) {
				var cssTestElem = new Element('span');
				cssTestElem.setStyle({
					'position' : 'absolute'
				});	
				$$('body')[0].insert(cssTestElem);
				this.CSS_ENABLED = (cssTestElem.getStyle('position') == 'absolute');
				cssTestElem.remove();
			}
			
			return this.CSS_ENABLED;
		}
	};
})(iD.Util);
