$(document).ready(function(){
	resize();
	$('.tooltip').mouseover(function(){
		html = '<div><p class="txtColor2">' + $('.contTol').text() + '</p></div>';								  
		$(this).toolTipRvaz({inlineId:$(html),shadow:false,width:300,corner:5,border:{color:'#1D5B64',width:1}, pos:'br'});
	});
	$('.tooltip').mouseout(function(){						  
		$(this).removeToolTipRvaz();
	});
	$(".imgs a, .galeria").lightbox();
});
	function resize() {
		if( $('#conteudoInterno').height() > $(window).height() || $('#conteudoLateral').height() > $(window).height() ) {
			if( $('#conteudoInterno').height() > $('#conteudoLateral').height() ) {
				$('#conteudoLateral').css('min-height', $('#conteudoInterno').height());
				if($.browser.msie && $.browser.version == 6.0){
					$('#conteudoLateral').css('height', $('#conteudoInterno').height());
				}
			} else {
				$('#conteudoInterno').css('min-height', $('#conteudoLateral').height());
			}
/*			$('#conteudoInterno').css('min-height', $(window).height() - 266);
			$('#conteudoLateral').css('min-height', $(window).height() - 266);*/
		} else {
		$('#conteudoInterno').css('min-height', $(window).height());
		$('#conteudoLateral').css('min-height', $('#conteudoInterno').height());
		
			/*POG para IE*/
			if($.browser.msie && $.browser.version == 6.0){
					$('#conteudoInterno').css('height',$(window).height() - 266);
					$('#conteudoLateral').css('height',$('#conteudoInterno').height()+10);
					$('#conteudo').addClass('semTopo');
	
			}
		}
	}
