$(document).ready(function(){
	$('#main-menu ul li.off a img').mouseover(function(){
		var estadoAtual = $(this).attr('src');
		var novoEstado = estadoAtual.substr(0,estadoAtual.length-4);
		novoEstado = novoEstado+'-over.png';
		//alert(novoEstado);
		$(this).attr('src', novoEstado);
	});
	
	$('#main-menu ul li.off a img').mouseout(function(){
		var estadoAtual = $(this).attr('src');
		var novoEstado = estadoAtual.substr(0,estadoAtual.length-9);
		novoEstado = novoEstado+'.png';
		//alert(novoEstado);
		$(this).attr('src', novoEstado);
	});
	$('#main-menu ul li.on a img').each(function(){
		var estadoAtual = $(this).attr('src');
		var novoEstado = estadoAtual.substr(0,estadoAtual.length-4);
		novoEstado = novoEstado+'-over.png';
		//alert(novoEstado);
		$(this).attr('src', novoEstado);
	});


	$('#NewsType').change(function(){
		$('#tipo1, #tipo2').hide();
		$('#tipo'+$(this).val()).show();
	});

	
	$('#apagarform').click(function(){
		$('INPUT, TEXTAREA').each(function(){
			$(this).val('');
		})
	});
	
	$('#enviarform').click(function(){
		$('form').submit();
	});
	
	
});
