$(document).ready(function(){

	// Using multiple unit types within one animation.
	$(".nav-services .service-item, .nav-services ul li").hover(function() {
	    $(this).animate({ backgroundColor: "#3a3a3a", color: "#ffffff", borderTopColor: "#252525" });
	},function() {
	    $(this).animate({ backgroundColor: "#191919", color:"#a9a9a9", borderTopColor: "#0f0f0f" });
	});
	$(".nav-services ul li a").hover(function() {
	    $(this).animate({ color:"#ffffff"});
	},function() {
	    $(this).animate({ color:"#a9a9a9"});
	});
	$(".nav-services .service-item").hover(function() {
	    $(this).find('a.url-service').animate({ color:"#ffffff"});
	},function() {
	    $(this).find('a.url-service').animate({ color:"#a9a9a9"});
	});
	$(".nav-services ul li.selected").hover(function() {
	    $(this).animate({ backgroundColor: "#3a3a3a"});
	},function() {
	    $(this).animate({ backgroundColor: "#3a3a3a"});
	});

	$(".project-news .news").hover(function() {
	    $(this).animate({ borderBottomColor: "#ffffff", backgroundColor: "#000000" });
	},function() {
	    $(this).animate({ borderBottomColor: "#3f3f3f", backgroundColor: "#0d0d0d" });
	});
	
	$(".service-thumb .thumb-detail p.highlighted a").hover(function() {
	    $(this).animate({ color: "#2f2f2f", backgroundColor: "#ffffff" });
	},function() {
	    $(this).animate({ color: "#a9a9a9", backgroundColor: "#3f3f3f" });
	});
	
	$(".thumbs-work .pagination a").hover(function() {
	    $(this).animate({ color: "#2f2f2f", backgroundColor: "#ffffff" });
	},function() {
	    $(this).animate({ color: "#a9a9a9", backgroundColor: "#3f3f3f" });
	});
	
	$(".slidetabsWork a").hover(function() {
	    $(this).animate({ borderTopColor: "#ffffff", borderLeftColor: "#ffffff", borderRightColor: "#ffffff", borderBottomColor: "#ffffff"});
	},function() {
	    $(this).animate({ borderTopColor: "#272727", borderLeftColor: "#272727", borderRightColor: "#272727", borderBottomColor: "#272727"});
	});
	
	$(".projects .scrollable-item .project-item").hover(function() {
		    $(this).find('.project-thumb').animate({ opacity: "1.0"});
		    $(this).find('.headtitle').animate({ opacity: "0"});
		    $(this).find('.title').animate({ bottom: "0"});
		},function() {
		    $(this).find('.project-thumb').animate({ opacity: "0.3"});
		    $(this).find('.headtitle').animate({ opacity: "1.0"});
		    $(this).find('.title').animate({ bottom: "-38"});
	});
	
	$(".projects .scrollable-item .selected").hover(function() {
		    $(this).find('.project-thumb').animate({ opacity: "1.0"});
		    $(this).find('.headtitle').animate({ opacity: "1.0"});
		},function() {
		    $(this).find('.project-thumb').animate({ opacity: "1.0"});
		    $(this).find('.headtitle').animate({ opacity: "1.0"});
	});
	

	
	
});

$(document).ready(function(){
		$(".slider-links div:first").addClass("active");
		
		$(".slider-links div").click(function(){
			$(this).siblings("div").removeClass("active");
			$(this).addClass(" active");
			return false;
      });
});

