
function tabs() {
	
	var tab_services = $('#services');
	var tab_portfolio = $('#portfolio');
	var tab_testimonials = $('#testimonials');
	
	var slide_services = $('.services');
	var slide_portfolio = $('.portfolio');
	var slide_testimonials = $('.testimonials');
	
	var position = $('.position');
	
	$('#options').css('height', '196px');
	
	$('#options .slide').css('height', '196px');
	
	tab_services.hover( function() { $(this).addClass('hover'); }, function () { $(this).removeClass('hover'); });
	
	tab_portfolio.hover( function() { $(this).addClass('hover'); }, function () { $(this).removeClass('hover'); });
	
	tab_testimonials.hover( function() { $(this).addClass('hover'); }, function () { $(this).removeClass('hover'); });
	
	slide_services.css('float', 'left');
	slide_portfolio.css('float', 'left');
	slide_testimonials.css('float', 'left');
	
	tab_services.click( function () {
		
		tab_services.addClass('active');
		tab_portfolio.removeClass();
		tab_testimonials.removeClass();
		
		position.stop().animate( { left : 0 }, 650, 'easeInOutQuad');
		
	});
	
	tab_portfolio.click( function () {
		
		tab_services.removeClass();
		tab_portfolio.addClass('active');
		tab_testimonials.removeClass();
		
		position.stop().animate( { left : -981 }, 650, 'easeInOutQuad');
		
	});
	
	tab_testimonials.click( function () {
		
		tab_services.removeClass();
		tab_portfolio.removeClass();
		tab_testimonials.addClass('active');
		
		position.stop().animate( { left : -1962 }, 650, 'easeInOutQuad');
		
	});
	
}

$(document).ready(function(){

	tabs();
	
});
