// JavaScript Document

//Obtiene el valor del grupo seleccionado
function getValueGrupos(){
		try{
			var sGrupo = document.getElementById("idGrupos").value;
			if(navigator.appName == "Netscape"){
				var sNombre ="../"+sGrupo+"/"+sGrupo+"Ficha.htm";
				window.open(sNombre,'principal');
			}else{
				if (navigator.appName.indexOf("Explorer") != -1) {
					var sNombre ="../"+sGrupo+"/"+sGrupo+"Ficha.htm";
					window.open(sNombre,'principal');
				}
			}
		}catch(err){
			alert(err.message);
		}
	}	
	
   function ActiveCell(sDiv){
		var oDiv = document.getElementById(sDiv);
		oDiv.style.backgroundColor ="#FFCCFF";
		oDiv.style.color ="#000066";
	}
	
	function ResetCell(sDiv){
		var oDiv = document.getElementById(sDiv);
		oDiv.style.backgroundColor ="#D792C1";
		oDiv.style.color ="#0000FF";
	}
	function ChangeFondoPage(sEstilo){
		switch(sEstilo){
			case 'rock':
				window.parent.document.getElementById('Principal').style.backgroundImage = "url(Iconos/ladrillo.jpg)"; 
  				break;   
			case 'punk':
				window.parent.document.getElementById('Principal').style.backgroundImage = "url(Iconos/ladrillopunk.jpg)"; 
  				break;    
			case 'mestizaje':
				window.parent.document.getElementById('Principal').style.backgroundImage = "url(Iconos/ladrillomestizaje.jpg)"; 
  				break;  
			case 'metal':
				window.parent.document.getElementById('Principal').style.backgroundImage = "url(Iconos/ladrillometal.jpg)"; 
  				break;  
			case 'varios':
				window.parent.document.getElementById('Principal').style.backgroundImage = "url(Iconos/ladrillovarios.jpg)"; 
  				break;  
		}
	}	
	