jQuery(function( $ ){
	$("#SearchTabs").show(); 
	$("#SearchTabs > ul").tabs();    
	
	$('#spec').serialScroll({
		items:'li',
		prev:'#specscroll a.prev',
		next:'#specscroll a.next',
		offset:0, 
		start:0, 
		duration:1000,
		force:true,
		stop:true,
		lock:false,
		cycle:true, 
		exclude:5,
		step:5
	});
	
	var showComments = $.cookie('commentviz'); 
	if (showComments == 'show') {
	      $("#usercomments").show(); 
			$(".showcomments").toggle();
	};
	
	var showComments = $.cookie('comments'); 
	if (showComments == 'show') {
			$.cookie('comments', 'hide', { path: '/', expires: -1 });
	};
	
	
	$(".showcomments").click(function () { 
		$("#usercomments").toggle(); 
		$(".showcomments").toggle();
		var testComments = $.cookie('commentviz'); 
		if (testComments == 'show') {
			$.cookie('commentviz', 'hide', { path: '/', expires: 30 });
		} else {
			$.cookie('commentviz', 'show', { path: '/', expires: 30 });
		};
	});
	
	/* $('.tt').tooltip({ track: true, delay: 100, showURL: false, showBody: " - ", fade: 250}); */    
		
});