function trocarImagemGuia(idGuia, numGuia, modo){
	document.getElementById(idGuia).style.backgroundImage = "url("+appRoot+"app/view/img/areaNegGuia" + modo + numGuia +".jpg)";
	numGuia = eval(numGuia);
	switch(numGuia){
	case 1:
		if(modo == "Ativa"){
			document.getElementById(idGuia).style.color = "#FFFFFF";
		}
		else{
			document.getElementById(idGuia).style.color = "#00496E";
		}
		break;
	case 2:
		if(modo == "Ativa"){
			document.getElementById(idGuia).style.color = "#FFFFFF";
		}
		else{
			document.getElementById(idGuia).style.color = "#00496E";
		}
		break;
	case 3:
		if(modo == "Ativa"){
			document.getElementById(idGuia).style.color = "#FFFFFF";
		}
		else{
			document.getElementById(idGuia).style.color = "#00496E";
		}
		break;
	case 4:
		if(modo == "Ativa"){
			document.getElementById(idGuia).style.color = "#FFFFFF";
		}
		else{
			document.getElementById(idGuia).style.color = "#00496E";
		}
		break;
	}
}

function redirecionar(link){
	
	switch(eval(link)){
		case 1: location.href = "../../areadenegocios/geracaodeenergia"; break;
		case 2:	location.href = "../../areadenegocios/distribuicaodeenergia"; break;
		case 3: location.href = "../../areadenegocios/comercializacaodeenergia"; break;
		case 4: location.href = "../../areadenegocios/telecomunicacao"; break;
		case 5: location.href = "../../areadenegocios/telecomunicacao"; break;
		case 6: location.href = "../../areadenegocios/telecomunicacao"; break;
		case 7: location.href = "../../areadenegocios/telecomunicacao"; break;
		case 8: location.href = "../../areadenegocios/telecomunicacao"; break;
	}
}