	$(document).ready(function(){		
		$('.accordionbutton').click(function() {
		var val = $(this).children('.mainlinks').attr('id');
		$(".mainlinks").each(function (index, val) {
			if (!$(this).is(val)) {
				$(this).css("color", "#56A1D4");
				$(this).css("font-weight", "normal");
			}
		});
			$('.accordionbutton').removeClass('on');
			$('.accordioncontent').slideUp('normal');
			if ($(this).next().is(':hidden') == true) {
				$(this).addClass('on');
				$(this).next().slideDown('normal');
			}
			
			if ($(this).children('.mainlinks').css("color") == 'rgb(86, 161, 212)' && $(this).children('.mainlinks').css("font-weight") != "bold") {
				$(this).children('.mainlinks').css("font-weight", "bold");
				switch ($(this).children('.mainlinks').attr('id')) {
					case "1":
						$(this).children('.mainlinks').css("color", "#0C3983");
						break;
					case "2":
						$(this).children('.mainlinks').css("color", "#6190CB");
						break;
					case "3":
						$(this).children('.mainlinks').css("color", "#E4105B");
						break;
					case "4":
						$(this).children('.mainlinks').css("color", "#795483");
						break;
					case "5":
						$(this).children('.mainlinks').css("color", "#F36F33");
						break;
					case "6":
						$(this).children('.mainlinks').css("color", "#E0D631");
						break;
					case "7":
						$(this).children('.mainlinks').css("color", "#C85E27");
						break;
					case "8":
						$(this).children('.mainlinks').css("color", "#6EBF5D");
						break;
					case "9":
						$(this).children('.mainlinks').css("color", "#BFDFDD");
						break;
				}		
			}
		});
	});
