// ------------------------------------------------------------------------------------------------
// AMPLIAR FOTO PARA VISUALIZAÇÃO
function ampliaFoto(caminho){
	//alert(caminho);
	h=window.screen.availHeight-2;
	w=window.screen.availWidth-2;
	var amplia=window.open('foto_ampliada.php?ft='+caminho,'Foto', 'toolbar=30,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=10, left=0, top=0, height='+h+', width='+w+'');
}
// ------------------------------------------------------------------------------------------------


// ------------------------------------------------------------------------------------------------
// FECHAR VISUALIZAÇÃO
function oculta(){
	 document.getElementById('div_ampliar').style.visibility='hidden';
	 document.getElementById('img_ampliar').style.visibility='hidden';	
}
// ------------------------------------------------------------------------------------------------


// ------------------------------------------------------------------------------------------------
// CARREGAR FOTO GRANDE
function carrega_foto_video(arquivo) {
		document.getElementById('img_foto_grande').src="fotos/" + arquivo;
		document.getElementById('dv_video').innerHTML='&nbsp;';
		document.getElementById('dv_video').style.zIndex=2005;
		document.getElementById('dv_video').style.borderWidth='0px';
		document.getElementById('dv_video').style.borderStyle='none';
		document.getElementById('img_foto_grande').style.zIndex=2006;
		document.getElementById('img_foto_grande').style.height="";
		document.getElementById('fotooo').style.height="auto";
		document.getElementById('fotoG').href="fotos/" + arquivo;
		
}
// ------------------------------------------------------------------------------------------------



// ------------------------------------------------------------------------------------------------
// PARA FAZER SEU VOTO
function votar(meu_voto){
	document.getElementById('voto').value = meu_voto;
	document.enquete.submit();
}
// ------------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------------
// FUNÇÃO PARA WINDOW OPEN DO COMENTE SE CASO O USUARIO JA ESTIVER LOGADO
function fazerComentario(url) {
	window.open(url,"poprs",'toolbar=30,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=10, left=350,width=778,height=710');
}
// ------------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------------
// FUNÇÃO PARA WINDOW OPEN DO COMENTE CASO USUARIO NÃO ESTIVER LOGADO
function Comentario(url) {
	window.open(url,"poprs",'toolbar=30,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=10, left=350,width=778,height=710');
}
// ------------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------------
// Denunciar
function Denunciar(url){
	window.open(url,"poprs",'toolbar=30,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=10, left=350,width=778,height=710');
}
// ------------------------------------------------------------------------------------------------


// ------------------------------------------------------------------------------------------------
// caixa d comentarios da area administrativa do clognews
function mostra(id,acao,email,id_comente,email_remetente,tipo_usuario,idremetente,nomeUser,email_remetente) {
	if (acao== true) {
		document.getElementById(id).style.visibility="visible";
		document.getElementById(id).style.display="";
		document.getElementById('email').value=email;
		document.getElementById('id_comentario').value=id_comente;
		document.getElementById('email').value=email_remetente;
		document.getElementById('tipo_usuario').value=tipo_usuario;
		document.getElementById('id_user').value=idremetente;
		document.getElementById('nome').value=nomeUser;
		document.getElementById('email_remetente').value=email_remetente;
		document.getElementById(id).style.top=screen.availHeight/2-200;
		document.getElementById(id).style.left=screen.availWidth/2-150;
		//document.getElementById(id).style.top  =  event.y+10 
		//document.getElementById(id).style.left = event.x-300
		
	} else {
		document.getElementById(id).style.visibility="hidden";
		document.getElementById(id).style.display="none";
	}
}
// ------------------------------------------------------------------------------------------------