function ajustar_pag() {
  
  var myWidth = 0, myHeight = 0;
	  
	  if( typeof( window.innerWidth ) == 'number' ) 
		  {
			//Browsers que não sejam o IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//Modo compativel com IE 6+
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//Modo compativel com browsers antigos IE 4
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		  }
  
	//window.alert( 'Width = ' + myWidth );
	//window.alert( 'Height = ' + myHeight );
  
  //LER ALTURA DO CONTEUDO
  var conteudoHeight = jQuery("#conteudo_central").height();
  //window.alert( 'myHeight = ' + conteudoHeight );
  
  var winWidth = myWidth;
  var winHeight = myHeight;
  var n_elementos;
  
  //ALTERAR PROPRIEDADES DO RODAPE
  if(conteudoHeight <= 465 )
  	{
	//coloca o div do rodape como absolute	//position:absolute; bottom:0px; left:0px;
	jQuery("#rodape").css('position','absolute');
	jQuery("#rodape").css('bottom','0px');
	jQuery("#rodape").css('left','0px');
	}
  
  //AJUSTAR ALTURA DO DIV CENTRAL
  if(winHeight <= 768) //POR DEFEITO PARA 800x600
  	{
  	     //window.alert( 'Width = ' + myWidth );
	
		jQuery("#centro").css('height','768px');
		
  	
  	}
	else
		{
		
			jQuery("#centro").css('height',winHeight + 'px');
			//document.getElementById('centro').style.height = (winHeight) + 'px'; //altura total retirar 3 pixeis por causa do IE
			//window.alert( 'Height = ' + myHeight );
		
		}

}

/*PARA AJUSTAR SEMPRE QUE É REDIMENSIONADA A PÁGINA*/
jQuery(window).load(function() {
	
	jQuery(window).bind("resize", ajustar_pag);
	
});

/*PARA AJUSTAR SEMPRE QUE É ESCOLHIDO UM LINK*/
jQuery(document).ready(function(jQuery) {
			
	ajustar_pag();								
});
