function cambiarClase(strTab,intLim){
	var strRaizTab='tc_tab_';
	var strRaizCont='tc_content_';
	var strClaseVisible='tc_visible';
	var strClaseOculta='tc_oculta';
	var strClsSufVisible='-on tab tab-on';
	var strClsSufOculta=' tab';
	arrIds = new Array;
	for(i=1; i<=intLim; i++) {
		arrIds[i] = strRaizTab+i;
	}
	for(i=1; i<=intLim; i++) {
		if (arrIds[i] == strTab) {
			document.getElementById(strRaizTab+i).className = strRaizTab + i + strClsSufVisible;//tc_tab_1-on tab tab-on
			document.getElementById(strRaizCont+i).className = strClaseVisible;//tc_visible
		} else {
			document.getElementById(strRaizTab+i).className = strRaizTab + i + strClsSufOculta;
			document.getElementById(strRaizCont+i).className = strClaseOculta;
		}
	}
	setBubbleOSS(document.getElementById(strTab));
	document.getElementById(strTab).scrollIntoView();
}
function corregirSRCs(){
	for(i=0;i<document.images.length;i++){
		strSrcAbs = document.images[i].src;
		strSrcRel = strSrcAbs.substring(strSrcAbs.indexOf('images'), strSrcAbs.length);
		document.images[i].src = strImageRoot+strSrcRel;
	}
}
function corregirHREFs(){
	for(i=0;i<document.links.length;i++){
		strSrcAbs = document.links[i].href;
		strSrcRel = strSrcAbs.substring(strSrcAbs.indexOf('./')+1, strSrcAbs.length);
//		alert(strSrcRel);
//		document.links[i].href = strImageRoot+strSrcRel;
//		document.links[i].href = strSrcRel;
	}
//	alert(strImageRoot);
}
function setBubbleOSS(elem){
	try{
		if(!(elem.style.display=='none')){
				$('#xp').bubbletip($('#tip_xp'), {deltaDirection: 'left',animationDuration: 100,offsetLeft: -20});
//				alert('XP listo');
				$('#vista').bubbletip($('#tip_vista'), {deltaDirection: 'left',animationDuration: 100,offsetLeft: -20});
//				alert('vista listo');
				$('#seven').bubbletip($('#tip_seven'), {deltaDirection: 'left',animationDuration: 100,offsetLeft: -20});
//				alert('seven listo');
		}
	}catch(e){
//			alert('Elemento NO hallado\n:'+elem.id);
	}
}

