$(function () {
    $("#slider").orbit({
        animationSpeed: 800,                // how fast animtions are
        timer: true, 			 // true or false to have the timer
        advanceSpeed: 4000, 		 // if timer is enabled, time between transitions 
        captions: true, 			 // do you want captions?
        captionAnimation: 'fade', 		 // fade, slideOpen, none
        captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
        bullets: true, 		 // true or false to activate the bullet navigation
        directionalNav: false

    });
    $("#menu").find("li").click(function () {
        var link = $(this).find("a").attr('href');
        window.location.href = link

    });


    $(".mn_portifolio").hide();
    $("nav ul li").eq(2).hover(
      function () {
          $(".mn_portifolio").show();
      },
      function () {
          $(".mn_portifolio").hide();
      }
    );
    $(".contservico").hide();

    $(".direita nav ul li").find('a').click(function () {
        var link = $(this).attr('href');
        $(".contservico").hide();
        $(link).show();
        return false;

    });
    $(".contservico").eq(1).show();
    $("a[rel=popPortifolio]").fancybox({
        'autoScale': false,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'type': 'iframe',
        'width': 750,
        'height': 440
    });
});
