$.ui.autocomplete.prototype._renderItem = function (ul, item) {
item.label = item.label.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(this.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<span style='font-weight:bold;color:blue;'>$1</span>");
return $("<li></li>")
		.data("item.autocomplete", item)
		.append("<a>" + item.label + "</a>")
		.appendTo(ul);
};

function mostrarDiv(div,enlace) {
	if (document.getElementById(div).style.display=="block") {
		document.getElementById(div).style.display="none";
		enlace.style.backgroundImage ="url(../contenidos/images/intranet/flecha_15_g.png)";
	} else {
		document.getElementById(div).style.display="block";	
		enlace.style.backgroundImage ="url(../contenidos/images/intranet/flecha_15_g2.png)";
	}	
}

