jQuery(document).ready(function(){
	
     
	
	//-------------------------------------//
//JANELA MODAL GALERIA DE FOTOS
//------------------------------------//
  $(".img_galeria a").fancybox();
   $("a[rel=example_group]").fancybox({
      'transitionIn'		: 'none',
      'transitionOut'		: 'none',
      'titlePosition' 	: 'over',
      'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
         return '<span id="fancybox-title-over">Imagem ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
      }
   });
//-------------------------------------//
// JQUERY OPACITY
//------------------------------------//
   $(".opacity").css({
      opacity:0.8
   });

//-------------------------------------//
// FIM  JQUERY OPACITY
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
//CONTEUDO ESPAÇOS
//------------------------------------//
   $('.content_tab').css('display', 'none');
   $('.content_tab').first().show().addClass('ativado');
   //$('.menu_left').find('a').first().addClass('active');

   $('.menu_left').find('a').click(function(){
      $('.active').removeClass('active');
      $(this).addClass('active');
      var teste = '#'+$(this).attr('rel');
      $('.ativado').stop().slideUp('800');
      $('.ativado').addClass('desativando');
      $('.desativando').removeClass('ativado');
      $('.content_tab').removeClass('desativando');
      $(teste).delay(900).stop().slideDown(700).addClass('ativado');
   })
//-------------------------------------//
// FIM CONTEUDO ESPAÇOS
//------------------------------------//

//*************************************************************************************


//-------------------------------------//
//FIM JANELA MODAL GALERIA DE FOTOS
//------------------------------------//

//*************************************************************************************
//
//-------------------------------------//
//MENU LATERAL CONHEÇA SÃO PAULO
//------------------------------------//
   $('.canto_right').hide();
   $('.canto_right').first().show().addClass('ativado');
   $('.menu_bottom_lateral').find('a').first().addClass('active');
   $('.menu_bottom_lateral').find('a').click(function(){
      $('.menu_bottom_lateral').find('.active').removeClass('active');
      $(this).addClass('active');
      var teste = '#'+$(this).attr('rel');
      $('.ativado').stop().slideUp('800');
      $('.ativado').addClass('desativando');
      $('.desativando').removeClass('ativado');
      $('.content_tab').removeClass('desativando');
      $(teste).delay(900).stop().slideDown(700).addClass('ativado');
   });
//-------------------------------------//
// FIM MENU LATERAL CONHEÇA SÃO PAULO
//------------------------------------//

   $("dd.date_effect").hover(
      function () {
         $(this).find('div').stop().animate({
            width: "317px"
         }, 200 );
         $(this).find('div.interna').stop().animate({
            width: "230px"
         }, 200 );
         $(this).find('a').css("color", "#FFF")
      },

      function(){
         $(this).find('div').stop().animate({
            width: "47px"
         },200);
         $(this).find('a').css("color", "")
      })

//-------------------------------------//
// HOVER CONHEÇA SÃO PAULO
//------------------------------------//
   $('.conheca_saopaulo li').hover(function(){
      $(this).css('background-color','#e2e0da');
   },
   function(){
      $(this).css('background-color','');
   })
//-------------------------------------//
// FIM HOVER CONHEÇA SÃO PAULO
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
// BANNER EVENTOS
//------------------------------------//
   $('.chamada_espacos').hover(function(){
      $('.chamada_espacos').css('cursor', 'pointer')
      $('.chamada_espacos').stop().animate({
         opacity: 0.50
      },300)
      $(this).stop().animate({
         opacity: 1
      },200)
   },
   function(){
      $('.chamada_espacos').stop().animate({
         opacity:1
      },200)
   })
//-------------------------------------//
// FIM BANNER EVENTOS
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
// NOTÍCIAS
//------------------------------------//
   $('.noticia').hover(function(){
      $(this).css('background', '#fff')
   },
   function(){
      $(this).css('background','')
   })
//-------------------------------------//
// FIM NOTÍCIAS
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
// MENU
//------------------------------------//
   $('div.nav ul').find('ul li').css("border-top","1px dotted #fff");
   $('div.nav ul').find('li').hover(function(){
      $(this).find('ul').show()
      $(this).find('ul li ul').css('display', 'none');
      $(this).find('ul li:first').css("border-top","");
   },
   function(){
      $(this).find('ul').fadeOut(100)
   });
//-------------------------------------//
// FIM NOTÍCIAS
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
// MENU INTERNA
//------------------------------------//

   $('.menu_interna ul').find('li').hover(function(){
      $(this).find('ul').show();
   },
   function(){
      $(this).find('ul').fadeOut(100)
   })
//-------------------------------------//
// FIM MENU INTERNA
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
// ZEBRA TABELA
//------------------------------------//
   $("table.caracteristicas tr:nth-child(odd)").addClass("odd");
//-------------------------------------//
// FIM ZEBRA TABELA
//------------------------------------//

//*************************************************************************************

//-------------------------------------//
// COLUNAS
//------------------------------------//
   $(".colunas_bottom ul").ezColumns({
      columns: 3,
      colWrapper: '<ul class="col"></ul>',
      target: $('.colunas_bottom')
   });
   
 
//-------------------------------------//
// FIM COLUNAS
//------------------------------------//
	
});






