function fixForms(){
	var oFormsToFix = ub.DOM.getChilds(ub.DOM.$('detailed-search'),'form');
	for(var i=0, oForm; oForm = oFormsToFix[i]; i++){
		addEvent(oForm, 'focus', handleTipo);
	}
}
function handleTipo(){
	var target = addEvent.getTarget(e);
	if (!target) return false;
	target = ub.DOM.ascend(target,'form');
	if (!target) return false;
	ub.sActiveSearch = oForm.id.replace('det-','');
}

function init(){
	if (arguments.callee.done) return;
	arguments.callee.done = true;
	oBody = document.body;

	ub.setDetailedLinkHandlers();

	/*@cc_on @*/
	/*@if (@_win32)
		fixIeMinWidth();
		addEvent(window,"resize",fixIeMinWidth);
	/*@end @*/

	fixForms();
}

setLoad();
