$(document).ready(function()
{
	$('.sifr').flash(
	{
		src: 'Futura.swf',
		flashvars:
		{
			css: '* { color: #0098E5; }'
		}
	}, { version: 7 }, function(htmlOptions)
	{
		var elem = $(this).wrapInner('<span></span>').find('span');
		// Set Flash options
		htmlOptions.flashvars.txt = elem.text();
		htmlOptions.height        = elem.height();
		htmlOptions.width         = elem.width();
		htmlOptions.wmode         = 'transparent';
		// Insert Flash
		elem.addClass('alt').parent().prepend($.fn.flash.transform(htmlOptions));
	});
	// ------------------------------------------------------------------------
	$('#menu li').not('.active').find('a').hover(function()
	{
		$(this).stop().animate({ backgroundColor: '#ebebeb'}, 250);
	},
	function()
	{
		$(this).stop().animate({ backgroundColor: '#fff'}, 250);
	})
	// Do this to prevent CSS styles from interfering
	.css('background-color', '#fff');
	// ------------------------------------------------------------------------
	$('#menu li:last a').click(function(){
		return confirm('Your are leaving the Doncasters Gear Products website and entering the main Doncasters Corporate website.');
	});
	// ------------------------------------------------------------------------
	$('#sidebar dt, #sidebar dd').hover(function()
	{
		var box = $(this);
		box.add( box.is('dt') ? box.next('dd') : box.prev('dt') ).stop().animate({ backgroundColor: '#eee' }, 250);
	},
	function()
	{
		var box = $(this);
		box.add( box.is('dt') ? box.next('dd') : box.prev('dt') ).stop().animate({ backgroundColor: '#ccc' }, 250);
	})
	.css('background-color', '#ccc');
});