  AE_SetInnerHTML = function (element, str) { 
  	if (typeof(element.innerHTML) != 'undefined') {
  		element.innerHTML = str; 
  	}
  };
   
  AE_GetElementById = function (id, windowRef){ 
  	if (!windowRef) {
  		windowRef = window; 
  	}
  	return windowRef.document.getElementById(id); 
  };//close AE_GetElementById()

  function AE_CSSNotSupported() {}
  
  function AE_CSSNotSupportStringValue(propname) { xbDEBUG.dump(propname + ' is not supported in this browser'); return '';};
  
  function AE_CSS(obj, win, position)
  {
  	if (typeof(obj) == 'object' && typeof(obj.style) != 'undefined') 
  		this.styleObj = obj.style;
  	this.object = obj;
  	this.window = win ? win : window;
  }
  
  AE_CSS.prototype.styleObj = null;
  AE_CSS.prototype.object = null;
  
// AE_CSS.getEffectiveValue()
// note that AE_CSS's constructor uses the currentStyle object for IE5+ 
// and that Opera's style object contains computed values already.
// Netscape Navigator's layer object also contains the computed values as well.
// Note that IE4 will not return the computed values.
  
  function AE_CSSGetValue(propname)
  {
  	var value = null;
  	if (this.window.document.defaultView && this.window.document.defaultView.getComputedStyle)
  	{
		// W3
		// Note that propname is the name of the property in the CSS Style Object.
		// However the W3 method getPropertyValue takes the actual property name from the CSS Style rule,
		// i.e., propname is 'backgroundColor' but getPropertyValue expects 'background-color'.
  
  		var capIndex;
  		var cappropname = propname;
  
  		while ( (capIndex = cappropname.search(/[A-Z]/)) != -1)
  		{
  			if (capIndex != -1)
  			{
  				cappropname = cappropname.substring(0, capIndex) + '-' + cappropname.substring(capIndex, capIndex+1).toLowerCase() + cappropname.substr(capIndex+1);
  			}
  		}
  
  		value = this.window.document.defaultView.getComputedStyle(this.object, '').getPropertyValue(cappropname);
  
		// xxxHack for Gecko:
  		if (!value && this.styleObj[propname])
  		{
  			value = this.styleObj[propname];
  		}
  	}
  	else if (typeof(this.styleObj[propname]) == 'undefined') 
  	{
  		value = AE_CSSNotSupportStringValue(propname);
  	}
  	else if (typeof(this.object.currentStyle) != 'undefined')
  	{
  		// IE5+
  		value = this.object.currentStyle[propname];
  		if (!value)
  		{
  			value = this.styleObj[propname];
  		}
  	}
  	else
  	{
  		// IE4+, Opera, NN4
  		value = this.styleObj[propname];
  	}
  
  	return value;
  }
  
  // AE_CSS.getBackgroundColor()
  
  function AE_CSSGetbgColor()
  {
  	return this.getEffectiveValue('backgroundColor');
  }
  
  // AE_CSS.setBackgroundColor()
  
  function AE_CSSSetbgColor(color)
  {
  	this.styleObj.backgroundColor = color;
  }
  
  AE_CSS.prototype.getEffectiveValue  = AE_CSSGetValue;
  AE_CSS.prototype.getBackgroundColor = AE_CSSGetbgColor;
  AE_CSS.prototype.setBackgroundColor = AE_CSSSetbgColor;
  	
  // close base Utils_ALL file
  
//-->
