$(document).ready(function(){
////////*POPUP TIPS*//////	
	$("a.popup-trigger").hover(function() {
		$(this).next("div").stop()
		.animate({top: "-52", opacity:1}, 250,'swing')
		.css("display","block")

	}, function() {
		$(this).next("div").stop()
		.animate({top: "-42", opacity: 0}, "fast")
	});
	
	$("a.people-avatar").hover(function() {
		$(this).next("div").stop()
		.animate({top: "-110", opacity:1}, 400,'swing')
		.css("display","block")

	}, function() {
		$(this).next("div").stop()
		.animate({top: "-80", opacity: 0}, "fast")
	});	
	
////////*FLEX SLIDER*//////	
 $("#home-slider").flexslider({
          animation: "slide",
          slideshow: true,
          slideshowSpeed: 7000,
          animationDuration: 500,
          directionNav: false
    });
    
 $(".work-slider").flexslider({
          animation: "slide",
          slideshow: true,
          slideshowSpeed: 7000,
          animationDuration: 500, 
          directionNav: true,
          controlNav: false, 
          controlsContainer: ".work-slider"
    });
    
});
