// Start up Shadowbox.
Shadowbox.init({
	players: ['img', 'swf']
});

$(function()
{
	// Javascript/jQuery for all pages.
	$('html').addClass('j');
	
	// Run the site search box plugin.
	$('form.site-search').site_search_box({query_message: 'Search this site'});
	
	if ($('body').hasClass('t-sidebar'))
	{
		$('div.c .cycle')
		.cycle({ 
		    fx:     'fade',
		    speed:   660,
		    timeout: 5000
		})
		.find('a:has(img[alt])').each(function()
		{
			var a = $(this);
			var alt = a.find('img').attr('alt');
			var a_title = a.attr('title');
			if (alt && !a_title)
			{
				a.attr('title', alt);
			}
		});
	}
});



