jQuery.noConflict();

jQuery(document).ready(function($){


	// Tabs (for homepage news/events and others)
	$('.tabber .svSyndLocal').addClass('tabbertab');
	
	$('.tabber h3').addClass('sIFR-ignore');
	
	// some tabs have overly verbose names (based on the H3)
	// so set their title attribute for tabber.js to use instead of the H3
	$('.tabber #sysCraNews').attr('title', 'News');
	$('.tabber #sysCraEvents').attr('title', 'Events');
	
	$('.tabber #sysChapterNetworkEvents').attr('title', 'Events');
	$('.tabber #sysChapterNetworkPopularContent').attr('title', 'Popular Content');



	// zebra stripe tabbed DL's
	$('.tabbertab dl:odd').addClass('alt');



	// My Favorites accordion
	$('#svFavoritesList ul').hide();
	$('#svFavoritesList h3').addClass('sIFR-ignore');
	$('#svFavoritesList h3').wrapInner('<span></span>');
	$('#svFavoritesList h3').click(function() {
		$(this).next('ul').slideToggle('fast');
		$(this).parent().toggleClass('expanded');
	});



	// Move session tools out of sidebar and into header
	if($('#svSessionTools').length > 0) { //check if session tools are present

		// add a new div#sessionTools in the header before #searchForm
		// and populate the new div with the contents of the sidebar session tools
		$('#searchForm').before('<div id="sessionTools">' + $('#svSessionTools').html() + '</div>');

		// hide the sidebar session tools
		$('#svSessionTools').hide();
	}



	// add 'first' class to first feed inside 2 columns
	$('.columns2 div.svSyndLocal:first-child').addClass('first');


});


/* EOF */