// JavaScript general functions for App.
$(document).ready(function(){
		
	// PNG Fix for IE6
	//$(document).pngFix();
	
	// Abrir links em uma nova janela
	// Procura por todos os links com o atributo rel="externo"
	$("a[rel=externo]").each(function(i){
		// Guarda o valor do title na variável "title"
		var title = $(this).attr('title');
		// Adiciona ao link o atributo target="_blank" e ao title acrescenta um texto.
		$(this).attr('target','_blank').attr('title',title+' (Este link abre em uma nova janela)');
	});
	
	// Verifica se é o Internet Explorer 6 ou 7
	if($.browser.msie)
	{
		if($.browser.version == "6.0" || $.browser.version == "7.0")
		{
			// FAZ ALGUMA COISA		
		}
	}
	
	$('.selectRedirect').change(function() {
  // set the window's location property to the value of the option the user has selected
  	window.location = $(this).val();
	});
					   
});


