/**
 * @author Fedor Pudeyan
 */
jQuery(function($){
	$('section.solutions h1 a').click(function(){
		$(this).parent().addClass('active').siblings('h1').removeClass('active')
		var container = $('section.solutions .outer')
		$('#selected_solution').hide(100).text($(this).text())
		container.animate({
			'scrollLeft': container.scrollLeft() + $(this).parent().next().position().left
		}, 500,function() {
			$('#selected_solution').show(300)
		})
	}).first().click()
})

