function Get(el) { return document.getElementById(el); }

function GetCSSProperty(el, prop)
{
 if(typeof(el.currentStyle) == 'undefined') return window.getComputedStyle(el, '').getPropertyValue(prop)
 else
  {
	var index = prop.indexOf('-');
	if(index != -1) prop = prop.replace(prop.substr(index, 2), prop.substr(index + 1, 1).toUpperCase());
	return el.currentStyle[prop];
  }
}

function SetOpacity(el, val)
{
 if(typeof(el.filters) == 'undefined') el.style.opacity = val;
 else
  {
	val *= 100;
    var oAlpha = el.filters['DXImageTransform.Microsoft.alpha'] || el.filters.alpha;
    if(oAlpha) oAlpha.opacity = val;
    else el.style.filter += "progid:DXImageTransform.Microsoft.Alpha(opacity=" + val + ")";
  }
}

function GetOpacity(el)
{
 if(typeof(el.filters) == 'undefined') return parseFloat(GetCSSProperty(el, 'opacity'));
 else
  {
	var oAlpha = el.filters['DXImageTransform.Microsoft.alpha'] || el.filters.alpha;
    return (typeof(oAlpha) == 'undefined') ? 1 : oAlpha.opacity / 100;
  }
}
