﻿/*
$(window).load(function() {
    $('div#MenuContextoDiv').corner(); // Arredonda os cantos 
    $('div#NoticiasDiv').corner(); // Arredonda os cantos 
});
*/


$(document).ready(function(){
  
    // Animação no Menu Lateral
    $('ul#MenuLateralUl li.PaiLi a').click(
        function(){
            $(this).siblings('ul').toggle("fast");
        }
    );
  
  
    // Animação no Menu do Rodapé da Página
    $('div#barraDeLinks ul li').hover(
        function() { //mouse in
            $(this).stop().animate({ paddingRight: '1em' }, 70);
        }, 
        function() { //mouse out
            $(this).stop().animate({ paddingRight: 0 }, 250);
        }
    );   
  
    // Animação de opacidade no botão colorido
    $('ul#BotaoContainerUl li a.botao-colorido').css('opacity', 1).hover(
        function(){
            $(this).stop().animate({opacity: 0.75}, 120);
        }, 
        function(){
            $(this).stop().animate({opacity: 1}, 120);
        }
    );  
    

    // Anima o menu das Comunidades    
    $('ul#MenuComunidadesUl li').hover(
        function(){
            $(this).stop().not(':last-child').animate(
            {
                borderLeftWidth: '25px',
                marginRight: '10px'
            }, 100);
            $(this).stop(':last-child').animate(
            {
                borderLeftWidth: '25px',
                marginRight: 0
            }, 100);                     
        }, 
        function(){
            $(this).stop().animate(
            {
                paddingBottom: 0,
                paddingTop: 0,
                borderLeftWidth: '10px',
                marginRight: 0
            }, 150);                      
        }
    );
    
    
    
    
    
    
    //$('ul#BannerUl li:first-child').css('display', 'inherit');
    //$('ul#ControleBannerUl li:first-child').css('border-top', '1px solid #ffffff;');
    
    
    
    /*
    $('div#MenuContextoDiv ul li.FilhoLi').mouseover(
        function(){
            $(this).stop().animate(
            {
                backgroundColor: 'black'
            }, 200);                                                     
        }, 
        function(){
            $(this).stop().animate(
            {
                backgroundColor: 'transparent'
            }, 200);
        }
    );
    */
    
    
  

    /*
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
  $("#resetFont").click(function(){
    $('div#conteudo1coluna').css('font-size', originalFontSize);
    $('div#conteudo2colunas').css('font-size', originalFontSize);
    $('div#conteudo3colunas').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $("#increaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    
	$('html').css('font-size', newFontSize);
	
	
	return false;
  });
  // Decrease Font Size
  $("#decreaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
	$('html').css('font-size', newFontSize);
	return false;
  });
  */
});
