$(document).ready(function() {
    $("body").addClass("hasjs");
	$('div.timeline-control ul li a').click(function(){
		$('div.timeline-control ul li a').removeClass('active');
		$(this).addClass('active');
	});
	$('div.timeline-control ul li#tl1 a').click(function(){
		$('div.timeline-content').animate({left:'-329'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl2 a').click(function(){
		$('div.timeline-content').animate({left:'-629px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl3 a').click(function(){
		$('div.timeline-content').animate({left:'-929px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl4 a').click(function(){
		$('div.timeline-content').animate({left:'-1229px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl5 a').click(function(){
		$('div.timeline-content').animate({left:'-1529px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl6 a').click(function(){
		$('div.timeline-content').animate({left:'-1829px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl7 a').click(function(){
		$('div.timeline-content').animate({left:'-2129px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl8 a').click(function(){
		$('div.timeline-content').animate({left:'-2429px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl9 a').click(function(){
		$('div.timeline-content').animate({left:'-2729px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl10 a').click(function(){
		$('div.timeline-content').animate({left:'-3029px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-control ul li#tl11 a').click(function(){
		$('div.timeline-content').animate({left:'-3329px'},{queue:false,duration:1000, easing: 'easeOutBounce'});
		return false;
	});
	$('div.timeline-content div.time-year div.content-up').css('opacity', '0');
	$('div.timeline-content div.time-year div.content-down').css('opacity', '0');
	$('div.timeline-content div.time-year div.year-top').mouseover(function(){
		$(this).find('div.content-up').animate({"opacity": "1"},{queue:false,duration:1000, easing: 'easeInOutQuad'});
	});
	$('div.timeline-content div.time-year div.year-top').mouseout(function() {
		$(this).find('div.content-up').animate({"opacity": "0"},{queue:false,duration:1000, easing: 'easeInOutQuad'});
	});
	$('div.timeline-content div.time-year div.year-btm').mouseover(function(){
		$(this).find('div.content-down').animate({"opacity": "1"},{queue:false,duration:1000, easing: 'easeInOutQuad'});
	});
	$('div.timeline-content div.time-year div.year-btm').mouseout(function() {
		$(this).find('div.content-down').animate({"opacity": "0"},{queue:false,duration:1000, easing: 'easeInOutQuad'});
	});
});
