
/**
Class: StyleManager
Author: Duxpoint
Version: 0.1
**/
	function StyleManager()
	{
	}
	StyleManager.prototype = {	
		
		getStyle : function(element, property) 
		{
			if (element.style[property]) 
				return element.style[property];
			if (element.currentStyle) 
				return element.currentStyle[property];
			if (document.defaultView && document.defaultView.getComputedStyle) 
			{
				property = this.transformToMozilla(property);
				var style = document.defaultView.getComputedStyle(element, null)
				return style.getPropertyValue(property)
			}
			
			return null;
		},
		setStyle : function(element, property, value) 
		{
			if (element.style[property]) 
				element.style[property] = value;
			if (element.currentStyle) 
				element.currentStyle[property] = value;
		},
		propertiesIE: ["fontSize","backgroundColor"],
		propertiesMoz: ["font-size","background-color"],
		transformToMozilla: function(target)
		{
			for( i in this.propertiesIE )
			{
				if( this.propertiesIE[i] == target )
					return target.replace(this.propertiesIE[i], this.propertiesMoz[i]);
			}
			return target;
		}
	}