/******************************/
/**** Início: Div de Popup ****/
/******************************/
function fnFundoAbre(){
	$(window).resize();
	$('#JLayerBackground').show(); //--fadeIn
	$('#JLayer').show();	
	
	jQuery('#JLayerBackground').width((jQuery.browser.msie ? jQuery('.geral').width() : jQuery('.geral').width()));
	jQuery('#JLayer').width((jQuery.browser.msie ? jQuery('.geral').width() : jQuery('.geral').width()));

	jQuery('#JLayerBackground').height(jQuery(document).height());
	jQuery('#JLayer').height(jQuery(document).height());		
}

function fnFundoFecha(){
	$(window).resize();
	$('#JLayer').hide(); //--fadeOut
	$('#JLayerBackground').hide();	
	vForm = null;
}

function showPop(vParam)
{	
	fnFundoAbre();
	
	if(navigator.userAgent.match("MSIE 6.0")){ $("select").css("display","none"); }
	
	$(vParam).show();	
	$(vParam).css('left','25%');
	
}


function hidePop(vParam)
{	
	fnFundoFecha();

	$(vParam).hide();	
	
}
jQuery(document).ready(function(){
	jQuery(".aumenta-fonte").click(function(){
	  fontSize = parseInt(jQuery(".principal p").css("font-size")); 
	  lineSize = parseInt(jQuery(".principal p").css("line-height"));
	  if(fontSize<= 16)
	  {
	    fonte = fontSize+1;
	    line =  lineSize+1;
        jQuery(".principal p").css({"font-size": fonte+'px', "line-height": line+'px'});
	  }
	  return false;
   });
   jQuery(".diminui-fonte").click(function(){
	  fontSize = parseInt(jQuery(".principal p").css("font-size"));
	  lineSize = parseInt(jQuery(".principal p").css("line-height")); 
	  if(fontSize>= 11)
	  {
	    fonte = fontSize-1;
	    line =  lineSize-1; 
        jQuery(".principal p").css({"font-size": fonte+'px', "line-height": line+'px'});
	  }
   	  return false;
   });
});   


