function UX_createElement(el,cl,at){
	var rtn = document.createElement(el);
	if(cl){
		rtn.className = cl;
	}
	if(at){
		for(var i in at){
			rtn.setAttribute(i,at[i]);
		}
	}
	return rtn;
}
function UX_documentEvent(typ,fu,arr){
	if(typeof window.addEventListener != "undefined"){
		window.addEventListener(typ,fu,false);
	}else if(typeof document.addEventListener != "undefined"){
		document.addEventListener(typ,fu,false);
	}else if(typeof document.attachEvent != "undefined"){
		document.attachEvent("on"+typ,fu);
		window.attachEvent("on"+typ,fu);					
	}else{
		if(typeof window["on"+typ] == "function"){
			var _o = window["on"+typ];
			window["on"+typ] = function(){
				_o();
				fu();
			};
		}else{
			try{
				window["on"+typ] = fu;
			}catch(err){
				printerr("AB.Events.documentEvent Error - Could not attach an event to the document.  Browser or event incompatibility.");
			}
		}
	}
}
function processIntelevance(d){				
	if(typeof d.gender != "undefined"){					
		if(typeof d.gender.male != "undefined" && typeof d.gender.female != "undefined"){						
			var v = d.gender.male - d.gender.female;
			var s = (v>0?"m":(v<0?"f":"n"));
			UX.transmitConversion("gender",UX.parentMboxName,false,null,"sex=" + s); 
		}
	}				
}
UX_documentEvent("load",new Function("getIntelevance()"));