window.addEvent('domready', function() {

	// if we're on the home page, add a background to the flash movie but delay it so the movie can load into a transparent background
	// the bg gets added because the lightbox function erases the flash clip, so this at least shows something in the bg
	if ( $chk('home-header') ) {
		(function(){ $('home-header').addClass('home-header-bg'); }).delay(5000);
	}


	$$('#mainnav li.top').addEvents({
		'mouseenter': function(){
			this.addClass('sfhover');
			this.addClass('over');
		},
		'mouseleave': function(){
			this.removeClass('sfhover');
			this.removeClass('over');
		}
	});

	$('stockinfo-link').addEvents({
		'mouseenter': function(){
			this.addClass('stockinfo-hover');
		},
		'mouseleave': function(){
			this.removeClass('stockinfo-hover');
		},
		'click': function(){
			$('stock-details').fireEvent('click');
		}
	});

});

