/*-------------------------------------------------
  RPS RIOS PROJETOS E SISTEMAS
  scripts v.11.cb por Múcio Rodrigues
  W3C certifield
  obrigado por visualizar nosso código
---------------------------------------------------*/
function MostrarModulo(qual){
  if(!qual) qual = "mod-1";
  var modulos = new Array("mod-1", "mod-2", "mod-3", "mod-4", "mod-5", "mod-6", "mod-7", "mod-8", "mod-9", "mod-10");
  for (x in modulos){
    if(document.getElementById(modulos[x])){
      if(modulos[x]!=qual){
        document.getElementById(modulos[x]).style.display = "none";
	  } else {
	  document.getElementById(modulos[x]).style.display = "block";
	  }
    }
  }
}
function Rate(nota){
	if(nota==1){
		document.getElementById("rating").style.backgroundImage = "url(../imagens/el/r1.gif)";
		document.rate.ratev.value = 1;
	} 

	if(nota==2){
		document.getElementById("rating").style.backgroundImage = "url(../imagens/el/r2.gif)";
		document.rate.ratev.value = 2;
	} 

	if(nota==3){
		document.getElementById("rating").style.backgroundImage = "url(../imagens/el/r3.gif)";
		document.rate.ratev.value = 3;
	} 

	if(nota==4) {
		document.getElementById("rating").style.backgroundImage = "url(../imagens/el/r4.gif)";
		document.rate.ratev.value = 4;
	} 
		
	if(nota==5) {
		document.getElementById("rating").style.backgroundImage = "url(../imagens/el/r5.gif)";
		document.rate.ratev.value = 5;
	} 

}

function toggleLayer(whichLayer){
	if (document.getElementById){
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	}else if (document.all){
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	}else if (document.layers){
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}

function setHtmlCont(hypertexto, idObj){
	if(document.getElementById){
		idObj = document.getElementById(idObj);
		idObj.innerHTML = hypertexto;
		return true;		
	}	
}
