function amplia(id){
	caminho_imagem = document.getElementById(id).src;
	caminho_imagem = caminho_imagem.replace("thumb_" , "");
	obj = document.getElementById("foto_galeria").src = caminho_imagem;
	legendanovo = document.getElementById(id).alt;
	obj2 = document.getElementById("legenda").innerHTML = legendanovo;
}

function aumentar(){	
	document.getElementById("conteudo_escrito").className="grande";	
}
function diminuir(){	
	document.getElementById("conteudo_escrito").className="pequena";
}
function valida(){
	var erro;
	var tamanho;
	tamanho = document.frm.length;
	erro = 0;
	for(i=0;i<tamanho;i++){
		if(document.frm[i].value==""){
			alert("Campo Obrigatório");
			erro++;
			return false;
		}
	}
	if(erro==0){
		document.frm.submit();
	}
}

function habilitar_menu(){
	document.getElementById("image_secoes").src = "http://www.expressonoturno.com.br/images/menu_secoesa.png";
	document.getElementById("drop").style.visibility="visible";
}
function desabilitar_menu(){
	document.getElementById("image_secoes").src = "http://www.expressonoturno.com.br/images/menu_secoes.png";	
}
function desabilitar_menu_(){
	document.getElementById("image_secoes").src = "http://www.expressonoturno.com.br/images/menu_secoes.png";	
	document.getElementById("drop").style.visibility="hidden";	
}
function popup_noticia(id){
	window.open("?page=popup_noticia&id="+id,"Popup","status=no,width=450,height=450");
}
function imprimir_noticia(id){
	window.open("?page=print_noticia&id="+id,"Popup","status=no,width=450,height=450");
}
function busca(){
	var action;
	if(document.getElementById("expresso").checked){
		action = "?page=busca";
		var w, h, x, y;
		w = 700
		h = 450
		x = (screen.width - w) / 2
		y = ((screen.height - h) / 2) - 40
		
		var WinGoogle = new Object();
		window.open('http://www.expressonoturno.com.br/?page=busca', 'BuscaGoogle', 'width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes')
		
	}
	if(document.getElementById("google").checked){
		var w, h, x, y;
		w = 700
		h = 450
		x = (screen.width - w) / 2
		y = ((screen.height - h) / 2) - 40
		action = "http://www.google.com.br/search";
		var WinGoogle = new Object();
		window.open('http://www.google.com/search', 'BuscaGoogle', 'width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes')
		
		
	}
	document.getElementById("f").action = action;
	document.getElementById("f").submit();
}
function loadGoogle() {
	var w, h, x, y;
	w = 700
	h = 450
	x = (screen.width - w) / 2
	y = ((screen.height - h) / 2) - 40

	var WinGoogle = new Object();
	WinGoogle = window.open('', 'BuscaGoogle', 'width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes')
	return true;
}

