function cambiarEstiloLi(className,clase,index){
	var cells = document.getElementsByTagName("li"); 
	for (var i = 0; i < cells.length; i++) { 
		if ( cells[i].getAttribute("title") == index) { 
			cells[i].setAttribute("id","");
			// grab the data 
		}
	}
	//className.getAttribute("id");
	className.setAttribute("id",clase+'Sel');

} // cambiarEstiloLi


////// HOLMES 17092004
function mostrarDivTab1(divName,id){
	var num=0;
	var divVisible=0;
	var t1=0;
	for(var t=1;t1<=0;t++){
		if(document.getElementById(String(divName)+'-'+String(t))){
			if(document.getElementById(String(divName)+'-'+String(t)).style.display=='')
				document.getElementById(String(divName)+'-'+String(t)).style.display='none';
		}
		else
			t1=1;
	}
	if(document.getElementById(String(divName)+'-Hidden')){
		if(document.getElementById(String(divName)+'-'+String(id))) document.getElementById(String(divName)+'-Hidden').innerHTML=document.getElementById(String(divName)+'-'+String(id)).innerHTML;
	}
}



  /**
  * Genera un iframe para mostrar un contenido especifico, recibe como parametros en id del objeto
  * que lo contiene (puede ser un td o div), la comunidad para ubicar la hoja de estilos y el contenido
  */
  function iframePreview(idParent, comunidad, contenido){
	  
	  var html="<html>\n";
	  html+="<head>\n";
	  html+="<style>\n";
	  html+="html,body { border: 0px; background-color: #FFFFFF;}\n";
	  html+="</style>\n";
	  html+="<style type='text/css'>@import url(disenno/"+comunidad+"/estilos/coomeva.css);</style>";
	  html+="</head>\n";
	  html+="<body>\n";
	  html+=contenido;
	  html+="</body>\n";
	  html+="</html>";
      
	  var iframe = document.createElement("iframe");
	  iframe.style.width="100%";
	  iframe.style.height="250px";

	  // Si el contenido es vacio muestra algo pequenno
	  if(trim(contenido)=="" || trim(contenido)=="<br />") iframe.style.height="30px";
      
	  var textarea = getElement(idParent);
	  textarea.appendChild(iframe);
      
	  var doc = iframe.contentWindow.document;
	  doc.open();
	  doc.write(html);
	  doc.close();
  } // iframePreview



function desplegarTemas(){
	divTemasObj=getElement('divTemas');
	linkDespObj=getElement('linkDesp');
	
	if(divTemasObj.style.display=='none'){
		divTemasObj.style.display='';
		linkDespObj.innerHTML='- Esconder temas';
	} // if
	else{
		divTemasObj.style.display='none';
		linkDespObj.innerHTML='+ Desplegar temas';
	}
	
	return false;
} // desplegarTemas