﻿



/* Exibir e esconder*/
//Utilizar apenas input
$(document).ready(function() {


    /**/
/*alert($("margin-menu"));
alert($("ScriptManager1"));
    alert($("menuTopo1"));*/

$('.btnExibir').toggle(
           function() {
               $('.btnExibir').addClass('active');
               $('.divnone').fadeIn(); // ou slideDown()
           },
           function() {
               $('.btnExibir').removeClass('active');
               $('.divnone').fadeOut(); // ou slideUp()
           }
   		);
$(".btnExibir").bind("click",
 		function(event) {
 		    event.preventDefault();
 		    var target = $(this).attr("href");
 		    $("html, body").stop().animate({
 		        scrollLeft: $(target).offset().left,
 		        scrollTop: $(target).offset().top
 		    }, 1200);

 		}); 



    /* videos */
           $('.exc-video1').hide();
           $('.bt-video .linka:first').addClass('active').next().show();
           $('.bt-video .linka').click(function() {
               if ($(this).next().is(':hidden')) {
                   $('.bt-video .linka').removeClass('active').next().fadeOut();
                   $(this).toggleClass('active').next().fadeIn();
               }
               return false;
           });



    //Menu espande
    $('.nav-interno-rola li a:first').addClass('active').next().show();
    $('.nav-interno-rola li a').hover(function() {
        if ($(this).next().is(':hidden')) {
            $('.nav-interno-rola li a').removeClass('active').next().fadeOut();
            $(this).toggleClass('active').next().fadeIn();
        }
        return false;
    });

    $('.nav-interno-rola2 li a:first ').addClass('active').next().show();
    $('.nav-interno-rola2 li a').hover(function() {
        if ($(this).next().is(':hidden')) {
            $('.nav-interno-rola2 li a').removeClass('active').next().fadeOut();
            $(this).toggleClass('active').next().fadeIn();
        }
        return false;
    });
});
	
	
	
	
	
	
	
	
	
	
