function loadColaboradores(tipo) {
	var _idioma = idioma;
  new Ajax.Updater('entryContent', 'colaboradores_loader.php', {method: 'post', parameters : { tC:tipo, lang:_idioma }});
}

function loadColaborador(id,tipo) {
	var _idioma = idioma;
  new Ajax.Updater('entryContent', 'colaborador_loader.php', {method: 'post', parameters : { c:id, lang:_idioma, tC:tipo }});
}

function showHide(_show,_hide) {
	$(_show).style.display = "inline";
	$(_hide).style.display = "none";
}

function changeIdioma(lang) {
	document.location = changeWindowLanguaje(document.location.href, lang);
}

function changeWindowLanguaje(url, idioma) {
	str = url;
	
	re = /\?idioma=(CA|ES|EN)\&/g; 
	str = str.replace(re,"?");

	re = /(\?i|\&i)dioma=(CA|ES|EN)/g;
	str = str.replace(re, "");

	if (str.indexOf('?')>0) 
		str = str + "&idioma=" + idioma;
	else
		str = str + "?idioma=" + idioma;
	return str;
}

