$(document).ready(function(){
	
	$("#subinformation").hide("fast");
	$("#subfaq").hide("fast");
	$("#years").hide();
	$(".events_year").hide();
	$(".response").hide();
	
	$("#previous").css({"cursor":"pointer", 'font-weight' : 'normal'});
	$(".year").css({"cursor":"pointer", 'font-weight' : 'bold'});
	$(".title").css({"cursor":"pointer", 'font-weight' : 'normal','font-size':'90%'});
	
	$("#sub_info").click(function () {
		$("#subinformation").slideToggle("slow");
	  	$("#subfaq").slideUp("slow");
	});
	$("#sub_faq").click(function () {
		$("#subinformation").slideUp("slow");
	  	$("#subfaq").slideToggle("slow");
	});
	
	$(".title").hover(function(){
		$(this).css("font-weight","bold");},
		function(){$(this).css("font-weight","normal");}
	);
	
	$("#previous").hover(function(){
		$(this).css("font-weight","bold");},
		function(){$(this).css("font-weight","normal");}
	);
	
	$(".year").hover(function(){
		$(this).css("font-weight","normal");},
		function(){$(this).css("font-weight","bold");}
	);
	
	$(".title").click(function () {
		 $(this).next(".response").slideToggle("fast");
	});
	
	$("#previous").click(function(){
		$("#years").slideToggle("fast");
	});
	
	$(".year").click(function() {
		 $(this).next(".events_year").slideToggle("fast");
	});	
	
	$(".sponsor_ac").click(function (){
		$.scrollTo("#sponsorship", 500,{queue:true});
		$("#sponsorship").next(".response").slideDown("slow");}
	);
	
	$('.back_top').click(function(){
		$.scrollTo("#languages", 1000,{queue:true});
	});
	
});
