function setOpacity(element, alpha) 
{
	var style = element.style;
	if( style.MozOpacity != undefined ) 
  { //Moz and older
		style.MozOpacity = alpha;
	}
	else if( style.filter != undefined ) 
  { //IE
		style.filter = "alpha(opacity=0)";
		element.filters.alpha.opacity = ( alpha * 100 );
	}
	else if( style.opacity != undefined ) 
  { //Opera
		style.opacity = alpha;
	}
}