function fVotar(URL,strURLRedir){
	if (bolLogado){
		document.location=URL
	} else {
		document.location = strDirInstitucional + '/login.asp?msg=Você precisa estar logado para Votar&URLRedir=' + strURLRedir
	}
}
function fFavorito(strURLRedir){
	if (bolLogado){
		ajaxGet('jogos_FavoritoAjax.asp?Acao=FAVORITO&idJogo=' + idJogo, document.getElementById('favorito'), true)
	} else {
		document.location = strDirInstitucional + '/login.asp?msg=Você precisa estar logado para adicionar como Favorito&URLRedir=' + strURLRedir
	}
}	
function fNotFavorito(){
	ajaxGet('jogos_FavoritoAjax.asp?Acao=NOTFAVORITO&idJogo=' + idJogo, document.getElementById('favorito'), true);	
}
function fComentario(strURLRedir){
	if (bolLogado){
		ajaxGet('ajaxComentarioPergunta.asp?idJogo=' + idJogo, document.getElementById('ComentarioForm'), true)
	} else {
		document.location = strDirInstitucional + '/login.asp?msg=Você precisa estar logado para fazer um comentário&URLRedir=' + strURLRedir
	}	
}

function fResponder(idComentario,strURLRedir){
	if (bolLogado){
		ajaxGet('ajaxComentarioPergunta.asp?idJogo=' + idJogo + '&idComentario=' + idComentario, document.getElementById('responder' + idComentario), true)
	} else {
		document.location = strDirInstitucional + '/login.asp?msg=Você precisa estar logado para fazer um comentário&URLRedir=' + strURLRedir
	}	
}

function fRespostaVer(idComentario){
	ajaxGet('ajaxComentarioResposta.asp?idComentario=' + idComentario, document.getElementById('respostaLoop' + idComentario), true)
}

function fComPontuacao(strAcao,idComentario,strURLRedir){
	if (bolLogado){
		ajaxGet('ajaxComentarioPonto.asp?strAcao='+ strAcao +'&idComentario='+ idComentario, document.getElementById('ponto'+idComentario), true)
	} else {
		document.location = strDirInstitucional + '/login.asp?msg=Você precisa estar logado para Interagir&URLRedir=' + strURLRedir
	}	
}

function fClickMenu(idMenu,strURL){
	fAba(document.getElementById('mnComentario'));
	fAba(document.getElementById('mnUsuario'));	
	fAba(document.getElementById('mnUsuariosFavorito'));
	//fAba(document.getElementById('mnPost'));
	document.getElementById(idMenu).className = "abaSel";
	ajaxGet(strURL, document.getElementById('boxBaixo'), true);
}
function fAba(obj){
	obj.className = "aba";
}

function fComentarioVer(id){
	document.getElementById('comentarioOff' + id).style.display = 'none';
	document.getElementById('comentarioOn' + id).style.display = '';
}
function fShow(obj)
{
	obj = window.document.getElementById(obj);
	obj.style.display = '';
}
function fHide(obj)
{
	obj = window.document.getElementById(obj);
	obj.style.display = 'none';	
}
function fShowHide(ObjImg,srcVisivel,srcEscondido,strObjTo){
	var ObjTo = document.getElementById(strObjTo);
	
	if (ObjTo.style.display == 'none'){
		ObjTo.style.display = '';
		ObjImg.src=srcVisivel;
	} else {
		ObjTo.style.display = 'none';
		ObjImg.src=srcEscondido;
	}
}