$(document).ready(initServicesNav);

function initServicesNav() {
    $(".listLeft li").click(function() {
		var index = $(this).attr("data-index");
		var _this = $(this);
		
		if ($(".listItem[data-index='" + index + "']:visible").length == 0) {

		    $(".listLeft li").animate({
		        
		    }, 400, function() {
		        $(".listLeft li").removeClass('active');
		    })
			
			$(".listItem:visible").fadeOut(400, function() {
			    			_this.addClass('active');
				$('.listItem[data-index="' + index + '"]').fadeIn();
			});
		};
	});
}
