$(document).ready(function() {

	//fancybox slideshow
		$("a.slide_group").fancybox({ 
			'zoomSpeedIn': 300,
			'zoomSpeedOut': 300,
			'overlayShow': true }); 

	
	//type resize
	$('#typesizebox ul li a.small').click(function() {
		$('body').css('font-size','70%');
		$.cookie('textResize', 'small');		
		return false;
	});
	
	$('#typesizebox ul li a.med').click(function() {
		$('body').css('font-size','85%');
		$.cookie('textResize', 'med');
		return false;
	});
	
	$('#typesizebox ul li a.lg').click(function() {
		$('body').css('font-size','95%');
		$.cookie('textResize', 'large');
		return false;
	});

	//Set the cookies for search options
    var textResize = $.cookie('textResize');

	if (textResize == 'small'){
		$('body').css('font-size','70%');
	}else if(textResize == 'med'){
		$('body').css('font-size','85%');
	}else if(textResize == 'large'){
		$('body').css('font-size','95%');
	};
	
	$('ul#more_nav li a').click(function(){
		$('ul#more_nav li a').removeClass('selected');
		$(this).addClass('selected');
	});
	
	//take care of more.php nav
	$('ul#more_nav').localScroll({
		target:'#more_table',
		queue:true,
		duration:1000,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}

	});
	
});