
navegador = navigator.userAgent;

var ie6=/MSIE 6.0/g;

if(!ie6.test(navegador)){
	

$('document').ready(function(){

	// Ajusta altura das divs que estiverem com a class = equal_height
	function EqualHeight()
	{
		max_height = 0;
		$(".equal_height").each(function(){
			temp = parseInt($(this).height());
			//alert(temp);
			max_height = Math.max(max_height, temp);
			//alert(max_height);
		})
			
		$(".equal_height").each(function(){
			$(this).css('min-height', (max_height + 10));
	
		})
	}
	
	$(".equal_height").each(function(){
		$(this).resize(
			EqualHeight()
		);				
	})
	

	/* EqualHeight Controle do Rodapé*/
	var rodape = ($("#container_rodape").outerHeight({ margin: true }));
	
	
	var Altura_form = ($(".equalform").each(function(){
		$(this).css('min-height', (max_height - rodape + 26));

	}));
	



})

}
else{

	$('document').ready(function(){
	
	// Ajusta altura das divs que estiverem com a class = equal_height

		function EqualHeight()
		{
			max_height = 0;
			$(".equal_height").each(function(){
			temp = parseInt($(this).height());
			//alert(temp);
			max_height = Math.max(max_height, temp);
			//alert(max_height);
			})
			
			$(".equal_height").each(function(){
			$(this).css('height', max_height);
			})
		}
		
		$(".equal_height").each(function(){
			$(this).resize(EqualHeight());				
		})
		

		/* EqualHeight Controle do Rodapé*/
		var rodape = ($("#container_rodape").outerHeight({ margin: true }));
		
		$(".aumento").each(function(){
			$(this).css('height', (max_height + rodape - 2), 'height', 'auto !important','height', (max_height + rodape - 2));
		})

		/* EqualHeight  Formularios Cadastre e Encomende*/
		$(".equalform").each(function(){
		$(this).css('height', (max_height - rodape + 15));
		
		})
		
	})
	
}


