function text_size_link_toggle() {
	$('#text-larger').toggle();
	$('#text-smaller').toggle();
}

function calendar_show() {
	createCookie("calendar", 'show', 365);
}

function calendar_hide() {
	createCookie("calendar", 'hide', 365);
}

function calendar_toggle() {
	$('#calendar-solid-bottom').slideToggle();
	$('#calendar-wire-bottom').slideToggle();
	$('#calendar-wrapper').slideToggle();
	$('#expand-calendar').slideToggle();
}

function search_complexity_toggle() {
	$('#oslsa-reports-advanced-search').slideToggle('fast');
	$('#oslsa-reports-simple-search').slideToggle('fast');
	$('#simple-search-link').toggle();
	$('#advanced-search-link').toggle();
}

function set_calendar_state() {
	var cookie = readCookie("calendar");
	switch(cookie) {
		case 'show': $('#calendar-wire-bottom').css('display', 'block');
					 $('#calendar-wrapper').show();
					 $('#expand-calendar').css('display','none');
					 $('#calendar-solid-bottom').css('display','none');
					 break;
		case 'hide': $('#calendar-wire-bottom').css('display', 'none');
					 $('#calendar-wrapper').hide();
					 $('#expand-calendar').css('display','block');
					 $('#calendar-solid-bottom').css('display','block');
					 break;
		default: $('#calendar-wire-bottom').css('display', 'block');
				 $('#calendar .text').css('display','block');
				 $('#calendar-days-display').css('display','block');
				 $('#expand-calendar').css('display','none');
				 $('#calendar-solid-bottom').css('display','none');
				 break;
	}
}

function set_textsize_state() {
	switch(title) {
		case 'Default': $('#text-larger').show();
						$('#text-smaller').hide();
						break;
						
		case 'Larger Text':	$('#text-smaller').show();
							$('#text-larger').hide();
							break;
	}
}