// JavaScript Document
function CrossBrowse() {
	this.ObjEvento = null;
	this.ObjOrigem = null
}

var CrossBrowse = new CrossBrowse();

CrossBrowse.addEventLis = function(obj, evType, fn){
    if (obj.addEventListener)
        obj.addEventListener(evType, fn, true);
    if (obj.attachEvent)
        obj.attachEvent("on"+evType, fn);
}

CrossBrowse.useEvent = function(e) {
	if (typeof(e)=='undefined'){var e=window.event;}
	this.ObjEvento = e;
	source=e.target?e.target:e.srcElement;
	if(source.nodeType == 3)source = source.parentNode;
	this.ObjOrigem = source;
}

function alphaFX( obj ) {
	
	obj.getAlpha = function() {
		var aux = 0;
		if( this.filters ) {
			return parseFloat( this.filters.alpha.opacity );
		} else {
			aux = style.getPropertyValue("-moz-opacity"); 
			aux = parseFloat( aux ) * 100;
			return aux;
		}
	}
	
	obj.setAlpha = function( valor ) {
		if( this.filters ) {
			this.filters.opacity = valor;
		} else {
			aux = parseFloat( valor ) / 100;
			this.style.setProperty("-moz-opacity",aux, null); 
		}
	}
}


