var fonte = 11;
function tamanhoFonte(tipo,id) {
	if (tipo == '+') {
		if (fonte < 18) {
			fonte++;
		}
	} else {
		if (fonte > 7) {
			fonte--;
		}
	}
	$(id).css({ fontSize: fonte+'px' });
}

function formBusca() {
	var valor = $('#palavra_chave').val();
	if (valor == '') exit;

	var interna = $('#secoes').val();
	
	if (interna != 'interna') {
		window.location = 'http://www.google.com.br/search?hl=pt-BR&q='+valor+'&btnG=Pesquisa+Google';
	} else {
		window.location = '/index/busca/palavra_chave/'+valor;
	}
	
}

function abreCombo(combo) {
  
  
}

$(document).ready(function() {
	$("a[href^='http']").attr('target', '_blank');
	$("select.jumpMenu").bind('change', function(e){
	  if ($(e.target).val() == '') return false;
	  if(/^http.?:\/\//.test($(e.target).val())) {
	    window.open($(e.target).val(),'new_window','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes');
	    e.target.selectedIndex=0;
	  } else {
  	    if (!(/^javascript:/.test($(e.target).val()))) {
	      window.location = $(e.target).val();
	    } 
	  }
	});
});
